Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp10106193ybl; Thu, 26 Dec 2019 10:57:18 -0800 (PST) X-Google-Smtp-Source: APXvYqwau8SOzTwGL/lVAAQDwFNxMPKrhxx8vNkH4j+NKzaYu4pvQvU8srg/kROylggotyZfe6D0 X-Received: by 2002:a05:6830:1515:: with SMTP id k21mr37029248otp.177.1577386637728; Thu, 26 Dec 2019 10:57:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1577386637; cv=none; d=google.com; s=arc-20160816; b=KiRicDBv+h3IxDU0frLg44x+plC7HrU6ABI4T+7whCmKYA6hxx93btVegHy8LXQj7g srdIa7KTqV2VGcGNZBeSl5m0aMQGFWG1H/PtiLdYby4jLNcm40dpyoyrnnoThHNRXRsQ UtHgt/IpQIeYyn95kymi4LxgqW5tGjbihjbmcIlv3/LwtcZI3VC3E3+kC1IccuYFa4Lr t/KNna3k23ZGXCeE5WE91ZnoqWf6CS3WHt3/V6+hc/7ROZ8gJGYbvmoxPyQgZ5FGMpKl tOiJNdx+a1SVvEcUfmC0KJHVOdZ/DkMO1GE6MoA3+estnb+ST4YmYHbbnogIASlE6G9I 81bw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=ToXdYUQkeYDdHoqDRcSS3dTsiT4R5dAKA/kDsRrqbhI=; b=mw1TuvnDOGeiq1SQVvWf1owJu6lAAFRU95qAkdixwPkYneY4jClE6OIinJvc6zdIfA oMx+a30+OySranwie6g7aBdaXzYw/ZN3tAALtyzKWyPX8kv+Kc2CExaD/ThVJmAX4Yrs ySgK2s378X5duTbw+sNQ+2xC3z5KxPJpRAwElccd2ta4ZJ1DE7Yh6oF5p/I5IHix5ZDC w6hj3SxXTDkuoqkKPIDofDrjpLh7kn5+dbrUPsRAl33RIrWWpsS4o1V9jYFiqyWN3r54 2jym0gI256LtRYt9Yl+uwiE6mFvKlDyYv4NZM7xHSKts+L/pwgbiQE0bmVO2rNG3jSx6 va8Q== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v1si15098838otf.161.2019.12.26.10.57.04; Thu, 26 Dec 2019 10:57:17 -0800 (PST) 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726755AbfLZS40 (ORCPT + 99 others); Thu, 26 Dec 2019 13:56:26 -0500 Received: from mail-io1-f67.google.com ([209.85.166.67]:43727 "EHLO mail-io1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726480AbfLZS4Z (ORCPT ); Thu, 26 Dec 2019 13:56:25 -0500 Received: by mail-io1-f67.google.com with SMTP id n21so22367750ioo.10; Thu, 26 Dec 2019 10:56:25 -0800 (PST) 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:user-agent; bh=ToXdYUQkeYDdHoqDRcSS3dTsiT4R5dAKA/kDsRrqbhI=; b=DyRW93k64GfJCQ9Ur9RvUBG67m/veso65llrj+T/jvCR/V9VVs2PTR2FFvnRVlO2eT YFiwsUMVdHlRgdtL8C+N/ULYR5OYpePn7geayw1it+4IVv4Y23QsWuw7Yuu4XBfNdw4d LGehXyd0hQKvySrAkvDPjkGOK9DmrAL4FuRWciQeTZpYlt4euSshNoo0VTEM5pQAj3C8 LKGsPKEAVmTd1IatKoUX4mo2RlE9kZExJl2eGhhKqIBAuPMTDohdpd5+GEZDzgFxJze1 bx+vcghylsptPyjbDoFPJUnTtz0v0IW2nhveaNIHDnjZ15rSlVpt+qzDiKibkZSsUf6D uhMA== X-Gm-Message-State: APjAAAULacx2xtqV5v29fktumklCdZGrWr8CSh1+eeKoJz4KDhzzIKsh xJ5VQpZwsCJvTYaNxE7R8A== X-Received: by 2002:a5d:8cd6:: with SMTP id k22mr30642435iot.283.1577386584924; Thu, 26 Dec 2019 10:56:24 -0800 (PST) Received: from localhost ([64.188.179.250]) by smtp.gmail.com with ESMTPSA id y9sm8849619ion.54.2019.12.26.10.56.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Dec 2019 10:56:24 -0800 (PST) Date: Thu, 26 Dec 2019 11:56:23 -0700 From: Rob Herring To: Chunyan Zhang Cc: Stephen Boyd , Michael Turquette , Mark Rutland , linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Orson Zhai , Baolin Wang , Chunyan Zhang Subject: Re: [PATCH V2 3/6] dt-bindings: clk: sprd: add bindings for sc9863a clock controller Message-ID: <20191226185623.GA4463@bogus> References: <20191216121932.22967-1-zhang.lyra@gmail.com> <20191216121932.22967-4-zhang.lyra@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20191216121932.22967-4-zhang.lyra@gmail.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Dec 16, 2019 at 08:19:29PM +0800, Chunyan Zhang wrote: > From: Chunyan Zhang > > add a new bindings to describe sc9863a clock compatible string. > > Signed-off-by: Chunyan Zhang > --- > .../bindings/clock/sprd,sc9863a-clk.yaml | 77 +++++++++++++++++++ > 1 file changed, 77 insertions(+) > create mode 100644 Documentation/devicetree/bindings/clock/sprd,sc9863a-clk.yaml > > diff --git a/Documentation/devicetree/bindings/clock/sprd,sc9863a-clk.yaml b/Documentation/devicetree/bindings/clock/sprd,sc9863a-clk.yaml > new file mode 100644 > index 000000000000..881f0a0287e5 > --- /dev/null > +++ b/Documentation/devicetree/bindings/clock/sprd,sc9863a-clk.yaml > @@ -0,0 +1,77 @@ > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > +# Copyright 2019 Unisoc Inc. > +%YAML 1.2 > +--- > +$id: "http://devicetree.org/schemas/clock/sprd,sc9863a-clk.yaml#" > +$schema: "http://devicetree.org/meta-schemas/core.yaml#" > + > +title: SC9863A Clock Control Unit Device Tree Bindings > + > +maintainers: > + - Orson Zhai > + - Baolin Wang > + - Chunyan Zhang > + > +properties: > + "#clock-cells": > + const: 1 > + > + compatible : > + enum: > + - sprd,sc9863a-ap-clk > + - sprd,sc9863a-pmu-gate > + - sprd,sc9863a-pll > + - sprd,sc9863a-mpll > + - sprd,sc9863a-rpll > + - sprd,sc9863a-dpll > + - sprd,sc9863a-aon-clk > + - sprd,sc9863a-apahb-gate > + - sprd,sc9863a-aonapb-gate > + - sprd,sc9863a-mm-gate > + - sprd,sc9863a-mm-clk > + - sprd,sc9863a-vspahb-gate > + - sprd,sc9863a-apapb-gate These will probably need to be split to separate schemas for the reasons below... > + > + clocks: > + description: | > + The input parent clock(s) phandle for this clock, only list fixed > + clocks which are decleared in devicetree. typo. You need to define how many clocks. > + > + clock-names: > + description: | > + Clock name strings used for driver to reference. You need to list out the names. > + > + reg: > + description: | > + Contain the registers base address and length. It must be configured > + only if no 'sprd,syscon' under the node. > + > + sprd,syscon: > + $ref: '/schemas/types.yaml#/definitions/phandle' > + description: | > + The phandle to the syscon which is in the same address area with > + the clock, and so we can get regmap for the clocks from the > + syscon device. It is preferred to make the clock node a child of the syscon and then you don't need this property. > + > +required: > + - compatible > + - '#clock-cells' > + > +examples: > + - | > + ap_clk: clock-controller@21500000 { > + compatible = "sprd,sc9863a-ap-clk"; > + reg = <0 0x21500000 0 0x1000>; > + clocks = <&ext_32k>, <&ext_26m>; > + clock-names = "ext-32k", "ext-26m"; > + #clock-cells = <1>; > + }; > + > + - | > + apahb_gate: apahb-gate { > + compatible = "sprd,sc9863a-apahb-gate"; > + sprd,syscon = <&ap_ahb_regs>; > + #clock-cells = <1>; > + }; > + > +... > -- > 2.20.1 >