diff options
author | Michal Vokáč <michal.vokac@ysoft.com> | 2020-07-31 14:00:08 +0200 |
---|---|---|
committer | Shawn Guo <shawnguo@kernel.org> | 2020-08-22 20:21:01 +0800 |
commit | 37d7b7a5baca43722d332e190a3c86ac0c4341e8 (patch) | |
tree | 29654f4a049dcf01c860e9120eb1721686d865c6 /arch/arm/boot/dts/imx6dl-yapp4-common.dtsi | |
parent | e642c831ebdd560b5f3ffa731f1e8280eecca2f6 (diff) | |
download | lwn-37d7b7a5baca43722d332e190a3c86ac0c4341e8.tar.gz lwn-37d7b7a5baca43722d332e190a3c86ac0c4341e8.zip |
ARM: dts: imx6dl-yapp4: Add support for OLED based on different controller
OLED display consist of an OLED panel and a display controller.
The displays that were used on yapp4 platform were based on a SSD1305
controller. These displays are now discontinued and we need to add
support for a replacement.
The new display is based on SSD1309 controller and requires slightly
different configuration (mirror + segment offset). We want to support
both display types so it does no matter which one was used on the assembly
line. Hence the displays are placed at different I2C addresses.
Signed-off-by: Michal Vokáč <michal.vokac@ysoft.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
Diffstat (limited to 'arch/arm/boot/dts/imx6dl-yapp4-common.dtsi')
-rw-r--r-- | arch/arm/boot/dts/imx6dl-yapp4-common.dtsi | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/arch/arm/boot/dts/imx6dl-yapp4-common.dtsi b/arch/arm/boot/dts/imx6dl-yapp4-common.dtsi index 207f510cb518..46927a020943 100644 --- a/arch/arm/boot/dts/imx6dl-yapp4-common.dtsi +++ b/arch/arm/boot/dts/imx6dl-yapp4-common.dtsi @@ -316,7 +316,20 @@ pinctrl-0 = <&pinctrl_i2c3>; status = "okay"; - oled: oled@3d { + oled_1309: oled@3c { + compatible = "solomon,ssd1309fb-i2c"; + reg = <0x3c>; + solomon,height = <64>; + solomon,width = <128>; + solomon,page-offset = <0>; + solomon,segment-no-remap; + solomon,prechargep2 = <15>; + reset-gpios = <&gpio_oled 1 GPIO_ACTIVE_LOW>; + vbat-supply = <&sw2_reg>; + status = "disabled"; + }; + + oled_1305: oled@3d { compatible = "solomon,ssd1305fb-i2c"; reg = <0x3d>; solomon,height = <64>; |