]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
arm64: dts: ls1012a: add gpio for i2c bus recovery
authorLi Yang <leoyang.li@nxp.com>
Fri, 19 Jan 2024 20:10:34 +0000 (15:10 -0500)
committerShawn Guo <shawnguo@kernel.org>
Tue, 6 Feb 2024 06:16:07 +0000 (14:16 +0800)
Add compatible string fsl,ls1012a-i2c and scl-gpios to support i2c bus
recovery when I2C bus lock by i2c devices.

[Leo: updated scl-gpios to match RM ]
Signed-off-by: Li Yang <leoyang.li@nxp.com>
Signed-off-by: Frank Li <Frank.Li@nxp.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
arch/arm64/boot/dts/freescale/fsl-ls1012a.dtsi

index 5a6d4848fe485f6d8c9e9b35aecab6a2ac9f9980..116fa68e13ac40c7dc2e6fde2860c1166e12f239 100644 (file)
                };
 
                i2c0: i2c@2180000 {
-                       compatible = "fsl,vf610-i2c";
+                       compatible = "fsl,ls1012a-i2c", "fsl,vf610-i2c";
                        #address-cells = <1>;
                        #size-cells = <0>;
                        reg = <0x0 0x2180000 0x0 0x10000>;
                        interrupts = <0 56 IRQ_TYPE_LEVEL_HIGH>;
                        clocks = <&clockgen QORIQ_CLK_PLATFORM_PLL
                                            QORIQ_CLK_PLL_DIV(4)>;
+                       scl-gpios = <&gpio0 2 0>;
                        status = "disabled";
                };
 
                i2c1: i2c@2190000 {
-                       compatible = "fsl,vf610-i2c";
+                       compatible = "fsl,ls1012a-i2c", "fsl,vf610-i2c";
                        #address-cells = <1>;
                        #size-cells = <0>;
                        reg = <0x0 0x2190000 0x0 0x10000>;
                        interrupts = <0 57 IRQ_TYPE_LEVEL_HIGH>;
                        clocks = <&clockgen QORIQ_CLK_PLATFORM_PLL
                                            QORIQ_CLK_PLL_DIV(4)>;
+                       scl-gpios = <&gpio0 13 0>;
                        status = "disabled";
                };