]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
dt-bindings: display: panel: constrain 'reg' in DSI panels (part two)
authorKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Wed, 5 Jun 2024 10:56:59 +0000 (12:56 +0200)
committerRob Herring (Arm) <robh@kernel.org>
Thu, 6 Jun 2024 21:00:51 +0000 (15:00 -0600)
DSI-attached devices could respond to more than one virtual channel
number, thus their bindings are supposed to constrain the 'reg' property
to match hardware.  Add missing 'reg' constrain for DSI-attached display
panels, based on DTS sources in Linux kernel (assume all devices take
only one channel number).

Few bindings missed previous fixup: LG SW43408 and Raydium RM69380.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Acked-by: Conor Dooley <conor.dooley@microchip.com>
Link: https://lore.kernel.org/r/20240605105659.27433-1-krzysztof.kozlowski@linaro.org
Signed-off-by: Rob Herring (Arm) <robh@kernel.org>
Documentation/devicetree/bindings/display/panel/lg,sw43408.yaml
Documentation/devicetree/bindings/display/panel/raydium,rm69380.yaml

index 1e08648f5bc7712f6bf9634f06aa9769dfd808d1..bbaaa783d184eb97e45d740085e2f24a84275c39 100644 (file)
@@ -21,7 +21,9 @@ properties:
     items:
       - const: lg,sw43408
 
-  reg: true
+  reg:
+    maxItems: 1
+
   port: true
   vddi-supply: true
   vpnl-supply: true
index b17765b2b351be289c82d439b2651248913b4a05..ec445ff5631c99e39667e55a025c10c601741e96 100644 (file)
@@ -28,6 +28,9 @@ properties:
       to work with the indicated panel. The raydium,rm69380 compatible shall
       always be provided as a fallback.
 
+  reg:
+    maxItems: 1
+
   avdd-supply:
     description: Analog voltage rail
 
@@ -38,8 +41,6 @@ properties:
     maxItems: 1
     description: phandle of gpio for reset line - This should be active low
 
-  reg: true
-
 required:
   - compatible
   - reg