ARM: dts: SAMSUNG: Add aliases of UART nodes
authorTomasz Figa <t.figa@samsung.com>
Thu, 26 Jun 2014 11:24:35 +0000 (13:24 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 10 Jul 2014 00:22:55 +0000 (17:22 -0700)
This patch adds alias entries for UART nodes of all SoCs using
samsung-uart compatible UART controllers, so that the dependency on
probe order is removed and deterministic device naming is assured.

Signed-off-by: Tomasz Figa <t.figa@samsung.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/arm/boot/dts/exynos3250.dtsi
arch/arm/boot/dts/exynos4.dtsi
arch/arm/boot/dts/exynos5.dtsi
arch/arm/boot/dts/exynos5260.dtsi
arch/arm/boot/dts/exynos5410.dtsi
arch/arm/boot/dts/exynos5440.dtsi
arch/arm/boot/dts/s3c2416.dtsi
arch/arm/boot/dts/s3c24xx.dtsi
arch/arm/boot/dts/s3c64xx.dtsi

index 3e678fa335bf7dc2981bb3a7c7a19f6871f68617..f4b54117d22ef0bb814d4eee8b4b53dd65a6ad7d 100644 (file)
@@ -39,6 +39,8 @@
                i2c5 = &i2c_5;
                i2c6 = &i2c_6;
                i2c7 = &i2c_7;
+               serial0 = &serial_0;
+               serial1 = &serial_1;
        };
 
        cpus {
index fbaf426d2daafc8beb505fab17c73250e7cc3a9a..536d3c3553b24a6b3982ad6b51caf8760dd18951 100644 (file)
                fimc1 = &fimc_1;
                fimc2 = &fimc_2;
                fimc3 = &fimc_3;
+               serial0 = &serial_0;
+               serial1 = &serial_1;
+               serial2 = &serial_2;
+               serial3 = &serial_3;
        };
 
        clock_audss: clock-controller@03810000 {
                status = "disabled";
        };
 
