dt-bindings: mfd: Convert stmfx bindings to json-schema
Subsystems (5)
PATCH v3 1/1 dt-bindings: mfd: Convert stmfx bindings to json-schema
Convert stmfx bindings to json-schema
--- .../devicetree/bindings/mfd/st,stmfx.yaml | 124 +++++++++++++++++++++ Documentation/devicetree/bindings/mfd/stmfx.txt | 28 ----- .../devicetree/bindings/pinctrl/pinctrl-stmfx.txt | 116 ------------------- 3 files changed, 124 insertions(+), 144 deletions(-) create mode 100644 Documentation/devicetree/bindings/mfd/st,stmfx.yaml delete mode 100644 Documentation/devicetree/bindings/mfd/stmfx.txt delete mode 100644 Documentation/devicetree/bindings/pinctrl/pinctrl-stmfx.txt
Documentation/devicetree/bindings/mfd/st,stmfx.yaml new file +124 -0
@@ -0,0 +1,124 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/mfd/st,stmfx.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: STMicroelectonics Multi-Function eXpander (STMFX) bindings + +description: ST Multi-Function eXpander (STMFX) is a slave controller using I2C for + communication with the main MCU. Its main features are GPIO expansion, + main MCU IDD measurement (IDD is the amount of current that flows + through VDD) and resistive touchscreen controller. + +maintainers: + - Amelie Delaunay <[email protected]> + +properties: + compatible: + const: st,stmfx-0300 + + reg: + enum: [ 0x42, 0x43 ] + + interrupts: + maxItems: 1 + + drive-open-drain: true + + vdd-supply: + maxItems: 1 + + pinctrl: + type: object + + properties: + compatible: + const: st,stmfx-0300-pinctrl + + "#gpio-cells": + const: 2 + + "#interrupt-cells": + const: 2 + + gpio-controller: true + + interrupt-controller: true + + gpio-ranges: + description: if all STMFX pins[24:0] are available (no other STMFX function in use), + you should use gpio-ranges = <&stmfx_pinctrl 0 0 24>; + if agpio[3:0] are not available (STMFX Touchscreen function in use), + you should use gpio-ranges = <&stmfx_pinctrl 0 0 16>, <&stmfx_pinctrl 20 20 4>; + if agpio[7:4] are not available (STMFX IDD function in use), + you should use gpio-ranges = <&stmfx_pinctrl 0 0 20>; + maxItems: 1 + + patternProperties: + "^[a-zA-Z]*-pins$": + type: object + + allOf: + - $ref: ../pinctrl/pinmux-node.yaml + + properties: + pins: true + bias-disable: true + bias-pull-up: true + bias-pull-pin-default: true + bias-pull-down: true + drive-open-drain: true + drive-push-pull: true + output-high: true + output-low: true + + additionalProperties: false + + additionalProperties: false + + required: + - compatible + - "#gpio-cells" + - "#interrupt-cells" + - gpio-controller + - interrupt-controller + - gpio-ranges + +additionalProperties: false + +required: + - compatible + - reg + - interrupts + +examples: + - | + #include <dt-bindings/interrupt-controller/arm-gic.h> + i2c@0 { + #address-cells = <1>; + #size-cells = <0>; + stmfx@42 { + compatible = "st,stmfx-0300"; + reg = <0x42>; + interrupts = <8 IRQ_TYPE_EDGE_RISING>; + interrupt-parent = <&gpioi>; + vdd-supply = <&v3v3>; + + stmfx_pinctrl: pinctrl { + compatible = "st,stmfx-0300-pinctrl"; + #gpio-cells = <2>; + #interrupt-cells = <2>; + gpio-controller; + interrupt-controller; + gpio-ranges = <&stmfx_pinctrl 0 0 24>; + + joystick_pins: joystick-pins { + pins = "gpio0", "gpio1", "gpio2", "gpio3", "gpio4"; + drive-push-pull; + bias-pull-up; + }; + }; + }; + }; +...
Documentation/devicetree/bindings/mfd/stmfx.txt deleted +0 -28
@@ -1,28 +0,0 @@ -STMicroelectonics Multi-Function eXpander (STMFX) Core bindings - -ST Multi-Function eXpander (STMFX) is a slave controller using I2C for -communication with the main MCU. Its main features are GPIO expansion, main -MCU IDD measurement (IDD is the amount of current that flows through VDD) and -resistive touchscreen controller. - -Required properties: -- compatible: should be "st,stmfx-0300". -- reg: I2C slave address of the device. -- interrupts: interrupt specifier triggered by MFX_IRQ_OUT signal. - Please refer to ../interrupt-controller/interrupt.txt - -Optional properties: -- drive-open-drain: configure MFX_IRQ_OUT as open drain. -- vdd-supply: phandle of the regulator supplying STMFX. - -Example: - - stmfx: stmfx@42 { - compatible = "st,stmfx-0300"; - reg = <0x42>; - interrupts = <8 IRQ_TYPE_EDGE_RISING>; - interrupt-parent = <&gpioi>; - vdd-supply = <&v3v3>; - }; - -Please refer to ../pinctrl/pinctrl-stmfx.txt for STMFX GPIO expander function bindings.
Documentation/devicetree/bindings/pinctrl/pinctrl-stmfx.txt deleted +0 -116
116 lines not on this page · raw message
Signature · 1 line
2.15.0
Quoted 12 lines · Benjamin Gaignard
Convert stmfx bindings to json-schema
Signed-off-by Benjamin Gaignard <[email protected]>--- .../devicetree/bindings/mfd/st,stmfx.yaml | 124 +++++++++++++++++++++ Documentation/devicetree/bindings/mfd/stmfx.txt | 28 ----- .../devicetree/bindings/pinctrl/pinctrl-stmfx.txt | 116 ------------------- 3 files changed, 124 insertions(+), 144 deletions(-) create mode 100644 Documentation/devicetree/bindings/mfd/st,stmfx.yaml delete mode 100644 Documentation/devicetree/bindings/mfd/stmfx.txt delete mode 100644 Documentation/devicetree/bindings/pinctrl/pinctrl-stmfx.txt
Quoted 13 lines · Rob Herring
Quoted 12 lines · Benjamin Gaignard
Convert stmfx bindings to json-schema
Signed-off-by Benjamin Gaignard <[email protected]>--- .../devicetree/bindings/mfd/st,stmfx.yaml | 124 +++++++++++++++++++++ Documentation/devicetree/bindings/mfd/stmfx.txt | 28 ----- .../devicetree/bindings/pinctrl/pinctrl-stmfx.txt | 116 ------------------- 3 files changed, 124 insertions(+), 144 deletions(-)create mode 100644
Documentation/devicetree/bindings/mfd/st,stmfx.yamldelete mode 100644Documentation/devicetree/bindings/mfd/stmfx.txtdelete mode 100644Documentation/devicetree/bindings/pinctrl/pinctrl-stmfx.txt
Hi Lee, Rob,
I haven't been able to found this patch in -next branches, can one of you merge it ?
Thanks,
Benjamin
Quoted 1 line
Reviewed-by Rob Herring <[email protected]>
_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Quoted 16 lines · Benjamin GAIGNARD
Quoted 13 lines · Rob Herring
Quoted 12 lines · Benjamin Gaignard
Convert stmfx bindings to json-schema
Signed-off-by Benjamin Gaignard <[email protected]>--- .../devicetree/bindings/mfd/st,stmfx.yaml | 124 +++++++++++++++++++++ Documentation/devicetree/bindings/mfd/stmfx.txt | 28 ----- .../devicetree/bindings/pinctrl/pinctrl-stmfx.txt | 116 ------------------- 3 files changed, 124 insertions(+), 144 deletions(-)create mode 100644
Documentation/devicetree/bindings/mfd/st,stmfx.yamldelete mode 100644Documentation/devicetree/bindings/mfd/stmfx.txtdelete mode 100644Documentation/devicetree/bindings/pinctrl/pinctrl-stmfx.txt
Quoted 8 lines
Hi Lee, Rob,
I haven't been able to found this patch in -next branches, can one of you merge it ?
Thanks,
BenjaminQuoted 1 line
Reviewed-by Rob Herring <[email protected]>
Rob,
We should agree on a process going forward. Do you take DT document changes or should I? Up until we moved to YAML formatting, I took them but responsibly seems to have migrated over to you since then.
I don't mind either way.
Signature · 4 lines
Lee Jones [李琼斯] Linaro Services Technical Lead Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog
Quoted 24 lines · Lee Jones
Quoted 22 lines · Benjamin GAIGNARD
Quoted 13 lines · Rob Herring
Quoted 12 lines · Benjamin Gaignard
Convert stmfx bindings to json-schema
Signed-off-by Benjamin Gaignard <[email protected]>--- .../devicetree/bindings/mfd/st,stmfx.yaml | 124 +++++++++++++++++++++ Documentation/devicetree/bindings/mfd/stmfx.txt | 28 ----- .../devicetree/bindings/pinctrl/pinctrl-stmfx.txt | 116 ------------------- 3 files changed, 124 insertions(+), 144 deletions(-)create mode 100644
Documentation/devicetree/bindings/mfd/st,stmfx.yamldelete mode 100644Documentation/devicetree/bindings/mfd/stmfx.txtdelete mode 100644Documentation/devicetree/bindings/pinctrl/pinctrl-stmfx.txtHi Lee, Rob,
I haven't been able to found this patch in -next branches, can one of you merge it ?
Thanks,
Benjamin
Quoted 8 lines
Quoted 1 line
Quoted 1 line
Reviewed-by Rob Herring <[email protected]>Rob,
We should agree on a process going forward. Do you take DT document changes or should I? Up until we moved to YAML formatting, I took them but responsibly seems to have migrated over to you since then.
I don't mind either way.
Hi,
Any news on this yaml conversion ?
Benjamin
Quoted 1 line
Quoted 8 lines · Benjamin Gaignard
Convert stmfx bindings to json-schema
Signed-off-by Benjamin Gaignard <[email protected]>--- .../devicetree/bindings/mfd/st,stmfx.yaml | 124 +++++++++++++++++++++ Documentation/devicetree/bindings/mfd/stmfx.txt | 28 -----.../devicetree/bindings/pinctrl/pinctrl-stmfx.txt | 116 -------------------
Linus, anything from you?
Quoted 4 lines
3 files changed, 124 insertions(+), 144 deletions(-) create mode 100644 Documentation/devicetree/bindings/mfd/st,stmfx.yaml delete mode 100644 Documentation/devicetree/bindings/mfd/stmfx.txt delete mode 100644 Documentation/devicetree/bindings/pinctrl/pinctrl-stmfx.txt
Signature · 4 lines
Lee Jones [李琼斯] Linaro Services Technical Lead Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog
Linus Walleij
Reviewed-byQuoted 4 lines · Lee Jones
Quoted 2 lines · Benjamin Gaignard
Convert stmfx bindings to json-schema
Quoted 8 lines
Quoted 6 lines
Signed-off-by Benjamin Gaignard <[email protected]>--- .../devicetree/bindings/mfd/st,stmfx.yaml | 124 +++++++++++++++++++++ Documentation/devicetree/bindings/mfd/stmfx.txt | 28 -----.../devicetree/bindings/pinctrl/pinctrl-stmfx.txt | 116 -------------------Linus, anything from you?
Looks good:
Yours,
Linus Walleij
Lee Jones
AppliedQuoted 11 lines · Benjamin Gaignard
Convert stmfx bindings to json-schema
Signed-off-by Benjamin Gaignard <[email protected]>--- .../devicetree/bindings/mfd/st,stmfx.yaml | 124 +++++++++++++++++++++ Documentation/devicetree/bindings/mfd/stmfx.txt | 28 ----- .../devicetree/bindings/pinctrl/pinctrl-stmfx.txt | 116 ------------------- 3 files changed, 124 insertions(+), 144 deletions(-) create mode 100644 Documentation/devicetree/bindings/mfd/st,stmfx.yaml delete mode 100644 Documentation/devicetree/bindings/mfd/stmfx.txt delete mode 100644 Documentation/devicetree/bindings/pinctrl/pinctrl-stmfx.txt
Applied, thanks.
Signature · 4 lines
Lee Jones [李琼斯] Senior Technical Lead - Developer Services Linaro.org │ Open source software for Arm SoCs Follow Linaro: Facebook | Twitter | Blog