dt-bindings: pinctrl: Convert Amlogic Meson pinctrl binding
Subsystems (4)
PATCH v6 1/1 dt-bindings: pinctrl: Convert Amlogic Meson pinctrl binding
Convert Amlogic Meson pin controller binding to yaml.
---
v2:
- consider that more than one compatible can be set
- remove bus part from example
v3:
- remove minItem/maxItem properties for compatible
v4:
- split patch to be able to deal with the different reg/reg-names v5:
- remove compatible definition from common yaml
- move pincfg-node and pinmux-node definition to meson-gpio object definition v6:
- add meson-pins definition
- change usage of unevaluatedProperties
--- .../pinctrl/amlogic,meson-pinctrl-a1.yaml | 65 +++++++++++++ .../pinctrl/amlogic,meson-pinctrl-common.yaml | 57 +++++++++++ .../amlogic,meson-pinctrl-g12a-aobus.yaml | 66 +++++++++++++ .../amlogic,meson-pinctrl-g12a-periphs.yaml | 70 ++++++++++++++ .../pinctrl/amlogic,meson8-pinctrl-aobus.yaml | 74 +++++++++++++++ .../pinctrl/amlogic,meson8-pinctrl-cbus.yaml | 76 +++++++++++++++ .../bindings/pinctrl/meson,pinctrl.txt | 94 ------------------- 7 files changed, 408 insertions(+), 94 deletions(-) create mode 100644 Documentation/devicetree/bindings/pinctrl/amlogic,meson-pinctrl-a1.yaml create mode 100644 Documentation/devicetree/bindings/pinctrl/amlogic,meson-pinctrl-common.yaml create mode 100644 Documentation/devicetree/bindings/pinctrl/amlogic,meson-pinctrl-g12a-aobus.yaml create mode 100644 Documentation/devicetree/bindings/pinctrl/amlogic,meson-pinctrl-g12a-periphs.yaml create mode 100644 Documentation/devicetree/bindings/pinctrl/amlogic,meson8-pinctrl-aobus.yaml create mode 100644 Documentation/devicetree/bindings/pinctrl/amlogic,meson8-pinctrl-cbus.yaml delete mode 100644 Documentation/devicetree/bindings/pinctrl/meson,pinctrl.txt
Documentation/devicetree/bindings/pinctrl/amlogic,meson-pinctrl-a1.yaml new file +65 -0
@@ -0,0 +1,65 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/pinctrl/amlogic,meson-pinctrl-a1.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Amlogic Meson A1 pinmux controller + +maintainers: + - Neil Armstrong <[email protected]> + +allOf: + - $ref: amlogic,meson-pinctrl-common.yaml# + +properties: + compatible: + enum: + - amlogic,meson-a1-periphs-pinctrl + - amlogic,meson-s4-periphs-pinctrl + +required: + - compatible + +patternProperties: + "^bank@[0-9a-z]+$": + $ref: amlogic,meson-pinctrl-common.yaml#/$defs/meson-gpio + + properties: + reg: + maxItems: 2 + + reg-names: + items: + - const: mux + - const: gpio + +unevaluatedProperties: + type: object + $ref: amlogic,meson-pinctrl-common.yaml#/$defs/meson-pins + +examples: + - | + periphs_pinctrl: pinctrl { + compatible = "amlogic,meson-a1-periphs-pinctrl"; + #address-cells = <1>; + #size-cells = <1>; + ranges; + + bank@400 { + reg = <0x0400 0x003c>, + <0x0480 0x0118>; + reg-names = "mux", "gpio"; + gpio-controller; + #gpio-cells = <2>; + gpio-ranges = <&periphs_pinctrl 0 0 62>; + }; + + cec_ao_a_h_pins: cec_ao_a_h { + mux { + groups = "cec_ao_a_h"; + function = "cec_ao_a_h"; + bias-disable; + }; + }; + };
Documentation/devicetree/bindings/pinctrl/amlogic,meson-pinctrl-common.yaml new file +57 -0
57 lines not on this page · raw message
Documentation/devicetree/bindings/pinctrl/amlogic,meson-pinctrl-g12a-aobus.yaml new file +66 -0
66 lines not on this page · raw message
Documentation/devicetree/bindings/pinctrl/amlogic,meson-pinctrl-g12a-periphs.yaml new file +70 -0
70 lines not on this page · raw message
Documentation/devicetree/bindings/pinctrl/amlogic,meson8-pinctrl-aobus.yaml new file +74 -0
74 lines not on this page · raw message
Documentation/devicetree/bindings/pinctrl/amlogic,meson8-pinctrl-cbus.yaml new file +76 -0
76 lines not on this page · raw message
Documentation/devicetree/bindings/pinctrl/meson,pinctrl.txt deleted +0 -94
94 lines not on this page · raw message
Signature · 1 line
2.39.2
Quoted 56 lines · Heiner Kallweit
Convert Amlogic Meson pin controller binding to yaml.
Signed-off-by Heiner Kallweit <[email protected]>---
v2:
- consider that more than one compatible can be set
- remove bus part from example
v3:
- remove minItem/maxItem properties for compatible
v4:
- split patch to be able to deal with the different reg/reg-names v5:
- remove compatible definition from common yaml
- move pincfg-node and pinmux-node definition to meson-gpio object definition v6:
- add meson-pins definition
- change usage of unevaluatedProperties--- .../pinctrl/amlogic,meson-pinctrl-a1.yaml | 65 +++++++++++++ .../pinctrl/amlogic,meson-pinctrl-common.yaml | 57 +++++++++++ .../amlogic,meson-pinctrl-g12a-aobus.yaml | 66 +++++++++++++ .../amlogic,meson-pinctrl-g12a-periphs.yaml | 70 ++++++++++++++ .../pinctrl/amlogic,meson8-pinctrl-aobus.yaml | 74 +++++++++++++++ .../pinctrl/amlogic,meson8-pinctrl-cbus.yaml | 76 +++++++++++++++ .../bindings/pinctrl/meson,pinctrl.txt | 94 ------------------- 7 files changed, 408 insertions(+), 94 deletions(-) create mode 100644 Documentation/devicetree/bindings/pinctrl/amlogic,meson-pinctrl-a1.yaml create mode 100644 Documentation/devicetree/bindings/pinctrl/amlogic,meson-pinctrl-common.yaml create mode 100644 Documentation/devicetree/bindings/pinctrl/amlogic,meson-pinctrl-g12a-aobus.yaml create mode 100644 Documentation/devicetree/bindings/pinctrl/amlogic,meson-pinctrl-g12a-periphs.yaml create mode 100644 Documentation/devicetree/bindings/pinctrl/amlogic,meson8-pinctrl-aobus.yaml create mode 100644 Documentation/devicetree/bindings/pinctrl/amlogic,meson8-pinctrl-cbus.yaml delete mode 100644 Documentation/devicetree/bindings/pinctrl/meson,pinctrl.txtDocumentation/devicetree/bindings/pinctrl/amlogic,meson-pinctrl-a1.yaml new file +16
-0@@ -0,0 +1,65 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/pinctrl/amlogic,meson-pinctrl-a1.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Amlogic Meson A1 pinmux controller + +maintainers: + - Neil Armstrong <[email protected]> + +allOf: + - $ref: amlogic,meson-pinctrl-common.yaml# + +properties: + compatible:
Documentation/devicetree/bindings/pinctrl/amlogic,meson-pinctrl-a1.yaml line 26
Quoted 10 lines
Documentation/devicetree/bindings/pinctrl/amlogic,meson-pinctrl-a1.yaml new file +10
-0+ enum: + - amlogic,meson-a1-periphs-pinctrl + - amlogic,meson-s4-periphs-pinctrl + +required: + - compatible + +patternProperties: + "^bank@[0-9a-z]+$": + $ref: amlogic,meson-pinctrl-common.yaml#/$defs/meson-gpio
unevaluatedProperties: false
And other meson-gpio references. With that,