ARM: dts: Assume status of all optional nodes as disabled for exynos4
authorTomasz Figa <t.figa@samsung.com>
Fri, 21 Sep 2012 01:13:31 +0000 (10:13 +0900)
committerKukjin Kim <kgene.kim@samsung.com>
Fri, 21 Sep 2012 01:47:23 +0000 (10:47 +0900)
Currently all boards must explicitly disable all unused device tree
nodes of unused components (e.g. i2c, sdhci, etc...). This makes it
necessary to all boards to be aware of all components on the SoC, which
in turns makes board dts files longer and more difficult to maintain
(e.g. adding new components to SoC-level tree requires adding nodes with
status="disabled" to every board).

This patch changes "status" of all optional components in SoC-level dts
file to "disabled", adds status="okay" to respective nodes of used
components in dts of all boards and removes all nodes with only
status="disabled" from boards dts.

Signed-off-by: Tomasz Figa <t.figa@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Acked-by: Thomas Abraham <thomas.abraham@linaro.org>
Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
arch/arm/boot/dts/exynos4.dtsi
arch/arm/boot/dts/exynos4210-origen.dts
arch/arm/boot/dts/exynos4210-smdkv310.dts

index 042fe9b8ef0c632f475d60c885cefa2b52f259ab..9a19691a51fe1775069090414800de1d09eccf03 100644 (file)
                compatible = "samsung,s3c2410-wdt";
                reg = <0x10060000 0x100>;
                interrupts = <0 43 0>;
+               status = "disabled";
        };
 
        rtc@10070000 {
                compatible = "samsung,s3c6410-rtc";
                reg = <0x10070000 0x100>;
                interrupts = <0 44 0>, <0 45 0>;
+               status = "disabled";
        };
 
        keypad@100A0000 {
                compatible = "samsung,s5pv210-keypad";
                reg = <0x100A0000 0x100>;
                interrupts = <0 109 0>;
+               status = "disabled";
        };
 
        sdhci@12510000 {
                compatible = "samsung,exynos4210-sdhci";
                reg = <0x12510000 0x100>;
                interrupts = <0 73 0>;
+               status = "disabled";
        };
 
        sdhci@12520000 {
                compatible = "samsung,exynos4210-sdhci";
                reg = <0x12520000 0x100>;
                interrupts = <0 74 0>;
+               status = "disabled";
        };
 
        sdhci@12530000 {
                compatible = "samsung,exynos4210-sdhci";
                reg = <0x12530000 0x100>;
                interrupts = <0 75 0>;
+               status = "disabled";
        };
 
        sdhci@12540000 {
                compatible = "samsung,exynos4210-sdhci";
                reg = <0x12540000 0x100>;
                interrupts = <0 76 0>;
+               status = "disabled";
        };
 
        serial@13800000 {
                compatible = "samsung,exynos4210-uart";
                reg = <0x13800000 0x100>;
                interrupts = <0 52 0>;
+               status = "disabled";
        };
 
        serial@13810000 {
                compatible = "samsung,exynos4210-uart";
                reg = <0x13810000 0x100>;
                interrupts = <0 53 0>;
+               status = "disabled";
        };
 
        serial@13820000 {
                compatible = "samsung,exynos4210-uart";
                reg = <0x13820000 0x100>;
                interrupts = <0 54 0>;
+               status = "disabled";
        };
 
        serial@13830000 {
                compatible = "samsung,exynos4210-uart";
                reg = <0x13830000 0x100>;
                interrupts = <0 55 0>;
+               status = "disabled";
        };
 
        i2c@13860000 {
                compatible = "samsung,s3c2440-i2c";
                reg = <0x13860000 0x100>;
                interrupts = <0 58 0>;
+               status = "disabled";
        };
 
        i2c@13870000 {
                compatible = "samsung,s3c2440-i2c";
                reg = <0x13870000 0x100>;
                interrupts = <0 59 0>;
+               status = "disabled";
        };
 
        i2c@13880000 {
                compatible = "samsung,s3c2440-i2c";
                reg = <0x13880000 0x100>;
                interrupts = <0 60 0>;
+               status = "disabled";
        };
 
        i2c@13890000 {
                compatible = "samsung,s3c2440-i2c";
                reg = <0x13890000 0x100>;
                interrupts = <0 61 0>;
+               status = "disabled";
        };
 
        i2c@138A0000 {
                compatible = "samsung,s3c2440-i2c";
                reg = <0x138A0000 0x100>;
                interrupts = <0 62 0>;
+               status = "disabled";
        };
 
        i2c@138B0000 {
                compatible = "samsung,s3c2440-i2c";
                reg = <0x138B0000 0x100>;
                interrupts = <0 63 0>;
+               status = "disabled";
        };
 
        i2c@138C0000 {
                compatible = "samsung,s3c2440-i2c";
                reg = <0x138C0000 0x100>;
                interrupts = <0 64 0>;
+               status = "disabled";
        };
 
        i2c@138D0000 {
                compatible = "samsung,s3c2440-i2c";
                reg = <0x138D0000 0x100>;
                interrupts = <0 65 0>;
+               status = "disabled";
        };
 
        spi_0: spi@13920000 {
                rx-dma-channel = <&pdma0 6>; /* preliminary */
                #address-cells = <1>;
                #size-cells = <0>;
+               status = "disabled";
        };
 
        spi_1: spi@13930000 {
                rx-dma-channel = <&pdma1 6>; /* preliminary */
                #address-cells = <1>;
                #size-cells = <0>;
+               status = "disabled";
        };
 
        spi_2: spi@13940000 {
                rx-dma-channel = <&pdma0 8>; /* preliminary */
                #address-cells = <1>;
                #size-cells = <0>;
+               status = "disabled";
        };
 
        amba {
index 0c49caa099786b4c247831da4b539da7a32711ab..d1a1101fd96eb780b6ab02c54c0e8065e742e0fb 100644 (file)
@@ -40,6 +40,7 @@
                        <&gpk2 4 2 3 3>,
                        <&gpk2 5 2 3 3>,
                        <&gpk2 6 2 3 3>;
+               status = "okay";
        };
 
        sdhci@12510000 {
@@ -53,6 +54,7 @@
                        <&gpk0 4 2 3 3>,
                        <&gpk0 5 2 3 3>,
                        <&gpk0 6 2 3 3>;
+               status = "okay";
        };
 
        gpio_keys {
                        linux,code = <139>;
                };
        };
