[PATCH 10/14] mips: bmips: bcm6328: include and use dt-bindings

From: Álvaro Fernández Rojas
Date: Wed Aug 12 2020 - 02:32:09 EST


Now that there are proper device tree bindings we can start using them.

Signed-off-by: Álvaro Fernández Rojas <noltari@xxxxxxxxx>
---
arch/mips/boot/dts/brcm/bcm6328.dtsi | 12 ++++++++----
1 file changed, 8 insertions(+), 4 deletions(-)

diff --git a/arch/mips/boot/dts/brcm/bcm6328.dtsi b/arch/mips/boot/dts/brcm/bcm6328.dtsi
index af860d06def6..1f84f6b05f88 100644
--- a/arch/mips/boot/dts/brcm/bcm6328.dtsi
+++ b/arch/mips/boot/dts/brcm/bcm6328.dtsi
@@ -1,4 +1,8 @@
// SPDX-License-Identifier: GPL-2.0
+
+#include "dt-bindings/clock/bcm6328-clock.h"
+#include "dt-bindings/interrupt-controller/bcm6328-interrupt-controller.h"
+
/ {
#address-cells = <1>;
#size-cells = <1>;
@@ -73,7 +77,7 @@ uart0: serial@10000100 {
compatible = "brcm,bcm6345-uart";
reg = <0x10000100 0x18>;
interrupt-parent = <&periph_intc>;
- interrupts = <28>;
+ interrupts = <BCM6328_IRQ_UART0>;
clocks = <&periph_clk>;
clock-names = "refclk";
status = "disabled";
@@ -83,7 +87,7 @@ uart1: serial@10000120 {
compatible = "brcm,bcm6345-uart";
reg = <0x10000120 0x18>;
interrupt-parent = <&periph_intc>;
- interrupts = <39>;
+ interrupts = <BCM6328_IRQ_UART1>;
clocks = <&periph_clk>;
clock-names = "refclk";
status = "disabled";
@@ -115,7 +119,7 @@ ehci: usb@10002500 {
reg = <0x10002500 0x100>;
big-endian;
interrupt-parent = <&periph_intc>;
- interrupts = <42>;
+ interrupts = <BCM6328_IRQ_EHCI>;
status = "disabled";
};

@@ -125,7 +129,7 @@ ohci: usb@10002600 {
big-endian;
no-big-frame-no;
interrupt-parent = <&periph_intc>;
- interrupts = <41>;
+ interrupts = <BCM6328_IRQ_OHCI>;
status = "disabled";
};
};
--
2.28.0