Thread (39 messages) 39 messages, 4 authors, 2021-03-12
STALE1916d

[PATCH 13/14] mips: bmips: bcm6368: include and use dt-bindings

From: Álvaro Fernández Rojas <hidden>
Date: 2020-08-12 06:32:04
Also in: linux-mips, lkml
Subsystem: broadcom bmips mips architecture, mips, the rest · Maintainers: Florian Fainelli, Thomas Bogendoerfer, Linus Torvalds

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

Signed-off-by: Álvaro Fernández Rojas <redacted>
---
 arch/mips/boot/dts/brcm/bcm6368.dtsi | 12 ++++++++----
 1 file changed, 8 insertions(+), 4 deletions(-)
diff --git a/arch/mips/boot/dts/brcm/bcm6368.dtsi b/arch/mips/boot/dts/brcm/bcm6368.dtsi
index 449c167dd892..62599d4e6abe 100644
--- a/arch/mips/boot/dts/brcm/bcm6368.dtsi
+++ b/arch/mips/boot/dts/brcm/bcm6368.dtsi
@@ -1,4 +1,8 @@
 // SPDX-License-Identifier: GPL-2.0
+
+#include "dt-bindings/clock/bcm6368-clock.h"
+#include "dt-bindings/interrupt-controller/bcm6368-interrupt-controller.h"
+
 / {
 	#address-cells = <1>;
 	#size-cells = <1>;
@@ -94,7 +98,7 @@ uart0: serial@10000100 {
 			compatible = "brcm,bcm6345-uart";
 			reg = <0x10000100 0x18>;
 			interrupt-parent = <&periph_intc>;
-			interrupts = <2>;
+			interrupts = <BCM6368_IRQ_UART0>;
 			clocks = <&periph_clk>;
 			clock-names = "refclk";
 			status = "disabled";
@@ -104,7 +108,7 @@ uart1: serial@10000120 {
 			compatible = "brcm,bcm6345-uart";
 			reg = <0x10000120 0x18>;
 			interrupt-parent = <&periph_intc>;
-			interrupts = <3>;
+			interrupts = <BCM6368_IRQ_UART1>;
 			clocks = <&periph_clk>;
 			clock-names = "refclk";
 			status = "disabled";
@@ -115,7 +119,7 @@ ehci: usb@10001500 {
 			reg = <0x10001500 0x100>;
 			big-endian;
 			interrupt-parent = <&periph_intc>;
-			interrupts = <7>;
+			interrupts = <BCM6368_IRQ_EHCI>;
 			status = "disabled";
 		};
 
@@ -125,7 +129,7 @@ ohci: usb@10001600 {
 			big-endian;
 			no-big-frame-no;
 			interrupt-parent = <&periph_intc>;
-			interrupts = <5>;
+			interrupts = <BCM6368_IRQ_OHCI>;
 			status = "disabled";
 		};
 	};
-- 
2.28.0
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help