]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
ARM: dts: r8a7742-iwg21m: Add RTC support
authorLad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
Sun, 16 Aug 2020 19:33:15 +0000 (20:33 +0100)
committerGeert Uytterhoeven <geert+renesas@glider.be>
Tue, 25 Aug 2020 09:19:03 +0000 (11:19 +0200)
Enable BQ32000 RTC which is connected to I2C0 on the iWave RainboW-G21M-q7
SOM.

Signed-off-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
Reviewed-by: Chris Paterson <Chris.Paterson2@renesas.com>
Link: https://lore.kernel.org/r/20200816193316.7641-3-prabhakar.mahadev-lad.rj@bp.renesas.com
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
arch/arm/boot/dts/r8a7742-iwg21m.dtsi

index 6e8df79bea945b447d9c1250c4dd220b10ad889e..0f26807f92b8ce0189733362794eacee176addc7 100644 (file)
        clock-frequency = <20000000>;
 };
 
+&i2c0 {
+       pinctrl-0 = <&i2c0_pins>;
+       pinctrl-names = "default";
+
+       status = "okay";
+       clock-frequency = <400000>;
+
+       rtc@68 {
+               compatible = "ti,bq32000";
+               reg = <0x68>;
+               interrupt-parent = <&gpio1>;
+               interrupts = <1 IRQ_TYPE_EDGE_FALLING>;
+       };
+};
+
 &mmcif1 {
        pinctrl-0 = <&mmc1_pins>;
        pinctrl-names = "default";
 };
 
 &pfc {
+       i2c0_pins: i2c0 {
+               groups = "i2c0";
+               function = "i2c0";
+       };
+
        mmc1_pins: mmc1 {
                groups = "mmc1_data4", "mmc1_ctrl";
                function = "mmc1";