Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp568366pxk; Thu, 24 Sep 2020 12:27:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzskmwStPTRJY6FtMaZDbI1oHNjp/W2Eeqsby+yAeM7kvkxt0MTPh0gDjy552MdoasWfBLL X-Received: by 2002:a17:906:af53:: with SMTP id ly19mr140734ejb.503.1600975679144; Thu, 24 Sep 2020 12:27:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600975679; cv=none; d=google.com; s=arc-20160816; b=u6BEjCQ7FXZKwf+Mb9RlBR+/4oVj9FjcQzKHI3DFS/HtShnRTtxVKIwGcPghN5Y3NA 8i8bTI8rkyJEA3kmGo2qUInoidJAKT1A4eduYPuvC7Ut2bbsLO3g1kjFsGoI+FzSTeby 0sb9ufSg0OZWJOKaSl2OKTMdj3Z5AjNzu4jo15VOqdzrXmz/cy80ydAOpIryNyHY4ekk Z6Hh6KYaZhose9XfQMVQKFhDjJ8N/Uiu9cRMY7sukWnLizfew2SHbxduTvrm2rJa5Poo SeLzLkaXQPNK83SoVofmfy4YvcQsYhSUi2BJnUItihToIa5EAxPzRwY7Ac72IMATsVF2 5zvQ== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=tpFCET7OxGXS3G0ijq8vEgwFV1vEVAScMYBT3Ch6S7s=; b=j2rufrTfACw52Ucd1hVhAOGy+DOjP3yVacULz1rKm9ktj5/T/jlSh6IFzVoygJK/rw cv9wrTt9Gl5OsY8Fqwwikh2qv4WEecipAu0kvtLyK5PwK/Of1c6Ffg+VxCcSW01U9IyM LI5tY4VwDkLLRdJ/T4X8T3H86RUB1mTQyMworFPBK4+uMx/ksS+cqCwBlj18zvJLTwED d6N6r4FcuW5My+3rok4vCd9eRjfpHnYjE54LdI+CHgSr29SeKK65KzXnD79T0NS41pbP v31ErAqZhzZ8P3HGz4Mpb5v8ynZReW0cL587RN/1qjf8IBtTr5SEFAA0NAXSsKwuoK3g g6hA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmx.net header.s=badeba3b8450 header.b=Htfk9GXZ; 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 d12si414691ejj.237.2020.09.24.12.27.35; Thu, 24 Sep 2020 12:27:59 -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=Htfk9GXZ; 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 S1728783AbgIXT0X (ORCPT + 99 others); Thu, 24 Sep 2020 15:26:23 -0400 Received: from mout.gmx.net ([212.227.17.22]:33775 "EHLO mout.gmx.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727254AbgIXT0W (ORCPT ); Thu, 24 Sep 2020 15:26:22 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1600975511; bh=xvKpT2sSHqHPJQ8jydYdVwKtyMXMEaIf3CKJyHKFaRw=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date; b=Htfk9GXZjY7fVSEmBQn04kVLARb4ZcqvPGBxFmbX+YStHjRUmygQfBQDrt7TtbX5r epSKEZquIUummXF/eNdL+eiUDR+6+PQloJcd2MpSqtL8oOz+5bKDQ/H/YWs0GT+8MA nNleSZ/jngF2Zwj0IVqKwWxWQmuEeH+khudWRMZ0= 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 1MBm1U-1k9POE2uxI-00CBUJ; Thu, 24 Sep 2020 21:25:10 +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 0/7] Netronix embedded controller driver for Kobo and Tolino ebook readers Date: Thu, 24 Sep 2020 21:24:48 +0200 Message-Id: <20200924192455.2484005-1-j.neuschaefer@gmx.net> X-Mailer: git-send-email 2.28.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:IhDg/ovkn5AdYA7QuoVxKZ58LTbWLOf0Gah9TeIWVC5P5Vq7OX+ rTcniKqkXxZ3MF+cRtLPxh7uQhf3icDZtGW60DLHKALB6ONkAGSL3t7gVs0IjaFJvuZfoZF /mb10k0XVoKRCKwfHifoifIta0u+xcYK/opArVe6QFKfFVz4g5ytFEAXaLQKd1FC1r3joOC as9tTuGSaPcybtsh4ZdeA== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:f6IDfeE5Jkc=:5kOe0vkfJKlzW3CSsC29Fn gAFmnV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9P5OVgfs/oQwQ/DAwoVu6AS2aQLyAoTX 8Pb77K0cl3QgPB8F0IXOopTFZMOtRHEKLLoOrrPzNKh7evFuKEu+lM5Xo65S1RWAurQCVk2SO JZ+wI6VbSeFjOH/mVV0KmGvA+Sk131MbcT2FcfsiiYoyvpMYDGsnYDb9QiHfWBiKpRwszNyv/ XuS4k+pgyWb4PYuP1JEqUSZpOCBb6499edkk2CA== Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patchset adds basic support for the embedded controller found on older ebook reader boards designed by/with the ODM Netronix Inc.[1] and sold by Kobo or Tolino, for example the Kobo Aura and the Tolino Shine. These drivers are based on information contained in the vendor kernel sources, but in order to all information in a single place, I documented the register interface of the EC on GitHub[2]. [1]: http://www.netronixinc.com/products.aspx?ID=3D1 [2]: https://github.com/neuschaefer/linux/wiki/Netronix-MSP430-embedded-co= ntroller v3: - A few code cleanups - A few devicetree related cleanups - PWM and RTC functionality were moved from subnodes in the devicetree to the main node. This also means that the subdrivers no longer need DT compatible strings, but are instead loaded via the mfd_cell mechanism. - The drivers are now published under GPLv2-or-later rather than GPLv2-onl= y. v2: - https://lore.kernel.org/lkml/20200905133230.1014581-1-j.neuschaefer@gmx.= net/ - Moved txt DT bindings to patch descriptions and removed patch 1/10 "DT bindings in plain text format" - New patch 7/10 "rtc: Introduce RTC_TIMESTAMP_END_2255" - Rebased on 5.9-rc3 - Various other changes which are documented in each patch v1: - https://lore.kernel.org/lkml/20200620223915.1311485-1-j.neuschaefer@gmx.= net/ Jonathan Neusch=C3=A4fer (7): dt-bindings: Add vendor prefix for Netronix, Inc. dt-bindings: mfd: Add binding for Netronix embedded controller mfd: Add base driver for Netronix embedded controller pwm: ntxec: Add driver for PWM function in Netronix EC rtc: New driver for RTC in Netronix embedded controller MAINTAINERS: Add entry for Netronix embedded controller ARM: dts: imx50-kobo-aura: Add Netronix embedded controller .../bindings/mfd/netronix,ntxec.yaml | 76 +++++++ .../devicetree/bindings/vendor-prefixes.yaml | 2 + MAINTAINERS | 9 + arch/arm/boot/dts/imx50-kobo-aura.dts | 17 +- drivers/mfd/Kconfig | 10 + drivers/mfd/Makefile | 1 + drivers/mfd/ntxec.c | 206 ++++++++++++++++++ drivers/pwm/Kconfig | 8 + drivers/pwm/Makefile | 1 + drivers/pwm/pwm-ntxec.c | 161 ++++++++++++++ drivers/rtc/Kconfig | 8 + drivers/rtc/Makefile | 1 + drivers/rtc/rtc-ntxec.c | 132 +++++++++++ include/linux/mfd/ntxec.h | 31 +++ 14 files changed, 662 insertions(+), 1 deletion(-) create mode 100644 Documentation/devicetree/bindings/mfd/netronix,ntxec.y= aml create mode 100644 drivers/mfd/ntxec.c create mode 100644 drivers/pwm/pwm-ntxec.c create mode 100644 drivers/rtc/rtc-ntxec.c create mode 100644 include/linux/mfd/ntxec.h =2D- 2.28.0