xref: /OK3568_Linux_fs/u-boot/arch/arm/dts/rk3036-sdk.dts (revision 4882a59341e53eb6f0b4789bf948001014eff981)
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#include <dt-bindings/input/input.h>
11
12/ {
13	model = "SDK-RK3036";
14	compatible = "sdk,sdk-rk3036", "rockchip,rk3036";
15
16	chosen {
17		u-boot,spl-boot-order = &sdmmc, &emmc;
18		stdout-path = &uart2;
19	};
20
21	vcc5v0_otg: vcc5v0-otg-drv {
22		compatible = "regulator-fixed";
23		regulator-name = "vcc5v0_otg";
24		gpio = <&gpio0 26 GPIO_ACTIVE_HIGH>;
25		pinctrl-names = "default";
26		pinctrl-0 = <&otg_vbus_drv>;
27		regulator-min-microvolt = <5000000>;
28		regulator-max-microvolt = <5000000>;
29	};
30
31	vcc5v0_host: vcc5v0-host-drv {
32		compatible = "regulator-fixed";
33		regulator-name = "vcc5v0_host";
34		gpio = <&gpio2 23 GPIO_ACTIVE_HIGH>;
35		pinctrl-names = "default";
36		pinctrl-0 = <&host_vbus_drv>;
37		regulator-min-microvolt = <5000000>;
38		regulator-max-microvolt = <5000000>;
39		regulator-always-on;
40	};
41
42	gpio-keys {
43		u-boot,dm-pre-reloc;
44		compatible = "gpio-keys";
45		status = "okay";
46
47		volume-up {
48			u-boot,dm-pre-reloc;
49			linux,code = <KEY_VOLUMEUP>;
50			label = "Volume Up";
51			gpios = <&gpio2 23 GPIO_ACTIVE_LOW>;
52		};
53	};
54};
55
56&i2c1 {
57	status = "okay";
58
59        hym8563: hym8563@51 {
60		compatible = "haoyu,hym8563";
61		reg = <0x51>;
62		#clock-cells = <0>;
63		clock-frequency = <32768>;
64		clock-output-names = "xin32k";
65	};
66};
67
68&usb_host {
69	vbus-supply = <&vcc5v0_host>;
70	status = "okay";
71};
72
73&usb_otg {
74	vbus-supply = <&vcc5v0_otg>;
75	status = "okay";
76};
77
78&pinctrl {
79	usb_otg {
80		otg_vbus_drv: host-vbus-drv {
81			rockchip,pins = <0 26 RK_FUNC_GPIO &pcfg_pull_none>;
82		};
83	};
84
85	usb_host {
86		host_vbus_drv: host-vbus-drv {
87			rockchip,pins = <2 23 RK_FUNC_GPIO &pcfg_pull_none>;
88		};
89	};
90};
91