1 From d2db7798740061f6d54487ecaa9da15bc89cdc3c Mon Sep 17 00:00:00 2001
2 From: Javier Martinez Canillas <javierm@redhat.com>
3 Date: Tue, 28 Mar 2023 05:11:58 +0200
4 Subject: [PATCH] dtoverlays: Add inverted override property to
7 The new ssd130x DRM driver supports both SSD1306 I2C and SPI panels and is
8 compatible with the ssd1307fb driver bindings. So the "solomon,com-invdir"
9 DT property (to invert the COM pin scan dir) can also be used for SPI now.
11 This allows to configure panels whose scan direction needs to be inverted.
13 Signed-off-by: Javier Martinez Canillas <javierm@redhat.com>
15 arch/arm/boot/dts/overlays/README | 2 ++
16 arch/arm/boot/dts/overlays/ssd1306-spi-overlay.dts | 1 +
17 2 files changed, 3 insertions(+)
19 --- a/arch/arm/boot/dts/overlays/README
20 +++ b/arch/arm/boot/dts/overlays/README
21 @@ -4074,6 +4074,8 @@ Params: speed SPI bus
22 dc_pin GPIO pin for D/C (default 24)
23 reset_pin GPIO pin for RESET (default 25)
24 height Display height (32 or 64; default 64)
25 + inverted Set this if display is inverted and mirrored.
30 --- a/arch/arm/boot/dts/overlays/ssd1306-spi-overlay.dts
31 +++ b/arch/arm/boot/dts/overlays/ssd1306-spi-overlay.dts
33 reset_pin = <&ssd1306>,"reset-gpios:4",
34 <&ssd1306_pins>,"brcm,pins:0";
35 height = <&ssd1306>,"solomon,height:0";
36 + inverted = <&ssd1306>,"solomon,com-invdir?";