Commit 2d52ee82 authored by Álvaro Fernández Rojas's avatar Álvaro Fernández Rojas Committed by Ralf Baechle

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: default avatarÁ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: default avatarRalf Baechle <ralf@linux-mips.org>
parent e3b992d0
...@@ -20,11 +20,10 @@ cpu@1 { ...@@ -20,11 +20,10 @@ cpu@1 {
device_type = "cpu"; device_type = "cpu";
reg = <1>; reg = <1>;
}; };
}; };
clocks { clocks {
periph_clk: periph_clk { periph_clk: periph-clk {
compatible = "fixed-clock"; compatible = "fixed-clock";
#clock-cells = <0>; #clock-cells = <0>;
clock-frequency = <50000000>; clock-frequency = <50000000>;
...@@ -32,11 +31,11 @@ periph_clk: periph_clk { ...@@ -32,11 +31,11 @@ periph_clk: periph_clk {
}; };
aliases { aliases {
leds0 = &leds0; serial0 = &uart0;
uart0 = &uart0; serial1 = &uart1;
}; };
cpu_intc: cpu_intc { cpu_intc: interrupt-controller {
#address-cells = <0>; #address-cells = <0>;
compatible = "mti,cpu-interrupt-controller"; compatible = "mti,cpu-interrupt-controller";
...@@ -64,16 +63,16 @@ reboot: syscon-reboot@10000008 { ...@@ -64,16 +63,16 @@ reboot: syscon-reboot@10000008 {
mask = <0x1>; mask = <0x1>;
}; };
periph_intc: periph_intc@10000020 { periph_intc: interrupt-controller@10000020 {
compatible = "brcm,bcm3380-l2-intc"; compatible = "brcm,bcm6345-l1-intc";
reg = <0x10000024 0x4 0x1000002c 0x4>, reg = <0x10000020 0x10>,
<0x10000020 0x4 0x10000028 0x4>; <0x10000030 0x10>;
interrupt-controller; interrupt-controller;
#interrupt-cells = <1>; #interrupt-cells = <1>;
interrupt-parent = <&cpu_intc>; interrupt-parent = <&cpu_intc>;
interrupts = <2>; interrupts = <2>, <3>;
}; };
leds0: led-controller@100000d0 { leds0: led-controller@100000d0 {
...@@ -93,7 +92,16 @@ uart0: serial@10000100 { ...@@ -93,7 +92,16 @@ uart0: serial@10000100 {
status = "disabled"; status = "disabled";
}; };
ehci0: usb@10001500 { uart1: serial@10000120 {
compatible = "brcm,bcm6345-uart";
reg = <0x10000120 0x18>;
interrupt-parent = <&periph_intc>;
interrupts = <3>;
clocks = <&periph_clk>;
status = "disabled";
};
ehci: usb@10001500 {
compatible = "brcm,bcm6368-ehci", "generic-ehci"; compatible = "brcm,bcm6368-ehci", "generic-ehci";
reg = <0x10001500 0x100>; reg = <0x10001500 0x100>;
big-endian; big-endian;
...@@ -102,7 +110,7 @@ ehci0: usb@10001500 { ...@@ -102,7 +110,7 @@ ehci0: usb@10001500 {
status = "disabled"; status = "disabled";
}; };
ohci0: usb@10001600 { ohci: usb@10001600 {
compatible = "brcm,bcm6368-ohci", "generic-ohci"; compatible = "brcm,bcm6368-ohci", "generic-ohci";
reg = <0x10001600 0x100>; reg = <0x10001600 0x100>;
big-endian; big-endian;
......
...@@ -22,10 +22,10 @@ &uart0 { ...@@ -22,10 +22,10 @@ &uart0 {
}; };
/* FIXME: need to set up USB_CTRL registers first */ /* FIXME: need to set up USB_CTRL registers first */
&ehci0 { &ehci {
status = "disabled"; status = "disabled";
}; };
&ohci0 { &ohci {
status = "disabled"; status = "disabled";
}; };
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment