From patchwork Sat Jun 20 22:39:05 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?J=2E_Neusch=C3=A4fer?= X-Patchwork-Id: 198755 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.6 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH, MAILING_LIST_MULTI, SIGNED_OFF_BY, SPF_HELO_NONE, SPF_PASS, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id A13F3C433E0 for ; Sat, 20 Jun 2020 22:40:47 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 763F220FC3 for ; Sat, 20 Jun 2020 22:40:47 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=gmx.net header.i=@gmx.net header.b="awKouNNw" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728326AbgFTWkr (ORCPT ); Sat, 20 Jun 2020 18:40:47 -0400 Received: from mout.gmx.net ([212.227.15.15]:46327 "EHLO mout.gmx.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728113AbgFTWkq (ORCPT ); Sat, 20 Jun 2020 18:40:46 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1592692783; bh=NZlIIwqNdtz2a/BsgVin34fzBdteKCXfPTKpkZ94mWM=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=awKouNNwZMnHe+LNy5Fvm541bwzFIrAoC2hgnZRHv/nFQLCNiAdi0yLG0jsS3KAPk aB53eq2b2qyxnDUVNATlm92w2BI3lMLGm3KHSAm8xhuTHaO3ooIs/Pg1kIyFCUa5Sa B1FMipma3UFGm++S9ENNNb81EISkSizfJTPpv+u4= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from longitude ([5.146.194.186]) by mail.gmx.com (mrgmx005 [212.227.17.190]) with ESMTPSA (Nemesis) id 1MkYc0-1j0qCP0n3m-00m4hJ; Sun, 21 Jun 2020 00:39:43 +0200 From: =?utf-8?q?Jonathan_Neusch=C3=A4fer?= To: linux-kernel@vger.kernel.org Cc: Lee Jones , Rob Herring , =?utf-8?q?Jonathan_Neusch=C3=A4fer?= , Thierry Reding , =?utf-8?q?Uwe_Kleine-K?= =?utf-8?b?w7ZuaWc=?= , 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 Subject: [RFC PATCH 01/10] DT bindings in plain text format Date: Sun, 21 Jun 2020 00:39:05 +0200 Message-Id: <20200620223915.1311485-2-j.neuschaefer@gmx.net> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200620223915.1311485-1-j.neuschaefer@gmx.net> References: <20200620223915.1311485-1-j.neuschaefer@gmx.net> MIME-Version: 1.0 X-Provags-ID: V03:K1:VxdfrjWO/u5MhkFEjp5KExUHat+e9KDgtmLJLE7SRngqgjYq/nQ XlCaZO+wvW9aA+9ez71mbfpUjzFYsLA9lmNlF0ivaZt7Kw4hU0gOLdIkC8vrsjk0V0tjKeL N+H6ek0QzT0wUo/mpz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Ff1pQ9ruPduBruhZ Y/IsjKR4FyPlJME3cKfB2AJM5cuxkQZIFvSQI2iOpttC89fH7Cs4pnBV/47KuWy0wcCg+LWKa 3JI6WltFNPxyzsMkDAQG9dGhqCcBBgEJIMV8ckhjeY7fS91G6d7CI8KhmwYbaf3mDctmGmnlp bnozlZRtbdNk9Ojd7vGvpzJtPf60nWhOjCDP2HHCyLBdgyz9wkRT3b+v54Kpxs5OTOVzBc+Xo BOCpg2QYPWjOIwo3Gd8vcKdxkzLfTTxPzzHn7R/SyBPmDKnTiYZpEDgwPZYWaVwZpVsIrDwJy nrNkjPs5LKdUJMSv9 Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org For reference, here are the devicetree bindings in plaintext format. (Not for merge.) Signed-off-by: Jonathan Neuschäfer --- .../bindings/mfd/netronix,ntxec.txt | 58 +++++++++++++++++++ .../bindings/pwm/netronix,ntxec-pwm.txt | 27 +++++++++ .../bindings/rtc/netronix,ntxec-rtc.txt | 17 ++++++ 3 files changed, 102 insertions(+) create mode 100644 Documentation/devicetree/bindings/mfd/netronix,ntxec.txt create mode 100644 Documentation/devicetree/bindings/pwm/netronix,ntxec-pwm.txt create mode 100644 Documentation/devicetree/bindings/rtc/netronix,ntxec-rtc.txt -- 2.27.0 diff --git a/Documentation/devicetree/bindings/mfd/netronix,ntxec.txt b/Documentation/devicetree/bindings/mfd/netronix,ntxec.txt new file mode 100644 index 0000000000000..e303932657999 --- /dev/null +++ b/Documentation/devicetree/bindings/mfd/netronix,ntxec.txt @@ -0,0 +1,58 @@ +Netronix Embedded Controller + +This EC is found in e-book readers of multiple brands (e.g. Kobo, Tolino), and +is typically implemented as a TI MSP430 microcontroller. + + +Required properties: +- compatible: should be "netronix,ntxec" +- reg: The I2C address of the EC + +Optional properties: +- system-power-controller: + See Documentation/devicetree/bindings/power/power-controller.txt +- interrupts or interrupts-extended +- interrupt-controller +- #interrupt-cells: Should be 1 + +Optional subnodes: + +Sub-nodes are identified by their compatible string. + + compatible string | description +--------------------------------|-------------------------------------- + netronix,ntxec-pwm | PWM (used for backlight) + netronix,ntxec-rtc | real time clock + + +Example: + +&i2c3 { + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_i2c3>; + status = "okay"; + + ec: embedded-controller@43 { + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_ntxec>; + + compatible = "netronix,ntxec"; + reg = <0x43>; + system-power-controller; + interrupt-parent = <&gpio4>; + interrupts = <11 IRQ_TYPE_EDGE_FALLING>; + interrupt-controller; + #interrupt-cells = <1>; + + pwm { + compatible = "netronix,ntxec-pwm"; + #pwm-cells = <1>; + }; + + rtc { + compatible = "netronix,ntxec-rtc"; + interrupts-extended = <&ec 15>; + interrupt-names = "alarm"; + }; + }; +}; diff --git a/Documentation/devicetree/bindings/pwm/netronix,ntxec-pwm.txt b/Documentation/devicetree/bindings/pwm/netronix,ntxec-pwm.txt new file mode 100644 index 0000000000000..50be27f82559e --- /dev/null +++ b/Documentation/devicetree/bindings/pwm/netronix,ntxec-pwm.txt @@ -0,0 +1,27 @@ +PWM functionality in Netronix Embedded Controller + +Required properties: +- compatible: should be "netronix,ntxec-pwm" +- #pwm-cells: should be 1. + +Available PWM channels: +- 0: The PWM channel controlled by registers 0xa1-0xa7 + +Example: + + embedded-controller@43 { + compatible = "netronix,ntxec"; + ... + + ec_pwm: pwm { + compatible = "netronix,ntxec-pwm"; + #pwm-cells = <1>; + }; + }; + + ... + + backlight { + compatible = "pwm-backlight"; + pwms = <&ec_pwm 0 50000>; + }; diff --git a/Documentation/devicetree/bindings/rtc/netronix,ntxec-rtc.txt b/Documentation/devicetree/bindings/rtc/netronix,ntxec-rtc.txt new file mode 100644 index 0000000000000..0ef9e791b6a36 --- /dev/null +++ b/Documentation/devicetree/bindings/rtc/netronix,ntxec-rtc.txt @@ -0,0 +1,17 @@ +Netronix embedded controller RTC + +Required properties: + +- compatible: should be "netronix,ntxec-rtc" + + +Example: + + embedded-controller@43 { + compatible = "netronix,ntxec"; + ... + + rtc { + compatible = "netronix,ntxec-rtc"; + }; + }