blob: 3493150df9271d0f0ce3979c0b9940bb9651c0e9 [file] [log] [blame]
Tom Rini83d290c2018-05-06 17:58:06 -04001// SPDX-License-Identifier: GPL-2.0+
huang lind8b59782015-11-17 14:20:28 +08002/*
3 * (C) Copyright 2015 Rockchip Electronics Co., Ltd
huang lind8b59782015-11-17 14:20:28 +08004 */
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 Yangae804cf2016-11-08 18:13:41 +080018 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 lind8b59782015-11-17 14:20:28 +080037 };
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 Yangb0c5e042017-03-06 20:36:37 +080053 vbus-supply = <&vcc5v0_host>;
huang lind8b59782015-11-17 14:20:28 +080054 status = "okay";
55};
56
57&usb_otg {
Kever Yangb0c5e042017-03-06 20:36:37 +080058 vbus-supply = <&vcc5v0_otg>;
huang lind8b59782015-11-17 14:20:28 +080059 status = "okay";
huang lind8b59782015-11-17 14:20:28 +080060};
Kever Yangae804cf2016-11-08 18:13:41 +080061
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};