ARM: dts: imx6dl-yapp4: Configure the OLED display segment offset
authorMichal Vokáč <michal.vokac@ysoft.com>
Tue, 13 Apr 2021 15:01:16 +0000 (17:01 +0200)
committerShawn Guo <shawnguo@kernel.org>
Thu, 13 May 2021 07:05:02 +0000 (15:05 +0800)
The imx6dl-yapp4 platform uses a GE-LX012864FWPP3N0000 OLED display.
The display consist of a 128x64 OLED panel and a SSD1305 controller.

The OLED panel resolution is 128x64 but the built-in controller default
resolution is 132x64. To display properly a segment offset needs to be
configured.

Signed-off-by: Michal Vokáč <michal.vokac@ysoft.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
arch/arm/boot/dts/imx6dl-yapp4-common.dtsi

index 7d2c72562c73552a43b912cdb08cd931d966ec8b..f2c7298aead1f1e181c9fe7750364e9a45512ece 100644 (file)
                solomon,height = <64>;
                solomon,width = <128>;
                solomon,page-offset = <0>;
+               solomon,col-offset = <4>;
                solomon,prechargep2 = <15>;
                reset-gpios = <&gpio_oled 1 GPIO_ACTIVE_LOW>;
                vbat-supply = <&sw2_reg>;