Skip to contentSkip to conversation

MIPS: devicetree: fix cpu interrupt controller node-names

PATCH In review Antony Pavlov 2 participants 3 messages May 23, 2016 – May 24, 2016

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 MIPS: devicetree: fix cpu interrupt controller node-names

Here is the quote from [1]:

The unit-address must match the first address specified in the reg property of the node. If the node has no reg property, the @ and unit-address must be omitted and the node-name alone differentiates the node from other nodes at the same level

This patch adjusts MIPS dts-files and devicetree binding documentation in accordance with [1].

[1] Power.org(tm) Standard for Embedded Power Architecture(tm) Platform Requirements (ePAPR). Version 1.1 – 08 April 2011. Chapter 2.2.1.1 Node Name Requirements

Cc Ralf Baechle <[email protected]>
Cc Paul Burton <[email protected]>
Cc Zubair Lutfullah Kakakhel <[email protected]>
Cc Rob Herring <[email protected]>
Cc Pawel Moll <[email protected]>
Cc Mark Rutland <[email protected]>
Cc Ian Campbell <[email protected]>
Cc Kumar Gala <[email protected]>
---
 Documentation/devicetree/bindings/mips/cpu_irq.txt | 2 +-
 arch/mips/boot/dts/ingenic/jz4740.dtsi             | 2 +-
 arch/mips/boot/dts/ralink/mt7620a.dtsi             | 2 +-
 arch/mips/boot/dts/ralink/rt2880.dtsi              | 2 +-
 arch/mips/boot/dts/ralink/rt3050.dtsi              | 2 +-
 arch/mips/boot/dts/ralink/rt3883.dtsi              | 2 +-
 arch/mips/boot/dts/xilfpga/nexys4ddr.dts           | 2 +-
 7 files changed, 7 insertions(+), 7 deletions(-)
Documentation/devicetree/bindings/mips/cpu_irq.txt +1 -1
index fc149f3..f080f06 100644
@@ -13,7 +13,7 @@ Required properties:
 - compatible : Should be "mti,cpu-interrupt-controller"
 
 Example devicetree:
