]> www.infradead.org Git - linux.git/commitdiff
ARM: dts: rockchip: Add i2c3 node for RV1126
authorKarthikeyan Krishnasamy <karthikeyan@linumiz.com>
Tue, 3 Sep 2024 10:52:38 +0000 (16:22 +0530)
committerHeiko Stuebner <heiko@sntech.de>
Wed, 4 Sep 2024 09:20:00 +0000 (11:20 +0200)
Add i2c3 node and possible pinctrl for Rockchip RV1126

Signed-off-by: Karthikeyan Krishnasamy <karthikeyan@linumiz.com>
Link: https://lore.kernel.org/r/20240903105245.715899-2-karthikeyan@linumiz.com
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
arch/arm/boot/dts/rockchip/rv1126-pinctrl.dtsi
arch/arm/boot/dts/rockchip/rv1126.dtsi

index 06b1d7f2d8585a5a99d4a4fd65f4f3741d9fe6e1..be666b25b830297c2e0eeae4f2f6131562c8c9eb 100644 (file)
                                <0 RK_PC3 1 &pcfg_pull_none_drv_level_0_smt>;
                };
        };
+       i2c3 {
+               /omit-if-no-ref/
+               i2c3m0_xfer: i2c3m0-xfer {
+                       rockchip,pins =
+                               /* i2c3_scl_m0 */
+                               <3 RK_PA4 5 &pcfg_pull_none>,
+                               /* i2c3_sda_m0 */
+                               <3 RK_PA5 5 &pcfg_pull_none>;
+               };
+               /omit-if-no-ref/
+               i2c3m1_xfer: i2c3m1-xfer {
+                       rockchip,pins =
+                               /* i2c3_scl_m1 */
+                               <2 RK_PD4 7 &pcfg_pull_none>,
+                               /* i2c3_sda_m1 */
+                               <2 RK_PD5 7 &pcfg_pull_none>;
+               };
+               /omit-if-no-ref/
+               i2c3m2_xfer: i2c3m2-xfer {
+                       rockchip,pins =
+                               /* i2c3_scl_m2 */
+                               <1 RK_PD6 3 &pcfg_pull_none>,
+                               /* i2c3_sda_m2 */
+                               <1 RK_PD7 3 &pcfg_pull_none>;
+               };
+       };
        pwm2 {
                /omit-if-no-ref/
                pwm2m0_pins: pwm2m0-pins {
index bb603cae13dfc7694bacc3cbbe24540cace1d9a4..cf7575e76a691c3b8fbcdfc0488d96b4b63c205b 100644 (file)
@@ -22,6 +22,7 @@
        aliases {
                i2c0 = &i2c0;
                i2c2 = &i2c2;
+               i2c3 = &i2c3;
                serial0 = &uart0;
                serial1 = &uart1;
                serial2 = &uart2;
                clock-names = "apb_pclk";
        };
 
+       i2c3: i2c@ff520000 {
+               compatible = "rockchip,rv1126-i2c", "rockchip,rk3399-i2c";
+               reg = <0xff520000 0x1000>;
+               interrupts = <GIC_SPI 7 IRQ_TYPE_LEVEL_HIGH>;
+               clocks = <&cru CLK_I2C3>, <&cru PCLK_I2C3>;
+               clock-names = "i2c", "pclk";
+               pinctrl-names = "default";
+               pinctrl-0 = <&i2c3m0_xfer>;
+               rockchip,grf = <&pmugrf>;
+               #address-cells = <1>;
+               #size-cells = <0>;
+               status = "disabled";
+       };
+
        pwm11: pwm@ff550030 {
                compatible = "rockchip,rv1126-pwm", "rockchip,rk3328-pwm";
                reg = <0xff550030 0x10>;