535c751da654d2387ff86e94bc9dffcf57de9231
[openwrt/staging/blocktrron.git] /
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
5 ssd1306-spi
6
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.
10
11 This allows to configure panels whose scan direction needs to be inverted.
12
13 Signed-off-by: Javier Martinez Canillas <javierm@redhat.com>
14 ---
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(+)
18
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.
26 + (default=not set)
27
28
29 Name: ssd1331-spi
30 --- a/arch/arm/boot/dts/overlays/ssd1306-spi-overlay.dts
31 +++ b/arch/arm/boot/dts/overlays/ssd1306-spi-overlay.dts
32 @@ -80,5 +80,6 @@
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?";
37 };
38 };