-       serial@13800000 {
+       serial_0: serial@13800000 {
                compatible = "samsung,exynos4210-uart";
                reg = <0x13800000 0x100>;
                interrupts = <0 52 0>;
                status = "disabled";
        };
 
-       serial@13810000 {
+       serial_1: serial@13810000 {
                compatible = "samsung,exynos4210-uart";
                reg = <0x13810000 0x100>;
                interrupts = <0 53 0>;
                status = "disabled";
        };
 
-       serial@13820000 {
+       serial_2: serial@13820000 {
                compatible = "samsung,exynos4210-uart";
                reg = <0x13820000 0x100>;
                interrupts = <0 54 0>;
                status = "disabled";
        };
 
-       serial@13830000 {
+       serial_3: serial@13830000 {
                compatible = "samsung,exynos4210-uart";
                reg = <0x13830000 0x100>;
                interrupts = <0 55 0>;
index 79d0608d6dcc44ae895251086a665afcde2cf2e9..ff2d2cb0f79e083f94649ac3e91025f1c5ceb89b 100644 (file)
 / {
        interrupt-parent = <&gic>;
 
+       aliases {
+               serial0 = &serial_0;
+               serial1 = &serial_1;
+               serial2 = &serial_2;
+               serial3 = &serial_3;
+       };
+
        chipid@10000000 {
                compatible = "samsung,exynos4210-chipid";
                reg = <0x10000000 0x100>;
                interrupts = <1 9 0xf04>;
        };
 
-       serial@12C00000 {
+       serial_0: serial@12C00000 {
                compatible = "samsung,exynos4210-uart";
                reg = <0x12C00000 0x100>;
                interrupts = <0 51 0>;
        };
 
-       serial@12C10000 {
+       serial_1: serial@12C10000 {
                compatible = "samsung,exynos4210-uart";
                reg = <0x12C10000 0x100>;
                interrupts = <0 52 0>;
        };
 
-       serial@12C20000 {
+       serial_2: serial@12C20000 {
                compatible = "samsung,exynos4210-uart";
                reg = <0x12C20000 0x100>;
                interrupts = <0 53 0>;
        };
 
-       serial@12C30000 {
+       serial_3: serial@12C30000 {
                compatible = "samsung,exynos4210-uart";
                reg = <0x12C30000 0x100>;
                interrupts = <0 54 0>;
index 5398a60207ca9487609dc03f8f3dac2069f0b39c..4539a0ae714dd621fdbba8b4da8407a94bb368f2 100644 (file)
                pinctrl0 = &pinctrl_0;
                pinctrl1 = &pinctrl_1;
                pinctrl2 = &pinctrl_2;
+               serial0 = &uart0;
+               serial1 = &uart1;
+               serial2 = &uart2;
+               serial3 = &uart3;
        };
 
        cpus {
index 3839c26f467f1cb93cad6fb2415f0cd1a7c1ad34..52070e54589ac6c9ff8c52adc47686399b24b8a1 100644 (file)
        compatible = "samsung,exynos5410", "samsung,exynos5";
        interrupt-parent = <&gic>;
 
+       aliases {
+               serial0 = &uart0;
+               serial1 = &uart1;
+               serial2 = &uart2;
+       };
+
        cpus {
                #address-cells = <1>;
                #size-cells = <0>;
index ae3a17c791f6f530ad6c8b95d63fa862b2c24e82..8f3373cd7b878b79f2e499518a7ec774ffd06db8 100644 (file)
@@ -18,6 +18,8 @@
        interrupt-parent = <&gic>;
 
        aliases {
+               serial0 = &serial_0;
+               serial1 = &serial_1;
                spi0 = &spi_0;
                tmuctrl0 = &tmuctrl_0;
                tmuctrl1 = &tmuctrl_1;
                >;
        };
 
-       serial@B0000 {
+       serial_0: serial@B0000 {
                compatible = "samsung,exynos4210-uart";
                reg = <0xB0000 0x1000>;
                interrupts = <0 2 0>;
                clock-names = "uart", "clk_uart_baud0";
        };
 
-       serial@C0000 {
+       serial_1: serial@C0000 {
                compatible = "samsung,exynos4210-uart";
                reg = <0xC0000 0x1000>;
                interrupts = <0 3 0>;
index 955e4a4f8c31ccb8a1bfe367d7511402e5e730e8..30b8f7e47454ebdeb274303a62073226d0ba8a5a 100644 (file)
        model = "Samsung S3C2416 SoC";
        compatible = "samsung,s3c2416";
 
+       aliases {
+               serial3 = &uart3;
+       };
+
        cpus {
                #address-cells = <1>;
                #size-cells = <0>;
@@ -68,7 +72,7 @@
                                <&clocks SCLK_UART>;
        };
 
-       serial@5000C000 {
+       uart3: serial@5000C000 {
                compatible = "samsung,s3c2440-uart";
                reg = <0x5000C000 0x4000>;
                interrupts = <1 18 24 4>, <1 18 25 4>;
index 2d1d7dc9418ae4d1d4f35a670f0388570990c34e..5ed43b857cc4ceb362d2b31426f2f7da82d73995 100644 (file)
@@ -16,6 +16,9 @@
 
        aliases {
                pinctrl0 = &pinctrl_0;
+               serial0 = &uart0;
+               serial1 = &uart1;
+               serial2 = &uart2;
        };
 
        intc:interrupt-controller@4a000000 {
                #pwm-cells = <4>;
        };
 
-       serial@50000000 {
+       uart0: serial@50000000 {
                compatible = "samsung,s3c2410-uart";
                reg = <0x50000000 0x4000>;
                interrupts = <1 28 0 4>, <1 28 1 4>;
                status = "disabled";
        };
 
-       serial@50004000 {
+       uart1: serial@50004000 {
                compatible = "samsung,s3c2410-uart";
                reg = <0x50004000 0x4000>;
                interrupts = <1 23 3 4>, <1 23 4 4>;
                status = "disabled";
        };
 
-       serial@50008000 {
+       uart2: serial@50008000 {
                compatible = "samsung,s3c2410-uart";
                reg = <0x50008000 0x4000>;
                interrupts = <1 15 6 4>, <1 15 7 4>;
index 4e3be4d3493dda348284484a186ca85e5a5de7ab..ff5bdaac987af393e6640fd830c6a6a1806ef5b7 100644 (file)
        aliases {
                i2c0 = &i2c0;
                pinctrl0 = &pinctrl0;
+               serial0 = &uart0;
+               serial1 = &uart1;
+               serial2 = &uart2;
+               serial3 = &uart3;
        };
 
        cpus {