aboutsummaryrefslogtreecommitdiffstats
path: root/arch/mips/boot
diff options
context:
space:
mode:
authorÁlvaro Fernández Rojas <noltari@gmail.com>2016-04-09 06:57:48 -0400
committerRalf Baechle <ralf@linux-mips.org>2016-05-13 08:02:09 -0400
commite3b992d028f828621fa2441b445478fd86651cad (patch)
treeddb02c2ad9e40eca7b04d03a3ff3977b5feb579f /arch/mips/boot
parent3652acd2315562614826eba7d38fae51389636f9 (diff)
MIPS: BMIPS: Improve BCM6328 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, ehci and ohci nodes. - Refactor syscon and syscon-reboot. - Avoid using underscores in node names. - Rename uart aliases to serial. 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 Patchwork: https://patchwork.linux-mips.org/patch/13043/ Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/boot')
-rw-r--r--arch/mips/boot/dts/brcm/bcm6328.dtsi50
1 files changed, 39 insertions, 11 deletions
diff --git a/arch/mips/boot/dts/brcm/bcm6328.dtsi b/arch/mips/boot/dts/brcm/bcm6328.dtsi
index 9d19236f53e7..5633b9d90f55 100644
--- a/arch/mips/boot/dts/brcm/bcm6328.dtsi
+++ b/arch/mips/boot/dts/brcm/bcm6328.dtsi
@@ -23,7 +23,7 @@
23 }; 23 };
24 24
25 clocks { 25 clocks {
26 periph_clk: periph_clk { 26 periph_clk: periph-clk {
27 compatible = "fixed-clock"; 27 compatible = "fixed-clock";
28 #clock-cells = <0>; 28 #clock-cells = <0>;
29 clock-frequency = <50000000>; 29 clock-frequency = <50000000>;
@@ -31,11 +31,11 @@
31 }; 31 };
32 32
33 aliases { 33 aliases {
34 leds0 = &leds0; 34 serial0 = &uart0;
35 uart0 = &uart0; 35 serial1 = &uart1;
36 }; 36 };
37 37
38 cpu_intc: cpu_intc { 38 cpu_intc: interrupt-controller {
39 #address-cells = <0>; 39 #address-cells = <0>;
40 compatible = "mti,cpu-interrupt-controller"; 40 compatible = "mti,cpu-interrupt-controller";
41 41
@@ -50,16 +50,16 @@
50 compatible = "simple-bus"; 50 compatible = "simple-bus";
51 ranges; 51 ranges;
52 52
53 periph_intc: periph_intc@10000020 { 53 periph_intc: interrupt-controller@10000020 {
54 compatible = "brcm,bcm3380-l2-intc"; 54 compatible = "brcm,bcm6345-l1-intc";
55 reg = <0x10000024 0x4 0x1000002c 0x4>, 55 reg = <0x10000020 0x10>,
56 <0x10000020 0x4 0x10000028 0x4>; 56 <0x10000030 0x10>;
57 57
58 interrupt-controller; 58 interrupt-controller;
59 #interrupt-cells = <1>; 59 #interrupt-cells = <1>;
60 60
61 interrupt-parent = <&cpu_intc>; 61 interrupt-parent = <&cpu_intc>;
62 interrupts = <2>; 62 interrupts = <2>, <3>;
63 }; 63 };
64 64
65 uart0: serial@10000100 { 65 uart0: serial@10000100 {
@@ -71,13 +71,22 @@
71 status = "disabled"; 71 status = "disabled";
72 }; 72 };
73 73
74 timer: timer@10000040 { 74 uart1: serial@10000120 {
75 compatible = "brcm,bcm6345-uart";
76 reg = <0x10000120 0x18>;
77 interrupt-parent = <&periph_intc>;
78 interrupts = <39>;
79 clocks = <&periph_clk>;
80 status = "disabled";
81 };
82
83 timer: syscon@10000040 {
75 compatible = "syscon"; 84 compatible = "syscon";
76 reg = <0x10000040 0x2c>; 85 reg = <0x10000040 0x2c>;
77 native-endian; 86 native-endian;
78 }; 87 };
79 88
80 reboot { 89 reboot: syscon-reboot@10000068 {
81 compatible = "syscon-reboot"; 90 compatible = "syscon-reboot";
82 regmap = <&timer>; 91 regmap = <&timer>;
83 offset = <0x28>; 92 offset = <0x28>;
@@ -91,5 +100,24 @@
91 reg = <0x10000800 0x24>; 100 reg = <0x10000800 0x24>;
92 status = "disabled"; 101 status = "disabled";
93 }; 102 };
103
104 ehci: usb@10002500 {
105 compatible = "brcm,bcm6328-ehci", "generic-ehci";
106 reg = <0x10002500 0x100>;
107 big-endian;
108 interrupt-parent = <&periph_intc>;
109 interrupts = <42>;
110 status = "disabled";
111 };
112
113 ohci: usb@10002600 {
114 compatible = "brcm,bcm6328-ohci", "generic-ohci";
115 reg = <0x10002600 0x100>;
116 big-endian;
117 no-big-frame-no;
118 interrupt-parent = <&periph_intc>;
119 interrupts = <41>;
120 status = "disabled";
121 };
94 }; 122 };
95}; 123};