dt-bindings: display: panel: constrain 'reg' in SPI panels
authorKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Thu, 9 May 2024 09:42:52 +0000 (11:42 +0200)
committerRob Herring (Arm) <robh@kernel.org>
Mon, 13 May 2024 14:57:34 +0000 (09:57 -0500)
SPI-attached devices could have more than one chip-select, thus their
bindings are supposed to constrain the 'reg' property to match hardware.
Add missing 'reg' constrain for SPI-attached display panels.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Acked-by: Conor Dooley <conor.dooley@microchip.com>
Link: https://lore.kernel.org/r/20240509-dt-bindings-dsi-panel-reg-v1-2-8b2443705be0@linaro.org
Signed-off-by: Rob Herring (Arm) <robh@kernel.org>
22 files changed:
Documentation/devicetree/bindings/display/panel/abt,y030xx067a.yaml
Documentation/devicetree/bindings/display/panel/fascontek,fs035vg158.yaml
Documentation/devicetree/bindings/display/panel/ilitek,ili9163.yaml
Documentation/devicetree/bindings/display/panel/ilitek,ili9322.yaml
Documentation/devicetree/bindings/display/panel/ilitek,ili9341.yaml
Documentation/devicetree/bindings/display/panel/innolux,ej030na.yaml
Documentation/devicetree/bindings/display/panel/kingdisplay,kd035g6-54nt.yaml
Documentation/devicetree/bindings/display/panel/leadtek,ltk035c5444t.yaml
Documentation/devicetree/bindings/display/panel/lg,lg4573.yaml
Documentation/devicetree/bindings/display/panel/lgphilips,lb035q02.yaml
Documentation/devicetree/bindings/display/panel/nec,nl8048hl11.yaml
Documentation/devicetree/bindings/display/panel/panel-mipi-dbi-spi.yaml
Documentation/devicetree/bindings/display/panel/samsung,ams495qa01.yaml
Documentation/devicetree/bindings/display/panel/samsung,ld9040.yaml
Documentation/devicetree/bindings/display/panel/samsung,lms380kf01.yaml
Documentation/devicetree/bindings/display/panel/samsung,lms397kf04.yaml
Documentation/devicetree/bindings/display/panel/samsung,s6d27a1.yaml
Documentation/devicetree/bindings/display/panel/samsung,s6e63m0.yaml
Documentation/devicetree/bindings/display/panel/sitronix,st7789v.yaml
Documentation/devicetree/bindings/display/panel/sony,acx565akm.yaml
Documentation/devicetree/bindings/display/panel/tpo,td.yaml
Documentation/devicetree/bindings/display/panel/tpo,tpg110.yaml

index acd2f3faa6b9b0616111301f94975ecc1283bf62..0aa2d3fbadaa04918010cc72550375538a04bc0e 100644 (file)
@@ -17,10 +17,12 @@ properties:
   compatible:
     const: abt,y030xx067a
 
+  reg:
+    maxItems: 1
+
   backlight: true
   port: true
   power-supply: true
-  reg: true
   reset-gpios: true
 
 required:
index d13c4bd26de4624cf6082da17e058e9743709c14..9847da784cc87e905ddaed339e41749dc9180372 100644 (file)
@@ -17,6 +17,9 @@ properties:
   compatible:
     const: fascontek,fs035vg158
 
+  reg:
+    maxItems: 1
+
   spi-3wire: true
 
 required:
index 3cabbba86581caa688fcd8bdcd4bc989f56461c7..ef5a2240b684d0a19df03189a4b4fcc8b1e0226c 100644 (file)
@@ -24,6 +24,9 @@ properties:
           - newhaven,1.8-128160EF
       - const: ilitek,ili9163
 
+  reg:
+    maxItems: 1
+
   spi-max-frequency:
     maximum: 32000000
 
@@ -32,7 +35,6 @@ properties:
     description: Display data/command selection (D/CX)
 
   backlight: true
-  reg: true
   reset-gpios: true
   rotation: true
 
index 7d221ef35443420cf9bd4bc6c3a561f0f83d34f6..44423465f6e35bc259f184031dd71bab3f5dabe3 100644 (file)
@@ -26,6 +26,9 @@ properties:
           - dlink,dir-685-panel
       - const: ilitek,ili9322
 
+  reg:
+    maxItems: 1
+
   reset-gpios: true
   port: true
 
index 94f169ea065a026cb730145a7024e4852d841477..5f41758c96d5cbaf64cdeba8b178187708e9d38c 100644 (file)
@@ -28,7 +28,8 @@ properties:
           - canaan,kd233-tft
       - const: ilitek,ili9341
 
-  reg: true
+  reg:
+    maxItems: 1
 
   dc-gpios:
     maxItems: 1
index 72788e3e6c59064423eff61faa5bb58599291303..c7df9a7f6589ec11cc74dfba7de9d3217087fcb0 100644 (file)
@@ -17,10 +17,12 @@ properties:
   compatible:
     const: innolux,ej030na
 
+  reg:
+    maxItems: 1
+
   backlight: true
   port: true
   power-supply: true
-  reg: true
   reset-gpios: true
 
 required:
index b4be9bd8ddde7c681895894689d03c3e4f855ed9..d86c916f7b5546274670ff6fc5cfe0721533f2b2 100644 (file)
@@ -17,10 +17,12 @@ properties:
   compatible:
     const: kingdisplay,kd035g6-54nt
 
+  reg:
+    maxItems: 1
+
   backlight: true
   port: true
   power-supply: true
-  reg: true
   reset-gpios: true
 
   spi-3wire: true
