xref: /freebsd/sys/contrib/device-tree/Bindings/rtc/haoyu,hym8563.txt (revision c66ec88fed842fbaad62c30d510644ceb7bd2d71)
1*c66ec88fSEmmanuel VadotHaoyu Microelectronics HYM8563 Real Time Clock
2*c66ec88fSEmmanuel Vadot
3*c66ec88fSEmmanuel VadotThe HYM8563 provides basic rtc and alarm functionality
4*c66ec88fSEmmanuel Vadotas well as a clock output of up to 32kHz.
5*c66ec88fSEmmanuel Vadot
6*c66ec88fSEmmanuel VadotRequired properties:
7*c66ec88fSEmmanuel Vadot- compatible: should be: "haoyu,hym8563"
8*c66ec88fSEmmanuel Vadot- reg: i2c address
9*c66ec88fSEmmanuel Vadot- #clock-cells: the value should be 0
10*c66ec88fSEmmanuel Vadot
11*c66ec88fSEmmanuel VadotOptional properties:
12*c66ec88fSEmmanuel Vadot- clock-output-names: From common clock binding
13*c66ec88fSEmmanuel Vadot- interrupts: rtc alarm/event interrupt
14*c66ec88fSEmmanuel Vadot
15*c66ec88fSEmmanuel VadotExample:
16*c66ec88fSEmmanuel Vadot
17*c66ec88fSEmmanuel Vadothym8563: hym8563@51 {
18*c66ec88fSEmmanuel Vadot	compatible = "haoyu,hym8563";
19*c66ec88fSEmmanuel Vadot	reg = <0x51>;
20*c66ec88fSEmmanuel Vadot
21*c66ec88fSEmmanuel Vadot	interrupts = <13 IRQ_TYPE_EDGE_FALLING>;
22*c66ec88fSEmmanuel Vadot
23*c66ec88fSEmmanuel Vadot	#clock-cells = <0>;
24*c66ec88fSEmmanuel Vadot};
25*c66ec88fSEmmanuel Vadot
26*c66ec88fSEmmanuel Vadotdevice {
27*c66ec88fSEmmanuel Vadot...
28*c66ec88fSEmmanuel Vadot	clocks = <&hym8563>;
29*c66ec88fSEmmanuel Vadot...
30*c66ec88fSEmmanuel Vadot};
31