Skip to contentSkip to conversation

dt-bindings: mux: reg-mux: Allow zero-cell controls

PATCH Applied Rob Herring (Arm) 2 participants 3 messages Sep 21 – Sep 24

Subsystems (2)
lore
Share & tools
lore

Rob Herring (Arm)

author maintainer
#0 lore raw

PATCH 1/1 dt-bindings: mux: reg-mux: Allow zero-cell controls

Some reg-mux users reference a controller without an argument cell when there is only one mux control exposed by the provider.

Permit #mux-control-cells to be either 0 or 1 so the converted schema matches both existing provider styles.

Assisted-by LLM
---
 Documentation/devicetree/bindings/mux/reg-mux.yaml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Documentation/devicetree/bindings/mux/reg-mux.yaml +1 -1
index dc4be092fc2f..c8de11a90d90 100644
@@ -22,7 +22,7 @@ properties:
   reg: true
 
   '#mux-control-cells':
-    const: 1
+    enum: [ 0, 1 ]
 
   mux-reg-masks:
     $ref: /schemas/types.yaml#/definitions/uint32-matrix
Signature · 1 line
2.53.0
author maintainer Applied
#2 lore raw
In reply to Rob Herring (Arm)
Quoted 12 lines · Rob Herring (Arm)

Some reg-mux users reference a controller without an argument cell when there is only one mux control exposed by the provider.

Permit #mux-control-cells to be either 0 or 1 so the converted schema matches both existing provider styles.

Assisted-by LLM
---
 Documentation/devicetree/bindings/mux/reg-mux.yaml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Applied, thanks!