Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp2039836pxk; Sat, 5 Sep 2020 06:35:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxe4x/RYmMfqvMiBwz/XzzrAxGdRXljokmMnyne/avQM3s79RT3GxfrXeTR8OPaw+W8Djbl X-Received: by 2002:a17:906:e4c:: with SMTP id q12mr12352453eji.425.1599312941390; Sat, 05 Sep 2020 06:35:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599312941; cv=none; d=google.com; s=arc-20160816; b=bw5QfjpngOLhrKuzMXIvxc+phHIk88shRbIQq1zqSmTbHpTpxQqb5P87Q4Lh/oTBgd B8Z6BRPPE1CS1Q8v/4fnt1DOEjXX8DQtzWGeFXHZPonZUvi3OyUPp00E4nQhUEX0InDS qbsbPRIgLnTJBfH24cnmBSfK9eXJvnp4mc8TipTc349Xm9mgqqPyj6dqFi3ClRanu+PY w+68fpYD03QdJWg4tWe1r51pTawQhY6I9L/zeB6I6n730A8mPdnIILO1vIBINcEbjZcj lzZ1lZwKrrXj+lhhOjWAFBrBO/ficPm0lu8786Cd6flZxzMGaqf942XLocsXBekwhSrP HHCw== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=eWbeWnswopaYMmlh340bYxe5DoYG72u7JfLBAtxists=; b=DPk6hZCE145RWJBcbmv96pRPosqEHeQbFsda2IqoBgx8LXAnE9GZj2wz/q7SseOo/x F/amVxIgtOCvD+PXtQGTRviMCrc9spGU4qAI0LldwFDIUOZahobnsrukn9vsofKvIB+m 8FzKPb1zgTo9AgAjW2lV9NveqrVqUuIjtwARdTh13c52ksjnhPl7iEuwo6NMZFhZ4nid QREKR/GIlcWKOKakzgizAsN+scRUuDqCmkAI/d1X/gOp2j0rTaxFV2if/Jbt0moKRYY/ f6YdDuJNg9f0ow753Runie0UEcpNRxVfFJDkD/+if5MldL0yFmoX+0BWk1DTufb1068Q pIPg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmx.net header.s=badeba3b8450 header.b=kqdI1zVL; 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 f4si1321523ejw.300.2020.09.05.06.35.15; Sat, 05 Sep 2020 06:35:41 -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=kqdI1zVL; 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 S1728383AbgIENec (ORCPT + 99 others); Sat, 5 Sep 2020 09:34:32 -0400 Received: from mout.gmx.net ([212.227.17.21]:46607 "EHLO mout.gmx.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726302AbgIENeU (ORCPT ); Sat, 5 Sep 2020 09:34:20 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1599312791; bh=X1JDHzlfCU+ENBN8/vZv+W5ToAriCbagxrRnZa4rg4o=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date; b=kqdI1zVLoU5y3EfpwgRA1BDh4J0yUqBLRGr4sWg+olhwiwry59OqCiN6WnYbOeCFa SnhcPcpXkC5dPR6eXqAXZ2h6CVrwraE/9nc0jqVv1hV56Pdl7x/nO89+rHJ7pI8qz/ wOaha/I05g5I2D90hV7ygGFwrXoMYEljsc9neK+4= 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 1MBDnC-1kQ9Av1Vug-00CfCO; Sat, 05 Sep 2020 15:33:11 +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 00/10] Netronix embedded controller driver for Kobo and Tolino ebook readers Date: Sat, 5 Sep 2020 15:32:20 +0200 Message-Id: <20200905133230.1014581-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:62bYLLM6POKbq+fOwuftSVMbihyuuRYmQtF18cpq0SrmlLm0khW 5OA0mdlU64S2+frZGjmJzDs/OoG19cGkL5pmLCv0o3zX49yFoC/PR22iROGxQA5hb7fYVaA nhmQN+3Qvy+JGI4L/uvQ6ihKJTWSsWNze3rIK3YTLKKCS50ahtCGR7bNNVJA5Kb7fXRLDBv 9mdRHu0y44h3vUJR5lhog== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:fg1zqR7bC9o=:hie2Q9J9itFryKJun2EHb6 w26FfeniqaZ9EH+mb9+9d3wreGPWx7J9rfuJ+LjKoRI4Yn+hlUOA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TCP51b2tSClbvNIPoWdn2HTYkY5l3ODH0qqrSQ4JunZxUupnzg1D7 fLdF0Ddzx7so9MVwDVZmTHDW+MG0pdlIGzBD3E8GWYiW1FBg2aDuva5r3xGAnZ8JeLj8ifVim YooW/KrRY9YRC1xGBbLpqySBih66011jGmTCTcA== Sender: linux-kernel-owner@vger.kernel.org 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]. As previously, I'm not sure I got the YAML DT bindings right. I have included the plain text DT bindings for reference, in the patch descriptions where they are relevant. [1]: http://www.netronixinc.com/products.aspx?ID=3D1 [2]: https://github.com/neuschaefer/linux/wiki/Netronix-MSP430-embedded-co= ntroller Changes in v2: - 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 (10): dt-bindings: Add vendor prefix for Netronix, Inc. dt-bindings: mfd: Add binding for Netronix's embedded controller mfd: Add base driver for Netronix embedded controller dt-bindings: pwm: Add bindings for PWM function in Netronix EC pwm: ntxec: Add driver for PWM function in Netronix EC dt-bindings: rtc: Add bindings for Netronix embedded controller RTC rtc: Introduce RTC_TIMESTAMP_END_2255 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 | 83 +++++++ .../bindings/pwm/netronix,ntxec-pwm.yaml | 33 +++ .../bindings/rtc/netronix,ntxec-rtc.yaml | 27 +++ .../devicetree/bindings/vendor-prefixes.yaml | 2 + MAINTAINERS | 11 + arch/arm/boot/dts/imx50-kobo-aura.dts | 27 ++- drivers/mfd/Kconfig | 7 + drivers/mfd/Makefile | 1 + drivers/mfd/ntxec.c | 216 ++++++++++++++++++ drivers/pwm/Kconfig | 8 + drivers/pwm/Makefile | 1 + drivers/pwm/pwm-ntxec.c | 160 +++++++++++++ drivers/rtc/Kconfig | 8 + drivers/rtc/Makefile | 1 + drivers/rtc/rtc-ntxec.c | 130 +++++++++++ include/linux/mfd/ntxec.h | 24 ++ include/linux/rtc.h | 1 + 17 files changed, 739 insertions(+), 1 deletion(-) create mode 100644 Documentation/devicetree/bindings/mfd/netronix,ntxec.y= aml create mode 100644 Documentation/devicetree/bindings/pwm/netronix,ntxec-p= wm.yaml create mode 100644 Documentation/devicetree/bindings/rtc/netronix,ntxec-r= tc.yaml 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