From mboxrd@z Thu Jan 1 00:00:00 1970 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=-8.6 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=unavailable 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 8500FC2D0F0 for ; Fri, 27 Mar 2020 19:49:09 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 60864206F6 for ; Fri, 27 Mar 2020 19:49:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1585338549; bh=fO8JAHyS/tC1XmIRY6mw9Y/4/EJ7QoCU569vEqEdTzg=; h=Date:From:To:Cc:Subject:References:In-Reply-To:List-ID:From; b=uhh0WnADOAh0SkGkMHbQIpMH8GXJQ8KXdIZskhagQOwDOSTxvJfGC3xTh05R0o/PL Zn9GyMMDtl+eO2o2BVt3YG24LOVIWEW+/jiZg6Wnh8886EXHCBIhHVMK5Gc6ym7hN5 P7ZJNfg0ES2lDs7WtaISEbkMC/Hek9e7U5SFen98= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727815AbgC0TtG (ORCPT ); Fri, 27 Mar 2020 15:49:06 -0400 Received: from mail-io1-f67.google.com ([209.85.166.67]:45183 "EHLO mail-io1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727349AbgC0TtF (ORCPT ); Fri, 27 Mar 2020 15:49:05 -0400 Received: by mail-io1-f67.google.com with SMTP id a24so10479243iol.12; Fri, 27 Mar 2020 12:49:05 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=JwHJvDoSR0JDEswzj161SwVvwRMkW2YaUVDeHpPAOos=; b=GOR5UrOb7Vqqk4GC3Ls7slX6NIzdksUg3KoPv7sfjrzTg7GEB/uN6ZkqyFSQAK/BKS wNeC443aq00JBkd7GuQRPuYFcRWr5XFYXN6EeoafRi/Jq2GITpl50laru0CpHWdxEFwk m0ocN0/aSAW7i+wMJ9AARiAaxG4X44jaBBYWWmaplWEhbvzu4rgQoh+FVTFNebmwDKmF 4VCpTncP0ghlWfZNDkmRW72c5q0MyOe+9PXZf7DoJr43QSnSN7dKSTLg88yAkK+rA0Pj GKDK7SXYYfeHBNxwmkZ3H5oaHIyTkKXg3BQbPgalab3w5u5Li2RYMjHtyBaTdY0EmGNJ TetA== X-Gm-Message-State: ANhLgQ0rGCqATget081uhjXwMeNuMQAilPO4uBt6CW0CTcni0vVbPFSd GYzwb28cpDWuuELIPcNvOg== X-Google-Smtp-Source: ADFU+vt/jqlhr/e4v02qTN70XwC1Yhc1SXWH++HcB6WjRUDC5ZNHHU0TizL6To4k79LdobvC8EAwnA== X-Received: by 2002:a5d:8782:: with SMTP id f2mr269819ion.53.1585338544805; Fri, 27 Mar 2020 12:49:04 -0700 (PDT) Received: from rob-hp-laptop ([64.188.179.250]) by smtp.gmail.com with ESMTPSA id 79sm2195767ila.54.2020.03.27.12.49.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 27 Mar 2020 12:49:04 -0700 (PDT) Received: (nullmailer pid 27841 invoked by uid 1000); Fri, 27 Mar 2020 19:49:02 -0000 Date: Fri, 27 Mar 2020 13:49:02 -0600 From: Rob Herring To: Lubomir Rintel Cc: Linus Walleij , Bartosz Golaszewski , Thomas Gleixner , Jason Cooper , Marc Zyngier , Mauro Carvalho Chehab , Ulf Hansson , Kishon Vijay Abraham I , Alessandro Zummo , Alexandre Belloni , Greg Kroah-Hartman , Mark Brown , Daniel Lezcano , Andrew Lunn , Gregory Clement , Daniel Mack , Haojian Zhuang , Robert Jarzmik , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org, linux-i2c@vger.kernel.org, linux-media@vger.kernel.org, linux-mmc@vger.kernel.org, linux-rtc@vger.kernel.org, linux-serial@vger.kernel.org, linux-spi@vger.kernel.org, linux-usb@vger.kernel.org Subject: Re: [PATCH 25/28] dt-bindings: rtc: Convert sa1100-rtc to json-schema Message-ID: <20200327194902.GA24914@bogus> References: <20200317093922.20785-1-lkundrak@v3.sk> <20200317093922.20785-26-lkundrak@v3.sk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200317093922.20785-26-lkundrak@v3.sk> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-serial-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-serial@vger.kernel.org On Tue, Mar 17, 2020 at 10:39:19AM +0100, Lubomir Rintel wrote: > Convert the sa1100-rtc binding to DT schema format using json-schema. > > Signed-off-by: Lubomir Rintel > --- > .../devicetree/bindings/rtc/sa1100-rtc.txt | 17 ------ > .../devicetree/bindings/rtc/sa1100-rtc.yaml | 55 +++++++++++++++++++ > 2 files changed, 55 insertions(+), 17 deletions(-) > delete mode 100644 Documentation/devicetree/bindings/rtc/sa1100-rtc.txt > create mode 100644 Documentation/devicetree/bindings/rtc/sa1100-rtc.yaml > > diff --git a/Documentation/devicetree/bindings/rtc/sa1100-rtc.txt b/Documentation/devicetree/bindings/rtc/sa1100-rtc.txt > deleted file mode 100644 > index 968ac820254bb..0000000000000 > --- a/Documentation/devicetree/bindings/rtc/sa1100-rtc.txt > +++ /dev/null > @@ -1,17 +0,0 @@ > -* Marvell Real Time Clock controller > - > -Required properties: > -- compatible: should be "mrvl,sa1100-rtc" > -- reg: physical base address of the controller and length of memory mapped > - region. > -- interrupts: Should be two. The first interrupt number is the rtc alarm > - interrupt and the second interrupt number is the rtc hz interrupt. > -- interrupt-names: Assign name of irq resource. > - > -Example: > - rtc: rtc@d4010000 { > - compatible = "mrvl,mmp-rtc"; > - reg = <0xd4010000 0x1000>; > - interrupts = <5>, <6>; > - interrupt-names = "rtc 1Hz", "rtc alarm"; > - }; > diff --git a/Documentation/devicetree/bindings/rtc/sa1100-rtc.yaml b/Documentation/devicetree/bindings/rtc/sa1100-rtc.yaml > new file mode 100644 > index 0000000000000..53a8b72df9f34 > --- /dev/null > +++ b/Documentation/devicetree/bindings/rtc/sa1100-rtc.yaml > @@ -0,0 +1,55 @@ License > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/rtc/sa1100-rtc.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Marvell Real Time Clock controller bindings > + > +allOf: > + - $ref: rtc.yaml# > + > +maintainers: > + - devicetree@vger.kernel.org Real person > + > +properties: > + compatible: > + enum: > + - mrvl,sa1100-rtc > + - mrvl,mmp-rtc > + > + reg: > + maxItems: 1 > + > + clocks: > + maxItems: 1 > + > + resets: > + maxItems: 1 clocks and resets weren't documented before. Fine to add here, but add that to the commit msg. > + > + interrupts: > + minItems: 2 > + maxItems: 2 Drop minItems. > + > + interrupt-names: > + items: > + - const: 'rtc 1Hz' > + - const: 'rtc alarm' > + > +required: > + - compatible > + - reg > + - interrupts > + - interrupt-names > + > +additionalProperties: false > + > +examples: > + - | > + rtc: rtc@d4010000 { > + compatible = "mrvl,mmp-rtc"; > + reg = <0xd4010000 0x1000>; > + interrupts = <5>, <6>; > + interrupt-names = "rtc 1Hz", "rtc alarm"; > + }; > + > +... > -- > 2.25.1 >