Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp2078540pxk; Sat, 5 Sep 2020 07:50:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyHpS8STkzwlDamoeklA73j6yUsm3ZQ6WMnMuDlnTEEi5NDNTEUlnc8Q8Yg5rYnPuwEHwqK X-Received: by 2002:a50:9fa5:: with SMTP id c34mr6513189edf.2.1599317448558; Sat, 05 Sep 2020 07:50:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599317448; cv=none; d=google.com; s=arc-20160816; b=DdS2xsrRiXMt8zj9QcHWUjgPS/vX8jZsnL9gPX54SoJOvUF+xCUqWSEhXY9dP1tEGm gCr84exSl25MNds+VZbqp72EHRrKKMb/reH8Sif/813CcobRlEuz5YHTYAlvzbCHgata NAM+iyzfgEXzd9oMT6khxnH/KYWc6uH47BeIb4KW/r6yla4F5D+4RhSC58uNHxoolBiV W3JUqqjsjulya6aT8o99i3s+HMx1/X+hZcr8svmyzfW0Z5I8xIyNSeb0UK0cy0+QNm0a 2bAcMK79kSMixq+UoaGeYyLQaybx9TCXAc/AKI+LguQjpa7yRxlNoBRdgO1GBVitQntb v62Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=6vHO//AJRx9/UdRZRngchkDgeT5XCiWT8xJxuMq4Efk=; b=ZZqAY21A2NeAc7CjfgZV29ipmxMmSdYvp3eJTpvcT2sF148CpnNmjWFPXoz0iowD/x CobhmlOyztDH1OQmS/QeXdtP8nWDTQhaHyaAG6xuoWl8u7VEIeg+Il7CnKy/v8dUTxrm udcEHpypUoPR02nmIMjQNbJyi3mB/JqSzRx/1+YH86vm1yQ5p93xkX6ToVNAZa+ZtPQr 5KK1glGZVXwyFMZjEwiCuVtSDLXgexIOeGGsExgu4gJ+h5pPGc3SnYXEvptyPkPLAGLM 6p+JFN2Asiz9mCfTSlscUyTC0oOdLE/Lfw8PoYtWYfHll4V0Z+AYruDO/JiDb9yewz5n 3UWQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmx.net header.s=badeba3b8450 header.b=W0utoWUm; 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 r22si6214808eji.521.2020.09.05.07.50.26; Sat, 05 Sep 2020 07:50:48 -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=W0utoWUm; 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 S1728625AbgIEOti (ORCPT + 99 others); Sat, 5 Sep 2020 10:49:38 -0400 Received: from mout.gmx.net ([212.227.17.20]:42887 "EHLO mout.gmx.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727875AbgIEOtf (ORCPT ); Sat, 5 Sep 2020 10:49:35 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1599317302; bh=IEqH3VoTRXkoCSwxpZXBM0ZvuxmxgH/x3EDZy/MG2ug=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=W0utoWUmqvO2Wd2qTBiiYg1KT/7DFNZCaZ1br1LTG0jedm7h24I8c6dIUsOPf8h/Z 5l3ZfMKmOEcNRy/RRKhdWWZGnSPnyuHRIlk+gMmU/W1Ai5VQRXPZc4MnF4slMpb5w9 GbKMrXyhMc4SiLKLFqLpwzbSAcmraVYT2440Ycvg= 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=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 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 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:vd9WOJrL43K7tgXIjq+fdw9XpujdDSKHb/13PJSlNAFTkIecV3o YX60zXdJjQ7qrZGkVCx1QVkyHK577opkAkZxYApe/pLtMTeHNJdsZBVrxxltqp8R826PARL YT8qR1GI4TmQgraabm+q2Jo32c+tsVXi91TIHEnv5RGm3QIjbzxvXecgaroLZC4XJTqqpdO nUWXhlV+LNhWwUkEfiCzQ== X-Spam-Fl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zZIDWSEu/cipqjR8WQSln Kx/+ueTNRIZHqcZEI2bSHdKIV1yDPySIVTgTSGLLYs8T85zpTB7UGy4uZ68LOPXBEFFAFFJpd PU9uAzWLYvlvlPrrYZR/dZXne7MDTNM/59YFoDYou8mhjNqzORK09d/JWucccI8DMmy+kFxKY Ue0LoqLnyPRPe3F8Z4Ls1dHGwLd+31wlwlbQhjaIiEeRQmI1EpXDcHUV+V/FgsYFowN5COD+m XqerjoYe32hvo49OC70pAwbeklHL10pJRjmzZLQ== Sender: linux-kernel-owner@vger.kernel.org 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-- v2: - Fix pwm-cells property (should be 2, not 1) =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.28.0