xref: /OK3568_Linux_fs/u-boot/arch/arm/dts/px3se-evb.dts (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1/*
2 * (C) Copyright 2018 Rockchip Electronics Co., Ltd
3 *
4 * SPDX-License-Identifier:     GPL-2.0+
5 */
6
7/dts-v1/;
8
9#include <dt-bindings/input/input.h>
10#include "rk3128.dtsi"
11#include "rk3128-u-boot.dtsi"
12
13/ {
14	model = "Rockchip PX3SE Evaluation board";
15	compatible = "rockchip,px3se-evb", "rockchip,px3se";
16
17	chosen {
18		stdout-path = &uart1;
19	};
20
21	adc-keys {
22		compatible = "adc-keys";
23		io-channels = <&saradc 1>;
24		io-channel-names = "buttons";
25		poll-interval = <100>;
26		keyup-threshold-microvolt = <1800000>;
27
28		vol-up {
29			label = "Volume Up";
30			linux,code = <KEY_VOLUMEUP>;
31			press-threshold-microvolt = <18000>;
32		};
33
34		vol-down {
35			label = "Volume Down";
36			linux,code = <KEY_VOLUMEDOWN>;
37			press-threshold-microvolt = <300000>;
38		};
39	};
40
41	vcc50_otg: vcc50-otg {
42		compatible = "regulator-fixed";
43		regulator-name = "vcc50_otg";
44		gpio = <&gpio0 12 GPIO_ACTIVE_HIGH>;
45		pinctrl-names = "default";
46		pinctrl-0 = <&otg_drv>;
47		regulator-min-microvolt = <5000000>;
48		regulator-max-microvolt = <5000000>;
49	};
50};
51
52&emmc {
53	fifo-mode;
54	status = "okay";
55};
56
57&saradc {
58	status = "okay";
59};
60
61&u2phy {
62	status = "okay";
63};
64
65&u2phy_otg {
66	status = "okay";
67};
68
69&u2phy_host {
70	status = "okay";
71};
72
73&uart1 {
74	status = "okay";
75};
76
77&usb_host_ehci {
78	status = "okay";
79};
80
81&usb_host_ohci {
82	status = "okay";
83};
84
85&usb_otg {
86	vbus-supply = <&vcc50_otg>;
87	status = "okay";
88};
89
90&pinctrl {
91	usb_otg {
92		otg_drv: otg-drv {
93			rockchip,pins = <2 12 RK_FUNC_GPIO &pcfg_pull_none>;
94		};
95	};
96};
97