xref: /rk3399_rockchip-uboot/arch/arm/dts/rk3036-sdk.dts (revision 6aa65bb1ee0951865e27da81dde1de76c6d4687e)
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		u-boot,spl-boot-order = &sdmmc, &emmc;
17		stdout-path = &uart2;
18	};
19
20	vcc5v0_otg: vcc5v0-otg-drv {
21		compatible = "regulator-fixed";
22		regulator-name = "vcc5v0_otg";
23		gpio = <&gpio0 26 GPIO_ACTIVE_HIGH>;
24		pinctrl-names = "default";
25		pinctrl-0 = <&otg_vbus_drv>;
26		regulator-min-microvolt = <5000000>;
27		regulator-max-microvolt = <5000000>;
28	};
29
30	vcc5v0_host: vcc5v0-host-drv {
31		compatible = "regulator-fixed";
32		regulator-name = "vcc5v0_host";
33		gpio = <&gpio2 23 GPIO_ACTIVE_HIGH>;
34		pinctrl-names = "default";
35		pinctrl-0 = <&host_vbus_drv>;
36		regulator-min-microvolt = <5000000>;
37		regulator-max-microvolt = <5000000>;
38		regulator-always-on;
39	};
40};
41
42&i2c1 {
43	status = "okay";
44
45        hym8563: hym8563@51 {
46		compatible = "haoyu,hym8563";
47		reg = <0x51>;
48		#clock-cells = <0>;
49		clock-frequency = <32768>;
50		clock-output-names = "xin32k";
51	};
52};
53
54&usb_host {
55	vbus-supply = <&vcc5v0_host>;
56	status = "okay";
57};
58
59&usb_otg {
60	vbus-supply = <&vcc5v0_otg>;
61	status = "okay";
62};
63
64&pinctrl {
65	usb_otg {
66		otg_vbus_drv: host-vbus-drv {
67			rockchip,pins = <0 26 RK_FUNC_GPIO &pcfg_pull_none>;
68		};
69	};
70
71	usb_host {
72		host_vbus_drv: host-vbus-drv {
73			rockchip,pins = <2 23 RK_FUNC_GPIO &pcfg_pull_none>;
74		};
75	};
76};
77