ARM: tegra: Use proper tuple notation
authorThierry Reding <treding@nvidia.com>
Thu, 11 Jun 2020 17:41:30 +0000 (19:41 +0200)
committerThierry Reding <treding@nvidia.com>
Thu, 25 Jun 2020 07:29:43 +0000 (09:29 +0200)
Tuple boundaries should be marked by < and > to make it clear which
cells are part of the same tuple. This also helps the json-schema based
validation tooling to properly parse this data.

While at it, also remove the "immovable" bit from PCI addresses. All of
these addresses are in fact "movable".

Cc: Marcel Ziswiler <marcel.ziswiler@toradex.com>
Cc: Philippe Schenker <philippe.schenker@toradex.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
arch/arm/boot/dts/tegra114.dtsi
arch/arm/boot/dts/tegra124.dtsi
arch/arm/boot/dts/tegra20.dtsi
arch/arm/boot/dts/tegra30-apalis-v1.1-eval.dts
arch/arm/boot/dts/tegra30.dtsi

index 708ad36..fb99b3e 100644 (file)
 
        apbmisc@70000800 {
                compatible = "nvidia,tegra114-apbmisc", "nvidia,tegra20-apbmisc";
-               reg = <0x70000800 0x64   /* Chip revision */
-                      0x70000008 0x04>; /* Strapping options */
+               reg = <0x70000800 0x64>, /* Chip revision */
+                     <0x70000008 0x04>; /* Strapping options */
        };
 
        pinmux: pinmux@70000868 {
                compatible = "nvidia,tegra114-pinmux";
-               reg = <0x70000868 0x148         /* Pad control registers */
-                      0x70003000 0x40c>;       /* Mux registers */
+               reg = <0x70000868 0x148>, /* Pad control registers */
+                     <0x70003000 0x40c>; /* Mux registers */
        };
 
        /*
 
        phy1: usb-phy@7d000000 {
                compatible = "nvidia,tegra114-usb-phy", "nvidia,tegra30-usb-phy";
-               reg = <0x7d000000 0x4000 0x7d000000 0x4000>;
+               reg = <0x7d000000 0x4000>,
+                     <0x7d000000 0x4000>;
                phy_type = "utmi";
                clocks = <&tegra_car TEGRA114_CLK_USBD>,
                         <&tegra_car TEGRA114_CLK_PLL_U>,
 
        phy3: usb-phy@7d008000 {
                compatible = "nvidia,tegra114-usb-phy", "nvidia,tegra30-usb-phy";
-               reg = <0x7d008000 0x4000 0x7d000000 0x4000>;
+               reg = <0x7d008000 0x4000>,
+                     <0x7d000000 0x4000>;
                phy_type = "utmi";
                clocks = <&tegra_car TEGRA114_CLK_USB3>,
                         <&tegra_car TEGRA114_CLK_PLL_U>,
index f00e962..9e8d125 100644 (file)
@@ -22,9 +22,9 @@
        pcie@1003000 {
                compatible = "nvidia,tegra124-pcie";
                device_type = "pci";
-               reg = <0x0 0x01003000 0x0 0x00000800   /* PADS registers */
-                      0x0 0x01003800 0x0 0x00000800   /* AFI registers */
-                      0x0 0x02000000 0x0 0x10000000>; /* configuration space */
+               reg = <0x0 0x01003000 0x0 0x00000800>, /* PADS registers */
+                     <0x0 0x01003800 0x0 0x00000800>, /* AFI registers */
+                     <0x0 0x02000000 0x0 0x10000000>; /* configuration space */
                reg-names = "pads", "afi", "cs";
                interrupts = <GIC_SPI 98 IRQ_TYPE_LEVEL_HIGH>, /* controller interrupt */
                             <GIC_SPI 99 IRQ_TYPE_LEVEL_HIGH>; /* MSI interrupt */
                #address-cells = <3>;
                #size-cells = <2>;
 