index 7a55961e1a3d3509512e85407bcb28ad1533f029..b5dc02b27200290952af15a033e5ca588bacec70 100644 (file)
@@ -18,6 +18,9 @@ properties:
   compatible:
     const: leadtek,ltk035c5444t
 
+  reg:
+    maxItems: 1
+
   spi-3wire: true
 
 required:
index ee357e139ac078f4777f6baf2c243ad17e26a452..590ccc27d10447aa45a6364730fa7fad5271ae84 100644 (file)
@@ -21,7 +21,8 @@ properties:
   compatible:
     const: lg,lg4573
 
-  reg: true
+  reg:
+    maxItems: 1
 
 required:
   - compatible
index 628c4b8981114fbc4372d484a6bf32e9820a561a..3de17fd8513bf869259800c878f5d4d54f95bf13 100644 (file)
@@ -17,6 +17,9 @@ properties:
   compatible:
     const: lgphilips,lb035q02
 
+  reg:
+    maxItems: 1
+
   label: true
   enable-gpios: true
   port: true
index accf933d6e465118d019223dd8503ce7dd67ba75..1cffe4d6d49844b0adcdc39153aae8bf08f05948 100644 (file)
@@ -21,9 +21,11 @@ properties:
   compatible:
     const: nec,nl8048hl11
 
+  reg:
+    maxItems: 1
+
   label: true
   port: true
-  reg: true
   reset-gpios: true
 
   spi-max-frequency:
index e808215cb39eec13e4ded69517bd51973ffe1ed3..d0ac31ab60cf3728aebeabd781d917280ebd29f7 100644 (file)
@@ -71,6 +71,9 @@ properties:
           - shineworld,lh133k
       - const: panel-mipi-dbi-spi
 
+  reg:
+    maxItems: 1
+
   write-only:
     type: boolean
     description:
index a5ff4de74a1582b71b6991ce27a6c89bc27db311..e081c84a932b6ba883aa1acc5d60237f55f4414f 100644 (file)
@@ -17,7 +17,9 @@ properties:
   compatible:
     const: samsung,ams495qa01
 
-  reg: true
+  reg:
+    maxItems: 1
+
   reset-gpios:
     description: reset gpio, must be GPIO_ACTIVE_LOW
   elvdd-supply:
index c0fabeb3862886c2c0ee362500a7d44cc8cdc2e2..bc92b16c95b9eef932b1022a0fa3eeef43bf984b 100644 (file)
@@ -17,9 +17,11 @@ properties:
   compatible:
     const: samsung,ld9040
 
+  reg:
+    maxItems: 1
+
   display-timings: true
   port: true
-  reg: true
   reset-gpios: true
 
   vdd3-supply:
index 70ffc88d2a0819ffe22c1a2298eae010d356e7a2..7ce8540551f9ebd1a327f2cc599dbec957ddbae5 100644 (file)
@@ -21,7 +21,8 @@ properties:
   compatible:
     const: samsung,lms380kf01
 
-  reg: true
+  reg:
+    maxItems: 1
 
   interrupts:
     description: provides an optional ESD (electrostatic discharge)
index 5e77cee93f833bcb8867b41ff903fc0a70d24379..9363032883de455b9930340914818b1f49ceea20 100644 (file)
@@ -20,7 +20,8 @@ properties:
   compatible:
     const: samsung,lms397kf04
 
-  reg: true
+  reg:
+    maxItems: 1
 
   reset-gpios: true
 
index d273faf4442ac60546808611bf72ede1c580c3bc..d74904164719d432b77036fb66c51fde8b765f7f 100644 (file)
@@ -20,7 +20,8 @@ properties:
   compatible:
     const: samsung,s6d27a1
 
-  reg: true
+  reg:
+    maxItems: 1
 
   interrupts:
     description: provides an optional ESD (electrostatic discharge)
index 6f1fc7469f076f68432b16c39341612c16326261..c47e2a1a30e5b771b49d99663ceae6a9217bb909 100644 (file)
@@ -18,7 +18,9 @@ properties:
   compatible:
     const: samsung,s6e63m0
 
-  reg: true
+  reg:
+    maxItems: 1
+
   reset-gpios: true
   port: true
   default-brightness: true
index ef162b51d010de233c4e7d660732670f249bfc30..0ce2ea13583dd73a1dc57a90b6f68d6a7b5a6bd1 100644 (file)
@@ -21,7 +21,9 @@ properties:
       - jasonic,jt240mhqs-hwt-ek-e3
       - sitronix,st7789v
 
-  reg: true
+  reg:
+    maxItems: 1
+
   reset-gpios: true
   power-supply: true
   backlight: true
index 98abdf4ddeac605aeb1dc18d15b60a7a7beb372c..5a8260224b74778014371608fdf5fe37aaac803b 100644 (file)
@@ -17,6 +17,9 @@ properties:
   compatible:
     const: sony,acx565akm
 
+  reg:
+    maxItems: 1
+
   label: true
   reset-gpios: true
   port: true
index e8c8ee8d7c8830ca920bd2069c3d40c5e4399c19..7edd29df4bbb5164d0f23abacfedffa1a6e090da 100644 (file)
@@ -22,7 +22,9 @@ properties:
         # Toppoly TD043MTEA1 Panel
       - tpo,td043mtea1
 
-  reg: true
+  reg:
+    maxItems: 1
+
   label: true
   reset-gpios: true
   backlight: true
index f0243d1961916fde01c5e456cef60e86a74cab46..59a373728e628d62375ecee2d22fa6df9af48107 100644 (file)
@@ -52,7 +52,8 @@ properties:
           - const: tpo,tpg110
       - const: tpo,tpg110
 
-  reg: true
+  reg:
+    maxItems: 1
 
   grestb-gpios:
     maxItems: 1