]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
ARM: sunxi: DT: Add stdout-path property
authorMaxime Ripard <maxime.ripard@free-electrons.com>
Sun, 15 Mar 2015 19:47:31 +0000 (20:47 +0100)
committerMaxime Ripard <maxime.ripard@free-electrons.com>
Mon, 27 Apr 2015 06:20:30 +0000 (08:20 +0200)
Add UART aliases and stdout-path property for all the Allwinner boards so that
we won't have to rely on the bootargs' console= value, while working with
legacy bootloaders.

While we're at it, also remove the mentions of earlyprintk in the bootargs,
that will remove our default bootargs entirely, and allow the kernel to boot on
a system even if DEBUG_LL is configured for another system.

Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
42 files changed:
arch/arm/boot/dts/sun4i-a10-a1000.dts
arch/arm/boot/dts/sun4i-a10-ba10-tvbox.dts
arch/arm/boot/dts/sun4i-a10-chuwi-v7-cw0825.dts
arch/arm/boot/dts/sun4i-a10-cubieboard.dts
arch/arm/boot/dts/sun4i-a10-gemei-g9.dts
arch/arm/boot/dts/sun4i-a10-hackberry.dts
arch/arm/boot/dts/sun4i-a10-hyundai-a7hd.dts
arch/arm/boot/dts/sun4i-a10-inet97fv2.dts
arch/arm/boot/dts/sun4i-a10-marsboard.dts
arch/arm/boot/dts/sun4i-a10-mini-xplus.dts
arch/arm/boot/dts/sun4i-a10-mk802.dts
arch/arm/boot/dts/sun4i-a10-mk802ii.dts
arch/arm/boot/dts/sun4i-a10-olinuxino-lime.dts
arch/arm/boot/dts/sun4i-a10-pcduino.dts
arch/arm/boot/dts/sun5i-a10s-auxtek-t004.dts
arch/arm/boot/dts/sun5i-a10s-mk802.dts
arch/arm/boot/dts/sun5i-a10s-olinuxino-micro.dts
arch/arm/boot/dts/sun5i-a10s-r7-tv-dongle.dts
arch/arm/boot/dts/sun5i-a13-hsg-h702.dts
arch/arm/boot/dts/sun5i-a13-olinuxino-micro.dts
arch/arm/boot/dts/sun5i-a13-olinuxino.dts
arch/arm/boot/dts/sun6i-a31-app4-evb1.dts
arch/arm/boot/dts/sun6i-a31-colombus.dts
arch/arm/boot/dts/sun6i-a31-hummingbird.dts
arch/arm/boot/dts/sun6i-a31-i7.dts
arch/arm/boot/dts/sun6i-a31-m9.dts
arch/arm/boot/dts/sun6i-a31s-cs908.dts
arch/arm/boot/dts/sun7i-a20-bananapi.dts
arch/arm/boot/dts/sun7i-a20-bananapro.dts
arch/arm/boot/dts/sun7i-a20-cubieboard2.dts
arch/arm/boot/dts/sun7i-a20-cubietruck.dts
arch/arm/boot/dts/sun7i-a20-hummingbird.dts
arch/arm/boot/dts/sun7i-a20-i12-tvbox.dts
arch/arm/boot/dts/sun7i-a20-m3.dts
arch/arm/boot/dts/sun7i-a20-olinuxino-lime.dts
arch/arm/boot/dts/sun7i-a20-olinuxino-lime2.dts
arch/arm/boot/dts/sun7i-a20-olinuxino-micro.dts
arch/arm/boot/dts/sun7i-a20-pcduino3-nano.dts
arch/arm/boot/dts/sun7i-a20-pcduino3.dts
arch/arm/boot/dts/sun7i-a20-wexler-tab7200.dts
arch/arm/boot/dts/sun8i-a23-ippo-q8h-v5.dts
arch/arm/boot/dts/sun9i-a80-optimus.dts

