dt-bindings: irqchip: convert st,stih407-irq-syscfg to DT schema
Subsystems (2)
PATCH v4 1/1 dt-bindings: irqchip: convert st,stih407-irq-syscfg to DT schema
Convert deprecated format to DT schema format.
---
Changes in v2:
- Added Conor's r-by
- Removed quotes surrounding $refs
- Hardcoded 'st,invert-ext' possible values
Changes in v3:
- Fixed enum syntax warnings
- Removed reference to driver in favor of device
Changes in v4:
- Make clearer description for "st,invert-ext" property
- Handle better bitwise logic
--- .../st,sti-irq-syscfg.txt | 30 --------- .../st,stih407-irq-syscfg.yaml | 65 +++++++++++++++++++ 2 files changed, 65 insertions(+), 30 deletions(-) delete mode 100644 Documentation/devicetree/bindings/interrupt-controller/st,sti-irq-syscfg.txt create mode 100644 Documentation/devicetree/bindings/interrupt-controller/st,stih407-irq-syscfg.yaml
Documentation/devicetree/bindings/interrupt-controller/st,sti-irq-syscfg.txt deleted +0 -30
@@ -1,30 +0,0 @@ -STMicroelectronics STi System Configuration Controlled IRQs ------------------------------------------------------------ - -On STi based systems; External, CTI (Core Sight), PMU (Performance Management), -and PL310 L2 Cache IRQs are controlled using System Configuration registers. -This driver is used to unmask them prior to use. - -Required properties: -- compatible : Should be "st,stih407-irq-syscfg" -- st,syscfg : Phandle to Cortex-A9 IRQ system config registers -- st,irq-device : Array of IRQs to enable - should be 2 in length -- st,fiq-device : Array of FIQs to enable - should be 2 in length - -Optional properties: -- st,invert-ext : External IRQs can be inverted at will. This property inverts - these IRQs using bitwise logic. A number of defines have been - provided for convenience: - ST_IRQ_SYSCFG_EXT_1_INV - ST_IRQ_SYSCFG_EXT_2_INV - ST_IRQ_SYSCFG_EXT_3_INV -Example: - -irq-syscfg { - compatible = "st,stih407-irq-syscfg"; - st,syscfg = <&syscfg_cpu>; - st,irq-device = <ST_IRQ_SYSCFG_PMU_0>, - <ST_IRQ_SYSCFG_PMU_1>; - st,fiq-device = <ST_IRQ_SYSCFG_DISABLED>, - <ST_IRQ_SYSCFG_DISABLED>; -};
Documentation/devicetree/bindings/interrupt-controller/st,stih407-irq-syscfg.yaml new file +65 -0
65 lines not on this page · raw message
Signature · 1 line
2.42.0
Quoted 17 lines · Raphael Gallais-Pou
Convert deprecated format to DT schema format.
Signed-off-by Raphael Gallais-Pou <[email protected]>Reviewed-by Conor Dooley <[email protected]>---
Changes in v2:
- Added Conor's r-by
- Removed quotes surrounding $refs
- Hardcoded 'st,invert-ext' possible valuesChanges in v3:
- Fixed enum syntax warnings
- Removed reference to driver in favor of deviceChanges in v4:
- Make clearer description for "st,invert-ext" property
- Handle better bitwise logic
Quoted 7 lines
--- .../st,sti-irq-syscfg.txt | 30 --------- .../st,stih407-irq-syscfg.yaml | 65 +++++++++++++++++++ 2 files changed, 65 insertions(+), 30 deletions(-) delete mode 100644 Documentation/devicetree/bindings/interrupt-controller/st,sti-irq-syscfg.txt create mode 100644 Documentation/devicetree/bindings/interrupt-controller/st,stih407-irq-syscfg.yaml
Applied, thanks!