diff mbox series

[v2] dt-bindings: ingenic,pinctrl: Support pinmux/pinconf nodes

Message ID 20200720154548.12453-1-paul@crapouillou.net
State Not Applicable, archived
Headers show
Series [v2] dt-bindings: ingenic,pinctrl: Support pinmux/pinconf nodes | expand

Checks

Context Check Description
robh/checkpatch success

Commit Message

Paul Cercueil July 20, 2020, 3:45 p.m. UTC
Add YAML to describe the pinmux/pinconf sub-nodes of the pinctrl IP on
Ingenic SoCs.

Signed-off-by: Paul Cercueil <paul@crapouillou.net>
---

Notes:
    v2: Rebased on top of pinctrl/devel

 .../bindings/pinctrl/ingenic,pinctrl.yaml     | 40 +++++++++++++++++++
 1 file changed, 40 insertions(+)

Comments

Linus Walleij July 21, 2020, 2:04 p.m. UTC | #1
On Mon, Jul 20, 2020 at 5:45 PM Paul Cercueil <paul@crapouillou.net> wrote:

> Add YAML to describe the pinmux/pinconf sub-nodes of the pinctrl IP on
> Ingenic SoCs.
>
> Signed-off-by: Paul Cercueil <paul@crapouillou.net>

Patch applied.

Yours,
Linus Walleij
diff mbox series

Patch

diff --git a/Documentation/devicetree/bindings/pinctrl/ingenic,pinctrl.yaml b/Documentation/devicetree/bindings/pinctrl/ingenic,pinctrl.yaml
index 5be2b1e95b36..18163fb69ce7 100644
--- a/Documentation/devicetree/bindings/pinctrl/ingenic,pinctrl.yaml
+++ b/Documentation/devicetree/bindings/pinctrl/ingenic,pinctrl.yaml
@@ -110,6 +110,46 @@  required:
   - "#address-cells"
   - "#size-cells"
 
+additionalProperties:
+  anyOf:
+    - type: object
+      allOf:
+        - $ref: pincfg-node.yaml#
+        - $ref: pinmux-node.yaml#
+
+      properties:
+        phandle: true
+        function: true
+        groups: true
+        pins: true
+        bias-disable: true
+        bias-pull-up: true
+        bias-pull-down: true
+        output-low: true
+        output-high: true
+      additionalProperties: false
+
+    - type: object
+      properties:
+        phandle: true
+      additionalProperties:
+        type: object
+        allOf:
+          - $ref: pincfg-node.yaml#
+          - $ref: pinmux-node.yaml#
+
+        properties:
+          phandle: true
+          function: true
+          groups: true
+          pins: true
+          bias-disable: true
+          bias-pull-up: true
+          bias-pull-down: true
+          output-low: true
+          output-high: true
+        additionalProperties: false
+
 examples:
   - |
     pin-controller@10010000 {