ARM: dts: rockchip: Add i2c2 node to rv1126
authorTim Lunn <tim@feathertop.org>
Sun, 3 Dec 2023 12:40:00 +0000 (23:40 +1100)
committerHeiko Stuebner <heiko@sntech.de>
Tue, 5 Dec 2023 08:20:44 +0000 (09:20 +0100)
Add i2c2 node and i2c2_xfer pinctrl for Rockchip RV1126

Signed-off-by: Tim Lunn <tim@feathertop.org>
Link: https://lore.kernel.org/r/20231203124004.2676174-5-tim@feathertop.org
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
arch/arm/boot/dts/rockchip/rv1126-pinctrl.dtsi
arch/arm/boot/dts/rockchip/rv1126.dtsi

index 4f85b7b3fc4cc1e1e72cc876e8aef2f28b2b5b06..167a48afa3a48d2912bfa2325de8aa3992c7db2e 100644 (file)
                                <0 RK_PB5 1 &pcfg_pull_none_drv_level_0_smt>;
                };
        };
+       i2c2 {
+               /omit-if-no-ref/
+               i2c2_xfer: i2c2-xfer {
+                       rockchip,pins =
+                               /* i2c2_scl */
+                               <0 RK_PC2 1 &pcfg_pull_none_drv_level_0_smt>,
+                               /* i2c2_sda */
+                               <0 RK_PC3 1 &pcfg_pull_none_drv_level_0_smt>;
+               };
+       };
        pwm2 {
                /omit-if-no-ref/
                pwm2m0_pins: pwm2m0-pins {
index adb11a43c5dbbf3b3f2ae788427015bea63afc1f..bb603cae13dfc7694bacc3cbbe24540cace1d9a4 100644 (file)
@@ -21,6 +21,7 @@
 
        aliases {
                i2c0 = &i2c0;
+               i2c2 = &i2c2;
                serial0 = &uart0;
                serial1 = &uart1;
                serial2 = &uart2;
                status = "disabled";
        };
 
+       i2c2: i2c@ff400000 {
+               compatible = "rockchip,rv1126-i2c", "rockchip,rk3399-i2c";
+               reg = <0xff400000 0x1000>;
+               interrupts = <GIC_SPI 6 IRQ_TYPE_LEVEL_HIGH>;
+               rockchip,grf = <&pmugrf>;
+               clocks = <&pmucru CLK_I2C2>, <&pmucru PCLK_I2C2>;
+               clock-names = "i2c", "pclk";
+               pinctrl-names = "default";
+               pinctrl-0 = <&i2c2_xfer>;
+               #address-cells = <1>;
+               #size-cells = <0>;
+               status = "disabled";
+       };
+
        uart1: serial@ff410000 {
                compatible = "rockchip,rv1126-uart", "snps,dw-apb-uart";
                reg = <0xff410000 0x100>;