hc
2024-03-22 a0752693d998599af469473b8dc239ef973a012f
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
/dts-v1/;
/plugin/;
 
#include <dt-bindings/interrupt-controller/irq.h>
#include <dt-bindings/pinctrl/rockchip.h>
 
/ {
   metadata {
       title ="Enable RTC Hym8563 on I2C-5 bus on ROCK 5A";
       compatible = "radxa,rock-5a", "rockchip,rk3588";
       category = "misc";
       description = "Enable RTC Hym8563 on I2C-5 bus on ROCK 5A";
   };
 
   fragment@0 {
       target = <&i2c5>;
 
       __overlay__ {
           status = "okay";
           pinctrl-names = "default";
           pinctrl-0 = <&i2c5m2_xfer>;
           #address-cells = <1>;
           #size-cells = <0>;
 
           hym8563: hym8563@51 {
               compatible = "haoyu,hym8563";
               reg = <0x51>;
               #clock-cells = <0>;
               clock-frequency = <32768>;
               clock-output-names = "hym8563";
               pinctrl-names = "default";
               pinctrl-0 = <&rtc_int>;
       
               interrupt-parent = <&gpio0>;
               interrupts = <RK_PB0 IRQ_TYPE_LEVEL_LOW>;
           };
       };
   };
 
   fragment@1 {
       target = <&pinctrl>;
 
       __overlay__ {
           hym8563 {
               rtc_int: rtc-int {
                   rockchip,pins = <0 RK_PB0 RK_FUNC_GPIO &pcfg_pull_up>;
               };
           };
       };
   };
};