diff options
author | Sam Ravnborg <[email protected]> | 2020-01-20 20:02:49 +0100 |
---|---|---|
committer | Sam Ravnborg <[email protected]> | 2020-01-23 19:16:36 +0100 |
commit | c2d4290ba0fff0aad5bc491af18adfbc88bf1c8c (patch) | |
tree | c59f017d4a34fc06ef09da59825e72a7d9e0a66f | |
parent | 5728fe7fa539ead1567ee96ddc900d333f3e5792 (diff) |
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 <[email protected]>
Signed-off-by: Sam Ravnborg <[email protected]>
Reviewed-by: Geert Uytterhoeven <[email protected]>
Acked-by: Rob Herring <[email protected]>
Cc: David Lechner <[email protected]>
Cc: [email protected]
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
-rw-r--r-- | Documentation/devicetree/bindings/display/sitronix,st7735r.yaml | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/display/sitronix,st7735r.yaml b/Documentation/devicetree/bindings/display/sitronix,st7735r.yaml index 8892d79e6e10..0cebaaefda03 100644 --- a/Documentation/devicetree/bindings/display/sitronix,st7735r.yaml +++ b/Documentation/devicetree/bindings/display/sitronix,st7735r.yaml @@ -39,12 +39,19 @@ properties: maxItems: 1 description: Display data/command selection (D/CX) + backlight: true + reg: true + reset-gpios: true + rotation: true + required: - compatible - reg - dc-gpios - reset-gpios +additionalProperties: false + examples: - | #include <dt-bindings/gpio/gpio.h> |