Skip to contentSkip to conversation

dt-bindings: leds: bd2606mvv: Fix maximum register value

RFC PATCH Applied Marek Vasut 4 participants 4 messages Jul 4, 2023 – Jul 13, 2023

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

RFC PATCH 1/1 dt-bindings: leds: bd2606mvv: Fix maximum register value

Since the chip can drive up to 6 lines, the maximum register number should be only 5, not 6.

---
Cc: Andreas Kemnade <[email protected]>
Cc: Conor Dooley <[email protected]>
Cc: Krzysztof Kozlowski <[email protected]>
Cc: Lee Jones <[email protected]>
Cc: Pavel Machek <[email protected]>
Cc: Rob Herring <[email protected]>
Cc: [email protected]
Cc: [email protected]

---
 Documentation/devicetree/bindings/leds/rohm,bd2606mvv.yaml | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
Documentation/devicetree/bindings/leds/rohm,bd2606mvv.yaml +2 -2
index 14700a2e5feaa..44dd91aa239de 100644
@@ -35,7 +35,7 @@ properties:
     description: GPIO pin to enable/disable the device.
 
 patternProperties:
-  "^led@[0-6]$":
+  "^led@[0-5]$":
     type: object
     $ref: common.yaml#
     unevaluatedProperties: false
@@ -43,7 +43,7 @@ patternProperties:
     properties:
       reg:
         minimum: 0
-        maximum: 6
+        maximum: 5
 
     required:
       - reg
Signature · 1 line
2.40.1
Reviewed-by on v1 1/1
#1 lore raw

Hi Marek,

you are right.

Quoted 39 lines · On Tue, 4 Jul 2023 22:29:29 +0200 Marek Vasut <[email protected]> wrote:

Since the chip can drive up to 6 lines, the maximum register number should be only 5, not 6.

---
Cc: Andreas Kemnade <[email protected]>
Cc: Conor Dooley <[email protected]>
Cc: Krzysztof Kozlowski <[email protected]>
Cc: Lee Jones <[email protected]>
Cc: Pavel Machek <[email protected]>
Cc: Rob Herring <[email protected]>
Cc: [email protected]
Cc: [email protected]

---
 Documentation/devicetree/bindings/leds/rohm,bd2606mvv.yaml | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
Documentation/devicetree/bindings/leds/rohm,bd2606mvv.yaml +2 -2
index 14700a2e5feaa..44dd91aa239de 100644
@@ -35,7 +35,7 @@ properties:
     description: GPIO pin to enable/disable the device.
 
 patternProperties:
-  "^led@[0-6]$":
+  "^led@[0-5]$":
     type: object
     $ref: common.yaml#
     unevaluatedProperties: false
@@ -43,7 +43,7 @@ patternProperties:
     properties:
       reg:
         minimum: 0
-        maximum: 6
+        maximum: 5
 
     required:
       - reg
maintainer Acked-by on v1 1/1
#2 lore raw
In reply to Marek Vasut
Quoted 13 lines · Marek Vasut

Since the chip can drive up to 6 lines, the maximum register number should be only 5, not 6.

---
Cc: Andreas Kemnade <[email protected]>
Cc: Conor Dooley <[email protected]>
Cc: Krzysztof Kozlowski <[email protected]>
Cc: Lee Jones <[email protected]>
Cc: Pavel Machek <[email protected]>
Cc: Rob Herring <[email protected]>
Cc: [email protected]
Cc: [email protected]

Quoted 4 lines
---
 Documentation/devicetree/bindings/leds/rohm,bd2606mvv.yaml | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
maintainer Applied
#3 lore raw
In reply to Marek Vasut
Quoted 13 lines · Marek Vasut

Since the chip can drive up to 6 lines, the maximum register number should be only 5, not 6.

---
Cc: Andreas Kemnade <[email protected]>
Cc: Conor Dooley <[email protected]>
Cc: Krzysztof Kozlowski <[email protected]>
Cc: Lee Jones <[email protected]>
Cc: Pavel Machek <[email protected]>
Cc: Rob Herring <[email protected]>
Cc: [email protected]
Cc: [email protected]

Quoted 3 lines
---
 Documentation/devicetree/bindings/leds/rohm,bd2606mvv.yaml | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Applied, thanks

Signature · 1 line
Lee Jones [李琼斯]