1// SPDX-License-Identifier: GPL-2.0+
2/*
3 * (C) Copyright 2015 Rockchip Electronics Co., Ltd
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
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;
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 {
53	vbus-supply = <&vcc5v0_host>;
54	status = "okay";
55};
56
57&usb_otg {
58	vbus-supply = <&vcc5v0_otg>;
59	status = "okay";
60};
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};
75