Skip to contentSkip to conversation

dt-bindings: gpio: convert faraday,ftgpio01 to yaml

PATCH Superseded Corentin Labbe 2 participants 2 messages Feb 9, 2022

Subsystems (2)

v2 of 4 Superseded Latest is v4 →

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 dt-bindings: gpio: convert faraday,ftgpio01 to yaml

Converts gpio/faraday,ftgpio010.txt to yaml.

---
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
deleted file mode 100644
index d04236558619..000000000000
@@ -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