Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp5041805ybv; Wed, 26 Feb 2020 07:27:28 -0800 (PST) X-Google-Smtp-Source: APXvYqwpGJxO+4h10F8Caq+O4g/1SPuSxQq/qOGt9bpC3+D48rSV3QjGoZb40ox3oaJ/b6BmZkX9 X-Received: by 2002:aca:5d57:: with SMTP id r84mr3571136oib.42.1582730848292; Wed, 26 Feb 2020 07:27:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582730848; cv=none; d=google.com; s=arc-20160816; b=iAnqFpgguQusz1d4A5a7plIWHWyKOaDdwiBHlwZv9yK4AlvPsEq4+M5oYd3QYcwrRt p8Ji4gdj+gfREUsXiIbUPiKTTvtkX07o374OoVxQSMkm1pdzn+0WH/mNWEy6rbQ0lXnN jjgAQC1J6ExiESSp2Yfq/5W9KQclgFcGqoRUlcBgovpciqgFleK9aWxU5KMwBKZoYQ13 vUIRvBxBZZRmqAJThsEU7jFzJlndlMUfiXWfRWCCF+cigqmIvGT7rhYEHJxBM419MOWm Yx60gDzfjbeHduoxLSQIyqHt9IgOMBSenyABthsP2gmXvF0pVnU1NuKVAK7fQ4feVttJ q7LQ== 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=9RM2qplPak7AljZxjMc9YQCmJZvQ+Q6c/mA66gm9+R8=; b=XrN3bLrwD2YZg1mtusaf1WiR/XYZeYQLDuZt5r/z7XUaDXoF559GbNoB9oJMOFiFcZ cMvuTwwMP0zZ/g0Qelrkqmle7iyUF6VhOgrSzTMkIcRFm0i3wmZmLig8NYlF4Ee61pFx FigZC2QjbVHmfjDn58NkgXYrkXQp/nfxM+N+Rzo9JofzUWeqfPOUhQbtT7+Au3mOu9bY graKwS0sY8LGyzn5pKWIxXowN3gurzqAF9JstbGwr1912BSwxKvxwlMWKZdy+RSACFJ4 MKCyeNZpQC0HJMX5KPF6YKBQJElmJIom52R/VfB0T9M3i0g05whLhP7/YgU/Nvf72H45 Qklw== 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 h11si1555873otr.197.2020.02.26.07.27.16; Wed, 26 Feb 2020 07:27:28 -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 S1728184AbgBZP0p (ORCPT + 99 others); Wed, 26 Feb 2020 10:26:45 -0500 Received: from mail-ot1-f65.google.com ([209.85.210.65]:36756 "EHLO mail-ot1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728060AbgBZP0p (ORCPT ); Wed, 26 Feb 2020 10:26:45 -0500 Received: by mail-ot1-f65.google.com with SMTP id j20so3300991otq.3; Wed, 26 Feb 2020 07:26:44 -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=9RM2qplPak7AljZxjMc9YQCmJZvQ+Q6c/mA66gm9+R8=; b=ZxVwsASE58e0vDFUX3R0oHuKJpCn2ULZVDGIohiXBW8YC8kjy1kNwyvK2wzrFiFdYP bxwvI4MdSdKsAR1FNCKeglBI+5z5nGHYbqWTzKBLbdWwt8lMZZAt9oJWJEJ1PC2AUuPY 9nSJ57xfNoVSkYVGgQNk+4GcND/XbzBLqAeQZ657AaidVkLNX/jNpTtkgaVkA6wuaiMK 1l0FPcWoc16eeP25KWG3MzvWM0cslJkU+Xz5+tTo2M+06aWa48wWZfeILE5ueCyItxq9 6wAE41pTZe/6lqqCJE0TqZjt+P/xPnFs5fKRrJD4Oe36y8rLJhs1d6sBCw2mIjMEeIP0 jv/w== X-Gm-Message-State: APjAAAWB+mOyjcKlmMyjW+LtsxGPnJTbiTqY0v3q/qAbPYZ/nJaXZQqz 1HOUfHR2xiwD9wMjtZqhng== X-Received: by 2002:a05:6830:1d7b:: with SMTP id l27mr3292649oti.251.1582730804414; Wed, 26 Feb 2020 07:26:44 -0800 (PST) Received: from rob-hp-laptop (24-155-109-49.dyn.grandenetworks.net. [24.155.109.49]) by smtp.gmail.com with ESMTPSA id n8sm875925otl.11.2020.02.26.07.26.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 26 Feb 2020 07:26:43 -0800 (PST) Received: (nullmailer pid 688 invoked by uid 1000); Wed, 26 Feb 2020 15:26:42 -0000 Date: Wed, 26 Feb 2020 09:26:42 -0600 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 v5 3/7] dt-bindings: clk: sprd: add bindings for sc9863a clock controller Message-ID: <20200226152642.GA26474@bogus> References: <20200219040915.2153-1-zhang.lyra@gmail.com> <20200219040915.2153-4-zhang.lyra@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200219040915.2153-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 Wed, Feb 19, 2020 at 12:09:11PM +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 | 110 ++++++++++++++++++ > 1 file changed, 110 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..b31569b524e5 > --- /dev/null > +++ b/Documentation/devicetree/bindings/clock/sprd,sc9863a-clk.yaml > @@ -0,0 +1,110 @@ > +# 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-aon-clk > + - sprd,sc9863a-apahb-gate > + - sprd,sc9863a-pmu-gate > + - sprd,sc9863a-aonapb-gate > + - sprd,sc9863a-pll > + - sprd,sc9863a-mpll > + - sprd,sc9863a-rpll > + - sprd,sc9863a-dpll > + - sprd,sc9863a-mm-gate > + - sprd,sc9863a-apapb-gate > + > + clocks: > + minItems: 1 > + maxItems: 4 > + description: | > + The input parent clock(s) phandle for this clock, only list fixed > + clocks which are declared in devicetree. > + > + clock-names: > + minItems: 1 > + maxItems: 4 > + description: | > + Clock name strings used for driver to reference. Drop this. That's all 'clock-names'. > + items: > + - const: ext-26m > + - const: ext-32k > + - const: ext-4m > + - const: rco-100m > + > + reg: > + description: | > + Contain the registers base address and length. Drop this. You need to define how many entries (maxItems: 1). > + > +required: > + - compatible > + - '#clock-cells' > + > +if: > + properties: > + compatible: > + enum: > + - sprd,sc9863a-ap-clk > + - sprd,sc9863a-aon-clk > +then: > + required: > + - reg > + > +else: > + description: | > + Other SC9863a clock nodes should be the child of a syscon node with > + the required property: > + > + - compatible: Should be the following: > + "sprd,sc9863a-glbregs", "syscon", "simple-mfd" > + > + The 'reg' property is also required if there is a sub range of > + registers for the clocks that are contiguous. Which ones are these? You should be able to define that exactly starting with the example below. > + > +examples: > + - | > + ap_clk: clock-controller@21500000 { > + compatible = "sprd,sc9863a-ap-clk"; > + reg = <0 0x21500000 0 0x1000>; > + clocks = <&ext_26m>, <&ext_32k>; > + clock-names = "ext-26m", "ext-32k"; > + #clock-cells = <1>; > + }; > + > + - | > + soc { > + #address-cells = <2>; > + #size-cells = <2>; > + > + ap_ahb_regs: syscon@20e00000 { > + compatible = "sprd,sc9863a-glbregs", "syscon", "simple-mfd"; > + reg = <0 0x20e00000 0 0x4000>; > + #address-cells = <1>; > + #size-cells = <1>; > + ranges = <0 0 0x20e00000 0x4000>; > + > + apahb_gate: apahb-gate@0 { > + compatible = "sprd,sc9863a-apahb-gate"; > + reg = <0x0 0x1020>; > + #clock-cells = <1>; Doesn't this block have input clocks? > + }; > + }; > + }; > + > +... > -- > 2.20.1 >