ARM: kirkwood: fdt: define uart[01] as disabled, enable uart0
authorJason Cooper <jason@lakedaemon.net>
Thu, 15 Mar 2012 01:00:27 +0000 (01:00 +0000)
committerJason Cooper <jason@lakedaemon.net>
Fri, 16 Mar 2012 04:28:42 +0000 (04:28 +0000)
Define both uarts in kirkwood.dtsi as they are common to all kirkwood
SoCs.  Each board may enable all or none of them, so they are disabled
by default.  uart0 is enabled for the dreamplug.

tclk can vary for each board, so we leave it undefined in the kirkwood
dtsi.  Each board can then set it as appropriate when enabling the uart.

Signed-off-by: Jason Cooper <jason@lakedaemon.net>
arch/arm/boot/dts/kirkwood-dreamplug.dts
arch/arm/boot/dts/kirkwood.dtsi

index 333f11b85504ced14f5f59edf1db37903dcbe153..a5376b84227f73158a75c2244217e5ef63d70f3e 100644 (file)
                bootargs = "console=ttyS0,115200n8 earlyprintk";
        };
 
-       serial@f1012000 {
-               compatible = "ns16550a";
-               reg = <0xf1012000 0x100>;
-               reg-shift = <2>;
-               interrupts = <33>;
-               clock-frequency = <200000000>;
+       ocp@f1000000 {
+               serial@12000 {
+                       clock-frequency = <200000000>;
+                       status = "ok";
+               };
        };
 };
index 702b9555d01989261d1ac7813e424a5526568937..825310b6d3660be3d548e952933fab3d7f96e90e 100644 (file)
@@ -2,5 +2,29 @@
 
 / {
        compatible = "mrvl,kirkwood";
-};
 
+       ocp@f1000000 {
+               compatible = "simple-bus";
+               ranges = <0 0xf1000000 0x1000000>;
+               #address-cells = <1>;
+               #size-cells = <1>;
+
+               serial@12000 {
+                       compatible = "ns16550a";
+                       reg = <0x12000 0x100>;
+                       reg-shift = <2>;
+                       interrupts = <33>;
+                       /* set clock-frequency in board dts */
+                       status = "disabled";
+               };
+
+               serial@12100 {
+                       compatible = "ns16550a";
+                       reg = <0x12100 0x100>;
+                       reg-shift = <2>;
+                       interrupts = <34>;
+                       /* set clock-frequency in board dts */
+                       status = "disabled";
+               };
+       };
+};