Received: by 2002:a05:6358:795:b0:dc:4c66:fc3e with SMTP id n21csp2203249rwj; Sun, 30 Oct 2022 13:09:51 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4xELMY83MAk5rCtHxS+RC6fDfbTH6u7Eed2rvkoKRUn3qbAw5JFq5NLhshWj1x4M+bxdAt X-Received: by 2002:a17:902:d4c6:b0:186:850a:4f09 with SMTP id o6-20020a170902d4c600b00186850a4f09mr10561683plg.77.1667160591587; Sun, 30 Oct 2022 13:09:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667160591; cv=none; d=google.com; s=arc-20160816; b=IAcd25KoLpvsqW3tzDi49shpqvGnuJ1YQVo/u9JHmXS78imfRRmLeThmCl2OrgY5Hu sco/WgB31DnbgdJpZs1rEKM4Sb5vebdUhTRiYKcNq7Edjj1mL9aXH5KNCAmJog0RvpSJ X3VhAZwIFxAsFE7UZ7YGrqH5u2AYX2PMz5clf3UFL7tSBhElbuiqhp9GpJ/4mIOH1JPT eNpRtdKZgMnVfwmazf/Ace7LoSkgKA+lIPOM3PTifvtv9Q8shHEWP4m9AehrdlpP6wDp d8NPpM22RPxHXtZ1kBBXSg4bn9TIqV/Cu96z6nfPuJ8GddWA9reaSPY/F/8J6wYn7uxX 7ALA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=6dKm4ECyMGUHGTT/dW5AGbdpPTJETctqCGpxQ8/mbz0=; b=NwFDuWFaUjgRupMdOV5LTo6+Au/1+9oTvTlXFFUCDPTCZkA7qEbmjgz/fBKmvXiS7d oYHUnNz8MKO7MfFiB8HejHOXQb7kXR9qZO8SpFBYG45CODCezYpvfZ0opTmoe7NqTJ9D 61aL1d4NYhaxbJDSlNsVWMDuNHiHpFZRMlbm9LyMzH1bR4H58gEPkXlL2OneJFa7/Zq3 B3Yj+rICm+atiEQ3fTOPRuuB0Hk7Xu9vJ+3C4E3ckyQ0aVQv5KZRhRRnAghAuPZo4K5d Y3Jw6K2aNMyvNUQX1gVloSEHd5RLNvYHW+XuaS5htIsrJ75JIl+6nXHZBajNGS6Qh7Rd fbbQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=sntech.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c1-20020a63ea01000000b004395afacb7csi6395467pgi.214.2022.10.30.13.09.40; Sun, 30 Oct 2022 13:09:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=sntech.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229587AbiJ3UFf (ORCPT + 99 others); Sun, 30 Oct 2022 16:05:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40910 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229476AbiJ3UFd (ORCPT ); Sun, 30 Oct 2022 16:05:33 -0400 Received: from gloria.sntech.de (gloria.sntech.de [185.11.138.130]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1812A95B3; Sun, 30 Oct 2022 13:05:31 -0700 (PDT) Received: from [185.156.123.69] (helo=phil.localnet) by gloria.sntech.de with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1opEYb-0005bW-Cr; Sun, 30 Oct 2022 21:05:21 +0100 From: Heiko Stuebner To: Alexandre Belloni , Alessandro Zummo , Rob Herring , Krzysztof Kozlowski , Sebastian Reichel Cc: Neil Armstrong , Kevin Hilman , Jerome Brunet , Martin Blumenstingl , linux-rockchip@lists.infradead.org, linux-amlogic@lists.infradead.org, linux-rtc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Sebastian Reichel , kernel@collabora.com Subject: Re: [PATCHv2 6/6] dt-bindings: rtc: convert hym8563 bindings to json-schema Date: Sun, 30 Oct 2022 21:05:19 +0100 Message-ID: <9218219.T7Z3S40VBb@phil> In-Reply-To: <20221024165549.74574-7-sebastian.reichel@collabora.com> References: <20221024165549.74574-1-sebastian.reichel@collabora.com> <20221024165549.74574-7-sebastian.reichel@collabora.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_PASS, T_SPF_HELO_TEMPERROR autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Am Montag, 24. Oktober 2022, 18:55:49 CET schrieb Sebastian Reichel: > Convert RTC binding for Haoyu Microelectronics HYM8563 to Device Tree > Schema format. > > Signed-off-by: Sebastian Reichel Reviewed-by: Heiko Stuebner > --- > .../devicetree/bindings/rtc/haoyu,hym8563.txt | 30 ---------- > .../bindings/rtc/haoyu,hym8563.yaml | 56 +++++++++++++++++++ > 2 files changed, 56 insertions(+), 30 deletions(-) > delete mode 100644 Documentation/devicetree/bindings/rtc/haoyu,hym8563.txt > create mode 100644 Documentation/devicetree/bindings/rtc/haoyu,hym8563.yaml > > diff --git a/Documentation/devicetree/bindings/rtc/haoyu,hym8563.txt b/Documentation/devicetree/bindings/rtc/haoyu,hym8563.txt > deleted file mode 100644 > index a8934fe2ab4c..000000000000 > --- a/Documentation/devicetree/bindings/rtc/haoyu,hym8563.txt > +++ /dev/null > @@ -1,30 +0,0 @@ > -Haoyu Microelectronics HYM8563 Real Time Clock > - > -The HYM8563 provides basic rtc and alarm functionality > -as well as a clock output of up to 32kHz. > - > -Required properties: > -- compatible: should be: "haoyu,hym8563" > -- reg: i2c address > -- #clock-cells: the value should be 0 > - > -Optional properties: > -- clock-output-names: From common clock binding > -- interrupts: rtc alarm/event interrupt > - > -Example: > - > -hym8563: hym8563@51 { > - compatible = "haoyu,hym8563"; > - reg = <0x51>; > - > - interrupts = <13 IRQ_TYPE_EDGE_FALLING>; > - > - #clock-cells = <0>; > -}; > - > -device { > -... > - clocks = <&hym8563>; > -... > -}; > diff --git a/Documentation/devicetree/bindings/rtc/haoyu,hym8563.yaml b/Documentation/devicetree/bindings/rtc/haoyu,hym8563.yaml > new file mode 100644 > index 000000000000..0b9f39ef0edc > --- /dev/null > +++ b/Documentation/devicetree/bindings/rtc/haoyu,hym8563.yaml > @@ -0,0 +1,56 @@ > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/rtc/haoyu,hym8563.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Haoyu Microelectronics HYM8563 RTC > + > +maintainers: > + - Alexandre Belloni > + > +properties: > + compatible: > + const: haoyu,hym8563 > + > + reg: > + maxItems: 1 > + > + interrupts: > + maxItems: 1 > + > + "#clock-cells": > + const: 0 > + > + clock-output-names: > + description: From common clock binding to override the default output clock name. > + maxItems: 1 > + > + wakeup-source: > + description: Enables wake up of host system on alarm. > + > +allOf: > + - $ref: rtc.yaml > + > +unevaluatedProperties: false > + > +required: > + - compatible > + - reg > + - "#clock-cells" > + > +examples: > + - | > + #include > + > + i2c { > + #address-cells = <1>; > + #size-cells = <0>; > + > + rtc@51 { > + compatible = "haoyu,hym8563"; > + reg = <0x51>; > + interrupts = <13 IRQ_TYPE_EDGE_FALLING>; > + #clock-cells = <0>; > + }; > + }; >