xref: /rk3399_rockchip-uboot/arch/arm/dts/rk3126-evb.dts (revision b8fa3d2a17dce6006a8a5f46cbc978a19a3fdf82)
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	chosen {
18		stdout-path = &uart2;
19	};
20
21	vcc5v0_otg: vcc5v0-otg-drv {
22		compatible = "regulator-fixed";
23		regulator-name = "vcc5v0_otg";
24		gpio = <&gpio0 26 GPIO_ACTIVE_HIGH>;
25		pinctrl-names = "default";
26		pinctrl-0 = <&otg_vbus_drv>;
27		regulator-min-microvolt = <5000000>;
28		regulator-max-microvolt = <5000000>;
29	};
30
31	adc-keys {
32		compatible = "adc-keys";
33		io-channels = <&saradc 2>;
34		io-channel-names = "buttons";
35		poll-interval = <100>;
36		keyup-threshold-microvolt = <3300000>;
37
38		button-up {
39			label = "Volume Up";
40			linux,code = <KEY_VOLUMEUP>;
41			press-threshold-microvolt = <0>;
42		};
43
44		button-down {
45			label = "Volume Down";
46			linux,code = <KEY_VOLUMEDOWN>;
47			press-threshold-microvolt = <1650000>;
48		};
49	};
50};
51
52&u2phy {
53	status = "okay";
54};
55
56&u2phy_otg {
57	status = "okay";
58};
59
60&u2phy_host {
61	status = "okay";
62};
63
64&uart2 {
65	clock-frequency = <24000000>;
66	u-boot,dm-pre-reloc;
67	status = "okay";
68};
69
70&usb_host_ehci {
71	status = "okay";
72};
73
74&usb_host_ohci {
75	status = "okay";
76};
77
78&usb_otg {
79	vbus-supply = <&vcc5v0_otg>;
80	status = "okay";
81};
82
83&emmc {
84	fifo-mode;
85	status = "okay";
86};
87
88&pinctrl {
89	usb_otg {
90		otg_vbus_drv: otg-vbus-drv {
91			rockchip,pins = <0 26 RK_FUNC_GPIO &pcfg_pull_none>;
92		};
93	};
94
95	usb_host {
96		host_vbus_drv: host-vbus-drv {
97			rockchip,pins = <2 23 RK_FUNC_GPIO &pcfg_pull_none>;
98		};
99	};
100};
101