Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp573987pxu; Tue, 6 Oct 2020 13:28:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzxZ8OnBBJECfbnr9yYA+rXg8dDiENSkfm53Mx3O9rEtF3+kBn0gPVXEOvqxnbxC7xHlg7K X-Received: by 2002:a50:b063:: with SMTP id i90mr7692774edd.187.1602016086385; Tue, 06 Oct 2020 13:28:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1602016086; cv=none; d=google.com; s=arc-20160816; b=i/isvkKWxU/cPxygaB8i50ij4Ijtl/a0TrJkDIqb10nZfkSf/b7/BaFQG/HmfzS0Wy N1CMbWPBqPF26gaQecku6/8BzFurVqioY0I29M822URqyAomAdVuJDe2xbh6ibexgYKn tOJ99/UkYBL5odCqv0H1Nzcnv6Onu/bDzi4VmyEpNe0/PuvDeeZOdpCf96MBvLPhM7aZ 5YNCTRa9Neij6kVehvR/Vd8QK3fkXRWoFvu109W86ZrCaG9gUUM+T3N7EHEd4VgngVGp ubPoQDiIcLFTgTLtVXnPX6lmm+yQCC71PQtRvHBJkId87Kl+Tz7Qe8CMAhNcNwNAgsSh br9A== 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=j0R+qNf60pujZO2IxFZ4pVwkxPTg3N4G3MQO77gzqGY=; b=CgO6md6iZuHUCEGbw/IaynDXtdolamE3hhSU+oNK3/UCTrmyKXCPbtlvW4lOGRXWqW ailwICPO4xWBYv0S/IzY5wGX0T9gdnZGoiWPX3yUqR20sRxRG25xRKy8/a0BISeDpD4L 1Lj2ETetLt+FPRnrB1yqhkm1ZeXETnv7sFep7z9IO0b7Rza0Dogg//AxP+rD0FQVGo+O 9gDtlFOBqUb1BOYHhu/3UGv/vmaM0pb6Jw/mgcavKde7nEa36l2e2kP3EMNSyuvGgOI3 AR3VUmiFRpI0KE/1v1mMRR2dXbPwUNIJF+gIg3t3p0TQdU7qAyVH5w1vH+DapGH4TRYl T16Q== 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ci22si2723133ejc.413.2020.10.06.13.27.42; Tue, 06 Oct 2020 13:28:06 -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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727235AbgJFUYx (ORCPT + 99 others); Tue, 6 Oct 2020 16:24:53 -0400 Received: from mail-oi1-f196.google.com ([209.85.167.196]:36661 "EHLO mail-oi1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725962AbgJFUYx (ORCPT ); Tue, 6 Oct 2020 16:24:53 -0400 Received: by mail-oi1-f196.google.com with SMTP id u17so7839428oie.3; Tue, 06 Oct 2020 13:24:51 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=j0R+qNf60pujZO2IxFZ4pVwkxPTg3N4G3MQO77gzqGY=; b=qHeHUTO9B5gauX4uwI4yPdaHp68iTNAgismtxXdKP02xyf+EN3amRPn2xVhNMHHfFs 84NfnrZyomyOZRJ3mTy54BZxLHTKk5b8QonzTSAmJHv0l8j5ffMMkylyWsNwQy0ftsxq ssKzgpEZ9IYr+Np40E6cBIoSvAfON0etN36oeWx69ZjWs0t5uyvgfw9P1D3R1YrQuB6c lAfjVtt5N+CUN4eRgqxgw2tSG2Z6tXp17fyXkezyOGwcPdZ/fODQXce4bPDEPWUUKD3h ZGQS5P0weaO7wexlsNSMnWfMtp+6k/A51FinRpxtxCvOs2kVvpidP/I/jxybSUvLedGv IogA== X-Gm-Message-State: AOAM531+5fEALJaWyfI8pB7JM84krKUTkaawzXNnzGMkaO7pPkVTRzyi fiwb+mbi7zHobyhp+6NDHQ== X-Received: by 2002:aca:db06:: with SMTP id s6mr29937oig.64.1602015890728; Tue, 06 Oct 2020 13:24:50 -0700 (PDT) Received: from xps15 (24-155-109-49.dyn.grandenetworks.net. [24.155.109.49]) by smtp.gmail.com with ESMTPSA id b3sm1652102oie.49.2020.10.06.13.24.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 06 Oct 2020 13:24:50 -0700 (PDT) Received: (nullmailer pid 2774384 invoked by uid 1000); Tue, 06 Oct 2020 20:24:49 -0000 Date: Tue, 6 Oct 2020 15:24:49 -0500 From: Rob Herring To: Alexandru Ardelean Cc: linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, michael.hennerich@analog.com, lars@metafoo.de, sboyd@kernel.org, mturquette@baylibre.com, mdf@kernel.org Subject: Re: [PATCH] dt-bindings: clock: adi,axi-clkgen: convert old binding to yaml format Message-ID: <20201006202449.GA2769322@bogus> References: <20201001085035.82938-1-alexandru.ardelean@analog.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201001085035.82938-1-alexandru.ardelean@analog.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Oct 01, 2020 at 11:50:35AM +0300, Alexandru Ardelean wrote: > This change converts the old binding for the AXI clkgen driver to a yaml > format. > > As maintainers, added: > - Lars-Peter Clausen - as original author of driver & > binding Do you have permission for relicensing? The default was GPL-2.0. > - Michael Hennerich - as supporter of > Analog Devices drivers > > Signed-off-by: Alexandru Ardelean > --- > .../bindings/clock/adi,axi-clkgen.yaml | 52 +++++++++++++++++++ > .../devicetree/bindings/clock/axi-clkgen.txt | 25 --------- > 2 files changed, 52 insertions(+), 25 deletions(-) > create mode 100644 Documentation/devicetree/bindings/clock/adi,axi-clkgen.yaml > delete mode 100644 Documentation/devicetree/bindings/clock/axi-clkgen.txt > > diff --git a/Documentation/devicetree/bindings/clock/adi,axi-clkgen.yaml b/Documentation/devicetree/bindings/clock/adi,axi-clkgen.yaml > new file mode 100644 > index 000000000000..45497f370cb3 > --- /dev/null > +++ b/Documentation/devicetree/bindings/clock/adi,axi-clkgen.yaml > @@ -0,0 +1,52 @@ > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/clock/adi,axi-clkgen.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Binding for Analog Devices AXI clkgen pcore clock generator > + > +maintainers: > + - Lars-Peter Clausen > + - Michael Hennerich > + > +description: | > + The axi_clkgen IP core is a software programmable clock generator, > + that can be synthesized on various FPGA platforms. > + > + Link: https://wiki.analog.com/resources/fpga/docs/axi_clkgen > + > +properties: > + compatible: > + enum: > + - adi,axi-clkgen-2.00.a > + > + clocks: > + description: > + Phandle and clock specifier for the parent clock(s). Drop, that's every 'clocks'. > This must either > + reference one clock if only the first clock input is connected or two > + if both clock inputs are connected. For the later case the clock > + connected to the first input must be specified first. That doesn't really say what the 2 clocks are. > + minItems: 1 > + maxItems: 2 > + > + '#clock-cells': > + const: 0 > + > + reg: > + maxItems: 1 > + > +required: > + - compatible > + - reg > + - clocks > + - '#clock-cells' additionalProperties: false > + > +examples: > + - | > + clock@ff000000 { clock-controller@... > + compatible = "adi,axi-clkgen-2.00.a"; > + #clock-cells = <0>; > + reg = <0xff000000 0x1000>; > + clocks = <&osc 1>; > + }; > diff --git a/Documentation/devicetree/bindings/clock/axi-clkgen.txt b/Documentation/devicetree/bindings/clock/axi-clkgen.txt > deleted file mode 100644 > index aca94fe9416f..000000000000 > --- a/Documentation/devicetree/bindings/clock/axi-clkgen.txt > +++ /dev/null > @@ -1,25 +0,0 @@ > -Binding for the axi-clkgen clock generator > - > -This binding uses the common clock binding[1]. > - > -[1] Documentation/devicetree/bindings/clock/clock-bindings.txt > - > -Required properties: > -- compatible : shall be "adi,axi-clkgen-1.00.a" or "adi,axi-clkgen-2.00.a". > -- #clock-cells : from common clock binding; Should always be set to 0. > -- reg : Address and length of the axi-clkgen register set. > -- clocks : Phandle and clock specifier for the parent clock(s). This must > - either reference one clock if only the first clock input is connected or two > - if both clock inputs are connected. For the later case the clock connected > - to the first input must be specified first. > - > -Optional properties: > -- clock-output-names : From common clock binding. > - > -Example: > - clock@ff000000 { > - compatible = "adi,axi-clkgen"; > - #clock-cells = <0>; > - reg = <0xff000000 0x1000>; > - clocks = <&osc 1>; > - }; > -- > 2.17.1 >