-	cpu-irq: cpu-irq@0 {
+	cpu-irq: cpu-irq {
 		#address-cells = <0>;
 
 		interrupt-controller;
arch/mips/boot/dts/ingenic/jz4740.dtsi +1 -1
index 4a9c8f2..f6ae6ed 100644
@@ -5,7 +5,7 @@
 	#size-cells = <1>;
 	compatible = "ingenic,jz4740";
 
-	cpuintc: interrupt-controller@0 {
+	cpuintc: interrupt-controller {
 		#address-cells = <0>;
 		#interrupt-cells = <1>;
 		interrupt-controller;
arch/mips/boot/dts/ralink/mt7620a.dtsi +1 -1
index 08bf24f..793c0c7 100644
@@ -9,7 +9,7 @@
 		};
 	};
 
-	cpuintc: cpuintc@0 {
+	cpuintc: cpuintc {
 		#address-cells = <0>;
 		#interrupt-cells = <1>;
 		interrupt-controller;
arch/mips/boot/dts/ralink/rt2880.dtsi +1 -1
index 182afde..fb2faef 100644
@@ -9,7 +9,7 @@
 		};
 	};
 
-	cpuintc: cpuintc@0 {
+	cpuintc: cpuintc {
 		#address-cells = <0>;
 		#interrupt-cells = <1>;
 		interrupt-controller;
arch/mips/boot/dts/ralink/rt3050.dtsi +1 -1
index e3203d4..d3cb57f 100644
@@ -9,7 +9,7 @@
 		};
 	};
 
-	cpuintc: cpuintc@0 {
+	cpuintc: cpuintc {
 		#address-cells = <0>;
 		#interrupt-cells = <1>;
 		interrupt-controller;
arch/mips/boot/dts/ralink/rt3883.dtsi +1 -1
index 3b131dd..3d6fc9a 100644
@@ -9,7 +9,7 @@
 		};
 	};
 
-	cpuintc: cpuintc@0 {
+	cpuintc: cpuintc {
 		#address-cells = <0>;
 		#interrupt-cells = <1>;
 		interrupt-controller;
arch/mips/boot/dts/xilfpga/nexys4ddr.dts +1 -1
index 686ebd1..48d2112 100644
@@ -10,7 +10,7 @@
 		reg = <0x0 0x08000000>;
 	};
 
-	cpuintc: interrupt-controller@0 {
+	cpuintc: interrupt-controller {
 		#address-cells = <0>;
 		#interrupt-cells = <1>;
 		interrupt-controller;
Signature · 1 line
2.7.0
Acked-by on v1 1/1
#1 lore raw
Quoted 7 lines · Antony Pavlov

Here is the quote from [1]:

The unit-address must match the first address specified in the reg property of the node. If the node has no reg property, the @ and unit-address must be omitted and the node-name alone differentiates the node from other nodes at the same level

Quoted 6 lines

This patch adjusts MIPS dts-files and devicetree binding documentation in accordance with [1].

[1] Power.org(tm) Standard for Embedded Power Architecture(tm) Platform Requirements (ePAPR). Version 1.1 – 08 April 2011. Chapter 2.2.1.1 Node Name Requirements

FYI, you can reference "the Devicetree Spec" now: devicetree.org

Quoted 21 lines
Cc Ralf Baechle <[email protected]>
Cc Paul Burton <[email protected]>
Cc Zubair Lutfullah Kakakhel <[email protected]>
Cc Rob Herring <[email protected]>
Cc Pawel Moll <[email protected]>
Cc Mark Rutland <[email protected]>
Cc Ian Campbell <[email protected]>
Cc Kumar Gala <[email protected]>
---
 Documentation/devicetree/bindings/mips/cpu_irq.txt | 2 +-
 arch/mips/boot/dts/ingenic/jz4740.dtsi             | 2 +-
 arch/mips/boot/dts/ralink/mt7620a.dtsi             | 2 +-
 arch/mips/boot/dts/ralink/rt2880.dtsi              | 2 +-
 arch/mips/boot/dts/ralink/rt3050.dtsi              | 2 +-
 arch/mips/boot/dts/ralink/rt3883.dtsi              | 2 +-
 arch/mips/boot/dts/xilfpga/nexys4ddr.dts           | 2 +-
 7 files changed, 7 insertions(+), 7 deletions(-)
#2 lore raw
Quoted 8 lines · On Mon, 23 May 2016 10:47:16 -0500 Rob Herring <[email protected]> wrote:
Quoted 7 lines · Antony Pavlov

Here is the quote from [1]:

The unit-address must match the first address specified in the reg property of the node. If the node has no reg property, the @ and unit-address must be omitted and the node-name alone differentiates the node from other nodes at the same level

Quoted 8 lines
Quoted 6 lines

This patch adjusts MIPS dts-files and devicetree binding documentation in accordance with [1].

[1] Power.org(tm) Standard for Embedded Power Architecture(tm) Platform Requirements (ePAPR). Version 1.1 – 08 April 2011. Chapter 2.2.1.1 Node Name Requirements

FYI, you can reference "the Devicetree Spec" now: devicetree.org

Thanks for your note! Last time I visited devicetree.org in Jan 2015. Now I see that the devicetree.org site has changed dramaticaly, e.g. it does not use Mediawiki anymore.

Alas some important links from the http://www.devicetree.org/specifications/ page are broken:

* http://www.devicetree.org/specifications-pdf
* https://github.com/devicetree-org/devicetree-specification-released

Anyway I have got a prerelease specification version from github:

https://raw.githubusercontent.com/devicetree-org/devicetree-specification-released/master/prerelease/devicetree-specification-v0.1-pre1-20160429.pdf

Quoted 23 lines
Quoted 21 lines
Cc Ralf Baechle <[email protected]>
Cc Paul Burton <[email protected]>
Cc Zubair Lutfullah Kakakhel <[email protected]>
Cc Rob Herring <[email protected]>
Cc Pawel Moll <[email protected]>
Cc Mark Rutland <[email protected]>
Cc Ian Campbell <[email protected]>
Cc Kumar Gala <[email protected]>
---
 Documentation/devicetree/bindings/mips/cpu_irq.txt | 2 +-
 arch/mips/boot/dts/ingenic/jz4740.dtsi             | 2 +-
 arch/mips/boot/dts/ralink/mt7620a.dtsi             | 2 +-
 arch/mips/boot/dts/ralink/rt2880.dtsi              | 2 +-
 arch/mips/boot/dts/ralink/rt3050.dtsi              | 2 +-
 arch/mips/boot/dts/ralink/rt3883.dtsi              | 2 +-
 arch/mips/boot/dts/xilfpga/nexys4ddr.dts           | 2 +-
 7 files changed, 7 insertions(+), 7 deletions(-)
Signature · 3 lines
-- 
Best regards,
  Antony Pavlov