diff options
author | Jason Cooper <jason@lakedaemon.net> | 2012-03-14 21:00:27 -0400 |
---|---|---|
committer | Jason Cooper <jason@lakedaemon.net> | 2012-03-16 00:28:42 -0400 |
commit | 163f2cea673a4ae831ad2cd26d8f01977c3add93 (patch) | |
tree | c74d63bdf53b3b64c46a8af9a7eff34b77915a05 | |
parent | 6fa6b8781fbd5e6cd5e313c5e3bdd73b426d8f30 (diff) |
ARM: kirkwood: fdt: define uart[01] as disabled, enable uart0
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>
-rw-r--r-- | arch/arm/boot/dts/kirkwood-dreamplug.dts | 11 | ||||
-rw-r--r-- | arch/arm/boot/dts/kirkwood.dtsi | 26 |
2 files changed, 30 insertions, 7 deletions
diff --git a/arch/arm/boot/dts/kirkwood-dreamplug.dts b/arch/arm/boot/dts/kirkwood-dreamplug.dts index 333f11b85504..a5376b84227f 100644 --- a/arch/arm/boot/dts/kirkwood-dreamplug.dts +++ b/arch/arm/boot/dts/kirkwood-dreamplug.dts | |||
@@ -15,11 +15,10 @@ | |||
15 | bootargs = "console=ttyS0,115200n8 earlyprintk"; | 15 | bootargs = "console=ttyS0,115200n8 earlyprintk"; |
16 | }; | 16 | }; |
17 | 17 | ||
18 | serial@f1012000 { | 18 | ocp@f1000000 { |
19 | compatible = "ns16550a"; | 19 | serial@12000 { |
20 | reg = <0xf1012000 0x100>; | 20 | clock-frequency = <200000000>; |
21 | reg-shift = <2>; | 21 | status = "ok"; |
22 | interrupts = <33>; | 22 | }; |
23 | clock-frequency = <200000000>; | ||
24 | }; | 23 | }; |
25 | }; | 24 | }; |
diff --git a/arch/arm/boot/dts/kirkwood.dtsi b/arch/arm/boot/dts/kirkwood.dtsi index 702b9555d019..825310b6d366 100644 --- a/arch/arm/boot/dts/kirkwood.dtsi +++ b/arch/arm/boot/dts/kirkwood.dtsi | |||
@@ -2,5 +2,29 @@ | |||
2 | 2 | ||
3 | / { | 3 | / { |
4 | compatible = "mrvl,kirkwood"; | 4 | compatible = "mrvl,kirkwood"; |
5 | }; | ||
6 | 5 | ||
6 | ocp@f1000000 { | ||
7 | compatible = "simple-bus"; | ||
8 | ranges = <0 0xf1000000 0x1000000>; | ||
9 | #address-cells = <1>; | ||
10 | #size-cells = <1>; | ||
11 | |||
12 | serial@12000 { | ||
13 | compatible = "ns16550a"; | ||
14 | reg = <0x12000 0x100>; | ||
15 | reg-shift = <2>; | ||
16 | interrupts = <33>; | ||
17 | /* set clock-frequency in board dts */ | ||
18 | status = "disabled"; | ||
19 | }; | ||
20 | |||
21 | serial@12100 { | ||
22 | compatible = "ns16550a"; | ||
23 | reg = <0x12100 0x100>; | ||
24 | reg-shift = <2>; | ||
25 | interrupts = <34>; | ||
26 | /* set clock-frequency in board dts */ | ||
27 | status = "disabled"; | ||
28 | }; | ||
29 | }; | ||
30 | }; | ||