dt-bingings: Add dt-bingings support for StarFive JH7110 RTC.
authorSaminGuo <samin.guo@starfivetech.com>
Fri, 19 Nov 2021 02:11:33 +0000 (10:11 +0800)
committerSaminGuo <samin.guo@starfivetech.com>
Fri, 19 Nov 2021 03:12:16 +0000 (11:12 +0800)
RTC fixed operating frequency is 32.768KHz, refclk for hardware
calibration

Signed-off-by: SaminGuo <samin.guo@starfivetech.com>
arch/riscv/boot/dts/starfive/starfive_jh7110.dts
arch/riscv/boot/dts/starfive/starfive_jh7110_clk.dtsi

index 21a9ce7..add76cf 100644 (file)
                        riscv,ndev = <136>;
                };
 
+               rtc: rtc@17040000 {
+                       compatible = "starfive,rtc_hms";
+                       reg = <0x0 0x17040000 0x0 0x10000>;
+                       interrupt-parent = <&plic>;
+                       interrupts = <10>, <11>, <12>;
+                       interrupt-names = "rtc_ms_pulse", "rtc_sec_pulse", "rtc";
+                       clocks = <&rtc_hmsclk>, <&oscclk>;
+                       clock-names = "pclk", "cal_clk";
+                       rtc,cal-clock-freq = <1000000>;
+                       status = "okay";
+               };
+
                uart0: serial@10000000 {
                        compatible = "snps,dw-apb-uart";
                        interrupt-parent = <&plic>;
index b0c1f4d..fe127b4 100644 (file)
                clock-frequency = <4000000>;
                clock-output-names = "rtcclk";
        };
+       rtc_hmsclk: rtc_hmsclk {
+               #clock-cells = <0>;
+               compatible = "fixed-clock";
+               clock-frequency = <32768>;
+       };
        perh_rootclk: perh_rootclk {
                #clock-cells = <0>;
                compatible = "fixed-clock";