blob: c38f42497cbd9eb8432dbcf7736fae37b273d7aa [file] [log] [blame]
Tom Rini53633a82024-02-29 12:33:36 -05001// 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 aliases {
15 gpio0 = &gpio0;
16 gpio1 = &gpio1;
17 gpio2 = &gpio2;
18 gpio3 = &gpio3;
19 i2c1 = &i2c1;
20 mmc0 = &emmc;
21 };
22
23 chosen {
24 stdout-path = &uart2;
25 };
26
27 memory@60000000 {
28 device_type = "memory";
29 reg = <0x60000000 0x40000000>;
30 };
31
32 vcc5v0_otg: vcc5v0-otg-regulator {
33 compatible = "regulator-fixed";
34 gpio = <&gpio0 26 GPIO_ACTIVE_HIGH>;
35 pinctrl-names = "default";
36 pinctrl-0 = <&otg_vbus_drv>;
37 regulator-name = "vcc5v0_otg";
38 regulator-min-microvolt = <5000000>;
39 regulator-max-microvolt = <5000000>;
40 };
41
42 vcc5v0_host: vcc5v0-host-regulator {
43 compatible = "regulator-fixed";
44 gpio = <&gpio2 23 GPIO_ACTIVE_HIGH>;
45 pinctrl-names = "default";
46 pinctrl-0 = <&host_vbus_drv>;
47 regulator-name = "vcc5v0_host";
48 regulator-always-on;
49 regulator-min-microvolt = <5000000>;
50 regulator-max-microvolt = <5000000>;
51 };
52};
53
54&emmc {
55 bus-width = <8>;
56 pinctrl-names = "default";
57 pinctrl-0 = <&emmc_clk &emmc_cmd &emmc_bus8>;
58 status = "okay";
59};
60
61&i2c1 {
62 status = "okay";
63
64 hym8563: rtc@51 {
65 compatible = "haoyu,hym8563";
66 reg = <0x51>;
67 #clock-cells = <0>;
68 clock-output-names = "xin32k";
69 };
70};
71
72&usb2phy {
73 status = "okay";
74};
75
76&usb2phy_host {
77 status = "okay";
78};
79
80&usb2phy_otg {
81 status = "okay";
82};
83
84&usb_host_ehci {
85 status = "okay";
86};
87
88&usb_host_ohci {
89 status = "okay";
90};
91
92&usb_otg {
93 vbus-supply = <&vcc5v0_otg>;
94 status = "okay";
95};
96
97&pinctrl {
98 usb-host {
99 host_vbus_drv: host-vbus-drv {
100 rockchip,pins = <2 RK_PC7 RK_FUNC_GPIO &pcfg_pull_none>;
101 };
102 };
103
104 usb-otg {
105 otg_vbus_drv: otg-vbus-drv {
106 rockchip,pins = <0 RK_PD2 RK_FUNC_GPIO &pcfg_pull_none>;
107 };
108 };
109};