irqchip: renesas-intc: Document DT bindings
Subsystems (3)
PATCH 1/1 irqchip: renesas-intc: Document DT bindings
--- .../interrupt-controller/renesas,intc-irqc.txt | 30 ++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 Documentation/devicetree/bindings/interrupt-controller/renesas,intc-irqc.txt
Documentation/devicetree/bindings/interrupt-controller/renesas,intc-irqc.txt new file +30 -0
@@ -0,0 +1,30 @@ +DT bindings for the R-/SH-Mobile INTC controller + +Required properties: + +- compatible: Must be one of the following: + "renesas,intc" + "renesas,intc-r8a73a4" + "renesas,intc-r8a7790" + "renesas,intc-r8a7791" +- #interrupt-cells: has to be <2>: an interrupt index and flags, as defined in + interrupts.txt in this directory + +Optional properties: + +- any properties, listed in interrupts.txt, and any standard resource allocation + properties + +Example: + + irqc0: interrupt-controller at e61c0000 { + compatible = "renesas,irqc-r8a7790", "renesas,irqc"; + #interrupt-cells = <2>; + interrupt-controller; + reg = <0 0xe61c0000 0 0x200>; + interrupt-parent = <&gic>; + interrupts = <0 0 IRQ_TYPE_LEVEL_HIGH>, + <0 1 IRQ_TYPE_LEVEL_HIGH>, + <0 2 IRQ_TYPE_LEVEL_HIGH>, + <0 3 IRQ_TYPE_LEVEL_HIGH>; + };
Signature · 1 line
1.8.4
PATCH 1/1 irqchip: renesas-intc: Document DT bindings
Quoted 13 lines · Simon Horman
Cc devicetree at vger.kernel.orgSigned-off-by Simon Horman <[email protected]>--- .../interrupt-controller/renesas,intc-irqc.txt | 30 ++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 Documentation/devicetree/bindings/interrupt-controller/renesas,intc-irqc.txtDocumentation/devicetree/bindings/interrupt-controller/renesas,intc-irqc.txt new file +0
-0
Documentation/devicetree/bindings/interrupt-controller/renesas,intc-irqc.txt line 5
Quoted 5 lines
Documentation/devicetree/bindings/interrupt-controller/renesas,intc-irqc.txt new file +5
-0@@ -0,0 +1,30 @@ +DT bindings for the R-/SH-Mobile INTC controller + +Required properties: + +- compatible: Must be one of the following:
s/be/contain/
Documentation/devicetree/bindings/interrupt-controller/renesas,intc-irqc.txt line 11
Quoted 6 lines
Documentation/devicetree/bindings/interrupt-controller/renesas,intc-irqc.txt new file +6
-0+ "renesas,intc" + "renesas,intc-r8a73a4" + "renesas,intc-r8a7790" + "renesas,intc-r8a7791" +- #interrupt-cells: has to be <2>: an interrupt index and flags, as defined in + interrupts.txt in this directory
I assume you also require a reg to be able to poke the MMIO registers.
And an interrupt-controller annotation.
The example has a series of interrupts. How many do you expect, and what do they logically correspond to (are they all equivalent, does one signal errrors, etc)? Are they required or optional?
Documentation/devicetree/bindings/interrupt-controller/renesas,intc-irqc.txt line 16
Quoted 5 lines
Documentation/devicetree/bindings/interrupt-controller/renesas,intc-irqc.txt new file +5
-0+ +Optional properties: + +- any properties, listed in interrupts.txt, and any standard resource allocation + properties
This is a useless description.
What are "resource allocation properties"?
Documentation/devicetree/bindings/interrupt-controller/renesas,intc-irqc.txt line 21
Quoted 5 lines
Documentation/devicetree/bindings/interrupt-controller/renesas,intc-irqc.txt new file +5
-0+ +Example: + + irqc0: interrupt-controller at e61c0000 { + compatible = "renesas,irqc-r8a7790", "renesas,irqc";
Do you always expect "renesas,irqc" to be in the list?
Documentation/devicetree/bindings/interrupt-controller/renesas,intc-irqc.txt line 29
Quoted 8 lines
Documentation/devicetree/bindings/interrupt-controller/renesas,intc-irqc.txt new file +8
-0+ #interrupt-cells = <2>; + interrupt-controller; + reg = <0 0xe61c0000 0 0x200>; + interrupt-parent = <&gic>; + interrupts = <0 0 IRQ_TYPE_LEVEL_HIGH>, + <0 1 IRQ_TYPE_LEVEL_HIGH>, + <0 2 IRQ_TYPE_LEVEL_HIGH>, + <0 3 IRQ_TYPE_LEVEL_HIGH>;
As mentioned above, these were not described at all.
Thanks,
Mark.