From dc0d41bd7bd35cd1ac0efe7bbe9cd29cd2fd5022 Mon Sep 17 00:00:00 2001 From: Jun Yan Date: Wed, 17 Jun 2026 23:02:43 +0800 Subject: 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 Acked-by: Conor Dooley Link: https://patch.msgid.link/20260617150318.753148-5-jerrysteve1101@gmail.com Signed-off-by: Dmitry Torokhov --- .../devicetree/bindings/input/microchip,cap11xx.yaml | 13 +++++++++++++ 1 file changed, 13 insertions(+) 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 @@ -171,6 +171,19 @@ allOf: patternProperties: "^led@": false + - if: + properties: + compatible: + contains: + enum: + - microchip,cap1126 + then: + patternProperties: + "^led@": + properties: + reg: + maximum: 1 + - if: properties: compatible: -- cgit v1.2.3