Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp2636779pxb; Sun, 24 Jan 2021 14:47:44 -0800 (PST) X-Google-Smtp-Source: ABdhPJzUaRj+tIo5wW7aMhAZ1AuW3q1jQj7kteV1p0k6UgSl3O1llTDbTE2/gAywbtUujmMBqHEk X-Received: by 2002:aa7:c884:: with SMTP id p4mr382369eds.212.1611528464140; Sun, 24 Jan 2021 14:47:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611528464; cv=none; d=google.com; s=arc-20160816; b=la1rjCwpULAS0lVUaOaarprc8FyT7/rx7JzhFhdh6GLwJcjvVF8tjCu2pNw8IekB1u Q0rk1tV5byAY1iNdSgGNnCYZcbmF50wsWOX73//u3NnyCcAKp2LWyd5jt6eMatDPKFy7 PEZA56Trshcyt7CefvyNTrOMIpyRdxYOwsyO2S67Oo3SqXcC5nATio7jGZ83lfa1HAlN 9/lDGvTVb0YUv94Wm3LCnRD/92k3vfrbczYHPb7VVDyFJXcQYNtEZ54GyARfz3cRG0de nErgex9Tc0scEnHUa92Mt8Yvhmfd4jBS5WltCZ/Lkq5z5xxV0lwB5jZOD/AHCHJMcx2S jPyg== 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=PRHBdeUGbcZkMVTM1puMDJkmgiKLxa3hXYwK/TFgzdg=; b=bquij6mEPbPI6pNEi3YlP9crLLaH3lYOg3uwlfMDujxEtrNrxZf6/uLydJtch1YhI6 Qlq3yutgszCoHNwx8YISxNAuhAu0xEh8Cbd9yxzBiTWejobTnQK18QKUavVaYEbVfLJQ xEUo8fw+OTFiUSIuS94/tXNofOv7lqHZy3o0xUBuzCoAUS8Is8hK54v+EILzyHQi7Kyz HiWBFFaXzw56SONHKYXwIFHOn/UaSH+z3YCrE4Vi8CL9S/vBt358JWzFCt52xgOXYdJb feJL3bfn0Ze497ovDYbXG9rcb9zlPQaTApRm12uojtD8GIBAAm6iA3r0RbnzLaLsDq1m Kofg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmx.net header.s=badeba3b8450 header.b=SmZraJ6P; 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=NONE sp=NONE dis=NONE) header.from=gmx.net Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t13si6796947edi.21.2021.01.24.14.47.20; Sun, 24 Jan 2021 14:47:44 -0800 (PST) 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=SmZraJ6P; 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=NONE sp=NONE dis=NONE) header.from=gmx.net Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726127AbhAXWpx (ORCPT + 99 others); Sun, 24 Jan 2021 17:45:53 -0500 Received: from mout.gmx.net ([212.227.17.22]:43761 "EHLO mout.gmx.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726688AbhAXWpn (ORCPT ); Sun, 24 Jan 2021 17:45:43 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1611528196; bh=sg3yBbp50vfrYLkKAlXRA+RR1vEiKn1pGAikI0/PYIU=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=SmZraJ6POwAcOMCHuw+hHwm2dKtjPP8/eHrBwgbng3FZZbl0KMNN5VIHQ/vEO/AJW pTSrlPTf8brOAqkBDbIExGEcGKblMGccjeb/Ww1AHClPT9vmyXrZKLdQlvkybhbwn4 Fm4GMHkuqc84F6ggdn3LWA7KnDS2oxdGWBeyRB5Q= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from longitude ([37.201.215.209]) by mail.gmx.net (mrgmx105 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MdNcG-1lcrrw0y2K-00ZO2Q; Sun, 24 Jan 2021 23:43:16 +0100 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 v9 7/7] ARM: dts: imx50-kobo-aura: Add Netronix embedded controller Date: Sun, 24 Jan 2021 22:41:27 +0100 Message-Id: <20210124214127.3631530-8-j.neuschaefer@gmx.net> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20210124214127.3631530-1-j.neuschaefer@gmx.net> References: <20210124214127.3631530-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:0Sy4IOcIVDcvHo+UWdq+IOx1Cv41T9tOawPNDQyq0hxHhOWhB00 +DdNuhs4FPEOKxVGKz+ki5FPiKl4K/EZaDmAF/n9psmSmYjX9vwRmNf338yTmLdoeJetDOj kj4cOfyGGnvQZ+W762o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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-- v5-v9: - no changes v4: - https://lore.kernel.org/lkml/20201123000913.1506944-1-j.neuschaefer@gmx.= net/ - Add 'grp' suffix to pinctrl node v3: - Remove interrupt-controller property from embedded-controller node - subnodes of embedded-controller node in to the main node v2: - Fix pwm-cells property (should be 2, not 1) =2D-- arch/arm/boot/dts/imx50-kobo-aura.dts | 16 +++++++++++++++- 1 file changed, 15 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 97cfd970fe742..82ce8c43be867 100644 =2D-- 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 =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: ecgrp { + fsl,pins =3D < + MX50_PAD_CSPI_SS0__GPIO4_11 0x0 /* INT */ + >; + }; + pinctrl_gpiokeys: gpiokeysgrp { fsl,pins =3D < MX50_PAD_CSPI_MISO__GPIO4_10 0x0 =2D- 2.29.2