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