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

dt-bindings: restrict properties for sitronix,st7735r

David Lechner noticed (paraphrased):
- not all properties from panel-common are applicable.
- missing optional rotation and backlight properties

Fix this by listing all allowed properties,
and do not allow other properties.

Fixes: abdd9e3705c8 ("dt-bindings: display: sitronix,st7735r: Convert to DT schema")
Reported-by: David Lechner <david@lechnology.com>
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Acked-by: Rob Herring <robh@kernel.org>
Cc: David Lechner <david@lechnology.com>
Cc: dri-devel@lists.freedesktop.org
Link: https://patchwork.freedesktop.org/patch/msgid/20200120190249.GA9619@ravnborg.org

+7
+7
Documentation/devicetree/bindings/display/sitronix,st7735r.yaml
··· 39 39 maxItems: 1 40 40 description: Display data/command selection (D/CX) 41 41 42 + backlight: true 43 + reg: true 44 + reset-gpios: true 45 + rotation: true 46 + 42 47 required: 43 48 - compatible 44 49 - reg 45 50 - dc-gpios 46 51 - reset-gpios 52 + 53 + additionalProperties: false 47 54 48 55 examples: 49 56 - |