Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp844912pxk; Thu, 24 Sep 2020 22:13:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxyUS0H2myCNeWY4VpClwRLLWKJWqMI4mxZd9sUz2LmuqhkaHqUmpty6kdMPDQWZR4afYnl X-Received: by 2002:a17:907:1116:: with SMTP id qu22mr938140ejb.231.1601010820880; Thu, 24 Sep 2020 22:13:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601010820; cv=none; d=google.com; s=arc-20160816; b=xm/ymCa0owdjWJ9oLphxwJQGV9H7H8oydBGOH5TuyDdolGuqAY8FPz3dO5uHx17WvO ct1bN+xqcvHPIkvu4Z3Rb858r0XjNCM9jgvflgadD/OH/cDOXwUbnyUU3Fr9dzTphl0w HqQB3pEVAtx3uktgfBqSAldDHq4ObBglkBGLREA3ltDOR267CTc/YufE4Y0p5e2Pi7BN XOzPLfx33h+hZdsEI4pebwLLgr7de1WuITTbJHiklGzcRhkY6zbIhoM2BvUHr1uuGgOl esalf86VTx6VH+BxEif6PDaEhDD+C3t2Z7OUG9YL5ucx04JO1/kAtXSVu6EAeRK1dOGi 3vnw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=tP2wZEI8wT609sZLv10oEq1J8ZEAEK5VpmwtO5gAtfQ=; b=msBFMB9lmdOth+mzgU4Z8AwcXVuLbB7qrBR0bjBfSCgPWjuZ6XhLSV+wfdpqql26bI sC00ZyleI0CwIpbVR/9x79p0oexq2DZAI2Um5OSl5kwgNkpV/8PWDyAB4P73bzTEdBGw SEkDNq3loFj1ADNi4Ui88LojkjzNrEJGROiNqGmfaF4rzP6ciWJ3w8MVArSqWHeV/ETI tzrcuyByAMo7X6WArMjIcku/YpPfoWYHErNA2ZgqUNP2jYhyJRiewKjsXcY7VpNY3EI2 eoOrksZmnyclU71eVy4DZQdVOBxXRFWF6zsqczpPAQ8rfoWjjFFkC0KoK+5En2bxLzZm CNwA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmx.net header.s=badeba3b8450 header.b=lQtEBzqQ; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n10si1140381ejb.405.2020.09.24.22.13.17; Thu, 24 Sep 2020 22:13:40 -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 header.i=@gmx.net header.s=badeba3b8450 header.b=lQtEBzqQ; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727117AbgIYFKG (ORCPT + 99 others); Fri, 25 Sep 2020 01:10:06 -0400 Received: from mout.gmx.net ([212.227.17.22]:41681 "EHLO mout.gmx.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727047AbgIYFKF (ORCPT ); Fri, 25 Sep 2020 01:10:05 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1601010538; bh=HlgnC3df/tJycBpbEiuMsr+Bt4rnu2osQrbv2JddJP0=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=lQtEBzqQO3CgdvtzpOK8YL46GR8Ea/No6z/+imZZajAuJjXh4+m8EV/o48HicQ6j5 a3czcqf3smBpr8Y7xYJL6CdJDg50Y5HM7CYoeMPW2y0lMrubL9mYOjQ2YqMt/NRWtC w/rvdpaHB2p49hW34Jyqx6d0wnoSwDCDoAKJsoyA= 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=20Neusch=C3=A4fer?= To: linux-kernel@vger.kernel.org Cc: Lee Jones , Rob Herring , =?UTF-8?q?Jonathan=20Neusch=C3=A4fer?= , Thierry Reding , =?UTF-8?q?Uwe=20Kleine-K=C3=B6nig?= , Alessandro Zummo , Alexandre Belloni , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , Sam Ravnborg , Linus Walleij , Heiko Stuebner , Stephan Gerhold , Lubomir Rintel , Mark Brown , allen , Mauro Carvalho Chehab , "David S. Miller" , devicetree@vger.kernel.org, linux-pwm@vger.kernel.org, linux-rtc@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Heiko Stuebner , Josua Mayer , Andreas Kemnade , Arnd Bergmann , Daniel Palmer , Andy Shevchenko 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 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:nFSbCxYo1nlk4h1TGxOTycwOxGsiVBkLTP+jxKBPubrqFtoiXOt UhgfLQwcAL7GuTFPSvGVq/uyUN89Cz4VHuv9YGqdwFN3ATncYCB2rNDcfDyaJDoPnvAu+wv dKrwRZvpGHgo7HH3vaodHF9te1ugFsggudcQm4G29a75qCzjTHthOaV8CsFgwLn9NAeKD7N G/NyBCqBjMS7Ivz6inXgg== X-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FBGMZf5Bisp6Iew+i7rU2SJRZMPJvALD mlxfiHEUYLhkS8+D3E508elVCBl1QPGdBZasUQ8Am81ZcAqzZNbikGr6xVNLeZfKjOwgrrKPp 53Hv81zU4YyYcYRIZjkGdomu+VPZWKfZktHksv4p0uZDB3snk2Hmos7BuKRuULiJe6aXcjgDv 8CJjtMBpsYr/W6wYYXAFED8RO4sbl0MR/6LD9ARFDqUNKcZ+uvr6U394tqDWMzGFWf80ljYYO hlHUTCqRV0j56lEVl4ME5E7sejwPtG/vErzanxA== Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.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=C3=A4fer =2D-- 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) =2D-- arch/arm/boot/dts/imx50-kobo-aura.dts | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/imx50-kobo-aura.dts b/arch/arm/boot/dts/imx= 50-kobo-aura.dts index a0eaf869b9135..2d1a59091a37c 100644 =2D-- 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 =3D "Kobo Aura (N514)"; @@ -135,10 +136,24 @@ &i2c3 { pinctrl-0 =3D <&pinctrl_i2c3>; status =3D "okay"; - /* TODO: embedded controller at 0x43 */ + embedded-controller@43 { + pinctrl-names =3D "default"; + pinctrl-0 =3D <&pinctrl_ec>; + compatible =3D "netronix,ntxec"; + reg =3D <0x43>; + system-power-controller; + interrupts-extended =3D <&gpio4 11 IRQ_TYPE_EDGE_FALLING>; + #pwm-cells =3D <2>; + }; }; &iomuxc { + pinctrl_ec: ec { + fsl,pins =3D < + MX50_PAD_CSPI_SS0__GPIO4_11 0x0 /* INT */ + >; + }; + pinctrl_gpiokeys: gpiokeys { fsl,pins =3D < MX50_PAD_CSPI_MISO__GPIO4_10 0x0 =2D- 2.28.0