-
-       keypad@100A0000 {
-               status = "disabled";
-       };
-
-       sdhci@12520000 {
-               status = "disabled";
-       };
-
-       sdhci@12540000 {
-               status = "disabled";
-       };
-
-       i2c@13860000 {
-               status = "disabled";
-       };
-
-       i2c@13870000 {
-               status = "disabled";
-       };
-
-       i2c@13880000 {
-               status = "disabled";
-       };
-
-       i2c@13890000 {
-               status = "disabled";
-       };
-
-       i2c@138A0000 {
-               status = "disabled";
-       };
-
-       i2c@138B0000 {
-               status = "disabled";
-       };
-
-       i2c@138C0000 {
-               status = "disabled";
-       };
-
-       i2c@138D0000 {
-               status = "disabled";
-       };
-
-       spi_0: spi@13920000 {
-               status = "disabled";
-       };
-
-       spi_1: spi@13930000 {
-               status = "disabled";
-       };
-
-       spi_2: spi@13940000 {
-               status = "disabled";
-       };
 };
index 1beccc8f14ff948c622a6af681141221139ba021..b87cca2fca7486cde6e3e5f2f1f34b450442d39a 100644 (file)
@@ -40,6 +40,7 @@
                        <&gpk2 4 2 3 3>,
                        <&gpk2 5 2 3 3>,
                        <&gpk2 6 2 3 3>;
+               status = "okay";
        };
 
        keypad@100A0000 {
@@ -47,6 +48,7 @@
                samsung,keypad-num-columns = <8>;
                linux,keypad-no-autorepeat;
                linux,keypad-wakeup;
+               status = "okay";
 
                row-gpios = <&gpx2 0 3 3 0>,
                            <&gpx2 1 3 3 0>;
                samsung,i2c-max-bus-freq = <20000>;
                gpios = <&gpd1 0 2 3 0>,
                        <&gpd1 1 2 3 0>;
+               status = "okay";
 
                eeprom@50 {
                        compatible = "samsung,24ad0xd1";
                };
        };
 
-       sdhci@12510000 {
-               status = "disabled";
-       };
-
-       sdhci@12520000 {
-               status = "disabled";
-       };
-
-       sdhci@12540000 {
-               status = "disabled";
-       };
-
-       i2c@13870000 {
-               status = "disabled";
-       };
-
-       i2c@13880000 {
-               status = "disabled";
-       };
-
-       i2c@13890000 {
-               status = "disabled";
-       };
-
-       i2c@138A0000 {
-               status = "disabled";
-       };
-
-       i2c@138B0000 {
-               status = "disabled";
-       };
-
-       i2c@138C0000 {
-               status = "disabled";
-       };
-
-       i2c@138D0000 {
-               status = "disabled";
-       };
-
-       spi_0: spi@13920000 {
-               status = "disabled";
-       };
-
-       spi_1: spi@13930000 {
-               status = "disabled";
-       };
-
        spi_2: spi@13940000 {
                gpios = <&gpc1 1 5 3 0>,
                        <&gpc1 3 5 3 0>,
                        <&gpc1 4 5 3 0>;
+               status = "okay";
 
                w25x80@0 {
                        #address-cells = <1>;