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