]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
arm: dts: fsl-ls1088a: move and sync existing bindings to be under /soc
authorMathew McBride <matt@traverse.com.au>
Wed, 12 Apr 2023 07:38:27 +0000 (07:38 +0000)
committerPeng Fan <peng.fan@nxp.com>
Fri, 5 May 2023 01:46:04 +0000 (09:46 +0800)
Our [U-Boot] copy of fsl-ls1088a.dtsi had all the hardware under
the top level, until the DM_SERIAL implementation recently.

In this commit, remove any remaining devices (that were in U-Boot,
but not touched by previous patches in this series) to be under /soc,
updating to their upstream (Linux) bindings.

The bindings have been copied closest to their relative positions
in the Linux version, so the eventual result is that the U-Boot
and Linux fsl-ls1088a.dtsi will be identical.

The next commit will add the hardware bindings that were not
in U-Boot.

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 8321b73f306fa21a294c9df719a6d793c36191af..d5822520fb1925187e0befc1fba300a7ce9749d6 100644 (file)
                        status = "disabled";
                };
 
+               dspi: spi@2100000 {
+                       compatible = "fsl,ls1088a-dspi",
+                                    "fsl,ls1021a-v1.0-dspi";
+                       #address-cells = <1>;
+                       #size-cells = <0>;
+                       reg = <0x0 0x2100000 0x0 0x10000>;
+                       interrupts = <GIC_SPI 26 IRQ_TYPE_LEVEL_HIGH>;
+                       clock-names = "dspi";
+                       clocks = <&clockgen QORIQ_CLK_PLATFORM_PLL
+                                           QORIQ_CLK_PLL_DIV(2)>;
+                       spi-num-chipselects = <6>;
+                       status = "disabled";
+               };
+
                duart1: serial@21c0600 {
                        compatible = "fsl,ns16550", "ns16550a";
                        reg = <0x0 0x21c0600 0x0 0x100>;
                        #interrupt-cells = <2>;
                };
 
+               ifc: memory-controller@2240000 {
+                       compatible = "fsl,ifc";
+                       reg = <0x0 0x2240000 0x0 0x20000>;
+                       interrupts = <0 21 IRQ_TYPE_LEVEL_HIGH>;
+                       little-endian;
+                       #address-cells = <2>;
+                       #size-cells = <1>;
+                       status = "disabled";
+               };
+
                i2c0: i2c@2000000 {
                        compatible = "fsl,vf610-i2c";
                        #address-cells = <1>;
                        status = "disabled";
                };
 
+               qspi: spi@20c0000 {
+                       compatible = "fsl,ls2080a-qspi";
+                       #address-cells = <1>;
+                       #size-cells = <0>;
+                       reg = <0x0 0x20c0000 0x0 0x10000>,
+                             <0x0 0x20000000 0x0 0x10000000>;
+                       reg-names = "QuadSPI", "QuadSPI-memory";
+                       interrupts = <GIC_SPI 25 IRQ_TYPE_LEVEL_HIGH>;
+                       clock-names = "qspi_en", "qspi";
+                       clocks = <&clockgen QORIQ_CLK_PLATFORM_PLL
+                                           QORIQ_CLK_PLL_DIV(4)>,
+                                <&clockgen QORIQ_CLK_PLATFORM_PLL
+                                           QORIQ_CLK_PLL_DIV(4)>;
+                       status = "disabled";
+               };
+
+               esdhc: esdhc@2140000 {
+                       compatible = "fsl,ls1088a-esdhc", "fsl,esdhc";
+                       reg = <0x0 0x2140000 0x0 0x10000>;
+                       interrupts = <0 28 0x4>; /* Level high type */
+                       clock-frequency = <0>;
+                       clocks = <&clockgen QORIQ_CLK_HWACCEL 1>;
+                       voltage-ranges = <1800 1800 3300 3300>;
+                       sdhci,auto-cmd12;
+                       little-endian;
+                       bus-width = <4>;
+                       status = "disabled";
+               };
+
                usb0: usb@3100000 {
                        compatible = "snps,dwc3";
                        reg = <0x0 0x3100000 0x0 0x10000>;
                        status = "disabled";
                };
 
