Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp30026ybt; Tue, 16 Jun 2020 15:37:17 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwMMapusoscs+m1ssjRLpYLv77Vdp3RQVfzeYze1Bs0qddEcFXlIuQYOIsQ4VkxG9d1xVUk X-Received: by 2002:a05:6402:b21:: with SMTP id bo1mr4418950edb.169.1592347037691; Tue, 16 Jun 2020 15:37:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592347037; cv=none; d=google.com; s=arc-20160816; b=PgATliAJFecAgzWT/Z8WliAT6fs7r1OZmBMIae9ZE5hUpcoHcd4l1nKFqdAzSiBLgy Fskyo6tMsWPKKiA9GagYe8M+aM2kJTGr974XqjvM6DM6zWl6wi57myVWPXVqLa8oAbPH mVImSvrFBf25NxJhTZp3uxdXhhhxFCrSPnxAC7DP/DgHtmcMqGoH+i6+bFzwUTmC2BYh bfNdGNaP7lYOsaBjTYjeUgNFJ/6xwbButnZxY1HZgKmpedreJ247TKWwiVcw4o6rBugB vWsH6Z2b3w8O+AeB+6ZUy7sK4POOad46rwLxgJRsQWaNkuTJTSaRjr1E0l0C+5FHnBkx RhnQ== 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=l2Zmb/Zlkd3bdDFghha8vjAUqn8/YwQ0pKbidiaLx6I=; b=gbzuW9iTjYi4Q5GjD5K0q6uP2aM7759TEfLdlsSEUUo8q5fqam0HVG4MDNH9depdSK wfpI8HiIHy6HLRiH/wZvh96ljVwSGH3LgE5OZ+ufvDLgDSIqhSg6VOQUxLIjugPOlbd6 +gpNmpl1N6yWDCp+tKarEz40hR19royOkfgzn4oEZzLyljNB6dfUp8nxivfhSrTAIORc 4/zu8this7C2ShavS40DL5bLmC8oSLMkkTV/cG6o6K5uvbtGmO2YQaFguyf4r4QbpGJv EPA4X0a8xEuXW8kV9DO41vcvcb6sstm2YQS5uM7deuTR8dOJMrDY18ma8D00zX1vy3fn isgg== 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 a8si12079848edq.164.2020.06.16.15.36.55; Tue, 16 Jun 2020 15:37:17 -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 S1726630AbgFPWep (ORCPT + 99 others); Tue, 16 Jun 2020 18:34:45 -0400 Received: from v6.sk ([167.172.42.174]:48650 "EHLO v6.sk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726594AbgFPWek (ORCPT ); Tue, 16 Jun 2020 18:34:40 -0400 Received: from localhost (v6.sk [IPv6:::1]) by v6.sk (Postfix) with ESMTP id 1D83D61639; Tue, 16 Jun 2020 22:34:08 +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 5/5] dt-bindings: timer: Convert mrvl,mmp-timer to json-schema Date: Wed, 17 Jun 2020 00:33:53 +0200 Message-Id: <20200616223353.993567-6-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 A straightforward conversion of the mrvl,mmp-timer binding to DT schema format using json-schema. Signed-off-by: Lubomir Rintel --- Changes since v1: - Add default GPL-2.0-only license tag - Fill in maintainers from MAINTAINERS file .../bindings/timer/mrvl,mmp-timer.txt | 17 ------- .../bindings/timer/mrvl,mmp-timer.yaml | 46 +++++++++++++++++++ 2 files changed, 46 insertions(+), 17 deletions(-) delete mode 100644 Documentation/devicetree/bindings/timer/mrvl,mmp-timer.txt create mode 100644 Documentation/devicetree/bindings/timer/mrvl,mmp-timer.yaml diff --git a/Documentation/devicetree/bindings/timer/mrvl,mmp-timer.txt b/Documentation/devicetree/bindings/timer/mrvl,mmp-timer.txt deleted file mode 100644 index b8f02c6635219..0000000000000 --- a/Documentation/devicetree/bindings/timer/mrvl,mmp-timer.txt +++ /dev/null @@ -1,17 +0,0 @@ -* Marvell MMP Timer controller - -Required properties: -- compatible : Should be "mrvl,mmp-timer". -- reg : Address and length of the register set of timer controller. -- interrupts : Should be the interrupt number. - -Optional properties: -- clocks : Should contain a single entry describing the clock input. - -Example: - timer0: timer@d4014000 { - compatible = "mrvl,mmp-timer"; - reg = <0xd4014000 0x100>; - interrupts = <13>; - clocks = <&coreclk 2>; - }; diff --git a/Documentation/devicetree/bindings/timer/mrvl,mmp-timer.yaml b/Documentation/devicetree/bindings/timer/mrvl,mmp-timer.yaml new file mode 100644 index 0000000000000..1fbc260a0cbdf --- /dev/null +++ b/Documentation/devicetree/bindings/timer/mrvl,mmp-timer.yaml @@ -0,0 +1,46 @@ +# SPDX-License-Identifier: GPL-2.0-only +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/timer/mrvl,mmp-timer.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Marvell MMP Timer bindings + +maintainers: + - Daniel Lezcano + - Thomas Gleixner + - Rob Herring + +properties: + $nodename: + pattern: '^timer@[a-f0-9]+$' + + compatible: + const: mrvl,mmp-timer + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + clocks: + maxItems: 1 + +required: + - compatible + - reg + - interrupts + +additionalProperties: false + +examples: + - | + timer@d4014000 { + compatible = "mrvl,mmp-timer"; + reg = <0xd4014000 0x100>; + interrupts = <13>; + clocks = <&coreclk 2>; + }; + +... -- 2.26.2