Message ID | 20201201011513.1627028-8-j.neuschaefer@gmx.net (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <SRS0=r2Hb=FF=lists.infradead.org=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@kernel.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.2 required=3.0 tests=BAYES_00,DATE_IN_PAST_06_12, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 949C6C64E7A for <linux-arm-kernel@archiver.kernel.org>; Tue, 1 Dec 2020 08:19:22 +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 F12112087C for <linux-arm-kernel@archiver.kernel.org>; Tue, 1 Dec 2020 08:19:21 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="pPyZvDU+"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=gmx.net header.i=@gmx.net header.b="IQJ3KKLu" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org F12112087C Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmx.net Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.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=Jdj4i8EP1d2LU/BlOwqVM4LDrgAxCOYHo7/rnUSM+pI=; b=pPyZvDU+SJ6XiRHHtId3dJq31 WE/p8K7tvquSsHWTx8GpN/Sbo4j5cL3Op5Sx0/xQ8IrTZRLx41eJvXWlGBW8XEVZpu66pejVN273o tD01tuVaIMaYjp5ZrO2bJJN0jsgYEBixdruLI5if+Q6jrW+LBF+OoUMOdMrJgz6ejYMzFfqOPGccD hDfuAJPekkR9PmkXkEpiZkNGig6p6dziLwsw/xI1qjBjW/ko1QWUgn3ouyqvlruS7xyc5GQSQ66h6 qAwe1w3eeHpQJ8dPagFyx53X8J3n107bYJvcvq4b0Ww3VcLJGntJT6XB+nfzn/Qe1yaE1VSYctfVS gAGpgvtvA==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kk0rM-0004qE-QR; Tue, 01 Dec 2020 08:18:04 +0000 Received: from mout.gmx.net ([212.227.15.15]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kk0rI-0004ph-Uz for linux-arm-kernel@lists.infradead.org; Tue, 01 Dec 2020 08:18:02 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1606810636; bh=mRSwhYo5MyWsCdHB5+e3Gx83UCUE0iBfViL+Q4vEyKM=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=IQJ3KKLuzJx7kX5OrkJhcmO59yN+1029w67QhfziVUyejA6/N5+FWQsA8CWc3mp8a l4hj4FZJgRqazCFym3IK2TfjeO2hpd0x4+hGjr9fR466GiQkNYj1qg1Xgi3Fcdk76y G1ZSa8T9giammzKjrSLPqURBY3AUGINuycdXe8pc= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from longitude ([37.201.214.162]) by mail.gmx.com (mrgmx004 [212.227.17.190]) with ESMTPSA (Nemesis) id 1MlNtP-1kKFx03OI9-00liNG; Tue, 01 Dec 2020 09:17:15 +0100 From: =?utf-8?q?Jonathan_Neusch=C3=A4fer?= <j.neuschaefer@gmx.net> To: linux-kernel@vger.kernel.org Subject: [PATCH v5 7/7] ARM: dts: imx50-kobo-aura: Add Netronix embedded controller Date: Tue, 1 Dec 2020 02:15:13 +0100 Message-Id: <20201201011513.1627028-8-j.neuschaefer@gmx.net> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201201011513.1627028-1-j.neuschaefer@gmx.net> References: <20201201011513.1627028-1-j.neuschaefer@gmx.net> MIME-Version: 1.0 X-Provags-ID: V03:K1:Cbp+ZxxFLt6uSqgwaiNybHmSG/zGeL63zhvHt9F5lx2AbHxq2sV 7lnQCNZlo22TyRxqdG8DRtu+oHo7PHLfysY3ZlpI1Qxbvx+43oTMI4KAPoJYYc9GmrZSiTN EU22/wwVBQZhYr8cDz5lwqP6IAWBwCsNvsiuE8IVBYtt8azDWItv+rlXyZnZ3wtSnHBpzle 7YTzlkIDJjfEll2nL9flQ== X-UI-Out-Filterresults: notjunk:1;V03:K0:sCKVuFCAFfU=:+2W6b2deI1jF9uW9a7VSpM 2XjWtm5y38Yk+zrLFekMLK2VvP3KyaGRahTYEXDwrqFpj0m7oyUJFqf/wpHrcwFSzC+Q5xwnN KO/4EeE54BTAITBu4PvRQaZPuzBhM/aJWiRpV8P3i1FKc0ijJOwMVH0DoGAQppGlsndFJi4Yw R3S7Lcjicoo2ySHHubGIKpsVYOuQSeuwyS8s88H4sQKEv9gngxEdbmrz0rGDhxPnPnvK1Uxgj rUFe0nviA0OPziNC1ibAe9RTs2DBIF7WjBNYQdVFfbGSRh32LJ7kFjBsaUnPb59rgKG7Tdw4r 7d2UEIOe5284ZmDhuBJVOmHZo0fzt5++lnXGzkM80Dh7/p3Shn66629MFw/V4IJBJLzX0fu5y gTJutRqD2SylS2dVvofjMuSRZ9PHXuUy502HmFZhM5ve1fLgU+HtHpjqNjF3vhhKwI+Xhz1gv NnbgFPc9kcICepn/JfiT6WBMbJPbxsSKHetaM7dyDoVAgIQK80CPrJX3WX+cpE0KZBvDYq0as y0TRwrAW2WeUxLWmNoSMX4YKy5eJ2+Twynl8JtR2SpoLJVKSGPIqHL4+em8Up+sgL0gVla1/8 F2sqkAqWjgD08U+JBZ49sbRRYqYl7KZL7XLfK4TVl+iiF6+ksN4VB6k/B0hnjFdK9bMUbgtNU MZvy3VDIk7dbMTX+7JAW2sbWe5kGsh5jKVff6MGZpkIZXXGXmN77aAn+hDvpXXIGOAbDhtreD ep3XmWcLcKpFkY4ji5C4cWstFb0fCd7Hmw21sRS5AhS8+g1HneFPXujIwGSR5DdlmQg3HWnG8 e/Gw4/hS6t9Gqx0i1IGlqH0jcUiEn1KHbE1B7kPlM+t4hZcUPK6EIdweTnuz4isN/HTFEA6Ce 5DjO77E+J1qkcvmzM23g== X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201201_031801_526061_55F4FF01 X-CRM114-Status: GOOD ( 16.48 ) 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>, Andy Shevchenko <andy.shevchenko@gmail.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+linux-arm-kernel=archiver.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 97cfd970fe742..82ce8c43be867 100644 --- a/arch/arm/boot/dts/imx50-kobo-aura.dts +++ b/arch/arm/boot/dts/imx50-kobo-aura.dts @@ -143,10 +143,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: ecgrp { + fsl,pins = < + MX50_PAD_CSPI_SS0__GPIO4_11 0x0 /* INT */ + >; + }; + pinctrl_gpiokeys: gpiokeysgrp { 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> --- v5: - no changes v4: - Add 'grp' suffix to pinctrl node v3: - https://lore.kernel.org/lkml/20200925050818.2512375-1-j.neuschaefer@gmx.net/ - 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 | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) -- 2.29.2