Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp2672673ybg; Sat, 19 Oct 2019 21:09:47 -0700 (PDT) X-Google-Smtp-Source: APXvYqwcS6SmqRQYFhE8HG/JbAHfuBDIyw30PHl3vzzNvBDK9bq47h3ZtoOMdXHbWwtZ8aCXwPN4 X-Received: by 2002:a05:6402:1acd:: with SMTP id ba13mr898050edb.141.1571544587735; Sat, 19 Oct 2019 21:09:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571544587; cv=none; d=google.com; s=arc-20160816; b=V1Q+7PDLP2i11h4qZgsh+hK5eJBtjmgX107m1SUnZ9Na6M5q/R7W+XT/Sz6+1v4pER TwnYmSEmbQYwruvh49pHFiqycWhgzU5j10xwMFnd64UG7WDV2QHilelUDo1fvY/xfS6k qqVjFdH3hUfL6wC27gj9oW5Kxe7pStWpicnek2rklX6c8ZedmOGfplPpiXnAT79kiJML 7IeDPjXLJH6OTEYNoo9pqoH3lCWPz0Xj+xpFglptZaqDXDsAz0AU44AFSI1qwszYJ+IT C/gkKtT+h5Ar/oe3eMNzS9XamidBoZOp8R17W426zVi6YqdSIzKGWsKDZ5Iz3cfwdMeS DfkQ== 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=SpwxBxnLvCpgCSAXsiY7uLl4KYgiP8Bm13Z4knLI0mE=; b=ufWoB+stO4HkUcLU2o0iv2qGl0+tD3XoD3KC2qm6k7iJNgWzRmYlDh0ie316tUQFXJ weud736RBerBFzHQ8lymMSpFpwAQ6jUCQwJPm4/dOsn+EMaquwSD5kIyO9ThJl6Y0BXj j0Bc8k9DSPUAcmDK6Zz7F5jDBb3E239HY7/AraJ9CqMgT4JahS+BT/xyn99zTjNgJXia nw5j1xTMgr7QTG0h6QJJA/IHOhgRtrskgiARQhpb2zlxAF0TQi7H/i9HyLAa1DSNrSY7 J+3UPBu5cCGkJWJ1yyLF2JDeTt5nArdUYubvGDxuh7lJ0wcIQdNZ9HshLv0Kfg7QTT/L nWfQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m10si6119485ejc.337.2019.10.19.21.09.24; Sat, 19 Oct 2019 21:09:47 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726301AbfJTEI3 (ORCPT + 99 others); Sun, 20 Oct 2019 00:08:29 -0400 Received: from mx2.suse.de ([195.135.220.15]:37122 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725851AbfJTEI2 (ORCPT ); Sun, 20 Oct 2019 00:08:28 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 605AAACCA; Sun, 20 Oct 2019 04:08:26 +0000 (UTC) From: =?UTF-8?q?Andreas=20F=C3=A4rber?= To: linux-realtek-soc@lists.infradead.org Cc: linux-arm-kernel@lists.infradead.org, =?UTF-8?q?Andreas=20F=C3=A4rber?= , Alessandro Zummo , Alexandre Belloni , Rob Herring , Mark Rutland , linux-rtc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 2/8] dt-bindings: rtc: realtek: Convert RTD119x to schema Date: Sun, 20 Oct 2019 06:08:11 +0200 Message-Id: <20191020040817.16882-3-afaerber@suse.de> X-Mailer: git-send-email 2.16.4 In-Reply-To: <20191020040817.16882-1-afaerber@suse.de> References: <20191020040817.16882-1-afaerber@suse.de> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 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 RTD119x binding to a YAML schema. Signed-off-by: Andreas Färber --- v2: New .../devicetree/bindings/rtc/realtek,rtd119x.txt | 16 --------- .../devicetree/bindings/rtc/realtek,rtd119x.yaml | 38 ++++++++++++++++++++++ 2 files changed, 38 insertions(+), 16 deletions(-) delete mode 100644 Documentation/devicetree/bindings/rtc/realtek,rtd119x.txt create mode 100644 Documentation/devicetree/bindings/rtc/realtek,rtd119x.yaml diff --git a/Documentation/devicetree/bindings/rtc/realtek,rtd119x.txt b/Documentation/devicetree/bindings/rtc/realtek,rtd119x.txt deleted file mode 100644 index bbf1ccb5df31..000000000000 --- a/Documentation/devicetree/bindings/rtc/realtek,rtd119x.txt +++ /dev/null @@ -1,16 +0,0 @@ -Realtek RTD129x Real-Time Clock -=============================== - -Required properties: -- compatible : Should be "realtek,rtd1295-rtc" -- reg : Specifies the physical base address and size -- clocks : Specifies the clock gate - - -Example: - - rtc@9801b600 { - compatible = "realtek,rtd1295-clk"; - reg = <0x9801b600 0x100>; - clocks = <&clkc RTD1295_CLK_EN_MISC_RTC>; - }; diff --git a/Documentation/devicetree/bindings/rtc/realtek,rtd119x.yaml b/Documentation/devicetree/bindings/rtc/realtek,rtd119x.yaml new file mode 100644 index 000000000000..71b7396bd469 --- /dev/null +++ b/Documentation/devicetree/bindings/rtc/realtek,rtd119x.yaml @@ -0,0 +1,38 @@ +# SPDX-License-Identifier: GPL-2.0-or-later OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/rtc/realtek,rtd119x.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Realtek RTD129x Real-Time Clock + +allOf: + - $ref: "rtc.yaml#" + +maintainers: + - Andreas Färber + +properties: + compatible: + const: realtek,rtd1295-rtc + + reg: + maxItems: 1 + + clocks: + maxItems: 1 + description: Specifies the clock gate + +required: + - compatible + - reg + - clocks + +examples: + - | + rtc@9801b600 { + compatible = "realtek,rtd1295-clk"; + reg = <0x9801b600 0x100>; + clocks = <&clkc RTD1295_CLK_EN_MISC_RTC>; + }; +... -- 2.16.4