xref: /rk3399_rockchip-uboot/arch/arm/dts/px3se-evb.dts (revision 7c1937d6d1c7daf8e59b4760f8adc7ee42bd7bea)
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	adc-keys {
18		compatible = "adc-keys";
19		io-channels = <&saradc 1>;
20		io-channel-names = "buttons";
21		poll-interval = <100>;
22		keyup-threshold-microvolt = <1800000>;
23
24		vol-up {
25			label = "Volume Up";
26			linux,code = <KEY_VOLUMEUP>;
27			press-threshold-microvolt = <18000>;
28		};
29
30		vol-down {
31			label = "Volume Down";
32			linux,code = <KEY_VOLUMEDOWN>;
33			press-threshold-microvolt = <300000>;
34		};
35	};
36
37	chosen {
38		stdout-path = &uart1;
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	clock-frequency = <24000000>;
75	u-boot,dm-pre-reloc;
76	status = "okay";
77};
78
79&usb_host_ehci {
80	status = "okay";
81};
82
83&usb_host_ohci {
84	status = "okay";
85};
86
87&usb_otg {
88	vbus-supply = <&vcc50_otg>;
89	status = "okay";
90};
91
92&pinctrl {
93	usb_otg {
94		otg_drv: otg-drv {
95			rockchip,pins = <2 12 RK_FUNC_GPIO &pcfg_pull_none>;
96		};
97	};
98};
99