Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp7385811rwi; Mon, 24 Oct 2022 13:57:41 -0700 (PDT) X-Google-Smtp-Source: AMsMyM76YThjWfeJHPahlJJdJpJPF2tdyTOKd1fVBvnjcO2/qdomCaKuc1/11wsjA87aai5f7yvH X-Received: by 2002:a17:90a:1c1:b0:20a:e745:bc30 with SMTP id 1-20020a17090a01c100b0020ae745bc30mr78547143pjd.131.1666645061304; Mon, 24 Oct 2022 13:57:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666645061; cv=none; d=google.com; s=arc-20160816; b=qrJU6y6SUIA2q4g61qhrUz2N/jblbnBaA42QC/y3MOB4JPQn6IsYqar4vh67dwJ1er v5C9yWyIU1+5GwUV5y31TBd8zjE45CB0pA8LV08oGMSF6nOfeR+ySErfSOoIL4tbFpeT IZwDW49wLuC8rKErDNi8eOvfh/bPiOB0WIaYIYSLjXbZwRh40iElX4Zv4p26Yzr7dXvo +/58fLaISPBkqi6L4KRj76V8viaVWA0Xc+GvJpDNm4jvamgldf1zcIkWccBDcWn7lgg7 ZCios8GSbquFF167t0CD+AWFsVZLaXNzb9HXPrbqt0zB+aR0MbTlefUqiPLiRbe+BLRC xCFw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=BxLrsbh3hBSrr4/Sxj8CZwRvl9/DN20xuRs3+14Wfdc=; b=XyJPdvob+nsXVei9F9SGK9Ykitm3NgXeVkt3haHT+q0IqvJf6tOgntTmf0ZnrtV0SC a6252qBssTBh3xHYWPJrpTOCJGv6t6hSrQFpuNFHVeswEBrujGjwP1Y+YTpvK3QZiGXH Qi3HeXqvFZJKJ04BEsis7paTVy50SXKOGUmTik/iBZwxuzUUQ4IVXYWLiVKO1HA89knG 8ahlPHkndLDfCcnDCcOlbOfTT0JjrxBjCw1HtZAJZP+sXy3U6fkvoVpyiQz1/KKjXMLL n+D7ZTnwnh0QpH9PbO09FXlgqavC2Q2VWy9IK94kORvhuRfFKzSz/7Ts7dKFEMu5oZxi j+wQ== 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s15-20020a056a00194f00b00562db93e317si719080pfk.114.2022.10.24.13.57.28; Mon, 24 Oct 2022 13:57:41 -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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235106AbiJXUp7 (ORCPT + 99 others); Mon, 24 Oct 2022 16:45:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59454 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235391AbiJXUom (ORCPT ); Mon, 24 Oct 2022 16:44:42 -0400 Received: from mail-oi1-x22d.google.com (mail-oi1-x22d.google.com [IPv6:2607:f8b0:4864:20::22d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 646EFAEA1D; Mon, 24 Oct 2022 11:52:34 -0700 (PDT) Received: by mail-oi1-x22d.google.com with SMTP id j188so11794477oih.4; Mon, 24 Oct 2022 11:52:34 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=BxLrsbh3hBSrr4/Sxj8CZwRvl9/DN20xuRs3+14Wfdc=; b=l65p20+6HfZKS0NufMXHJS6xlBmFSVDhPGaQvFdEj33R0Y0nrMaZqiW8tVj29a9FYI dIuxD+SICiuK/Bd4+EJuS697YdNGYf3jffzuBOh58n08TNtZnBRCcAyDEPWVLOWnQDwt Qh2qkzjkxlcNcHOvp9jAlF7hKEyR3m3goFH9yRoxrLp5sj9vQjQylS2HFViar7wYACQK QO0FVEuIxyC9f45Dt5IJnOR1V19I3mVepo1ns+O4Erc3xML3rtRU8qZ4jD1zfmJU6pUH siwcJnG7vFo/uWBvwCTVEZ+/WjM+DKIStgW53CS0DU56xQFH5oXvgWxme0K9A199WdgS +r7g== X-Gm-Message-State: ACrzQf1CBf2Kr2dOSUsz0IjXCPTRJkDgMfCmDMCri0Psj2q3ZmjVidDb HfSuRLM1FtQF48WEdhCWvDbYrb8mmg== X-Received: by 2002:a05:6808:d53:b0:355:4c55:2384 with SMTP id w19-20020a0568080d5300b003554c552384mr18019406oik.190.1666637448253; Mon, 24 Oct 2022 11:50:48 -0700 (PDT) Received: from robh_at_kernel.org (66-90-144-107.dyn.grandenetworks.net. [66.90.144.107]) by smtp.gmail.com with ESMTPSA id h7-20020a056870c18700b00130e66a7644sm327864oad.25.2022.10.24.11.50.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 24 Oct 2022 11:50:47 -0700 (PDT) Received: (nullmailer pid 2036884 invoked by uid 1000); Mon, 24 Oct 2022 18:50:49 -0000 Date: Mon, 24 Oct 2022 13:50:49 -0500 From: Rob Herring To: Krzysztof Kozlowski Cc: Sebastian Reichel , Alexandre Belloni , Alessandro Zummo , Krzysztof Kozlowski , linux-rtc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, kernel@collabora.com Subject: Re: [PATCH 1/1] dt-bindings: rtc: convert hym8563 bindings to json-schema Message-ID: <20221024185049.GA2034297-robh@kernel.org> References: <20221021170605.85163-1-sebastian.reichel@collabora.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-1.4 required=5.0 tests=BAYES_00, FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE, SPF_PASS autolearn=no 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 On Fri, Oct 21, 2022 at 07:59:26PM -0400, Krzysztof Kozlowski wrote: > On 21/10/2022 13:06, Sebastian Reichel wrote: > > Convert RTC binding for Haoyu Microelectronics HYM8563 to Device Tree > > Schema format. > > > > Signed-off-by: Sebastian Reichel > > --- > > .../devicetree/bindings/rtc/haoyu,hym8563.txt | 30 ---------- > > .../bindings/rtc/haoyu,hym8563.yaml | 55 +++++++++++++++++++ > > 2 files changed, 55 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..b0b6126b12dd > > --- /dev/null > > +++ b/Documentation/devicetree/bindings/rtc/haoyu,hym8563.yaml > > @@ -0,0 +1,55 @@ > > +# SPDX-License-Identifier: GPL-2.0 > > Dual license please. I don't think you copied any content from original > bindings... unless the example? > > > +%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. > > You need maxItems for this. > > > + > > + wakeup-source: > > + description: Enables wake up of host system on alarm. > > + > > +allOf: > > + - $ref: rtc.yaml > > + > > +unevaluatedProperties: false > > + > > Would be great if you could also correct DTS using these bindings (see > warning from Rob). It looked to me like 'clock-frequency' should be added to the schema. Rob