Received: by 2002:a25:ca44:0:0:0:0:0 with SMTP id a65csp2597438ybg; Fri, 31 Jul 2020 05:02:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw8lng8XOJ7wMgXC2CiV6zzfbV5FtX+oDgOg/C8NjS7D0kxPQRnTWHePqkc9WedHPt4Mv45 X-Received: by 2002:a17:906:3a9b:: with SMTP id y27mr3689458ejd.38.1596196942647; Fri, 31 Jul 2020 05:02:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596196942; cv=none; d=google.com; s=arc-20160816; b=eAcuXxwCIIXSBAhd50NPHlLrtwcCfzWbvB126zdVu14XA9gTNC57/240p17lKGgd1l uBJaaP641Isgx6KatQBijtGFq0PQl5uZheZzLh/ySPQeC3VjH9O5oZPZERBnkPN+BxRg Up/xU+arztt6NwHNDYeQbMw9Yzg4AOaEXzvfidQOkoV0qBlX9bLA7IjiPKisn1PaV0xI T6xXHOQWEURoENVLqn/NxwDY5EFXPmErIZBdhk9uOuz9annrAJ9xlcjIXtkv2mv9HH91 7mp6Vc+GXXmojjnQb+IQBqdhKZUaGzYhfRysvNBp/tttIw1aZRhKPjebcUrhIEx89k9t bXyA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=C3An1wwqG0nWOOSDbQp59NJiranQJz7PFMVstRqtbGE=; b=zgwegd6HXP2MrqCMFBx7NgJ5lBiOjDLF/WU3qUeuWkaEq1llhU5M3wyFvEgdLgkoWo PqiMEQ5g3yXu8gk+5tEB1JaXFOlWu8L+9EvueF4JJJ9l2P7Tg0CuFwFrUlImsHhebi7z Pd8/MP8/Hya8bu9jbI5sw/fgrthZNy+6BXTebwNa9muha/uJm/ioAq12bY4IPUB5Sbn0 khrvdsOaEOpy8/z0zqokLTsucQZ3yUS+x8nrAtVrQ6z8TUEV0oOwJZSIsV2ahhM2adIH 3vh3tkhONCFuXDpcU0AHmz0ViHPYLJtyFDSluTTosmedoupRNly/SilHu8LEd+sYFO8Q Fk5Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@ysoft.com header.s=20160406-ysoft-com header.b=OvOJK3nM; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=ysoft.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e2si4876250ejj.50.2020.07.31.05.01.59; Fri, 31 Jul 2020 05:02:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass (test mode) header.i=@ysoft.com header.s=20160406-ysoft-com header.b=OvOJK3nM; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=ysoft.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732973AbgGaMAl (ORCPT + 99 others); Fri, 31 Jul 2020 08:00:41 -0400 Received: from uho.ysoft.cz ([81.19.3.130]:47922 "EHLO uho.ysoft.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732771AbgGaMAf (ORCPT ); Fri, 31 Jul 2020 08:00:35 -0400 Received: from iota-build.ysoft.local (unknown [10.1.5.151]) by uho.ysoft.cz (Postfix) with ESMTP id B87AAA3721; Fri, 31 Jul 2020 14:00:32 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ysoft.com; s=20160406-ysoft-com; t=1596196832; bh=C3An1wwqG0nWOOSDbQp59NJiranQJz7PFMVstRqtbGE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=OvOJK3nMlvhylcphoj8ekMTMUACveJCOSH3mOEmJEu5S1AhPkXeBpz320EmnNRZHI Mmq2jzLeZa1cvMAA+qZ9Ts0KbaJJF47oBMj11RcuVgwt+WnLeIp/pCfX4P84dpGDqs tw31KaGY7qZuLSjpHy/8JSCpMBZyr8B2zDb360xs= From: =?UTF-8?q?Michal=20Vok=C3=A1=C4=8D?= To: Rob Herring , Shawn Guo Cc: Mark Rutland , Sascha Hauer , Fabio Estevam , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, =?UTF-8?q?Michal=20Vok=C3=A1=C4=8D?= Subject: [PATCH 3/3] ARM: dts: imx6dl-yapp4: Add support for OLED based on different controller Date: Fri, 31 Jul 2020 14:00:08 +0200 Message-Id: <1596196808-5067-3-git-send-email-michal.vokac@ysoft.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1596196808-5067-1-git-send-email-michal.vokac@ysoft.com> References: <1596196808-5067-1-git-send-email-michal.vokac@ysoft.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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áč --- arch/arm/boot/dts/imx6dl-yapp4-common.dtsi | 15 ++++++++++++++- arch/arm/boot/dts/imx6dl-yapp4-hydra.dts | 6 +++++- arch/arm/boot/dts/imx6dl-yapp4-orion.dts | 6 +++++- 3 files changed, 24 insertions(+), 3 deletions(-) diff --git a/arch/arm/boot/dts/imx6dl-yapp4-common.dtsi b/arch/arm/boot/dts/imx6dl-yapp4-common.dtsi index c4a235d212b6..e626bef768bf 100644 --- a/arch/arm/boot/dts/imx6dl-yapp4-common.dtsi +++ b/arch/arm/boot/dts/imx6dl-yapp4-common.dtsi @@ -311,7 +311,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>; diff --git a/arch/arm/boot/dts/imx6dl-yapp4-hydra.dts b/arch/arm/boot/dts/imx6dl-yapp4-hydra.dts index 6010d3d872ab..a19609c7c7c0 100644 --- a/arch/arm/boot/dts/imx6dl-yapp4-hydra.dts +++ b/arch/arm/boot/dts/imx6dl-yapp4-hydra.dts @@ -29,7 +29,11 @@ status = "okay"; }; -&oled { +&oled_1305 { + status = "okay"; +}; + +&oled_1309 { status = "okay"; }; diff --git a/arch/arm/boot/dts/imx6dl-yapp4-orion.dts b/arch/arm/boot/dts/imx6dl-yapp4-orion.dts index 0428720417ef..884b236746bb 100644 --- a/arch/arm/boot/dts/imx6dl-yapp4-orion.dts +++ b/arch/arm/boot/dts/imx6dl-yapp4-orion.dts @@ -25,7 +25,11 @@ status = "okay"; }; -&oled { +&oled_1305 { + status = "okay"; +}; + +&oled_1309 { status = "okay"; }; -- 2.1.4