-               ranges = <0x82000000 0 0x01000000 0x0 0x01000000 0 0x00001000   /* port 0 configuration space */
-                         0x82000000 0 0x01001000 0x0 0x01001000 0 0x00001000   /* port 1 configuration space */
-                         0x81000000 0 0x0        0x0 0x12000000 0 0x00010000   /* downstream I/O (64 KiB) */
-                         0x82000000 0 0x13000000 0x0 0x13000000 0 0x0d000000   /* non-prefetchable memory (208 MiB) */
-                         0xc2000000 0 0x20000000 0x0 0x20000000 0 0x20000000>; /* prefetchable memory (512 MiB) */
+               ranges = <0x02000000 0 0x01000000 0x0 0x01000000 0 0x00001000>, /* port 0 configuration space */
+                        <0x02000000 0 0x01001000 0x0 0x01001000 0 0x00001000>, /* port 1 configuration space */
+                        <0x01000000 0 0x0        0x0 0x12000000 0 0x00010000>, /* downstream I/O (64 KiB) */
+                        <0x02000000 0 0x13000000 0x0 0x13000000 0 0x0d000000>, /* non-prefetchable memory (208 MiB) */
+                        <0x42000000 0 0x20000000 0x0 0x20000000 0 0x20000000>; /* prefetchable memory (512 MiB) */
 
                clocks = <&tegra_car TEGRA124_CLK_PCIE>,
                         <&tegra_car TEGRA124_CLK_AFI>,
 
        soctherm: thermal-sensor@700e2000 {
                compatible = "nvidia,tegra124-soctherm";
-               reg = <0x0 0x700e2000 0x0 0x600 /* SOC_THERM reg_base */
-                       0x0 0x60006000 0x0 0x400>; /* CAR reg_base */
+               reg = <0x0 0x700e2000 0x0 0x600>, /* SOC_THERM reg_base */
+                     <0x0 0x60006000 0x0 0x400>; /* CAR reg_base */
                reg-names = "soctherm-reg", "car-reg";
                interrupts = <GIC_SPI 48 IRQ_TYPE_LEVEL_HIGH>;
                clocks = <&tegra_car TEGRA124_CLK_TSENSOR>,
index 91219ee..7a6ccbc 100644 (file)
 
        intc: interrupt-controller@50041000 {
                compatible = "arm,cortex-a9-gic";
-               reg = <0x50041000 0x1000
-                      0x50040100 0x0100>;
+               reg = <0x50041000 0x1000>,
+                     <0x50040100 0x0100>;
                interrupt-controller;
                #interrupt-cells = <3>;
                interrupt-parent = <&intc>;
 
        vde@6001a000 {
                compatible = "nvidia,tegra20-vde";
-               reg = <0x6001a000 0x1000   /* Syntax Engine */
-                      0x6001b000 0x1000   /* Video Bitstream Engine */
-                      0x6001c000  0x100   /* Macroblock Engine */
-                      0x6001c200  0x100   /* Post-processing Engine */
-                      0x6001c400  0x100   /* Motion Compensation Engine */
-                      0x6001c600  0x100   /* Transform Engine */
-                      0x6001c800  0x100   /* Pixel prediction block */
-                      0x6001ca00  0x100   /* Video DMA */
-                      0x6001d800  0x300>; /* Video frame controls */
+               reg = <0x6001a000 0x1000>, /* Syntax Engine */
+                     <0x6001b000 0x1000>, /* Video Bitstream Engine */
+                     <0x6001c000  0x100>, /* Macroblock Engine */
+                     <0x6001c200  0x100>, /* Post-processing Engine */
+                     <0x6001c400  0x100>, /* Motion Compensation Engine */
+                     <0x6001c600  0x100>, /* Transform Engine */
+                     <0x6001c800  0x100>, /* Pixel prediction block */
+                     <0x6001ca00  0x100>, /* Video DMA */
+                     <0x6001d800  0x300>; /* Video frame controls */
                reg-names = "sxe", "bsev", "mbe", "ppe", "mce",
                            "tfe", "ppb", "vdma", "frameid";
                iram = <&vde_pool>; /* IRAM region */
 
        apbmisc@70000800 {
                compatible = "nvidia,tegra20-apbmisc";
-               reg = <0x70000800 0x64   /* Chip revision */
-                      0x70000008 0x04>; /* Strapping options */
+               reg = <0x70000800 0x64>, /* Chip revision */
+                     <0x70000008 0x04>; /* Strapping options */
        };
 
        pinmux: pinmux@70000014 {
                compatible = "nvidia,tegra20-pinmux";
-               reg = <0x70000014 0x10   /* Tri-state registers */
-                      0x70000080 0x20   /* Mux registers */
-                      0x700000a0 0x14   /* Pull-up/down registers */
-                      0x70000868 0xa8>; /* Pad control registers */
+               reg = <0x70000014 0x10>, /* Tri-state registers */
+                     <0x70000080 0x20>, /* Mux registers */
+                     <0x700000a0 0x14>, /* Pull-up/down registers */
+                     <0x70000868 0xa8>; /* Pad control registers */
        };
 
        das@70000c00 {
 
        mc: memory-controller@7000f000 {
                compatible = "nvidia,tegra20-mc-gart";
-               reg = <0x7000f000 0x400         /* controller registers */
-                      0x58000000 0x02000000>;  /* GART aperture */
+               reg = <0x7000f000 0x00000400>, /* controller registers */
+                     <0x58000000 0x02000000>; /* GART aperture */
                clocks = <&tegra_car TEGRA20_CLK_MC>;
                clock-names = "mc";
                interrupts = <GIC_SPI 77 IRQ_TYPE_LEVEL_HIGH>;
        pcie@80003000 {
                compatible = "nvidia,tegra20-pcie";
                device_type = "pci";
-               reg = <0x80003000 0x00000800   /* PADS registers */
-                      0x80003800 0x00000200   /* AFI registers */
-                      0x90000000 0x10000000>; /* configuration space */
+               reg = <0x80003000 0x00000800>, /* PADS registers */
+                     <0x80003800 0x00000200>, /* AFI registers */
+                     <0x90000000 0x10000000>; /* configuration space */
                reg-names = "pads", "afi", "cs";
-               interrupts = <GIC_SPI 98 IRQ_TYPE_LEVEL_HIGH   /* controller interrupt */
-                             GIC_SPI 99 IRQ_TYPE_LEVEL_HIGH>; /* MSI interrupt */
+               interrupts = <GIC_SPI 98 IRQ_TYPE_LEVEL_HIGH>, /* controller interrupt */
+                            <GIC_SPI 99 IRQ_TYPE_LEVEL_HIGH>; /* MSI interrupt */
                interrupt-names = "intr", "msi";
 
                #interrupt-cells = <1>;
                #address-cells = <3>;
                #size-cells = <2>;
 
-               ranges = <0x82000000 0 0x80000000 0x80000000 0 0x00001000   /* port 0 registers */
-                         0x82000000 0 0x80001000 0x80001000 0 0x00001000   /* port 1 registers */
-                         0x81000000 0 0          0x82000000 0 0x00010000   /* downstream I/O */
-                         0x82000000 0 0xa0000000 0xa0000000 0 0x08000000   /* non-prefetchable memory */
-                         0xc2000000 0 0xa8000000 0xa8000000 0 0x18000000>; /* prefetchable memory */
+               ranges = <0x02000000 0 0x80000000 0x80000000 0 0x00001000>, /* port 0 registers */
+                        <0x02000000 0 0x80001000 0x80001000 0 0x00001000>, /* port 1 registers */
+                        <0x01000000 0 0          0x82000000 0 0x00010000>, /* downstream I/O */
+                        <0x02000000 0 0xa0000000 0xa0000000 0 0x08000000>, /* non-prefetchable memory */
+                        <0x42000000 0 0xa8000000 0xa8000000 0 0x18000000>; /* prefetchable memory */
 
                clocks = <&tegra_car TEGRA20_CLK_PEX>,
                         <&tegra_car TEGRA20_CLK_AFI>,
 
        phy1: usb-phy@c5000000 {
                compatible = "nvidia,tegra20-usb-phy";
-               reg = <0xc5000000 0x4000 0xc5000000 0x4000>;
+               reg = <0xc5000000 0x4000>,
+                     <0xc5000000 0x4000>;
                phy_type = "utmi";
                clocks = <&tegra_car TEGRA20_CLK_USBD>,
                         <&tegra_car TEGRA20_CLK_PLL_U>,
 
        phy3: usb-phy@c5008000 {
                compatible = "nvidia,tegra20-usb-phy";
-               reg = <0xc5008000 0x4000 0xc5000000 0x4000>;
+               reg = <0xc5008000 0x4000>,
+                     <0xc5000000 0x4000>;
                phy_type = "utmi";
                clocks = <&tegra_car TEGRA20_CLK_USB3>,
                         <&tegra_car TEGRA20_CLK_PLL_U>,
index dc633e5..86e138e 100644 (file)
                regulator-max-microvolt = <3300000>;
                regulator-type = "voltage";
                gpios = <&gpio TEGRA_GPIO(J, 5) GPIO_ACTIVE_HIGH>;
-               states = <1800000 0x0
-                         3300000 0x1>;
+               states = <1800000 0x0>,
+                        <3300000 0x1>;
                startup-delay-us = <100000>;
                vin-supply = <&vddio_sdmmc_1v8_reg>;
        };
index c3dbf80..a3ea45c 100644 (file)
        pcie@3000 {
                compatible = "nvidia,tegra30-pcie";
                device_type = "pci";
-               reg = <0x00003000 0x00000800   /* PADS registers */
-                      0x00003800 0x00000200   /* AFI registers */
-                      0x10000000 0x10000000>; /* configuration space */
+               reg = <0x00003000 0x00000800>, /* PADS registers */
+                     <0x00003800 0x00000200>, /* AFI registers */
+                     <0x10000000 0x10000000>; /* configuration space */
                reg-names = "pads", "afi", "cs";
-               interrupts = <GIC_SPI 98 IRQ_TYPE_LEVEL_HIGH   /* controller interrupt */
-                             GIC_SPI 99 IRQ_TYPE_LEVEL_HIGH>; /* MSI interrupt */
+               interrupts = <GIC_SPI 98 IRQ_TYPE_LEVEL_HIGH>, /* controller interrupt */
+                            <GIC_SPI 99 IRQ_TYPE_LEVEL_HIGH>; /* MSI interrupt */
                interrupt-names = "intr", "msi";
 
                #interrupt-cells = <1>;
                #address-cells = <3>;
                #size-cells = <2>;
 
-               ranges = <0x82000000 0 0x00000000 0x00000000 0 0x00001000   /* port 0 configuration space */
-                         0x82000000 0 0x00001000 0x00001000 0 0x00001000   /* port 1 configuration space */
-                         0x82000000 0 0x00004000 0x00004000 0 0x00001000   /* port 2 configuration space */
-                         0x81000000 0 0          0x02000000 0 0x00010000   /* downstream I/O */
-                         0x82000000 0 0x20000000 0x20000000 0 0x08000000   /* non-prefetchable memory */
-                         0xc2000000 0 0x28000000 0x28000000 0 0x18000000>; /* prefetchable memory */
+               ranges = <0x02000000 0 0x00000000 0x00000000 0 0x00001000>, /* port 0 configuration space */
+                        <0x02000000 0 0x00001000 0x00001000 0 0x00001000>, /* port 1 configuration space */
+                        <0x02000000 0 0x00004000 0x00004000 0 0x00001000>, /* port 2 configuration space */
+                        <0x01000000 0 0          0x02000000 0 0x00010000>, /* downstream I/O */
+                        <0x02000000 0 0x20000000 0x20000000 0 0x08000000>, /* non-prefetchable memory */
+                        <0x42000000 0 0x28000000 0x28000000 0 0x18000000>; /* prefetchable memory */
 
                clocks = <&tegra_car TEGRA30_CLK_PCIE>,
                         <&tegra_car TEGRA30_CLK_AFI>,
                gr3d@54180000 {
                        compatible = "nvidia,tegra30-gr3d";
                        reg = <0x54180000 0x00040000>;
-                       clocks = <&tegra_car TEGRA30_CLK_GR3D
-                                 &tegra_car TEGRA30_CLK_GR3D2>;
+                       clocks = <&tegra_car TEGRA30_CLK_GR3D>,
+                                <&tegra_car TEGRA30_CLK_GR3D2>;
                        clock-names = "3d", "3d2";
                        resets = <&tegra_car 24>,
                                 <&tegra_car 98>;
 
        intc: interrupt-controller@50041000 {
                compatible = "arm,cortex-a9-gic";
-               reg = <0x50041000 0x1000
-                      0x50040100 0x0100>;
+               reg = <0x50041000 0x1000>,
+                     <0x50040100 0x0100>;
                interrupt-controller;
                #interrupt-cells = <3>;
                interrupt-parent = <&intc>;
 
        vde@6001a000 {
                compatible = "nvidia,tegra30-vde", "nvidia,tegra20-vde";
-               reg = <0x6001a000 0x1000   /* Syntax Engine */
-                      0x6001b000 0x1000   /* Video Bitstream Engine */
-                      0x6001c000  0x100   /* Macroblock Engine */
-                      0x6001c200  0x100   /* Post-processing Engine */
-                      0x6001c400  0x100   /* Motion Compensation Engine */
-                      0x6001c600  0x100   /* Transform Engine */
-                      0x6001c800  0x100   /* Pixel prediction block */
-                      0x6001ca00  0x100   /* Video DMA */
-                      0x6001d800  0x400>; /* Video frame controls */
+               reg = <0x6001a000 0x1000>, /* Syntax Engine */
+                     <0x6001b000 0x1000>, /* Video Bitstream Engine */
+                     <0x6001c000  0x100>, /* Macroblock Engine */
+                     <0x6001c200  0x100>, /* Post-processing Engine */
+                     <0x6001c400  0x100>, /* Motion Compensation Engine */
+                     <0x6001c600  0x100>, /* Transform Engine */
+                     <0x6001c800  0x100>, /* Pixel prediction block */
+                     <0x6001ca00  0x100>, /* Video DMA */
+                     <0x6001d800  0x400>; /* Video frame controls */
                reg-names = "sxe", "bsev", "mbe", "ppe", "mce",
                            "tfe", "ppb", "vdma", "frameid";
                iram = <&vde_pool>; /* IRAM region */
 
        apbmisc@70000800 {
                compatible = "nvidia,tegra30-apbmisc", "nvidia,tegra20-apbmisc";
-               reg = <0x70000800 0x64   /* Chip revision */
-                      0x70000008 0x04>; /* Strapping options */
+               reg = <0x70000800 0x64>, /* Chip revision */
+                     <0x70000008 0x04>; /* Strapping options */
        };
 
        pinmux: pinmux@70000868 {
                compatible = "nvidia,tegra30-pinmux";
-               reg = <0x70000868 0xd4    /* Pad control registers */
-                      0x70003000 0x3e4>; /* Mux registers */
+               reg = <0x70000868 0x0d4>, /* Pad control registers */
+                     <0x70003000 0x3e4>; /* Mux registers */
        };
 
        /*
 
        ahub@70080000 {
                compatible = "nvidia,tegra30-ahub";
-               reg = <0x70080000 0x200
-                      0x70080200 0x100>;
+               reg = <0x70080000 0x200>,
+                     <0x70080200 0x100>;
                interrupts = <GIC_SPI 103 IRQ_TYPE_LEVEL_HIGH>;
                clocks = <&tegra_car TEGRA30_CLK_D_AUDIO>,
                         <&tegra_car TEGRA30_CLK_APBIF>;
 
        phy1: usb-phy@7d000000 {
                compatible = "nvidia,tegra30-usb-phy";
-               reg = <0x7d000000 0x4000 0x7d000000 0x4000>;
+               reg = <0x7d000000 0x4000>,
+                     <0x7d000000 0x4000>;
                phy_type = "utmi";
                clocks = <&tegra_car TEGRA30_CLK_USBD>,
                         <&tegra_car TEGRA30_CLK_PLL_U>,
 
        phy2: usb-phy@7d004000 {
                compatible = "nvidia,tegra30-usb-phy";
-               reg = <0x7d004000 0x4000 0x7d000000 0x4000>;
+               reg = <0x7d004000 0x4000>,
+                     <0x7d000000 0x4000>;
                phy_type = "utmi";
                clocks = <&tegra_car TEGRA30_CLK_USB2>,
                         <&tegra_car TEGRA30_CLK_PLL_U>,
 
        phy3: usb-phy@7d008000 {
                compatible = "nvidia,tegra30-usb-phy";
-               reg = <0x7d008000 0x4000 0x7d000000 0x4000>;
+               reg = <0x7d008000 0x4000>,
+                     <0x7d000000 0x4000>;
                phy_type = "utmi";
                clocks = <&tegra_car TEGRA30_CLK_USB3>,
                         <&tegra_car TEGRA30_CLK_PLL_U>,