From patchwork Fri Sep 25 05:08:18 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?J=2E_Neusch=C3=A4fer?= X-Patchwork-Id: 11798929 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id BAA3B112E for ; Fri, 25 Sep 2020 05:26:26 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 7BB392137B for ; Fri, 25 Sep 2020 05:26:26 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="Ds0c0lRd"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=gmx.net header.i=@gmx.net header.b="XNpGH8m/" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 7BB392137B Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=gmx.net Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=a8RV5jAcsu771/6DBgg6ZtHMQOHUV64+YWsgQFCkpZ0=; b=Ds0c0lRdDy5H/d6OWAmUnN/4R oaVCjcDNVzCwBwg7e0wB4VXNXaiLubVQLg/NvPOTjByHbA95Kr2299Hwfl/Vlc29RSvxYLv5HJY+w XkjjZ/NmU9mpf47ddtpZpA051+tPIudjMl/BVuRJFtcNU/Dan+V1m0uL43x4pN4LU/nGN6jlc+fVT OpE/CXGVArer6SOvZyJNp/Pk/IUq9kY30/rcdZMXZprTLJgHE74IT0M0gfEcSmNUzP5aH2YjkMgOU 6o9MKTQiIOcH9X088ztwI6AX9o3p64warYQiU1cD2JiIotKQA9RJzVup17ogR/SJtRcPW0z12l6zC vw/LCoAzw==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kLgDn-0003Xd-EL; Fri, 25 Sep 2020 05:24:39 +0000 Received: from mout.gmx.net ([212.227.17.21]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kLgDk-0003X9-S8 for linux-arm-kernel@lists.infradead.org; Fri, 25 Sep 2020 05:24:37 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1601011465; bh=HlgnC3df/tJycBpbEiuMsr+Bt4rnu2osQrbv2JddJP0=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=XNpGH8m/7IWzoSPtsGt4Jtq3IzvIwZ87RXTskiaIMjLQz44WGJIUkr6nuEvWG42DM l6hiiXr24B5dO6gOyab2RfOb1vKtmRfP/hPOlzDKnFrUrC8FwzdeMyR5jM3V0Ogog0 Aq29+w4+GkmPjkdkQDezwhob+Zl0iHkGRVes/8Sg= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from longitude ([5.146.195.151]) by mail.gmx.com (mrgmx105 [212.227.17.168]) with ESMTPSA (Nemesis) id 1Mwfac-1kg4922a1S-00yB85; Fri, 25 Sep 2020 07:08:58 +0200 From: =?utf-8?q?Jonathan_Neusch=C3=A4fer?= To: linux-kernel@vger.kernel.org Subject: [PATCH v3 7/7] ARM: dts: imx50-kobo-aura: Add Netronix embedded controller Date: Fri, 25 Sep 2020 07:08:18 +0200 Message-Id: <20200925050818.2512375-1-j.neuschaefer@gmx.net> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20200924192455.2484005-1-j.neuschaefer@gmx.net> References: <20200924192455.2484005-1-j.neuschaefer@gmx.net> MIME-Version: 1.0 X-Provags-ID: V03:K1:nFSbCxYo1nlk4h1TGxOTycwOxGsiVBkLTP+jxKBPubrqFtoiXOt UhgfLQwcAL7GuTFPSvGVq/uyUN89Cz4VHuv9YGqdwFN3ATncYCB2rNDcfDyaJDoPnvAu+wv dKrwRZvpGHgo7HH3vaodHF9te1ugFsggudcQm4G29a75qCzjTHthOaV8CsFgwLn9NAeKD7N G/NyBCqBjMS7Ivz6inXgg== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:hwXGMnPUfEU=:VQGNci8f/2GmaYWcXpDeyj 1vBAXvWC7hyO2mlpTYHsuxNWi14e+zufZRqF7+oVzOI7u1RtIWilgrAKMdFqjhOk2UmMV0qyD IvvykVYHxeqCdc09ryJFPjT281XGyL+abIcD57Cl8avKc+D2ZHXiljxk1DXOES+Q31vAK/P9h 21CYORJgN73J1Lvl0KDl1hurzZs7ZpyctZb2K098z/FqVeaemPtySeUx2h6Vnz+VwYk6DzJR7 Cb/89uY71cfc0jUxkoWyw/l/N28AIWzGCgXTNtTAKvK2CebTDZO8CBIjRnZjB8qMbh/CqZJoq IDYkXLQR/hRXXJs8A7jpAccYw5CmGajgLOeTs0WxeBi/alsoXAozzlVfVDZFGCtfCJ0qSITuh 2IEmLyFzGZBw9ma25IYqkXFSRHBLvhlDMtxu9Z53W4kioEONb57qSsDfCCe+5HNU6kTdTYxrM 5lqdYmyF2WctjuBMXqCnGguIR/XdJAeDPXnHGtavDPH2VwPbkzfNVJmZZmGg90ubsi0JbwtH2 IoQUnfWAC8U7pVFSCs4g9wTz0R3OanLQ1jP3lqUjos4ngCORNrVvsB8B/9HipXGT18fK49O9m MLdn/kRFZSu80o2v+Kk+oA8txgTulrzSVTUKTcE3C6lAezhBOUGCuHkV2PdpJvovVb++KuOWM 9rAGYqWC4f/KDIrCcb+4wg5thV0ylnA1KxvlTTpSt1HYzM+/JAzQ+zoSL2NWh2Er5FjIVGru+ AwmW3aesbFaLxixMnYW97FKqGi+z3Uz/4zDLZLK3bQy4xwgAOBaTTede1SmAruwDN7VNk44oi XLZWIlc042/+O6+UhYOOtEiK7eSAdmohly9iJvQskQtlI9J1nW8uTRgVzNmom/OsWiQa5J4Ve JR+KIow8sFIGV+bGwSqKQB6mDxN6LiyeKHeVxhx1Hgv5bg/pYAMqD0BfsqMVsRUUQmeDDbZco P6gkOh5Bu5/eci49gmyn57axvMkAPSRJp9KkJJefvDpM8otVCHzq22nSMxHS2nN7NIL+tZ5+F YC4ZjKcYb1htaPwRwp13a91uesVGE4SBSUFsULozP5dPv6ImA5aTgCPP9ed94WqGscP2jMiV0 VluOdrm+GKuZFLrO9uEwrJsAXgiiKqnVHIH0p134iDFtlGej4DrF5mOA/VstreZ8tRFYBh1hR rNiPVOwtgcBJZ7Tywe1i3fRqKUU6yp5gv8qBSulbuHR+PhE5ay3pbB786ZSciB4Q+K7RpzPdy 9k0T5j136boh2eRGge4y2DvKwk9ejVrvPxlVrwg== X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200925_012437_105783_5C7A5952 X-CRM114-Status: GOOD ( 16.37 ) X-Spam-Score: -0.9 (/) X-Spam-Report: SpamAssassin version 3.4.4 on merlin.infradead.org summary: Content analysis details: (-0.9 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at https://www.dnswl.org/, low trust [212.227.17.21 listed in list.dnswl.org] -0.0 RCVD_IN_MSPIKE_H2 RBL: Average reputation (+2) [212.227.17.21 listed in wl.mailspike.net] 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider [j.neuschaefer[at]gmx.net] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 SPF_PASS SPF: sender matches SPF record -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Alexandre Belloni , Heiko Stuebner , linux-pwm@vger.kernel.org, Linus Walleij , Thierry Reding , Fabio Estevam , linux-rtc@vger.kernel.org, Arnd Bergmann , Mauro Carvalho Chehab , Sam Ravnborg , Daniel Palmer , Andy Shevchenko , Andreas Kemnade , NXP Linux Team , =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= , devicetree@vger.kernel.org, Stephan Gerhold , allen , Sascha Hauer , =?utf-8?q?Jonathan_Neusch=C3=A4fer?= , Lubomir Rintel , Rob Herring , Lee Jones , linux-arm-kernel@lists.infradead.org, Alessandro Zummo , Mark Brown , Pengutronix Kernel Team , Heiko Stuebner , Josua Mayer , Shawn Guo , "David S. Miller" Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org Enable the Netronix EC on the Kobo Aura ebook reader. Several features are still missing: - Frontlight/backlight. The vendor kernel drives the frontlight LED using the PWM output of the EC and an additional boost pin that increases the brightness. - Battery monitoring - Interrupts for RTC alarm and low-battery events Signed-off-by: Jonathan Neuschäfer --- v3: - Remove interrupt-controller property from embedded-controller node - subnodes of embedded-controller node in to the main node v2: - https://lore.kernel.org/lkml/20200905144503.1067124-3-j.neuschaefer@gmx.net/ - Fix pwm-cells property (should be 2, not 1) --- arch/arm/boot/dts/imx50-kobo-aura.dts | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) -- 2.28.0 diff --git a/arch/arm/boot/dts/imx50-kobo-aura.dts b/arch/arm/boot/dts/imx50-kobo-aura.dts index a0eaf869b9135..2d1a59091a37c 100644 --- a/arch/arm/boot/dts/imx50-kobo-aura.dts +++ b/arch/arm/boot/dts/imx50-kobo-aura.dts @@ -6,6 +6,7 @@ /dts-v1/; #include "imx50.dtsi" #include +#include / { model = "Kobo Aura (N514)"; @@ -135,10 +136,24 @@ &i2c3 { pinctrl-0 = <&pinctrl_i2c3>; status = "okay"; - /* TODO: embedded controller at 0x43 */ + embedded-controller@43 { + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_ec>; + compatible = "netronix,ntxec"; + reg = <0x43>; + system-power-controller; + interrupts-extended = <&gpio4 11 IRQ_TYPE_EDGE_FALLING>; + #pwm-cells = <2>; + }; }; &iomuxc { + pinctrl_ec: ec { + fsl,pins = < + MX50_PAD_CSPI_SS0__GPIO4_11 0x0 /* INT */ + >; + }; + pinctrl_gpiokeys: gpiokeys { fsl,pins = < MX50_PAD_CSPI_MISO__GPIO4_10 0x0