Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp29988ybt; Tue, 16 Jun 2020 15:37:13 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyL7GCco0U4HyYBm2MBH6Uk7CzKGBpzyQgTVwBafva5rt8y1WM/avcFl+oEZRBtctUBE6Tq X-Received: by 2002:a17:906:c142:: with SMTP id dp2mr5040080ejc.541.1592347033766; Tue, 16 Jun 2020 15:37:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592347033; cv=none; d=google.com; s=arc-20160816; b=w2bM7dZqnO15eHZx+BKjuWTlT7Ph+Xqlg/wleuJPeuz2wEpro60RQJqqQ96P1Py1re FazKE594ZpdJrH8OtBRVY8gr8rf2JS7yGX3snXYoSZRtXClI889XpYZvxL6nF8WpGOZi dGBnVqraYnMJCTpbq3gYNYpXY6ZC4FpVgbU8hGMpyUpLDHsZuLgozAjTK9ZDEQxdY111 10wrhk6NMiDbucLP2TraduO3irVmiAXwE9N9UNfYMKZ+zqpsEFjIMCStx6XKjAmwFnqP 49EzUivAm8soeCBgiFbM4Kd+2fWPjPio26M6bB0qlLzuEWNEGotQH9t2zqC9ZMX6/jIJ vqDg== 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; bh=a3nHdxdUa0eSi/RgDDGExpcYPOTidmSWmFYsYC+/FPY=; b=vsjsUqd6yWS/mbfUXfFJxyU/7rEjfJxg/qutiUojTgaJ67p53D8DGEQELli0e+XpOH 55JC0GCxfsS4vA5dYuPbVgt6GVpXIM3UUzllKXLhzlosCI3IU7AWIQmI1ii7B7Q0ZZEI JLvXsouXLzPEYg2pNyrKcl4DKe7cNcGkJ3W+YIsmH//dIyb8wd1anhSdaSjL1QueUr/P ATJb9vtWlRmNsXqd1lihs/ArPGiGgkfLHPJ0ZlK8KUsCyz6gTplkZXKfTls/x4go8/w6 VzaBUn8PLgnvfcitBBqs8gJrRMz2lppCt8NyZz2CLzmJZljeWv9PtSwZxcorXqtsWTgO YQ+A== 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 30si12032525edr.262.2020.06.16.15.36.45; Tue, 16 Jun 2020 15:37:13 -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 S1725941AbgFPWek (ORCPT + 99 others); Tue, 16 Jun 2020 18:34:40 -0400 Received: from v6.sk ([167.172.42.174]:48642 "EHLO v6.sk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726557AbgFPWei (ORCPT ); Tue, 16 Jun 2020 18:34:38 -0400 Received: from localhost (v6.sk [IPv6:::1]) by v6.sk (Postfix) with ESMTP id 1E58561638; Tue, 16 Jun 2020 22:34:06 +0000 (UTC) From: Lubomir Rintel To: Rob Herring Cc: Linus Walleij , Bartosz Golaszewski , Thomas Gleixner , Jason Cooper , Marc Zyngier , Alessandro Zummo , Alexandre Belloni , Daniel Lezcano , devicetree@vger.kernel.org, linux-gpio@vger.kernel.org, linux-i2c@vger.kernel.org, linux-rtc@vger.kernel.org, linux-kernel@vger.kernel.org, Lubomir Rintel Subject: [PATCH v3 4/5] dt-bindings: rtc: Convert sa1100-rtc to json-schema Date: Wed, 17 Jun 2020 00:33:52 +0200 Message-Id: <20200616223353.993567-5-lkundrak@v3.sk> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200616223353.993567-1-lkundrak@v3.sk> References: <20200616223353.993567-1-lkundrak@v3.sk> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Convert the sa1100-rtc binding to DT schema format using json-schema. While add that, add clocks and resets that are actually used. Signed-off-by: Lubomir Rintel --- Changes since v1: - Remove interrupts/maxItems - Mention clocks and resets in the patch description - Add default GPL-2.0-only license tag - Fill in maintainers from MAINTAINERS file .../devicetree/bindings/rtc/sa1100-rtc.txt | 17 ------ .../devicetree/bindings/rtc/sa1100-rtc.yaml | 57 +++++++++++++++++++ 2 files changed, 57 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..482e5af215b3d --- /dev/null +++ b/Documentation/devicetree/bindings/rtc/sa1100-rtc.yaml @@ -0,0 +1,57 @@ +# SPDX-License-Identifier: GPL-2.0-only +%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: + - Alessandro Zummo + - Alexandre Belloni + - Rob Herring + +properties: + compatible: + enum: + - mrvl,sa1100-rtc + - mrvl,mmp-rtc + + reg: + maxItems: 1 + + clocks: + maxItems: 1 + + resets: + maxItems: 1 + + interrupts: + minItems: 2 + + 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.26.2