diff options
author | Álvaro Fernández Rojas <noltari@gmail.com> | 2016-04-09 06:57:49 -0400 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2016-05-13 08:02:10 -0400 |
commit | 2d52ee82b4756d11565e94b8c09e77bb8c036a11 (patch) | |
tree | 2f29c73dde2968ca1eb4ef608b992484d3753a9a /arch/mips/boot | |
parent | e3b992d028f828621fa2441b445478fd86651cad (diff) |
MIPS: BMIPS: Improve BCM6368 device tree
- Remove unneeded leds0 alias.
- Switch to bcm6345-l1-intc interrupt controller.
- Use interrupt-controller instead of periph_intc and cpu_intc.
- Add uart1 node.
- Single ohci and ehci nodes.
- Avoid using underscores in node names.
- Rename uart aliases to serial.
- Remove blank line in cpus node.
[ralf@linux-mips.org: fix references in bcm96368mvwg.dts so the file keeps
building.]
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
Cc: f.fainelli@gmail.com
Cc: jogo@openwrt.org
Cc: cernekee@gmail.com
Cc: robh@kernel.org
Cc: simon@fire.lp0.eu
Cc: linux-mips@linux-mips.org
Cc: linux-kernel@vger.kernel.org
Cc: devicetree@vger.kernel.org
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/boot')
-rw-r--r-- | arch/mips/boot/dts/brcm/bcm6368.dtsi | 32 | ||||
-rw-r--r-- | arch/mips/boot/dts/brcm/bcm96368mvwg.dts | 4 |
2 files changed, 22 insertions, 14 deletions
diff --git a/arch/mips/boot/dts/brcm/bcm6368.dtsi b/arch/mips/boot/dts/brcm/bcm6368.dtsi index 1f6b9b5cddb4..d0e3a70b32e2 100644 --- a/arch/mips/boot/dts/brcm/bcm6368.dtsi +++ b/arch/mips/boot/dts/brcm/bcm6368.dtsi | |||
@@ -20,11 +20,10 @@ | |||
20 | device_type = "cpu"; | 20 | device_type = "cpu"; |
21 | reg = <1>; | 21 | reg = <1>; |
22 | }; | 22 | }; |
23 | |||
24 | }; | 23 | }; |
25 | 24 | ||
26 | clocks { | 25 | clocks { |
27 | periph_clk: periph_clk { | 26 | periph_clk: periph-clk { |
28 | compatible = "fixed-clock"; | 27 | compatible = "fixed-clock"; |
29 | #clock-cells = <0>; | 28 | #clock-cells = <0>; |
30 | clock-frequency = <50000000>; | 29 | clock-frequency = <50000000>; |
@@ -32,11 +31,11 @@ | |||
32 | }; | 31 | }; |
33 | 32 | ||
34 | aliases { | 33 | aliases { |
35 | leds0 = &leds0; | 34 | serial0 = &uart0; |
36 | uart0 = &uart0; | 35 | serial1 = &uart1; |
37 | }; | 36 | }; |
38 | 37 | ||
39 | cpu_intc: cpu_intc { | 38 | cpu_intc: interrupt-controller { |
40 | #address-cells = <0>; | 39 | #address-cells = <0>; |
41 | compatible = "mti,cpu-interrupt-controller"; | 40 | compatible = "mti,cpu-interrupt-controller"; |
42 | 41 | ||
@@ -64,16 +63,16 @@ | |||
64 | mask = <0x1>; | 63 | mask = <0x1>; |
65 | }; | 64 | }; |
66 | 65 | ||
67 | periph_intc: periph_intc@10000020 { | 66 | periph_intc: interrupt-controller@10000020 { |
68 | compatible = "brcm,bcm3380-l2-intc"; | 67 | compatible = "brcm,bcm6345-l1-intc"; |
69 | reg = <0x10000024 0x4 0x1000002c 0x4>, | 68 | reg = <0x10000020 0x10>, |
70 | <0x10000020 0x4 0x10000028 0x4>; | 69 | <0x10000030 0x10>; |
71 | 70 | ||
72 | interrupt-controller; | 71 | interrupt-controller; |
73 | #interrupt-cells = <1>; | 72 | #interrupt-cells = <1>; |
74 | 73 | ||
75 | interrupt-parent = <&cpu_intc>; | 74 | interrupt-parent = <&cpu_intc>; |
76 | interrupts = <2>; | 75 | interrupts = <2>, <3>; |
77 | }; | 76 | }; |
78 | 77 | ||
79 | leds0: led-controller@100000d0 { | 78 | leds0: led-controller@100000d0 { |
@@ -93,7 +92,16 @@ | |||
93 | status = "disabled"; | 92 | status = "disabled"; |
94 | }; | 93 | }; |
95 | 94 | ||
96 | ehci0: usb@10001500 { | 95 | uart1: serial@10000120 { |
96 | compatible = "brcm,bcm6345-uart"; | ||
97 | reg = <0x10000120 0x18>; | ||
98 | interrupt-parent = <&periph_intc>; | ||
99 | interrupts = <3>; | ||
100 | clocks = <&periph_clk>; | ||
101 | status = "disabled"; | ||
102 | }; | ||
103 | |||
104 | ehci: usb@10001500 { | ||
97 | compatible = "brcm,bcm6368-ehci", "generic-ehci"; | 105 | compatible = "brcm,bcm6368-ehci", "generic-ehci"; |
98 | reg = <0x10001500 0x100>; | 106 | reg = <0x10001500 0x100>; |
99 | big-endian; | 107 | big-endian; |
@@ -102,7 +110,7 @@ | |||
102 | status = "disabled"; | 110 | status = "disabled"; |
103 | }; | 111 | }; |
104 | 112 | ||
105 | ohci0: usb@10001600 { | 113 | ohci: usb@10001600 { |
106 | compatible = "brcm,bcm6368-ohci", "generic-ohci"; | 114 | compatible = "brcm,bcm6368-ohci", "generic-ohci"; |
107 | reg = <0x10001600 0x100>; | 115 | reg = <0x10001600 0x100>; |
108 | big-endian; | 116 | big-endian; |
diff --git a/arch/mips/boot/dts/brcm/bcm96368mvwg.dts b/arch/mips/boot/dts/brcm/bcm96368mvwg.dts index 0e890c28fe5c..8c71c6845730 100644 --- a/arch/mips/boot/dts/brcm/bcm96368mvwg.dts +++ b/arch/mips/boot/dts/brcm/bcm96368mvwg.dts | |||
@@ -22,10 +22,10 @@ | |||
22 | }; | 22 | }; |
23 | 23 | ||
24 | /* FIXME: need to set up USB_CTRL registers first */ | 24 | /* FIXME: need to set up USB_CTRL registers first */ |
25 | &ehci0 { | 25 | &ehci { |
26 | status = "disabled"; | 26 | status = "disabled"; |
27 | }; | 27 | }; |
28 | 28 | ||
29 | &ohci0 { | 29 | &ohci { |
30 | status = "disabled"; | 30 | status = "disabled"; |
31 | }; | 31 | }; |