Tom Rini | 10e4779 | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0+ |
Kever Yang | e43e739 | 2017-11-28 16:04:15 +0800 | [diff] [blame] | 2 | /* |
| 3 | * (C) Copyright 2017 Rockchip Electronics Co., Ltd |
Kever Yang | e43e739 | 2017-11-28 16:04:15 +0800 | [diff] [blame] | 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 | |
Johan Jonker | 1f28823 | 2022-09-09 22:19:24 +0200 | [diff] [blame] | 18 | memory@60000000 { |
| 19 | device_type = "memory"; |
| 20 | reg = <0x60000000 0x40000000>; |
| 21 | }; |
| 22 | |
Kever Yang | e43e739 | 2017-11-28 16:04:15 +0800 | [diff] [blame] | 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 | |
Johan Jonker | 57591e2 | 2022-09-09 22:19:06 +0200 | [diff] [blame] | 45 | &emmc { |
| 46 | fifo-mode; |
| 47 | status = "okay"; |
| 48 | }; |
| 49 | |
Kever Yang | e43e739 | 2017-11-28 16:04:15 +0800 | [diff] [blame] | 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 | |
Kever Yang | e43e739 | 2017-11-28 16:04:15 +0800 | [diff] [blame] | 87 | &pinctrl { |
| 88 | usb_otg { |
| 89 | otg_vbus_drv: host-vbus-drv { |
Johan Jonker | b89d6a0 | 2022-09-09 22:18:55 +0200 | [diff] [blame] | 90 | rockchip,pins = <0 RK_PD2 RK_FUNC_GPIO &pcfg_pull_none>; |
Kever Yang | e43e739 | 2017-11-28 16:04:15 +0800 | [diff] [blame] | 91 | }; |
| 92 | }; |
| 93 | |
| 94 | usb_host { |
| 95 | host_vbus_drv: host-vbus-drv { |
Johan Jonker | b89d6a0 | 2022-09-09 22:18:55 +0200 | [diff] [blame] | 96 | rockchip,pins = <2 RK_PC7 RK_FUNC_GPIO &pcfg_pull_none>; |
Kever Yang | e43e739 | 2017-11-28 16:04:15 +0800 | [diff] [blame] | 97 | }; |
| 98 | }; |
| 99 | }; |