dt-bindings: display: elgin,jg10309-01: Add own binding
authorFabio Estevam <festevam@gmail.com>
Mon, 30 Sep 2024 21:32:38 +0000 (18:32 -0300)
committerRob Herring (Arm) <robh@kernel.org>
Wed, 2 Oct 2024 00:21:26 +0000 (19:21 -0500)
commitd0a0c91dff5f0d2a084f5dc859360e3dd549354c
treec8c19a3a35b36fb81c5ca2f811194ea01624384b
parent9852d85ec9d492ebef56dc5f229416c925758edc
dt-bindings: display: elgin,jg10309-01: Add own binding

Currently, the compatible 'elgin,jg10309-01' is documented inside
trivial-devices.yaml, but it does not fit well there as it requires
extra properties such as spi-max-frequency, spi-cpha, and spi-cpol.

This causes the following dt-schema warnings:

make CHECK_DTBS=y rockchip/rv1108-elgin-r1.dtb -j12

  DTC [C] arch/arm/boot/dts/rockchip/rv1108-elgin-r1.dtb
rv1108-elgin-r1.dtb:display@0: 'spi-cpha', 'spi-cpol' do not match any of the regexes:
...

Fix this problem by introducing a specific binding for the Elgin
JG10309-01 SPI-controlled display.

Signed-off-by: Fabio Estevam <festevam@gmail.com>
Reviewed-by: Krzysztof Kozlowski <krzk@kernel.org>
Link: https://lore.kernel.org/r/20240930213238.977833-1-festevam@gmail.com
Signed-off-by: Rob Herring (Arm) <robh@kernel.org>
Documentation/devicetree/bindings/display/elgin,jg10309-01.yaml [new file with mode: 0644]
Documentation/devicetree/bindings/trivial-devices.yaml