xref: /rk3399_rockchip-uboot/arch/arm/dts/rk3128-evb.dts (revision 331c2375688d79920fb06b8f0c4c52a7df56fb29)
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
12/ {
13	model = "Rockchip RK3128 Evaluation board";
14	compatible = "rockchip,rk3128-evb", "rockchip,rk3128";
15
16	vcc5v0_otg: vcc5v0-otg-drv {
17		compatible = "regulator-fixed";
18		regulator-name = "vcc5v0_otg";
19		gpio = <&gpio0 26 GPIO_ACTIVE_HIGH>;
20		pinctrl-names = "default";
21		pinctrl-0 = <&otg_vbus_drv>;
22		regulator-min-microvolt = <5000000>;
23		regulator-max-microvolt = <5000000>;
24	};
25
26	vcc5v0_host: vcc5v0-host-drv {
27		compatible = "regulator-fixed";
28		regulator-name = "vcc5v0_host";
29		gpio = <&gpio2 23 GPIO_ACTIVE_HIGH>;
30		pinctrl-names = "default";
31		pinctrl-0 = <&host_vbus_drv>;
32		regulator-min-microvolt = <5000000>;
33		regulator-max-microvolt = <5000000>;
34		regulator-always-on;
35	};
36};
37
38&i2c1 {
39	status = "okay";
40
41        hym8563: hym8563@51 {
42		compatible = "haoyu,hym8563";
43		reg = <0x51>;
44		#clock-cells = <0>;
45		clock-frequency = <32768>;
46		clock-output-names = "xin32k";
47	};
48};
49
50&u2phy {
51	status = "okay";
52};
53
54&u2phy_otg {
55	status = "okay";
56};
57
58&u2phy_host {
59	status = "okay";
60};
61
62&uart2 {
63	status = "okay";
64};
65
66&usb_host_ehci {
67	status = "okay";
68};
69
70&usb_host_ohci {
71	status = "okay";
72};
73
74&usb_otg {
75	vbus-supply = <&vcc5v0_otg>;
76	status = "okay";
77};
78
79&emmc {
80	fifo-mode;
81	status = "okay";
82};
83
84&pinctrl {
85	usb_otg {
86		otg_vbus_drv: otg-vbus-drv {
87			rockchip,pins = <0 26 RK_FUNC_GPIO &pcfg_pull_none>;
88		};
89	};
90
91	usb_host {
92		host_vbus_drv: host-vbus-drv {
93			rockchip,pins = <2 23 RK_FUNC_GPIO &pcfg_pull_none>;
94		};
95	};
96};
97