Commit c2d4290b authored by Sam Ravnborg's avatar Sam Ravnborg

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: abdd9e37 ("dt-bindings: display: sitronix,st7735r: Convert to DT schema")
Reported-by: default avatarDavid Lechner <david@lechnology.com>
Signed-off-by: default avatarSam Ravnborg <sam@ravnborg.org>
Reviewed-by: default avatarGeert Uytterhoeven <geert+renesas@glider.be>
Acked-by: default avatarRob 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
parent 5728fe7f
...@@ -39,12 +39,19 @@ properties: ...@@ -39,12 +39,19 @@ properties:
maxItems: 1 maxItems: 1
description: Display data/command selection (D/CX) description: Display data/command selection (D/CX)
backlight: true
reg: true
reset-gpios: true
rotation: true
required: required:
- compatible - compatible
- reg - reg
- dc-gpios - dc-gpios
- reset-gpios - reset-gpios
additionalProperties: false
examples: examples:
- | - |
#include <dt-bindings/gpio/gpio.h> #include <dt-bindings/gpio/gpio.h>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment