dt-bindings: gpio: omap: Convert to json-schema
Subsystems (3)
Grygorii Strashko
maintainercover dt-bindings: gpio: omap: Convert to json-schema
Hi
Convert the OMAP GPIO Device Tree binding documentation to json-schema. The GPIO hogs node names defined to end with a 'hog' suffix.
All existing GPIO Hogs fixed to follow above naming convention before changing the binding to avoid dtbs_check warnings.
Grygorii Strashko (5):
ARM: dts: am335x: align GPIO hog names with dt-schema
ARM: dts: am437x: align gpio hog names with dt-schema
ARM: dts: omap3: align gpio hog names with dt-schema
ARM: dts: omap5-board-common: align gpio hog names with dt-schema
dt-bindings: gpio: omap: Convert to json-schema
.../devicetree/bindings/gpio/gpio-omap.txt | 45 -------- .../bindings/gpio/ti,omap-gpio.yaml | 108 ++++++++++++++++++ .../boot/dts/am335x-boneblack-wireless.dts | 2 +- arch/arm/boot/dts/am335x-boneblue.dts | 2 +- .../boot/dts/am335x-bonegreen-wireless.dts | 4 +- arch/arm/boot/dts/am335x-icev2.dts | 4 +- arch/arm/boot/dts/am335x-shc.dts | 8 +- arch/arm/boot/dts/am437x-gp-evm.dts | 4 +- arch/arm/boot/dts/am43x-epos-evm.dts | 2 +- .../boot/dts/omap3-evm-processor-common.dtsi | 2 +- arch/arm/boot/dts/omap3-gta04a5.dts | 2 +- arch/arm/boot/dts/omap5-board-common.dtsi | 2 +- 12 files changed, 124 insertions(+), 61 deletions(-) delete mode 100644 Documentation/devicetree/bindings/gpio/gpio-omap.txt create mode 100644 Documentation/devicetree/bindings/gpio/ti,omap-gpio.yaml
Signature · 1 line
2.17.1
Grygorii Strashko
maintainerPATCH 1/5 ARM: dts: am335x: align GPIO hog names with dt-schema
The GPIO Hog dt-schema node naming convention expect GPIO hogs node names to end with a 'hog' suffix.
--- arch/arm/boot/dts/am335x-boneblack-wireless.dts | 2 +- arch/arm/boot/dts/am335x-boneblue.dts | 2 +- arch/arm/boot/dts/am335x-bonegreen-wireless.dts | 4 ++-- arch/arm/boot/dts/am335x-icev2.dts | 4 ++-- arch/arm/boot/dts/am335x-shc.dts | 8 ++++---- 5 files changed, 10 insertions(+), 10 deletions(-)
arch/arm/boot/dts/am335x-boneblack-wireless.dts +1 -1
@@ -101,7 +101,7 @@ }; &gpio3 { - ls_buf_en { + ls-buf-en-hog { gpio-hog; gpios = <10 GPIO_ACTIVE_HIGH>; output-high;
arch/arm/boot/dts/am335x-boneblue.dts +1 -1
@@ -436,7 +436,7 @@ }; &gpio3 { - ls_buf_en { + ls-buf-en-hog { gpio-hog; gpios = <10 GPIO_ACTIVE_HIGH>; output-high;
arch/arm/boot/dts/am335x-bonegreen-wireless.dts +2 -2
@@ -101,7 +101,7 @@ }; &gpio1 { - ls_buf_en { + ls-buf-en-hog { gpio-hog; gpios = <29 GPIO_ACTIVE_HIGH>; output-high;
@@ -118,7 +118,7 @@ /* an external pulldown on U21 pin 4. */ &gpio3 { - bt_aud_in { + bt-aud-in-hog { gpio-hog; gpios = <16 GPIO_ACTIVE_HIGH>; output-low;
arch/arm/boot/dts/am335x-icev2.dts +2 -2
@@ -458,14 +458,14 @@ }; &gpio3 { - p4 { + pr1-mii-ctl-hog { gpio-hog; gpios = <4 GPIO_ACTIVE_HIGH>; output-high; line-name = "PR1_MII_CTRL"; }; - p10 { + mux-mii-hog { gpio-hog; gpios = <10 GPIO_ACTIVE_HIGH>; /* ETH1 mux: Low for MII-PRU, high for RMII-CPSW */
arch/arm/boot/dts/am335x-shc.dts +4 -4
@@ -140,14 +140,14 @@ }; &gpio1 { - hmtc_rst { + hmtc-rst-hog { gpio-hog; gpios = <24 GPIO_ACTIVE_LOW>; output-high; line-name = "homematic_reset"; }; - hmtc_prog { + hmtc-prog-hog { gpio-hog; gpios = <27 GPIO_ACTIVE_LOW>; output-high;
@@ -156,14 +156,14 @@ }; &gpio3 { - zgb_rst { + zgb-rst-hog { gpio-hog; gpios = <18 GPIO_ACTIVE_LOW>; output-low; line-name = "zigbee_reset"; }; - zgb_boot { + zgb-boot-hog { gpio-hog; gpios = <19 GPIO_ACTIVE_HIGH>; output-high;
Signature · 1 line
2.17.1
Grygorii Strashko
maintainerPATCH 2/5 ARM: dts: am437x: align gpio hog names with dt-schema
In reply to Grygorii StrashkoThe GPIO Hog dt-schema node naming convention expect GPIO hogs node names to end with a 'hog' suffix.
--- arch/arm/boot/dts/am437x-gp-evm.dts | 4 ++-- arch/arm/boot/dts/am43x-epos-evm.dts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-)
arch/arm/boot/dts/am437x-gp-evm.dts +2 -2
@@ -786,7 +786,7 @@ pinctrl-0 = <&gpio0_pins>; status = "okay"; - p23 { + sel-emmc-nand-hog { gpio-hog; gpios = <23 GPIO_ACTIVE_HIGH>; /* SelEMMCorNAND selects between eMMC and NAND:
@@ -822,7 +822,7 @@ pinctrl-0 = <&display_mux_pins>; status = "okay"; - p8 { + sel-lcd-hdmi-hog { /* * SelLCDorHDMI selects between display and audio paths: * Low: HDMI display with audio via HDMI
arch/arm/boot/dts/am43x-epos-evm.dts +1 -1
@@ -725,7 +725,7 @@ pinctrl-0 = <&display_mux_pins>; status = "okay"; - p1 { + sel-lcd-hdmi-hog { /* * SelLCDorHDMI selects between display and audio paths: * Low: HDMI display with audio via HDMI
Signature · 1 line
2.17.1
Grygorii Strashko
maintainerPATCH 3/5 ARM: dts: omap3: align gpio hog names with dt-schema
In reply to Grygorii StrashkoThe GPIO Hog dt-schema node naming convention expect GPIO hogs node names to end with a 'hog' suffix.
--- arch/arm/boot/dts/omap3-evm-processor-common.dtsi | 2 +- arch/arm/boot/dts/omap3-gta04a5.dts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
arch/arm/boot/dts/omap3-evm-processor-common.dtsi +1 -1
@@ -195,7 +195,7 @@ * for bus switch SN74CB3Q3384A, level-shifter SN74AVC16T245DGGR, and 1.8V. */ &gpio2 { - en_usb2_port { + en-usb2-port-hog { gpio-hog; gpios = <29 GPIO_ACTIVE_HIGH>; /* gpio_61 */ output-low;
arch/arm/boot/dts/omap3-gta04a5.dts +1 -1
@@ -37,7 +37,7 @@ }; &gpio5 { - irda_en { + irda-en-hog { gpio-hog; gpios = <(175-160) GPIO_ACTIVE_HIGH>; output-high; /* activate gpio_175 to disable IrDA receiver */
Signature · 1 line
2.17.1
Grygorii Strashko
maintainerPATCH 4/5 ARM: dts: omap5-board-common: align gpio hog names with dt-schema
In reply to Grygorii StrashkoThe GPIO Hog dt-schema node naming convention expect GPIO hogs node names to end with a 'hog' suffix.
--- arch/arm/boot/dts/omap5-board-common.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/boot/dts/omap5-board-common.dtsi +1 -1
@@ -149,7 +149,7 @@ &gpio8 { /* TI trees use GPIO instead of msecure, see also muxing */ - p234 { + msecure-hog { gpio-hog; gpios = <10 GPIO_ACTIVE_HIGH>; output-high;
Signature · 1 line
2.17.1
Grygorii Strashko
maintainerPATCH 5/5 dt-bindings: gpio: omap: Convert to json-schema
In reply to Grygorii StrashkoConvert the OMAP GPIO Device Tree binding documentation to json-schema. The GPIO hogs node names defined to end with a 'hog' suffix.
--- .../devicetree/bindings/gpio/gpio-omap.txt | 45 -------- .../bindings/gpio/ti,omap-gpio.yaml | 108 ++++++++++++++++++ 2 files changed, 108 insertions(+), 45 deletions(-) delete mode 100644 Documentation/devicetree/bindings/gpio/gpio-omap.txt create mode 100644 Documentation/devicetree/bindings/gpio/ti,omap-gpio.yaml
Documentation/devicetree/bindings/gpio/gpio-omap.txt deleted +0 -45
@@ -1,45 +0,0 @@ -OMAP GPIO controller bindings - -Required properties: -- compatible: - - "ti,omap2-gpio" for OMAP2 controllers - - "ti,omap3-gpio" for OMAP3 controllers - - "ti,omap4-gpio" for OMAP4 controllers -- reg : Physical base address of the controller and length of memory mapped - region. -- gpio-controller : Marks the device node as a GPIO controller. -- #gpio-cells : Should be two. - - first cell is the pin number - - second cell is used to specify optional parameters (unused) -- interrupt-controller: Mark the device node as an interrupt controller. -- #interrupt-cells : Should be 2. - The first cell is the GPIO number. - The second cell is used to specify flags: - bits[3:0] trigger type and level flags: - 1 = low-to-high edge triggered. - 2 = high-to-low edge triggered. - 4 = active high level-sensitive. - 8 = active low level-sensitive. -- interrupts : The interrupt the controller is rising as output when an - interrupt occures - -OMAP specific properties: -- ti,hwmods: Name of the hwmod associated to the GPIO: - "gpio<X>", <X> being the 1-based instance number - from the HW spec. -- ti,gpio-always-on: Indicates if a GPIO bank is always powered and - so will never lose its logic state. - - -Example: - -gpio0: gpio@44e07000 { - compatible = "ti,omap4-gpio"; - reg = <0x44e07000 0x1000>; - ti,hwmods = "gpio1"; - gpio-controller; - #gpio-cells = <2>; - interrupt-controller; - #interrupt-cells = <2>; - interrupts = <96>; -};
Documentation/devicetree/bindings/gpio/ti,omap-gpio.yaml new file +108 -0
108 lines not on this page · raw message
Signature · 1 line
2.17.1
Rob Herring
maintainerQuoted 11 lines · Grygorii Strashko
Convert the OMAP GPIO Device Tree binding documentation to json-schema. The GPIO hogs node names defined to end with a 'hog' suffix.
Signed-off-by Grygorii Strashko <[email protected]>--- .../devicetree/bindings/gpio/gpio-omap.txt | 45 -------- .../bindings/gpio/ti,omap-gpio.yaml | 108 ++++++++++++++++++ 2 files changed, 108 insertions(+), 45 deletions(-) delete mode 100644 Documentation/devicetree/bindings/gpio/gpio-omap.txt create mode 100644 Documentation/devicetree/bindings/gpio/ti,omap-gpio.yaml
My bot found errors running 'make DT_CHECKER_FLAGS=-m dt_binding_check' on your patch (DT_CHECKER_FLAGS is new in v5.13):
yamllint warnings/errors:./Documentation/devicetree/bindings/gpio/ti,omap-gpio.yaml:22:9: [warning] wrong indentation: expected 10 but found 8 (indentation)
dtschema/dtc warnings/errors:
See https://patchwork.ozlabs.org/patch/1482351
This check can fail if there are any dependencies. The base for a patch series is generally the most recent rc1.
If you already ran 'make dt_binding_check' and didn't see the above error(s), then make sure 'yamllint' is installed and dt-schema is up to date:
pip3 install dtschema --upgrade
Please check and re-submit.
Quoted 10 lines · Grygorii Strashko
Convert the OMAP GPIO Device Tree binding documentation to json-schema. The GPIO hogs node names defined to end with a 'hog' suffix.
Signed-off-by Grygorii Strashko <[email protected]>--- .../devicetree/bindings/gpio/gpio-omap.txt | 45 -------- .../bindings/gpio/ti,omap-gpio.yaml | 108 ++++++++++++++++++ 2 files changed, 108 insertions(+), 45 deletions(-) delete mode 100644 Documentation/devicetree/bindings/gpio/gpio-omap.txt create mode 100644 Documentation/devicetree/bindings/gpio/ti,omap-gpio.yaml
Other than the indentation,