dt-bindings: gpio: convert faraday,ftgpio01 to yaml
Subsystems (2)
PATCH v2 1/1 dt-bindings: gpio: convert faraday,ftgpio01 to yaml
Converts gpio/faraday,ftgpio010.txt to yaml.
Reviewed-by Linus Walleij <[email protected]>
Reviewed-by Rob Herring <[email protected]>
Signed-off-by Corentin Labbe <[email protected]>
---
Change since v1:
- added reviewed-by
- put blank lines between DT property
- removed useless quotes
This commit will cause arch/arm/boot/dts/moxart-uc7112lx.dts to fail DT validation,
but the GPIO driver need an interrupt so the current moxart DT is incomplete and the error is appropriate.
.../bindings/gpio/faraday,ftgpio010.txt | 27 -------- .../bindings/gpio/faraday,ftgpio010.yaml | 65 +++++++++++++++++++ 2 files changed, 65 insertions(+), 27 deletions(-) delete mode 100644 Documentation/devicetree/bindings/gpio/faraday,ftgpio010.txt create mode 100644 Documentation/devicetree/bindings/gpio/faraday,ftgpio010.yaml
Documentation/devicetree/bindings/gpio/faraday,ftgpio010.txt deleted +0 -27
@@ -1,27 +0,0 @@ -Faraday Technology FTGPIO010 GPIO Controller - -Required properties: - -- compatible : Should be one of - "cortina,gemini-gpio", "faraday,ftgpio010" - "moxa,moxart-gpio", "faraday,ftgpio010" - "faraday,ftgpio010" -- reg : Should contain registers location and length -- interrupts : Should contain the interrupt line for the GPIO block -- gpio-controller : marks this as a GPIO controller -- #gpio-cells : Should be 2, see gpio/gpio.txt -- interrupt-controller : marks this as an interrupt controller -- #interrupt-cells : a standard two-cell interrupt flag, see - interrupt-controller/interrupts.txt - -Example: - -gpio@4d000000 { - compatible = "cortina,gemini-gpio", "faraday,ftgpio010"; - reg = <0x4d000000 0x100>; - interrupts = <22 IRQ_TYPE_LEVEL_HIGH>; - gpio-controller; - #gpio-cells = <2>; - interrupt-controller; - #interrupt-cells = <2>; -};
Documentation/devicetree/bindings/gpio/faraday,ftgpio010.yaml new file +65 -0
65 lines not on this page · raw message
Signature · 1 line
2.34.1
Quoted 7 lines · Corentin Labbe
Converts
gpio/faraday,ftgpio010.txtto yaml.Reviewed-by Linus Walleij <[email protected]>Reviewed-by Rob Herring <[email protected]>Signed-off-by Corentin Labbe <[email protected]>---
Applied for next, thanks!
Bart