Message ID | 20200905144503.1067124-3-j.neuschaefer@gmx.net (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <SRS0=qtFv=CO=lists.infradead.org=linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@kernel.org> 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 6313E92C for <patchwork-linux-arm@patchwork.kernel.org>; Sat, 5 Sep 2020 14:56:45 +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 2CFCD208B3 for <patchwork-linux-arm@patchwork.kernel.org>; Sat, 5 Sep 2020 14:56:45 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="EPGxfSl4"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=gmx.net header.i=@gmx.net header.b="i4x4DLes" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 2CFCD208B3 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=fcWCdyujLgWFZu+9RKyhkl/LjFSFdsAmXJfT/KNFiPk=; b=EPGxfSl4MPTLYNHJPMmOYn5g5 jLT2Jabo7LDXe2iK1NX+mowTDRp+oRXtunwAiqdHY4wl/wq4SF7RqCM0Tdh84OXVzXWtH1WmHZmAx 1rktq02POLQzqtt/W1izv7E8b1yEtCaO6Ha0wHdsPuw5BDlkYmlldZQ1f+FiZxw48mU40PhCi6DMR J7Oe4qFJjofmYYMDzCdl9hOVG6dMUz4hrOsbvUvw0c+d5XQLe/T7IxvICGqAdRFxgiZDvjiOys/wG PhYcx2on9QDIH9bJ2/iqlF/ovznYgIG5MjxxVFk00HIyIz2DkOF0dduwHyrjt1J7CSgP4apTC2Pfc BoS1pMP0Q==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kEZb8-00035S-KH; Sat, 05 Sep 2020 14:55:22 +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 1kEZb6-000351-H4 for linux-arm-kernel@lists.infradead.org; Sat, 05 Sep 2020 14:55:21 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1599317719; bh=IEqH3VoTRXkoCSwxpZXBM0ZvuxmxgH/x3EDZy/MG2ug=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=i4x4DLesx36NbPgIIw5rOLeihOyVHf1ZaEmZRJVgKRqUAoRaACGIs1+BdJhq6EZ/J Oqps5yba21wzHSasLqcGxUu0pS6e/6S6EfQKFR9UqLtzsMv0YgO88MucDY4rw+ALxT yDaj+fV9aQC0kRCnzBkWUYl8nhYLnWlVxelwFpOs= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from longitude ([5.146.195.151]) by mail.gmx.com (mrgmx104 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MxDkm-1kTvby1Z5U-00xYm9; Sat, 05 Sep 2020 16:48:22 +0200 From: =?utf-8?q?Jonathan_Neusch=C3=A4fer?= <j.neuschaefer@gmx.net> To: linux-kernel@vger.kernel.org Subject: [PATCH v2 10/10] ARM: dts: imx50-kobo-aura: Add Netronix embedded controller Date: Sat, 5 Sep 2020 16:45:02 +0200 Message-Id: <20200905144503.1067124-3-j.neuschaefer@gmx.net> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20200905133230.1014581-1-j.neuschaefer@gmx.net> References: <20200905133230.1014581-1-j.neuschaefer@gmx.net> MIME-Version: 1.0 X-Provags-ID: V03:K1:vd9WOJrL43K7tgXIjq+fdw9XpujdDSKHb/13PJSlNAFTkIecV3o YX60zXdJjQ7qrZGkVCx1QVkyHK577opkAkZxYApe/pLtMTeHNJdsZBVrxxltqp8R826PARL YT8qR1GI4TmQgraabm+q2Jo32c+tsVXi91TIHEnv5RGm3QIjbzxvXecgaroLZC4XJTqqpdO nUWXhlV+LNhWwUkEfiCzQ== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:9tY5OlXt8p0=:LYF5y4mOfTOcCi0fgO3yTt 53Gmtl48fkQ1Bi6K+Bdiv2jK83azr4T75HHTGUOM+ogBQ/8Ip8QYS0LAxyNT7C3/79pkPqVJq CYU8/doVgJ5IAA/1jH2AjFDKVKGcGz5g4IbgrbJYbWcJx4FVv4/BlTRo0ahbhfz/l6UsJrJ13 c87ZDJFJts/aXWrTz1jlYIs7u6IXW99LDRV1tzX+p8eF6QD/v73JvQKb7LWmRff0pKOpOpJXP kliaNsYvWqummxc3zEfVrv6QmVPYnCt3vn52F7w8HpddaxK3n5Uyl0GrPvQUMRU5wsEkSXPOb RsH+tR0d4p8+t8yXjuDmjou7rfuVs23HGsIiZqDKN25Ra8JtlJPrW5wBbw7jx8LFMDng0oHJB 2tmtXd0fK/+W0bYasBMy5zXds/WGNI0+XFiYNoSZ9LP9uLudVXf+uz8jzPruL8EbgL9HHS99m rObCpdkzq9Fom8FBrxwhZ8/N9Hyyf+oer2YGB2naLcw4S33oGJ7ytFYWZMc5CaXbhBBkXoo3j U73IpzqpZaECgNKRM176IPJc2zCmcrzUrri+eGLPa9rEhQzEugoF1fdYoIeU9pqrXwJFj2UZh DerBnATSiGgjlTgJHjghFAC0qAHJ6TmeW+7cF1sW+qgHGjeQE94eC8UML/iW31cYr/uBIbWrW 4TPNXJKKHnNqi6ArC3wvC90gKPqj7Q3dm/AqHwZarII0ZBUU8O/oJQtRybOVdm9yYyuKHl65q s2rTwWA2CNHrEYRH7MWPlowiOM6mY0mmt1ztqjKeQ+yzobNBhGVCLZIPrEMefK1lgwcQ/18P2 i6y5Zh1agZUw7aoTcuDg8lMVPuuBwiuSveIUtElbvhidK6II0RjzAqpPOEfxY76YYsPfd4Wky CvokXktCjWYMh7wafeTXhlqBfPGGLWQWnrlRFILmzBV75MmEsZQ4aBteJoijON92cE5ZNGJL/ 5VQVRLp8GeSCGB2e07otYIQqurcpyPNOOB5ebwtSC8XByvcX/Q99Zi1Ci9/fzomA2SW+X21qQ RI4QgKMONf5HbYgL3ZQHYiAo8B7UgaXnzzInrOZe8ZngvtXLJWRV2n92++Kis7ktbje/wKnAP eYbZc4ud+n4g+CRP5KvIrRJOk5MDpMJVx0m/VYpTFSwZbsc6PW+2ny/IUW/JHyTU8yc/OUcvS QhfiN/jTw6YOFE4k4j6Pn84ejZMgPts9JmvCeD6ISuUXWXNg8jSUw7VxS5D+FU2AAgRK258UH 50Z/wDbX9j8jP/IRBnr1XFvh7MQkloB3J4/g7Bg== X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200905_105520_766802_F77B5DFC X-CRM114-Status: GOOD ( 15.94 ) 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 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider [j.neuschaefer[at]gmx.net] -0.0 SPF_PASS SPF: sender matches SPF record -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain -0.0 RCVD_IN_MSPIKE_H2 RBL: Average reputation (+2) [212.227.17.21 listed in wl.mailspike.net] X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Cc: Alexandre Belloni <alexandre.belloni@bootlin.com>, Heiko Stuebner <heiko@sntech.de>, linux-pwm@vger.kernel.org, Linus Walleij <linus.walleij@linaro.org>, Thierry Reding <thierry.reding@gmail.com>, Fabio Estevam <festevam@gmail.com>, linux-rtc@vger.kernel.org, Arnd Bergmann <arnd@arndb.de>, Mauro Carvalho Chehab <mchehab+huawei@kernel.org>, Sam Ravnborg <sam@ravnborg.org>, Daniel Palmer <daniel@0x0f.com>, Andreas Kemnade <andreas@kemnade.info>, NXP Linux Team <linux-imx@nxp.com>, =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= <u.kleine-koenig@pengutronix.de>, devicetree@vger.kernel.org, Stephan Gerhold <stephan@gerhold.net>, allen <allen.chen@ite.com.tw>, Sascha Hauer <s.hauer@pengutronix.de>, =?utf-8?q?Jonathan_Neusch=C3=A4fer?= <j.neuschaefer@gmx.net>, Lubomir Rintel <lkundrak@v3.sk>, Rob Herring <robh+dt@kernel.org>, Lee Jones <lee.jones@linaro.org>, linux-arm-kernel@lists.infradead.org, Alessandro Zummo <a.zummo@towertech.it>, Mark Brown <broonie@kernel.org>, Pengutronix Kernel Team <kernel@pengutronix.de>, Heiko Stuebner <heiko.stuebner@theobroma-systems.com>, Josua Mayer <josua.mayer@jm0.eu>, Shawn Guo <shawnguo@kernel.org>, "David S. Miller" <davem@davemloft.net> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org |
Series |
Netronix embedded controller driver for Kobo and Tolino ebook readers
|
expand
|
diff --git a/arch/arm/boot/dts/imx50-kobo-aura.dts b/arch/arm/boot/dts/imx50-kobo-aura.dts index a0eaf869b9135..003a7d894902c 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 <dt-bindings/input/input.h> +#include <dt-bindings/interrupt-controller/irq.h> / { model = "Kobo Aura (N514)"; @@ -135,10 +136,34 @@ &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>; + interrupt-controller; + #interrupt-cells = <1>; + + ec_pwm: pwm { + compatible = "netronix,ntxec-pwm"; + #pwm-cells = <2>; + }; + + rtc { + compatible = "netronix,ntxec-rtc"; + }; + }; }; &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
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 <j.neuschaefer@gmx.net> --- v2: - Fix pwm-cells property (should be 2, not 1) --- arch/arm/boot/dts/imx50-kobo-aura.dts | 27 ++++++++++++++++++++++++++- 1 file changed, 26 insertions(+), 1 deletion(-) -- 2.28.0