Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp1637380ybt; Sat, 20 Jun 2020 17:04:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw6ng5jvyLW1pWXBaCKWUW8P7d1mV+7c913qhurtfNRvkk/7e6BQFvI5+5zOlqf9tc0MUhf X-Received: by 2002:a05:6402:c09:: with SMTP id co9mr9863758edb.238.1592697894472; Sat, 20 Jun 2020 17:04:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592697894; cv=none; d=google.com; s=arc-20160816; b=WZW2JwlQcxf2CHe2BCmpjVsfse7qj+GOeUwYekJmJav/u0F8DmtltVIk1dsO7JoSL8 cCCLg8UvqMZtsYGE/M94CJhaY7UuaV8CGXx90xEL5mu+eJKtzRujL1i+889RFvhiAPC1 DH862gYRGPpuW0EuaTehxVtVg+RRK/L5hJPz43aRTHkl/vHRugtd8/kSBbBA9kj+fruT 3PUVSWEKSktuI9Kc6fKpNZobyq2qiILv9iZdSlvhnRdz2mmTP6FsIhdXOTIXdDANWX6D q3LUnYl/OO/E3NvfzhCYzJKMQPjPvOkvkL65H3VKJi6Lolkqxv6H2u3Du83P/RAKW7Hp 2D4g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=9OQMUN9SD05Sy5KWkXEI6xwKF9GKNkZGddNDy22nGEE=; b=xZSPhIoZiDyHJ6YyGAO0Qx8DlloBfDqsdiQypWSMd51eXD5yv7fo2ySi2ZMoYLVGK7 Gp5kKWTCQnYwFKs2W4FbIjckzhlBTix13X7r7m6c1LFSebA0YCCAGmh2av6kjy/spYdD Jy65zfZH98NEKfv0gyP/E9BDEQ/LG+Wi7vl7N/dRDtuRr0r81zDfL8tQgCDfnKJOw5TR g+/OkV2oKUsn6jrOq80LaOYj3W+yIIP1oHwtHzzxoEUuSsRfPWpO8o0hQCO1XbX7i0WK dzGrfZfNiPPx/NNqGqjAn7S4IU4WIuRdUpxHIQE5MeWl0VqaBl7qSLbq7ep/qqcuMfXk ndbw== ARC-Authentication-Results: i=1; mx.google.com; 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 bf2si194182edb.300.2020.06.20.17.04.28; Sat, 20 Jun 2020 17:04:54 -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; 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 S1728590AbgFUACd (ORCPT + 99 others); Sat, 20 Jun 2020 20:02:33 -0400 Received: from relay9-d.mail.gandi.net ([217.70.183.199]:44155 "EHLO relay9-d.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726932AbgFUACc (ORCPT ); Sat, 20 Jun 2020 20:02:32 -0400 X-Originating-IP: 86.202.110.81 Received: from localhost (lfbn-lyo-1-15-81.w86-202.abo.wanadoo.fr [86.202.110.81]) (Authenticated sender: alexandre.belloni@bootlin.com) by relay9-d.mail.gandi.net (Postfix) with ESMTPSA id A3856FF808; Sun, 21 Jun 2020 00:02:20 +0000 (UTC) Date: Sun, 21 Jun 2020 02:02:20 +0200 From: Alexandre Belloni To: Jonathan =?iso-8859-1?Q?Neusch=E4fer?= Cc: linux-kernel@vger.kernel.org, Lee Jones , Rob Herring , Thierry Reding , Uwe =?iso-8859-1?Q?Kleine-K=F6nig?= , Alessandro Zummo , 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: Re: [RFC PATCH 07/10] dt-bindings: rtc: Add bindings for Netronix embedded controller RTC Message-ID: <20200621000220.GB131826@piout.net> References: <20200620224222.1312520-1-j.neuschaefer@gmx.net> <20200620224222.1312520-6-j.neuschaefer@gmx.net> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20200620224222.1312520-6-j.neuschaefer@gmx.net> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On 21/06/2020 00:42:18+0200, Jonathan Neusch?fer wrote: > 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 > --- > .../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 > > diff --git a/Documentation/devicetree/bindings/mfd/netronix,ntxec.yaml b/Documentation/devicetree/bindings/mfd/netronix,ntxec.yaml > index 6562c41c5a9a9..f6a32f46f47bb 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 > + Shouldn't the node simply be documented here? Also, do you really need a compatible string to be able to proe the driver? What are the chances that you'll get a similar EC without an RTC? > required: > - compatible > - reg > @@ -61,6 +64,10 @@ examples: > compatible = "netronix,ntxec-pwm"; > #pwm-cells = <1>; > }; > + > + 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 > -- > 2.27.0 > -- Alexandre Belloni, Bootlin Embedded Linux and Kernel engineering https://bootlin.com