summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJun Yan <jerrysteve1101@gmail.com>2026-06-17 23:02:43 +0800
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2026-06-22 23:19:38 -0700
commitdc0d41bd7bd35cd1ac0efe7bbe9cd29cd2fd5022 (patch)
tree00813048a4dfe25e6a0dac2626d6b5a641ed1f35
parent7e6ad2f135b4d796b2b95372dccfdd24e0b351c3 (diff)
downloadlinux-dc0d41bd7bd35cd1ac0efe7bbe9cd29cd2fd5022.tar.gz
linux-dc0d41bd7bd35cd1ac0efe7bbe9cd29cd2fd5022.zip
dt-bindings: input: microchip,cap11xx: Add microchip,cap1126 LED reg constraints
Apply per-chip LED channel limits: - CAP1126: max 2 channels (0-1) - CAP1188: max 8 channels (0-7) - CAP1106, CAP12xx: no LED support Signed-off-by: Jun Yan <jerrysteve1101@gmail.com> Acked-by: Conor Dooley <conor.dooley@microchip.com> Link: https://patch.msgid.link/20260617150318.753148-5-jerrysteve1101@gmail.com Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
-rw-r--r--Documentation/devicetree/bindings/input/microchip,cap11xx.yaml13
1 files changed, 13 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/input/microchip,cap11xx.yaml b/Documentation/devicetree/bindings/input/microchip,cap11xx.yaml
index eabf06a1163e..798035e942af 100644
--- a/Documentation/devicetree/bindings/input/microchip,cap11xx.yaml
+++ b/Documentation/devicetree/bindings/input/microchip,cap11xx.yaml
@@ -176,6 +176,19 @@ allOf:
compatible:
contains:
enum:
+ - microchip,cap1126
+ then:
+ patternProperties:
+ "^led@":
+ properties:
+ reg:
+ maximum: 1
+
+ - if:
+ properties:
+ compatible:
+ contains:
+ enum:
- microchip,cap1106
- microchip,cap1126
- microchip,cap1188