Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp2048736pxk; Sat, 5 Sep 2020 06:54:42 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzO8q4FDt2hYZo4zyyTvwYq3Euv9XzU7GhA+1WsYmlbhBdUZa/dhzZPcswbe3nb5SBNJ7rb X-Received: by 2002:a17:906:2b4f:: with SMTP id b15mr13174036ejg.477.1599314082442; Sat, 05 Sep 2020 06:54:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599314082; cv=none; d=google.com; s=arc-20160816; b=Beal6QctQPlKwYLj+ZGIy2vA31iexA3M+1sAIz4nNOzxiy7lo3BAQ1m+ESZ1i0n+fv Y6GtxmHgNeluuLegNV/CNmtPsemRMBHd69xGL93WeRWw0TsiRY3ZTE3YHvDFmnj4wPbu k1ZWLsRx2B46ThpDxwkYyzCE0wnyTQZ9cHF23WqMIijfpsCkl05MICxSHd42sKqrvCDi sTZ7Jdo4EgvGbAiUQT76wnAVnq+zgMiFZfZ/TJ45lmgBD9/00H4lweTvYhAoUuCSAUsP kE73z5uwr+SaUtvDToX+8qBPAAnArE+87b1oEL6hlzifPL0yIH/cwnh0vGBrWvhwi/w2 Ha8A== 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=MvsxdXmR75tijrxBq0vO98zuGF+ZnM3jlZtJo1AhwyQ=; b=fmCtTLYnapQn0dGSdNDP+aCr2g4bGMT8MdBmLoxWVr6dt+q3JEDZT7peQlSBd5hX87 2AYNbxInnJbZ5fomAuazmgHUVyacADmLyvrZQTwnH6vrZpLwjZFfTy8mfsqypX6MJQWb EYyXKfVFqP6oPAch5kVbMfKbePsaIltO29tfkFKyOOcQkU5+yC5SLOMlxBzLHHUzMCEx mImXvlElI0meBKrG6sCvsYkl0NhUqHlPJgnPolmceRwqVsLNYA0EC/QJ4TpztrGtK5Xp 0cHLexiNdlTTx9fqw8H/cQQNTRGYZuDMtiJjPOICongW3SzmYS5AYwJ/+BvE4D5VpWmn 1Ndg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmx.net header.s=badeba3b8450 header.b=k4LfdyL9; 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 rs1si6321669ejb.201.2020.09.05.06.54.19; Sat, 05 Sep 2020 06:54:42 -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=k4LfdyL9; 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 S1728681AbgIENxY (ORCPT + 99 others); Sat, 5 Sep 2020 09:53:24 -0400 Received: from mout.gmx.net ([212.227.17.21]:33465 "EHLO mout.gmx.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728584AbgIENgZ (ORCPT ); Sat, 5 Sep 2020 09:36:25 -0400 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=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 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 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:TZpuykeJdULCir7TLJLo7AGLc8R0kvTY5dCpFHXfT1Fx47XRCE9 24Jw4Jwoc/bPG+D/c4IQipGKpf/SFgh/I6SRC5zN/ByScZKtbpjyHM15mqNN8s/nG3A3Ohz dsPIwlZzsSWuOdr9cjlnWAbiqL7uVHeqkqFfmuGrWNwMggk1UzWvRTYrMgZC/H++zQCobq+ RMEW1AMp2S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9JIKUOmGx7qxDpQxMFhQR+HrB vrE35S9Oryt2Fkq4fQo6YzpRDMGmkXmK2B/IWcgRfUBZNy1BxajLa+2iENFYz6RBOleOJnjL9 RqTuuWRAdszLEpL91AUrDe0Mws6L3+wRh29qZsgP2VaaG7qtEnSbGeBrbFoPjWZMsxXn8yyZN 4sjbSXeG1ettPm76PZUw9Bhc4GvwLksuAOaeX6bC6jzn6xEuz/lIrOQZM3o1cB6oXFNBWIhNB 2i0jByC4lobc94/V/AZRWjAA/weU3IAf1N39Qdw== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.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=C3=A4fer =2D-- 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 =3D "netronix,ntxec"; ... rtc { compatible =3D "netronix,ntxec-rtc"; }; } =2D-- .../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-r= tc.yaml diff --git a/Documentation/devicetree/bindings/mfd/netronix,ntxec.yaml b/D= ocumentation/devicetree/bindings/mfd/netronix,ntxec.yaml index 73c873dda3e70..7e1a21a82d82b 100644 =2D-- 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 =3D "netronix,ntxec-pwm"; #pwm-cells =3D <2>; }; + + rtc { + compatible =3D "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 =2D-- /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=C3=A4fer + +description: | + See also Documentation/devicetree/bindings/mfd/netronix,ntxec.yaml + + The Netronix EC contains an RTC, which can be used for time-keeping, al= arm, + and automatic power-on. Note that not all of this functionality is curr= ently + supported in this binding. + +allOf: + - $ref: "rtc.yaml#" + +properties: + compatible: + const: netronix,ntxec-rtc + +required: + - compatible =2D- 2.28.0