ARM: dts: BCM5301X: Specify serial console params in dtsi files
authorRafał Miłecki <rafal@milecki.pl>
Wed, 15 Mar 2017 17:03:27 +0000 (18:03 +0100)
committerFlorian Fainelli <f.fainelli@gmail.com>
Wed, 22 Mar 2017 16:48:24 +0000 (09:48 -0700)
So far every Northstar device we have seen was using the same serial
console params (115200n8). It probably make the most sense to put it in
some proper dtsi files instead of repeating over and over for every
single device. As different boards may use different bootloaders it
seems the safest idea is to use board specific dtsi files.

Just in case some vendor decides to use different UART (parameters) this
can be always easily overwritten.

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
arch/arm/boot/dts/bcm4708.dtsi
arch/arm/boot/dts/bcm47081.dtsi
arch/arm/boot/dts/bcm5301x.dtsi
arch/arm/boot/dts/bcm94708.dts
arch/arm/boot/dts/bcm94709.dts
arch/arm/boot/dts/bcm953012er.dts
arch/arm/boot/dts/bcm953012hr.dts
arch/arm/boot/dts/bcm953012k.dts

index d0eec099f1f8cda749315e8e29b1a95ca295fa09..1a19e97a987db95a72da47cda58f22a84d682b09 100644 (file)
 / {
        compatible = "brcm,bcm4708";
 
+       aliases {
+               serial0 = &uart0;
+       };
+
+       chosen {
+               stdout-path = "serial0:115200n8";
+       };
+
        cpus {
                #address-cells = <1>;
                #size-cells = <0>;
index 7bcd536198fcbf7b0516642c67e2c51445bfe529..9829d044aaf44a6b4cc2f65dca508b9e3195d44a 100644 (file)
 / {
        compatible = "brcm,bcm47081";
 
+       aliases {
+               serial0 = &uart0;
+       };
+
+       chosen {
+               stdout-path = "serial0:115200n8";
+       };
+
        cpus {
                #address-cells = <1>;
                #size-cells = <0>;
index 89b3c7f53317c1d80fd694af05dcc5147e27cf20..acee36a610047f69383990ebc980508ea6e47fd8 100644 (file)
 / {
        interrupt-parent = <&gic>;
 
-       chosen {
-               stdout-path = &uart0;
-       };
-
        chipcommonA {
                compatible = "simple-bus";
                ranges = <0x00000000 0x18000000 0x00001000>;
index 42855a7c1bfa6ca07bb08383107a20fc84c07e1a..2e08c895f2818cefbb799a5011190bfd724c0225 100644 (file)
        model = "NorthStar SVK (BCM94708)";
        compatible = "brcm,bcm94708", "brcm,bcm4708";
 
-       aliases {
-               serial0 = &uart0;
-       };
-
-       chosen {
-               stdout-path = "serial0:115200n8";
-       };
-
        memory {
                reg = <0x00000000 0x08000000>;
        };
index 95e8be65f2f14039ee4d04bfbcb1425fe1ce15f0..c37616c67edcc0810d46c93bfcb78eacdf05c5ed 100644 (file)
        model = "NorthStar SVK (BCM94709)";
        compatible = "brcm,bcm94709", "brcm,bcm4709", "brcm,bcm4708";
 
-       aliases {
-               serial0 = &uart0;
-       };
-
-       chosen {
-               stdout-path = "serial0:115200n8";
-       };
-
        memory {
                reg = <0x00000000 0x08000000>;
        };
index decd86bae901c0296a07cff8cf59b32006e972c9..40e694bfe5cabedfbda67e6632fc388214ccad2e 100644 (file)
        model = "NorthStar Enterprise Router (BCM953012ER)";
        compatible = "brcm,bcm953012er", "brcm,brcm53012", "brcm,bcm4708";
 
-       aliases {
-               serial0 = &uart0;
-       };
-
-       chosen {
-               stdout-path = "serial0:115200n8";
-       };
-
        memory {
                reg = <0x00000000 0x8000000>;
        };
index 766aa711d54b96e47b16257b5f85bb29020b69d2..3076e81699cf86d01b19b5206036392fe1234e67 100644 (file)
        compatible = "brcm,bcm953012hr", "brcm,brcm53012", "brcm,bcm4708";
 
        aliases {
-               serial0 = &uart0;
                ethernet0 = &gmac0;
                ethernet1 = &gmac1;
                ethernet2 = &gmac2;
        };
 
-       chosen {
-               stdout-path = "serial0:115200n8";
-       };
-
        memory@80000000 {
                reg = <0x80000000 0x10000000>;
        };
index a00c4e1dfb4c25ce532eaae9c06b08a22450ea71..fbc6219e977a8b63e9ecfd095f28f0d2d9b42d56 100644 (file)
                serial1 = &uart1;
        };
 
-       chosen {
-               stdout-path = "serial0:115200n8";
-       };
-
        memory {
                reg = <0x00000000 0x10000000>;
        };