Prepare v2024.10
[platform/kernel/u-boot.git] / arch / arm / dts / rk3128-evb.dts
1 // SPDX-License-Identifier: GPL-2.0+
2 /*
3  * (C) Copyright 2017 Rockchip Electronics Co., Ltd
4  */
5
6 /dts-v1/;
7
8 #include "rk3128.dtsi"
9
10 / {
11         model = "Rockchip RK3128 Evaluation board";
12         compatible = "rockchip,rk3128-evb", "rockchip,rk3128";
13
14         chosen {
15                 stdout-path = &uart2;
16         };
17
18         memory@60000000 {
19                 device_type = "memory";
20                 reg = <0x60000000 0x40000000>;
21         };
22
23         vcc5v0_otg: vcc5v0-otg-drv {
24                 compatible = "regulator-fixed";
25                 regulator-name = "vcc5v0_otg";
26                 gpio = <&gpio0 26 GPIO_ACTIVE_HIGH>;
27                 pinctrl-names = "default";
28                 pinctrl-0 = <&otg_vbus_drv>;
29                 regulator-min-microvolt = <5000000>;
30                 regulator-max-microvolt = <5000000>;
31         };
32
33         vcc5v0_host: vcc5v0-host-drv {
34                 compatible = "regulator-fixed";
35                 regulator-name = "vcc5v0_host";
36                 gpio = <&gpio2 23 GPIO_ACTIVE_HIGH>;
37                 pinctrl-names = "default";
38                 pinctrl-0 = <&host_vbus_drv>;
39                 regulator-min-microvolt = <5000000>;
40                 regulator-max-microvolt = <5000000>;
41                 regulator-always-on;
42         };
43 };
44
45 &emmc {
46         fifo-mode;
47         status = "okay";
48 };
49
50 &i2c1 {
51         status = "okay";
52
53         hym8563: hym8563@51 {
54                 compatible = "haoyu,hym8563";
55                 reg = <0x51>;
56                 #clock-cells = <0>;
57                 clock-frequency = <32768>;
58                 clock-output-names = "xin32k";
59         };
60 };
61
62 &u2phy {
63         status = "okay";
64 };
65
66 &u2phy_otg {
67         status = "okay";
68 };
69
70 &u2phy_host {
71         status = "okay";
72 };
73
74 &usb_host_ehci {
75         status = "okay";
76 };
77
78 &usb_host_ohci {
79         status = "okay";
80 };
81
82 &usb_otg {
83         vbus-supply = <&vcc5v0_otg>;
84         status = "okay";
85 };
86
87 &pinctrl {
88         usb_otg {
89                 otg_vbus_drv: host-vbus-drv {
90                         rockchip,pins = <0 RK_PD2 RK_FUNC_GPIO &pcfg_pull_none>;
91                 };
92         };
93
94         usb_host {
95                 host_vbus_drv: host-vbus-drv {
96                         rockchip,pins = <2 RK_PC7 RK_FUNC_GPIO &pcfg_pull_none>;
97                 };
98         };
99 };