+               sata: sata@3200000 {
+                       compatible = "fsl,ls1088a-ahci";
+                       reg = <0x0 0x3200000 0x0 0x10000>,
+                               <0x7 0x100520 0x0 0x4>;
+                       reg-names = "ahci", "sata-ecc";
+                       interrupts = <0 133 IRQ_TYPE_LEVEL_HIGH>;
+                       clocks = <&clockgen QORIQ_CLK_PLATFORM_PLL
+                                           QORIQ_CLK_PLL_DIV(4)>;
+                       dma-coherent;
+                       status = "disabled";
+               };
+
+               crypto: crypto@8000000 {
+                       compatible = "fsl,sec-v5.0", "fsl,sec-v4.0";
+                       fsl,sec-era = <8>;
+                       #address-cells = <1>;
+                       #size-cells = <1>;
+                       ranges = <0x0 0x00 0x8000000 0x100000>;
+                       reg = <0x00 0x8000000 0x0 0x100000>;
+                       interrupts = <GIC_SPI 139 IRQ_TYPE_LEVEL_HIGH>;
+                       dma-coherent;
+
+                       sec_jr0: jr@10000 {
+                               compatible = "fsl,sec-v5.0-job-ring",
+                                            "fsl,sec-v4.0-job-ring";
+                               reg = <0x10000 0x10000>;
+                               interrupts = <GIC_SPI 140 IRQ_TYPE_LEVEL_HIGH>;
+                       };
+
+                       sec_jr1: jr@20000 {
+                               compatible = "fsl,sec-v5.0-job-ring",
+                                            "fsl,sec-v4.0-job-ring";
+                               reg = <0x20000 0x10000>;
+                               interrupts = <GIC_SPI 141 IRQ_TYPE_LEVEL_HIGH>;
+                       };
+
+                       sec_jr2: jr@30000 {
+                               compatible = "fsl,sec-v5.0-job-ring",
+                                            "fsl,sec-v4.0-job-ring";
+                               reg = <0x30000 0x10000>;
+                               interrupts = <GIC_SPI 142 IRQ_TYPE_LEVEL_HIGH>;
+                       };
+
+                       sec_jr3: jr@40000 {
+                               compatible = "fsl,sec-v5.0-job-ring",
+                                            "fsl,sec-v4.0-job-ring";
+                               reg = <0x40000 0x10000>;
+                               interrupts = <GIC_SPI 143 IRQ_TYPE_LEVEL_HIGH>;
+                       };
+               };
+
                pcie1: pcie@3400000 {
                        compatible = "fsl,ls1088a-pcie";
                        reg = <0x00 0x03400000 0x0 0x00100000>, /* controller registers */
                };
        };
 
-       dspi: dspi@2100000 {
-               compatible = "fsl,vf610-dspi";
-               #address-cells = <1>;
-               #size-cells = <0>;
-               reg = <0x0 0x2100000 0x0 0x10000>;
-               interrupts = <0 26 0x4>; /* Level high type */
-               spi-num-chipselects = <6>;
-       };
-
-       qspi: quadspi@1550000 {
-               compatible = "fsl,ls1088a-qspi";
-               #address-cells = <1>;
-               #size-cells = <0>;
-               reg = <0x0 0x20c0000 0x0 0x10000>,
-                       <0x0 0x20000000 0x0 0x10000000>;
-               reg-names = "QuadSPI", "QuadSPI-memory";
-               status = "disabled";
-       };
-
-       esdhc: esdhc@2140000 {
-               compatible = "fsl,esdhc";
-               reg = <0x0 0x2140000 0x0 0x10000>;
-               interrupts = <0 28 0x4>; /* Level high type */
-               little-endian;
-               bus-width = <4>;
-       };
-
-       ifc: ifc@1530000 {
-               compatible = "fsl,ifc", "simple-bus";
-               reg = <0x0 0x2240000 0x0 0x20000>;
-               interrupts = <0 21 0x4>; /* Level high type */
-       };
-
-       crypto: crypto@8000000 {
-               compatible = "fsl,sec-v5.0", "fsl,sec-v4.0";
-               fsl,sec-era = <8>;
-               #address-cells = <1>;
-               #size-cells = <1>;
-               ranges = <0x0 0x00 0x8000000 0x100000>;
-               reg = <0x00 0x8000000 0x0 0x100000>;
-               interrupts = <GIC_SPI 139 IRQ_TYPE_LEVEL_HIGH>;
-               dma-coherent;
-
-               sec_jr0: jr@10000 {
-                       compatible = "fsl,sec-v5.0-job-ring",
-                                    "fsl,sec-v4.0-job-ring";
-                       reg        = <0x10000 0x10000>;
-                       interrupts = <GIC_SPI 140 IRQ_TYPE_LEVEL_HIGH>;
-               };
-
-               sec_jr1: jr@20000 {
-                       compatible = "fsl,sec-v5.0-job-ring",
-                                    "fsl,sec-v4.0-job-ring";
-                       reg        = <0x20000 0x10000>;
-                       interrupts = <GIC_SPI 141 IRQ_TYPE_LEVEL_HIGH>;
-               };
-
-               sec_jr2: jr@30000 {
-                       compatible = "fsl,sec-v5.0-job-ring",
-                                    "fsl,sec-v4.0-job-ring";
-                       reg        = <0x30000 0x10000>;
-                       interrupts = <GIC_SPI 142 IRQ_TYPE_LEVEL_HIGH>;
-               };
-
-               sec_jr3: jr@40000 {
-                       compatible = "fsl,sec-v5.0-job-ring",
-                                    "fsl,sec-v4.0-job-ring";
-                       reg        = <0x40000 0x10000>;
-                       interrupts = <GIC_SPI 143 IRQ_TYPE_LEVEL_HIGH>;
-               };
-       };
-
-       sata: sata@3200000 {
-               compatible = "fsl,ls1088a-ahci";
-               reg = <0x0 0x3200000 0x0 0x10000 /* ccsr sata base */
-                      0x7 0x100520  0x0 0x4>;   /* ecc sata addr*/
-               reg-names = "ahci", "sata-ecc";
-               interrupts = <0 133 4>;
-               status = "disabled";
-       };
-
        psci {
                compatible = "arm,psci-0.2";
                method = "smc";