x86: Clean up the board dts files
authorBin Meng <bmeng.cn@gmail.com>
Wed, 24 Dec 2014 05:06:39 +0000 (13:06 +0800)
committerSimon Glass <sjg@chromium.org>
Tue, 13 Jan 2015 01:03:40 +0000 (17:03 -0800)
This commits cleans up the board dts files.

- Correct the serial port register size to 8
- Remove the misleading status = "disabled" statement in the
  serial.dtsi
- Move the inclusion of skeleton.dtsi from serial.dtsi to board
  dts files
- Let the board dts file define stdout-path in the chosen node
- Remove device nodes in board dts files thar are duplicated to
  skeleton.dtsi

Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
Acked-by: Simon Glass <sjg@chromium.org>
arch/x86/dts/crownbay.dts
arch/x86/dts/link.dts
arch/x86/dts/serial.dtsi

index c3e112f717990c2eca445de89ef2034f4b5cbf63..97f7a525aa907e6c9d10b95736222c928e71d0e2 100644 (file)
@@ -6,11 +6,10 @@
 
 /dts-v1/;
 
+/include/ "skeleton.dtsi"
 /include/ "serial.dtsi"
 
 / {
-       #address-cells = <1>;
-       #size-cells = <1>;
        model = "Intel Crown Bay";
        compatible = "intel,crownbay", "intel,queensbay";
 
                bank-name = "B";
        };
 
-       serial {
-               reg = <0x3f8 8>;
-               clock-frequency = <115200>;
+       chosen {
+               stdout-path = "/serial";
        };
 
-       chosen { };
-       memory { device_type = "memory"; reg = <0 0>; };
-
        spi {
                #address-cells = <1>;
                #size-cells = <0>;
index c6b7d82b45022d34a992ee213b57444a783f9886..107af60004c4d811671dca927fa20520509151ff 100644 (file)
@@ -1,10 +1,9 @@
 /dts-v1/;
 
+/include/ "skeleton.dtsi"
 /include/ "serial.dtsi"
 
 / {
-       #address-cells = <1>;
-       #size-cells = <1>;
        model = "Google Link";
        compatible = "google,link", "intel,celeron-ivybridge";
 
                bank-name = "C";
        };
 
-       serial {
-               reg = <0x3f8 8>;
-               clock-frequency = <115200>;
+       chosen {
+               stdout-path = "/serial";
        };
 
-       chosen { };
-       memory { device_type = "memory"; reg = <0 0>; };
-
        spd {
                compatible = "memory-spd";
                #address-cells = <1>;
index 65a93acd3d56a10b07ab14bf6bdaf7ba51827feb..ebdda763dfed848c49cddbe35ad334159c40f538 100644 (file)
@@ -1,17 +1,10 @@
-/include/ "skeleton.dtsi"
-
 / {
-       chosen {
-               stdout-path = "/serial";
-       };
-
        serial {
                compatible = "x86-uart";
-               reg = <0x3f8 0x10>;
+               reg = <0x3f8 8>;
                reg-shift = <0>;
                io-mapped = <1>;
                multiplier = <1>;
                baudrate = <115200>;
-               status = "disabled";
        };
 };