summaryrefslogtreecommitdiff
path: root/Documentation/devicetree/bindings/mux/gpio-mux.yaml
diff options
context:
space:
mode:
authorAswath Govindraju <a-govindraju@ti.com>2022-01-02 23:38:18 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2022-01-03 13:59:59 +0100
commit8f2cade5da97713e77ca5be576438f194b8873d7 (patch)
treed0b0883fc3e8d4abfce81a23e082d3b0592b9aad /Documentation/devicetree/bindings/mux/gpio-mux.yaml
parent04ce4a6b9b7b84eb6be7b544d3d0e748b6837764 (diff)
dt-bindings: mux: Document mux-states property
In some cases, it is required to provide the state to which the mux controller has to be set to, from the consumer device tree node. Document the property mux-states that can be used for adding this support. Signed-off-by: Aswath Govindraju <a-govindraju@ti.com> Reviewed-by: Rob Herring <robh@kernel.org> Signed-off-by: Peter Rosin <peda@axentia.se> Link: https://lore.kernel.org/r/f4d02ac8-23ee-d891-4056-75c672cc59c9@axentia.se Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'Documentation/devicetree/bindings/mux/gpio-mux.yaml')
-rw-r--r--Documentation/devicetree/bindings/mux/gpio-mux.yaml11
1 files changed, 9 insertions, 2 deletions
diff --git a/Documentation/devicetree/bindings/mux/gpio-mux.yaml b/Documentation/devicetree/bindings/mux/gpio-mux.yaml
index 0a7c8d64981a..ee4de9fbaf4d 100644
--- a/Documentation/devicetree/bindings/mux/gpio-mux.yaml
+++ b/Documentation/devicetree/bindings/mux/gpio-mux.yaml
@@ -26,7 +26,10 @@ properties:
List of gpios used to control the multiplexer, least significant bit first.
'#mux-control-cells':
- const: 0
+ enum: [ 0, 1 ]
+
+ '#mux-state-cells':
+ enum: [ 1, 2 ]
idle-state:
default: -1
@@ -34,7 +37,11 @@ properties:
required:
- compatible
- mux-gpios
- - "#mux-control-cells"
+anyOf:
+ - required:
+ - "#mux-control-cells"
+ - required:
+ - "#mux-state-cells"
additionalProperties: false