index 648626bc58a13988abccf1fc2e777d17f2402e2c..f03281434e593f0588a35a20dadf19675c105789 100644 (file)
        model = "Mele A1000";
        compatible = "mele,a1000", "allwinner,sun4i-a10";
 
+       aliases {
+               serial0 = &uart0;
+       };
+
+       chosen {
+               stdout-path = "serial0:115200n8";
+       };
+
        leds {
                compatible = "gpio-leds";
                pinctrl-names = "default";
index bebb803a9456dcc7958aff20f152a639c1820c88..1a3c7ddc538a9dc4aed4c7079dfeaaadfd7c793d 100644 (file)
 / {
        model = "BA10 tvbox";
        compatible = "allwinner,ba10-tvbox", "allwinner,sun4i-a10";
+
+       aliases {
+               serial0 = &uart0;
+       };
+
+       chosen {
+               stdout-path = "serial0:115200n8";
+       };
 };
 
 &ehci0 {
index 97fca89eb92b3d7b7d1fdfcf840f88418f818b5b..35fb163827decf05c89c3dc414e25b5a96f86420 100644 (file)
 / {
        model = "Chuwi V7 CW0825";
        compatible = "chuwi,v7-cw0825", "allwinner,sun4i-a10";
+
+       aliases {
+               serial0 = &uart0;
+       };
+
+       chosen {
+               stdout-path = "serial0:115200n8";
+       };
 };
 
 &ehci1 {
index 07c2f64b14ee5cc2fb893a299451b50366fd8901..0ba67d79c2b4a8c020de8ee5b63790d872db6525 100644 (file)
        model = "Cubietech Cubieboard";
        compatible = "cubietech,a10-cubieboard", "allwinner,sun4i-a10";
 
+       aliases {
+               serial0 = &uart0;
+       };
+
+       chosen {
+               stdout-path = "serial0:115200n8";
+       };
+
        leds {
                compatible = "gpio-leds";
                pinctrl-names = "default";
index 0c734538079383cf676cbe21c1c6d9c00bfa5b82..fbd638a38018bfee04b288a3fa255adabb555c69 100644 (file)
 / {
        model = "Gemei G9 Tablet";
        compatible = "gemei,g9", "allwinner,sun4i-a10";
+
+       aliases {
+               serial0 = &uart0;
+       };
+
+       chosen {
+               stdout-path = "serial0:115200n8";
+       };
 };
 
 /*
index 3cb067ed8715f78f94e4ebc11a9d59b1e2397340..f4437883fba7a5aa0a99f613eed6991309b1a02b 100644 (file)
        model = "Miniand Hackberry";
        compatible = "miniand,hackberry", "allwinner,sun4i-a10";
 
+       aliases {
+               serial0 = &uart0;
+       };
+
+       chosen {
+               stdout-path = "serial0:115200n8";
+       };
+
        reg_emac_3v3: emac-3v3 {
                compatible = "regulator-fixed";
                regulator-name = "emac-3v3";
index c88382aacc36b630903c464cbb85fc274639ab95..9f06b180505815ebed5619e43ab36cdcfccd3169 100644 (file)
 / {
        model = "Hyundai A7HD";
        compatible = "hyundai,a7hd", "allwinner,sun4i-a10";
+
+       aliases {
+               serial0 = &uart0;
+       };
+
+       chosen {
+               stdout-path = "serial0:115200n8";
+       };
 };
 
 &ehci1 {
index ab3bbc13db1ca3540818b2eab39d7cb4bb757b02..e19ef52f357946fb247a99d403daea56068a5b98 100644 (file)
 / {
        model = "INet-97F Rev 02";
        compatible = "primux,inet97fv2", "allwinner,sun4i-a10";
+
+       aliases {
+               serial0 = &uart0;
+       };
+
+       chosen {
+               stdout-path = "serial0:115200n8";
+       };
 };
 
 &ehci0 {
index 9ee86a700c2b46b37108e132cb6c9d04681b1de4..00c54d2a1824324998ff115fdce41f05ce92a664 100644 (file)
        model = "HAOYU Electronics Marsboard A10";
        compatible = "haoyu,a10-marsboard", "allwinner,sun4i-a10";
 
+       aliases {
+               serial0 = &uart0;
+       };
+
+       chosen {
+               stdout-path = "serial0:115200n8";
+       };
+
        leds {
                compatible = "gpio-leds";
                pinctrl-names = "default";
index dce9a341516b85a7218067deb20e6733c83fed6a..0f24914c1a6e446399ac5b8f17bc4b226667b6e2 100644 (file)
 / {
        model = "PineRiver Mini X-Plus";
        compatible = "pineriver,mini-xplus", "allwinner,sun4i-a10";
+
+       aliases {
+               serial0 = &uart0;
+       };
+
+       chosen {
+               stdout-path = "serial0:115200n8";
+       };
 };
 
 &ehci0 {
index e9a6886f0d5135e93a351a3226e2d8cf73250d2b..0f1c99133c9c591f41e0a998fcd714142c0cc711 100644 (file)
 / {
        model = "MK802";
        compatible = "allwinner,mk802", "allwinner,sun4i-a10";
+
+       aliases {
+               serial0 = &uart0;
+       };
+
+       chosen {
+               stdout-path = "serial0:115200n8";
+       };
 };
 
 &ehci0 {
index 802eda494d1c4def3fceb2ca151778d31dda0f87..f97aa6f523f4caaa31470b9a50d5f3072e81687a 100644 (file)
 / {
        model = "MK802ii";
        compatible = "allwinner,mk802ii", "allwinner,sun4i-a10";
+
+       aliases {
+               serial0 = &uart0;
+       };
+
+       chosen {
+               stdout-path = "serial0:115200n8";
+       };
 };
 
 &ehci0 {
index 03350dff42b18be36df632a2718fecaffecf369c..5840d5e16b99b216f9e69929b2265f3c93ed6395 100644 (file)
        model = "Olimex A10-OLinuXino-LIME";
        compatible = "olimex,a10-olinuxino-lime", "allwinner,sun4i-a10";
 
+       aliases {
+               serial0 = &uart0;
+       };
+
+       chosen {
+               stdout-path = "serial0:115200n8";
+       };
+
        leds {
                compatible = "gpio-leds";
                pinctrl-names = "default";
index 6923ca75eb4ac9b98e0787858a9450cfdd0d2739..be6948e416480911bdc16faf1e369c4fc293a0d7 100644 (file)
        model = "LinkSprite pcDuino";
        compatible = "linksprite,a10-pcduino", "allwinner,sun4i-a10";
 
+       aliases {
+               serial0 = &uart0;
+       };
+
+       chosen {
+               stdout-path = "serial0:115200n8";
+       };
 
        leds {
                compatible = "gpio-leds";
index 6c6fef780984f47b15ce62961e1d4ccea98f4318..ceb0582ac90d0c6f9d4f20f04a5d1b5590bcba58 100644 (file)
        model = "Auxtek t004 A10s hdmi tv-stick";
        compatible = "allwinner,auxtek-t004", "allwinner,sun5i-a10s";
 
+       aliases {
+               serial0 = &uart0;
+       };
+
+       chosen {
+               stdout-path = "serial0:115200n8";
+       };
+
        leds {
                compatible = "gpio-leds";
                pinctrl-names = "default";
index b21af87d9eae4e6674690a80110a10f7789808ed..e1a11e1d967de553a2a12d0fd8bb41b31d2ac4b8 100644 (file)
        model = "MK802-A10s";
        compatible = "allwinner,a10s-mk802", "allwinner,sun5i-a10s";
 
+       aliases {
+               serial0 = &uart0;
+       };
+
+       chosen {
+               stdout-path = "serial0:115200n8";
+       };
+
        leds {
                compatible = "gpio-leds";
                pinctrl-names = "default";
index aa88ee88738182035e44adcdb547901d546a7b18..85a8745fffb3d9057a010c5550312135f04d742e 100644 (file)
                serial2 = &uart3;
        };
 
+       chosen {
+               stdout-path = "serial0:115200n8";
+       };
+
        leds {
                compatible = "gpio-leds";
                pinctrl-names = "default";
index d42ce170e6404dc27c423f36c053a8320e6d55d4..9980969d09862b10cb0261ab8660042b654487c7 100644 (file)
        model = "R7 A10s hdmi tv-stick";
        compatible = "allwinner,r7-tv-dongle", "allwinner,sun5i-a10s";
 
+       aliases {
+               serial0 = &uart0;
+       };
+
+       chosen {
+               stdout-path = "serial0:115200n8";
+       };
+
        leds {
                compatible = "gpio-leds";
                pinctrl-names = "default";
index b59255a445bc7627b4a6fd8e059a780c698919b4..adf78a234ffb13987d79da0eeb1aadc4975caad8 100644 (file)
        aliases {
                serial0 = &uart1;
        };
+
+       chosen {
+               stdout-path = "serial0:115200n8";
+       };
 };
 
 &cpu0 {
index bdb0a094223f52946dbd51762bcc236475341ca4..4a00bcee9272ac3d4d70d545256a756e78467f9e 100644 (file)
                serial0 = &uart1;
        };
 
+       chosen {
+               stdout-path = "serial0:115200n8";
+       };
+
        leds {
                compatible = "gpio-leds";
                pinctrl-names = "default";
index d09c57b4905b2e0bfbbe2876d35b1c4b514ced21..44401565533fa303ae34c7c05d167b01b3c38a0b 100644 (file)
                serial0 = &uart1;
        };
 
+       chosen {
+               stdout-path = "serial0:115200n8";
+       };
+
        leds {
                compatible = "gpio-leds";
                pinctrl-names = "default";
index 98a74da02fd7d1b9245fc30ee4a7ae43b344f045..b7b1df4be4603c4d4bfee2bb944e56dc3f127ae2 100644 (file)
        model = "Allwinner A31 APP4 EVB1 Evaluation Board";
        compatible = "allwinner,app4-evb1", "allwinner,sun6i-a31";
 
+       aliases {
+               serial0 = &uart0;
+       };
+
        chosen {
-               bootargs = "earlyprintk console=ttyS0,115200";
+               stdout-path = "serial0:115200n8";
        };
 };
 
index d6e925c381a3455a760ce22bedaef16f8efb8f7e..95d7ec2b2955a05ba7676d500081f5f29d3f4edb 100644 (file)
        model = "WITS A31 Colombus Evaluation Board";
        compatible = "wits,colombus", "allwinner,sun6i-a31";
 
+       aliases {
+               serial0 = &uart0;
+       };
+
        chosen {
-               bootargs = "earlyprintk console=ttyS0,115200";
+               stdout-path = "serial0:115200n8";
        };
 };
 
index 25a3ef49bb71a7fad49a10e07eca135239c59858..1e820bc0c76814295498d4c974d93932aaa02184 100644 (file)
        model = "Merrii A31 Hummingbird";
        compatible = "merrii,a31-hummingbird", "allwinner,sun6i-a31";
 
+       aliases {
+               serial0 = &uart0;
+       };
+
        chosen {
-               bootargs = "earlyprintk console=ttyS0,115200";
+               stdout-path = "serial0:115200n8";
        };
 
        wifi_pwrseq: wifi_pwrseq {
index 049d3a6c09f23283fed26058068054dc51c601a6..ce37d69d34165fe2a9f715f0602b34a0eff76f71 100644 (file)
        model = "Mele I7 Quad top set box";
        compatible = "mele,i7", "allwinner,sun6i-a31";
 
+       aliases {
+               serial0 = &uart0;
+       };
+
        chosen {
-               bootargs = "console=ttyS0,115200";
+               stdout-path = "serial0:115200n8";
        };
 
        leds {
index 5cbbbd696b0026bc6ea9e914dce9057f73aa52cd..29f5fc717b4f8d808e6b75b814c77e3f30b7d1c0 100644 (file)
        model = "Mele M9 / A1000G Quad top set box";
        compatible = "mele,m9", "allwinner,sun6i-a31";
 
+       aliases {
+               serial0 = &uart0;
+       };
+
        chosen {
-               bootargs = "earlyprintk console=ttyS0,115200";
+               stdout-path = "serial0:115200n8";
        };
 
        leds {
index 3f0cc8c58df8beb7c0ffc1c276798b8c94f763aa..68cb2bf3998886f47f47fb33e2054e55e7d9974c 100644 (file)
 / {
        model = "CSQ CS908 top set box";
        compatible = "csq,cs908", "allwinner,sun6i-a31s";
+
+       aliases {
+               serial0 = &uart0;
+       };
+
+       chosen {
+               stdout-path = "serial0:115200n8";
+       };
 };
 
 &ehci0 {
index 6d1faf069e7ee39c07f072ffd83af8b98538b663..b952ac445504c270015a9331883e0827456f1f9f 100644 (file)
                serial2 = &uart7;
        };
 
+       chosen {
+               stdout-path = "serial0:115200n8";
+       };
+
        leds {
                compatible = "gpio-leds";
                pinctrl-names = "default";
index fb89fe7ed21b61e28de41fe18c55b9f3ea217f51..9d9027f25a44012bd5ea5ca177d079f052d78a1d 100644 (file)
        model = "LeMaker Banana Pro";
        compatible = "lemaker,bananapro", "allwinner,sun7i-a20";
 
+       aliases {
+               serial0 = &uart0;
+               serial1 = &uart2;
+               serial2 = &uart7;
+       };
+
+       chosen {
+               stdout-path = "serial0:115200n8";
+       };
+
        leds {
                compatible = "gpio-leds";
                pinctrl-names = "default";
index 8c847eb70cadbd09911e1450a926db89568aeb1e..3c817ac9360bd2d019b83c1b0a60a576d68946e6 100644 (file)
        model = "Cubietech Cubieboard2";
        compatible = "cubietech,cubieboard2", "allwinner,sun7i-a20";
 
+       aliases {
+               serial0 = &uart0;
+       };
+
+       chosen {
+               stdout-path = "serial0:115200n8";
+       };
+
        leds {
                compatible = "gpio-leds";
                pinctrl-names = "default";
index 5af1df795f3cf6bd56c22f98d20b273f6a2d4616..613a19e63e5895879b54aacea604aeaead17f817 100644 (file)
        model = "Cubietech Cubietruck";
        compatible = "cubietech,cubietruck", "allwinner,sun7i-a20";
 
+       aliases {
+               serial0 = &uart0;
+       };
+
+       chosen {
+               stdout-path = "serial0:115200n8";
+       };
+
        leds {
                compatible = "gpio-leds";
                pinctrl-names = "default";
index 8c30e126abe6bbb9616e56a1f12253f625dec614..d3f15c2e721eb58e1f52b1cf5c2480c1cef4d40b 100644 (file)
                serial4 = &uart5;
        };
 
+       chosen {
+               stdout-path = "serial0:115200n8";
+       };
+
        reg_mmc3_vdd: mmc3_vdd {
                compatible = "regulator-fixed";
                pinctrl-names = "default";
index c11574c2b931639640fe51cf85a48db01ce056d5..3f99b3f222a7f41e03fb57ea5a611a913b9a811f 100644 (file)
        model = "I12 / Q5 / QT840A A20 tvbox";
        compatible = "allwinner,i12-tvbox", "allwinner,sun7i-a20";
 
+       aliases {
+               serial0 = &uart0;
+       };
+
+       chosen {
+               stdout-path = "serial0:115200n8";
+       };
+
        leds {
                compatible = "gpio-leds";
                pinctrl-names = "default";
index 44ba67dfb49497803f6d138c86d69001b103130b..f2fb26e7d6e5e0b48e6bac5c3de3a74661930224 100644 (file)
        model = "Mele M3";
        compatible = "mele,m3", "allwinner,sun7i-a20";
 
+       aliases {
+               serial0 = &uart0;
+       };
+
+       chosen {
+               stdout-path = "serial0:115200n8";
+       };
+
        leds {
                compatible = "gpio-leds";
                pinctrl-names = "default";
index 68efd2f33307ea388df72618ef987630e2f44400..6592cb21e32c8d9c921ec2762a5aad777974a81f 100644 (file)
        model = "Olimex A20-OLinuXino-LIME";
        compatible = "olimex,a20-olinuxino-lime", "allwinner,sun7i-a20";
 
+       aliases {
+               serial0 = &uart0;
+       };
+
+       chosen {
+               stdout-path = "serial0:115200n8";
+       };
+
        leds {
                compatible = "gpio-leds";
                pinctrl-names = "default";
index 5e57157f742d1ae6bd26943c801b411e91ca6fa0..3a7a2c2b488cdf3f8c20152135c77d1d715c6e5e 100644 (file)
        model = "Olimex A20-OLinuXino-LIME2";
        compatible = "olimex,a20-olinuxino-lime2", "allwinner,sun7i-a20";
 
+       aliases {
+               serial0 = &uart0;
+       };
+
+       chosen {
+               stdout-path = "serial0:115200n8";
+       };
+
        leds {
                compatible = "gpio-leds";
                pinctrl-names = "default";
index f6f06311e25b09aa49324980b489dd3a510ee2bf..82802b6cb192a9f137b4cb6b9c9c8dfb4f1ab278 100644 (file)
                spi1 = &spi2;
        };
 
+       chosen {
+               stdout-path = "serial0:115200n8";
+       };
+
        leds {
                compatible = "gpio-leds";
                pinctrl-names = "default";
index 632b8a9e092f7935785df54c007c5dc2a0ef405c..810c5f76459519a40d6a4319b8d8b621989fdb5f 100644 (file)
        model = "LinkSprite pcDuino3 Nano";
        compatible = "linksprite,pcduino3-nano", "allwinner,sun7i-a20";
 
+       aliases {
+               serial0 = &uart0;
+       };
+
+       chosen {
+               stdout-path = "serial0:115200n8";
+       };
+
        leds {
                compatible = "gpio-leds";
                pinctrl-names = "default";
index 09ec96b2b7d7586e47f8f41d28173e14e396d7b7..cd05267781fb22a4d3efa6e9fb1dca3e8bb3a8f5 100644 (file)
        model = "LinkSprite pcDuino3";
        compatible = "linksprite,pcduino3", "allwinner,sun7i-a20";
 
+       aliases {
+               serial0 = &uart0;
+       };
+
+       chosen {
+               stdout-path = "serial0:115200n8";
+       };
+
        leds {
                compatible = "gpio-leds";
                pinctrl-names = "default";
index ea133bd3dd87feaf7032d9fb053844780f559ec4..2ad3b09dcb6f59f3f7fe97b77b527e1cbb0565be 100644 (file)
 / {
        model = "Wexler TAB7200";
        compatible = "wexler,tab7200", "allwinner,sun7i-a20";
+
+       aliases {
+               serial0 = &uart0;
+       };
+
+       chosen {
+               stdout-path = "serial0:115200n8";
+       };
 };
 
 &cpu0 {
index 4cb25f8267c8190d186987ab78a4b05fa61068ed..f5658d123f9ba5ed3ddf20875b70bdb82d34eff1 100644 (file)
@@ -64,7 +64,7 @@
        };
 
        chosen {
-               bootargs = "earlyprintk console=ttyS0,115200";
+               stdout-path = "serial0:115200n8";
        };
 };
 
index c6ca116c59d295ea941c44cb1331eca5f0bdbbde..e463138a4d0407b17fe30ee636872140bc2e7104 100644 (file)
@@ -64,7 +64,7 @@
        };
 
        chosen {
-               bootargs = "earlyprintk console=ttyS0,115200";
+               stdout-path = "serial0:115200n8";
        };
 
        leds {