huang lin | 2de748f | 2015-11-17 14:20:28 +0800 | [diff] [blame] | 1 | /* |
| 2 | * (C) Copyright 2015 Rockchip Electronics Co., Ltd |
| 3 | * |
| 4 | * SPDX-License-Identifier: GPL-2.0+ |
| 5 | */ |
| 6 | |
| 7 | /dts-v1/; |
| 8 | |
| 9 | #include "rk3036.dtsi" |
| 10 | |
| 11 | / { |
| 12 | model = "SDK-RK3036"; |
| 13 | compatible = "sdk,sdk-rk3036", "rockchip,rk3036"; |
| 14 | |
| 15 | chosen { |
| 16 | stdout-path = &uart2; |
| 17 | }; |
| 18 | |
Kever Yang | 5dab575 | 2016-11-08 18:13:41 +0800 | [diff] [blame] | 19 | vcc5v0_otg: vcc5v0-otg-drv { |
| 20 | compatible = "regulator-fixed"; |
| 21 | regulator-name = "vcc5v0_otg"; |
| 22 | gpio = <&gpio0 26 GPIO_ACTIVE_HIGH>; |
| 23 | pinctrl-names = "default"; |
| 24 | pinctrl-0 = <&otg_vbus_drv>; |
| 25 | regulator-min-microvolt = <5000000>; |
| 26 | regulator-max-microvolt = <5000000>; |
| 27 | }; |
| 28 | |
| 29 | vcc5v0_host: vcc5v0-host-drv { |
| 30 | compatible = "regulator-fixed"; |
| 31 | regulator-name = "vcc5v0_host"; |
| 32 | gpio = <&gpio2 23 GPIO_ACTIVE_HIGH>; |
| 33 | pinctrl-names = "default"; |
| 34 | pinctrl-0 = <&host_vbus_drv>; |
| 35 | regulator-min-microvolt = <5000000>; |
| 36 | regulator-max-microvolt = <5000000>; |
| 37 | regulator-always-on; |
huang lin | 2de748f | 2015-11-17 14:20:28 +0800 | [diff] [blame] | 38 | }; |
| 39 | }; |
| 40 | |
| 41 | &i2c1 { |
| 42 | status = "okay"; |
| 43 | |
| 44 | hym8563: hym8563@51 { |
| 45 | compatible = "haoyu,hym8563"; |
| 46 | reg = <0x51>; |
| 47 | #clock-cells = <0>; |
| 48 | clock-frequency = <32768>; |
| 49 | clock-output-names = "xin32k"; |
| 50 | }; |
| 51 | }; |
| 52 | |
| 53 | &usb_host { |
Kever Yang | e6d3b7c | 2017-03-06 20:36:37 +0800 | [diff] [blame] | 54 | vbus-supply = <&vcc5v0_host>; |
huang lin | 2de748f | 2015-11-17 14:20:28 +0800 | [diff] [blame] | 55 | status = "okay"; |
| 56 | }; |
| 57 | |
| 58 | &usb_otg { |
Kever Yang | e6d3b7c | 2017-03-06 20:36:37 +0800 | [diff] [blame] | 59 | vbus-supply = <&vcc5v0_otg>; |
huang lin | 2de748f | 2015-11-17 14:20:28 +0800 | [diff] [blame] | 60 | status = "okay"; |
huang lin | 2de748f | 2015-11-17 14:20:28 +0800 | [diff] [blame] | 61 | }; |
Kever Yang | 5dab575 | 2016-11-08 18:13:41 +0800 | [diff] [blame] | 62 | |
| 63 | &pinctrl { |
| 64 | usb_otg { |
| 65 | otg_vbus_drv: host-vbus-drv { |
| 66 | rockchip,pins = <0 26 RK_FUNC_GPIO &pcfg_pull_none>; |
| 67 | }; |
| 68 | }; |
| 69 | |
| 70 | usb_host { |
| 71 | host_vbus_drv: host-vbus-drv { |
| 72 | rockchip,pins = <2 23 RK_FUNC_GPIO &pcfg_pull_none>; |
| 73 | }; |
| 74 | }; |
| 75 | }; |