Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

spi/panel: dt-bindings: drop 3-wire from common properties

The spi-3wire property is device specific and should be accepted only if
device really needs them. Drop it from common spi-peripheral-props.yaml
schema, mention in few panel drivers which use it and include instead in
the SPI controller bindings. The controller bindings will provide
spi-3wire type validation and one place for description. Each device
schema must list the property if it is applicable.

The Samsung S6E63M0 panel uses also spi-cpha/cpol properties on at least
one board (ste-ux500-samsung-janice/dts), so add also these to the
panel's bindings.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Reviewed-by: Rob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/20220810131311.428645-1-krzysztof.kozlowski@linaro.org
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

Krzysztof Kozlowski and committed by
Mark Brown
41f53a65 0df874c6

+13 -5
+2
Documentation/devicetree/bindings/display/panel/kingdisplay,kd035g6-54nt.yaml
··· 23 23 reg: true 24 24 reset-gpios: true 25 25 26 + spi-3wire: true 27 + 26 28 required: 27 29 - compatible 28 30 - power-supply
+2
Documentation/devicetree/bindings/display/panel/leadtek,ltk035c5444t.yaml
··· 24 24 reg: true 25 25 reset-gpios: true 26 26 27 + spi-3wire: true 28 + 27 29 required: 28 30 - compatible 29 31 - power-supply
+4
Documentation/devicetree/bindings/display/panel/samsung,s6e63m0.yaml
··· 24 24 default-brightness: true 25 25 max-brightness: true 26 26 27 + spi-3wire: true 28 + spi-cpha: true 29 + spi-cpol: true 30 + 27 31 vdd3-supply: 28 32 description: VDD regulator 29 33
+5
Documentation/devicetree/bindings/spi/spi-controller.yaml
··· 96 96 $ref: spi-peripheral-props.yaml 97 97 98 98 properties: 99 + spi-3wire: 100 + $ref: /schemas/types.yaml#/definitions/flag 101 + description: 102 + The device requires 3-wire mode. 103 + 99 104 spi-cpha: 100 105 $ref: /schemas/types.yaml#/definitions/flag 101 106 description:
-5
Documentation/devicetree/bindings/spi/spi-peripheral-props.yaml
··· 29 29 description: 30 30 Chip select used by the device. 31 31 32 - spi-3wire: 33 - $ref: /schemas/types.yaml#/definitions/flag 34 - description: 35 - The device requires 3-wire mode. 36 - 37 32 spi-cs-high: 38 33 $ref: /schemas/types.yaml#/definitions/flag 39 34 description: