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