]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
arm: dts: fsl-ls1088a: move I2C nodes under "soc" and syncronize with Linux
authorMathew McBride <matt@traverse.com.au>
Wed, 12 Apr 2023 07:38:23 +0000 (07:38 +0000)
committerPeng Fan <peng.fan@nxp.com>
Fri, 5 May 2023 01:46:03 +0000 (09:46 +0800)
U-Boot's definition for the I2C controllers did not contain any
clock information. This resulted in the I2C not functioning when
the U-Boot control FDT was passed to Linux.

Signed-off-by: Mathew McBride <matt@traverse.com.au>
Reviewed-by: Peng Fan <peng.fan@nxp.com>
Signed-off-by: Peng Fan <peng.fan@nxp.com>
Reviewed-by: Ioana Ciornei <ioana.ciornei@nxp.com>
Tested-by: Ioana Ciornei <ioana.ciornei@nxp.com> # on LS1088A-RDB
arch/arm/dts/fsl-ls1088a.dtsi

index 06237a58f45d3c28a233b350cb13a0325deee945..bd344ba8e269c0da94fa7e4161325b8ed43fa7be 100644 (file)
                        #interrupt-cells = <2>;
                };
 
+               i2c0: i2c@2000000 {
+                       compatible = "fsl,vf610-i2c";
+                       #address-cells = <1>;
+                       #size-cells = <0>;
+                       reg = <0x0 0x2000000 0x0 0x10000>;
+                       interrupts = <0 34 IRQ_TYPE_LEVEL_HIGH>;
+                       clocks = <&clockgen QORIQ_CLK_PLATFORM_PLL
+                                           QORIQ_CLK_PLL_DIV(8)>;
+                       status = "disabled";
+               };
+
+               i2c1: i2c@2010000 {
+                       compatible = "fsl,vf610-i2c";
+                       #address-cells = <1>;
+                       #size-cells = <0>;
+                       reg = <0x0 0x2010000 0x0 0x10000>;
+                       interrupts = <0 34 IRQ_TYPE_LEVEL_HIGH>;
+                       clocks = <&clockgen QORIQ_CLK_PLATFORM_PLL
+                                           QORIQ_CLK_PLL_DIV(8)>;
+                       status = "disabled";
+               };
+
+               i2c2: i2c@2020000 {
+                       compatible = "fsl,vf610-i2c";
+                       #address-cells = <1>;
+                       #size-cells = <0>;
+                       reg = <0x0 0x2020000 0x0 0x10000>;
+                       interrupts = <0 35 IRQ_TYPE_LEVEL_HIGH>;
+                       clocks = <&clockgen QORIQ_CLK_PLATFORM_PLL
+                                           QORIQ_CLK_PLL_DIV(8)>;
+                       status = "disabled";
+               };
+
+               i2c3: i2c@2030000 {
+                       compatible = "fsl,vf610-i2c";
+                       #address-cells = <1>;
+                       #size-cells = <0>;
+                       reg = <0x0 0x2030000 0x0 0x10000>;
+                       interrupts = <0 35 IRQ_TYPE_LEVEL_HIGH>;
+                       clocks = <&clockgen QORIQ_CLK_PLATFORM_PLL
+                                           QORIQ_CLK_PLL_DIV(8)>;
+                       status = "disabled";
+               };
+
                pcie1: pcie@3400000 {
                        compatible = "fsl,ls1088a-pcie";
                        reg = <0x00 0x03400000 0x0 0x00100000>, /* controller registers */
                };
        };
 
-       i2c0: i2c@2000000 {
-               compatible = "fsl,vf610-i2c";
-               #address-cells = <1>;
-               #size-cells = <0>;
-               reg = <0x0 0x2000000 0x0 0x10000>;
-               interrupts = <0 34 4>;
-       };
-
-       i2c1: i2c@2010000 {
-               compatible = "fsl,vf610-i2c";
-               #address-cells = <1>;
-               #size-cells = <0>;
-               reg = <0x0 0x2010000 0x0 0x10000>;
-               interrupts = <0 34 4>;
-       };
-
-       i2c2: i2c@2020000 {
-               compatible = "fsl,vf610-i2c";
-               #address-cells = <1>;
-               #size-cells = <0>;
-               reg = <0x0 0x2020000 0x0 0x10000>;
-               interrupts = <0 35 4>;
-       };
-
-       i2c3: i2c@2030000 {
-               compatible = "fsl,vf610-i2c";
-               #address-cells = <1>;
-               #size-cells = <0>;
-               reg = <0x0 0x2030000 0x0 0x10000>;
-               interrupts = <0 35 4>;
-       };
-
        dspi: dspi@2100000 {
                compatible = "fsl,vf610-dspi";
                #address-cells = <1>;