From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?UTF-8?q?Jonathan=20Neusch=C3=A4fer?= Subject: [RFC PATCH 10/10] ARM: dts: imx50-kobo-aura: Add Netronix embedded controller Date: Sun, 21 Jun 2020 00:42:21 +0200 Message-ID: <20200620224222.1312520-9-j.neuschaefer@gmx.net> References: <20200620224222.1312520-1-j.neuschaefer@gmx.net> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from mout.gmx.net ([212.227.17.20]:60347 "EHLO mout.gmx.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728547AbgFTWoD (ORCPT ); Sat, 20 Jun 2020 18:44:03 -0400 In-Reply-To: <20200620224222.1312520-1-j.neuschaefer@gmx.net> Sender: linux-pwm-owner@vger.kernel.org List-Id: linux-pwm@vger.kernel.org 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 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-- arch/arm/boot/dts/imx50-kobo-aura.dts | 27 ++++++++++++++++++++++++++- 1 file changed, 26 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..003a7d894902c 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,34 @@ &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>; + interrupt-controller; + #interrupt-cells =3D <1>; + + ec_pwm: pwm { + compatible =3D "netronix,ntxec-pwm"; + #pwm-cells =3D <2>; + }; + + rtc { + compatible =3D "netronix,ntxec-rtc"; + }; + }; }; &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.27.0