From: Sam Ravnborg Date: Mon, 20 Jan 2020 19:02:49 +0000 (+0100) Subject: dt-bindings: restrict properties for sitronix,st7735r X-Git-Tag: v5.15~303^2~28^2~3624 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c2d4290ba0fff0aad5bc491af18adfbc88bf1c8c;p=platform%2Fkernel%2Flinux-starfive.git 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 Signed-off-by: Sam Ravnborg Reviewed-by: Geert Uytterhoeven Acked-by: Rob Herring Cc: David Lechner Cc: dri-devel@lists.freedesktop.org Link: https://patchwork.freedesktop.org/patch/msgid/20200120190249.GA9619@ravnborg.org --- 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