From patchwork Sat Sep 5 13:32:26 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: 11759119 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 6461415AB for ; Sat, 5 Sep 2020 13:35:32 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 336712072D for ; Sat, 5 Sep 2020 13:35:32 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="K/EAdUiB"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=gmx.net header.i=@gmx.net header.b="k4LfdyL9" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 336712072D Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=gmx.net Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=p0DEI0BVKyCyS5MjizykEveI2k2Vr6Img4E8L2wJQb8=; b=K/EAdUiBitoDrOPj8008cygTN dms8o78GqU1ZU8ZlOUCvLc7eb6G+g9BfFO02Lqk+rKkckmMvCwDGFrkPk+76S60tjs/Q3Odos5D5Z cY3QwolPUzPY4YnL7sYMrtnh4F8e7dBpNJmr0h1P/LkAJL1VRWspcLKLV6a114RZF/780UTGp31aM cHcmjhV3z9+xUn3BUaq8ifm70f4lveNzdHS2c88EZciQUMazZiBXLhsuwTvrPB6HZCihFD3t4m+gt us+7MY/vH9tUQ2hF933vLL3qliTCcmwD+sB9qLIQMPL6pEcsT03JGZW4Wvh6VB86zSDsYqOSzrxiR 3xziU3xrw==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kEYLh-0006Mu-EP; Sat, 05 Sep 2020 13:35:21 +0000 Received: from mout.gmx.net ([212.227.17.21]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kEYLe-0006Lf-Rc for linux-arm-kernel@lists.infradead.org; Sat, 05 Sep 2020 13:35:19 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1599312888; bh=oB862ovvKrxnFrmHbMCSfUj8GGDxcJ/jixBV6lZKv/Y=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=k4LfdyL9A+K1gxU3PB7ejxBozNmNntB6J/4OndUwkMCnJgTzmmkv+4XLRVfiaNPTE wgVWJdmKIBk4H/nm0wqw8uIVj2SRa8hUQC24RuZmDR7XzxK6a+hUWO9DrT+qUZcZrD RUA1JOEfdYSlA9rAeiHwEZdz8cSFdQp+o+i5XnE4= 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 1M42nY-1kEYL92zs8-0002MP; Sat, 05 Sep 2020 15:34:47 +0200 From: =?utf-8?q?Jonathan_Neusch=C3=A4fer?= To: linux-kernel@vger.kernel.org Subject: [PATCH v2 06/10] dt-bindings: rtc: Add bindings for Netronix embedded controller RTC Date: Sat, 5 Sep 2020 15:32:26 +0200 Message-Id: <20200905133230.1014581-7-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 X-Provags-ID: V03:K1:TZpuykeJdULCir7TLJLo7AGLc8R0kvTY5dCpFHXfT1Fx47XRCE9 24Jw4Jwoc/bPG+D/c4IQipGKpf/SFgh/I6SRC5zN/ByScZKtbpjyHM15mqNN8s/nG3A3Ohz dsPIwlZzsSWuOdr9cjlnWAbiqL7uVHeqkqFfmuGrWNwMggk1UzWvRTYrMgZC/H++zQCobq+ RMEW1AMp2SjRXxYRHpQxw== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:S5q3cVrTyaI=:ie9pgEotpTy1HY6RmNy7Ue XwychflidZQcYVmwYUlzMlyqY5zzAsGkHY1WUO4oOZA3srn9fVzD6ubpkgBTjCr4SWipLvytZ y2zH0egrtJhRwd/0Bh5Q6aKCKHhRd5dKiptC3mPAE+TRnghsixtZL5ukeUwt/TS6IVj9lInnW C3sQwHqwUqrANgZun0tayejT3pVKymdc0POfkz7sL6CwXXxNQrY4ZYT+ro++Sa0scl07yWXT6 axWCWYSOBcFD3i+R9KRMMpuLskfbrO+neEVQWC81vDK3PNsymue2fkCm4tMMvAqRYPKa4BVGb 6qTUki+KlGFCVI+nYnMabYgbEot3NZVwuIkU2Clb55xO7sl54foiduYydTF436qsc+vuZKR9J pZTK89YtX9Sv4js0suhGutQNrTmNW09nDTl/y/O62w98w/x+3P/4RnDeJuqA4mA7I1oO6S/By Pql3GJ0nzYpY2QxHPFD4yfpWvoS2a14mBeMDdgGCavZqf4C1YBlWOITprRxy107m1XC8WkM3F JNNAzLmp2bPe5OIbZW/UXmM7xdYqxlmND9a5y+KU6R2vVvXoJMAVykihBD680kw6Q5AXrUrZz BOqskKZx6BYPXBYJaFDGOZSwMiiq6pcWHDmey+1ogg6GlZKiiOFqsxNPdkzZ/05EjgEycGumP ExVX22RUXMa6T9TyxZWunfxGErVwZgFCGpTnhfaw/e4QwOA/VGfpu4yFinPa/v/ulCgmV+zM7 0I/rDfNuypGPw9KgK+uDgrtfX5PW0qs5Y0p+iY1v9AeYBnak/hVSfk16tCWO03k2WSTiU2cJp SM9fwQI3c1JqIOWj0nybaSvYZiyeTAgcAA9Fj0LlpQSZYT4zpXdTXdRxKOQU9NLgqzW2bqwrU LxsRCNPxAGWbbMRUg/gGE3TJq9RLf1/LRaGIFgaqQBFJxd20AHLuf+xvHBpHupTDC+5cJrtRo 2pF6miDmjVUf4yv7DH6HdqrI0YKVcoF3oo056rr89Oxh6ZSB9JIKUOmGx7qxDpQxMFhQR+HrB vrE35S9Oryt2Fkq4fQo6YzpRDMGmkXmK2B/IWcgRfUBZNy1BxajLa+2iENFYz6RBOleOJnjL9 RqTuuWRAdszLEpL91AUrDe0Mws6L3+wRh29qZsgP2VaaG7qtEnSbGeBrbFoPjWZMsxXn8yyZN 4sjbSXeG1ettPm76PZUw9Bhc4GvwLksuAOaeX6bC6jzn6xEuz/lIrOQZM3o1cB6oXFNBWIhNB 2i0jByC4lobc94/V/AZRWjAA/weU3IAf1N39Qdw== X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200905_093519_096846_29EB22A8 X-CRM114-Status: GOOD ( 16.80 ) X-Spam-Score: -0.9 (/) X-Spam-Report: SpamAssassin version 3.4.4 on merlin.infradead.org summary: Content analysis details: (-0.9 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at https://www.dnswl.org/, low trust [212.227.17.21 listed in list.dnswl.org] -0.0 RCVD_IN_MSPIKE_H2 RBL: Average reputation (+2) [212.227.17.21 listed in wl.mailspike.net] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider [j.neuschaefer[at]gmx.net] -0.0 SPF_PASS SPF: sender matches SPF record -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Alexandre Belloni , Heiko Stuebner , linux-pwm@vger.kernel.org, Linus Walleij , Thierry Reding , Fabio Estevam , linux-rtc@vger.kernel.org, Arnd Bergmann , Mauro Carvalho Chehab , Sam Ravnborg , Daniel Palmer , Andreas Kemnade , NXP Linux Team , =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= , devicetree@vger.kernel.org, Stephan Gerhold , allen , Sascha Hauer , =?utf-8?q?Jonathan_Neusch=C3=A4fer?= , Lubomir Rintel , Rob Herring , Lee Jones , linux-arm-kernel@lists.infradead.org, Alessandro Zummo , Mark Brown , Pengutronix Kernel Team , Heiko Stuebner , Josua Mayer , Shawn Guo , "David S. Miller" Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org The Netronix EC implements an RTC with the following functionality: - Calendar-based time keeping with single-second resolution - Automatic power-on with single-minute resolution - Alarm at single-second resolution This binding only supports timekeeping for now. Signed-off-by: Jonathan Neuschäfer --- v2: - Add plaintext binding to the patch description, for reference For reference, here is the binding in text form: Netronix embedded controller RTC Required properties: - compatible: should be "netronix,ntxec-rtc" Example: embedded-controller@43 { compatible = "netronix,ntxec"; ... rtc { compatible = "netronix,ntxec-rtc"; }; } --- .../bindings/mfd/netronix,ntxec.yaml | 7 +++++ .../bindings/rtc/netronix,ntxec-rtc.yaml | 27 +++++++++++++++++++ 2 files changed, 34 insertions(+) create mode 100644 Documentation/devicetree/bindings/rtc/netronix,ntxec-rtc.yaml -- 2.28.0 diff --git a/Documentation/devicetree/bindings/mfd/netronix,ntxec.yaml b/Documentation/devicetree/bindings/mfd/netronix,ntxec.yaml index 73c873dda3e70..7e1a21a82d82b 100644 --- a/Documentation/devicetree/bindings/mfd/netronix,ntxec.yaml +++ b/Documentation/devicetree/bindings/mfd/netronix,ntxec.yaml @@ -34,6 +34,9 @@ properties: pwm: $ref: ../pwm/netronix,ntxec-pwm.yaml + rtc: + $ref: ../rtc/netronix,ntxec-rtc.yaml + required: - compatible - reg @@ -61,6 +64,10 @@ examples: compatible = "netronix,ntxec-pwm"; #pwm-cells = <2>; }; + + rtc { + compatible = "netronix,ntxec-rtc"; + }; }; }; diff --git a/Documentation/devicetree/bindings/rtc/netronix,ntxec-rtc.yaml b/Documentation/devicetree/bindings/rtc/netronix,ntxec-rtc.yaml new file mode 100644 index 0000000000000..4b301ef7319c8 --- /dev/null +++ b/Documentation/devicetree/bindings/rtc/netronix,ntxec-rtc.yaml @@ -0,0 +1,27 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/rtc/netronix,ntxec-rtc.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: RTC functionality in Netronix embedded controller + +maintainers: + - Jonathan Neuschäfer + +description: | + See also Documentation/devicetree/bindings/mfd/netronix,ntxec.yaml + + The Netronix EC contains an RTC, which can be used for time-keeping, alarm, + and automatic power-on. Note that not all of this functionality is currently + supported in this binding. + +allOf: + - $ref: "rtc.yaml#" + +properties: + compatible: + const: netronix,ntxec-rtc + +required: + - compatible