Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp108965ybx; Tue, 29 Oct 2019 15:11:18 -0700 (PDT) X-Google-Smtp-Source: APXvYqyB9uIgIiqaVIjoHD6CWcv4sWtzVQPenNuapOyR1Dy9XUnttqC1KwFKfcR7DkXLsdFM/h1p X-Received: by 2002:a17:906:4ec2:: with SMTP id i2mr5815521ejv.330.1572387078416; Tue, 29 Oct 2019 15:11:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572387078; cv=none; d=google.com; s=arc-20160816; b=FML3Xbir68WxXqmhTUTmwnya66aroFzz6fqQQizvjgJQSY74VwFFl+SifPQ5YiTPz7 /xEGdwYeIAdoy1e/OZiOlLNy6lZhWK8yBAtR9vcL/y9veONUEv28/hS85bR2rKTyl3Br 5f0c7e/YF2wGBN18KiK2PrtTOe9l585zW3QnEEM3v/w1QxlDho8ua5emtxj8AITseei/ n3Z23WycvTO5XQke0pZ2WvkNmHhVTwP0XmqRONf+Cve6B5m5D1c2VRs4l/10J8n/C3M4 Ha5RL9qoYB+5RL8hmCoOxAPx69FFOSa8BsBAkfhJyJ5zWIk7hMR00k8uHn10K8OQjjqw esew== 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=Qg4Gf6moqefeeqI07wtw6l7UkCvJIw6VyE8bqTKlLAc=; b=EGs4CrAa6vvyRpunGbyTQX0JScezdtSEpvt9sm+Og9shWdmvzKFBT5uhMeKagmbYk4 f0D0iWg8nmmfYthwcwuMmMBuIVwy0lZ5T7D7GtA5+jdMriRzM8mRmais3CiV8y+7odP/ t7SIXL4A/qEjwhfzK4+5XXYdQT7Z1+0PNQen0JRTnnhJoV4XLhBPOp3mYSbM+VRHrYcC 1KDb1R7qXd5w1eISMHkD0MWR8aUY3U/aETk0TilenOF3orTjNsNZXDH0LiQ/LpsiMmo7 M+yBHWtL9fk0UnLm6q6AMBer7SJzoYqlHc9YBKr5La4G0+eoUcYdcgMSRQMDGYjSnKtg Tdbw== 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 e25si59652ede.335.2019.10.29.15.10.54; Tue, 29 Oct 2019 15:11:18 -0700 (PDT) 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 S1727196AbfJ2WBm (ORCPT + 99 others); Tue, 29 Oct 2019 18:01:42 -0400 Received: from mail-oi1-f196.google.com ([209.85.167.196]:35389 "EHLO mail-oi1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726654AbfJ2WBm (ORCPT ); Tue, 29 Oct 2019 18:01:42 -0400 Received: by mail-oi1-f196.google.com with SMTP id n16so237785oig.2; Tue, 29 Oct 2019 15:01:41 -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:user-agent; bh=Qg4Gf6moqefeeqI07wtw6l7UkCvJIw6VyE8bqTKlLAc=; b=iVriIAyDX9iR7k4l7rhANxZePMZrDljZPOx3VH61qQVkLzq09PZfUpdXnCOWOBKu0U xSGTDeP1joLFWrPX6VC0Fz0S3l2FVBqscQ/lw7gs8EKIMABm6Pz9jcC227DeT4zD+bqt nVY+DHcePmu7Gx5RZqfGiQrgMR7yeqDxrgM/Q1vlqhweqxg2S5iACdKZKCQAh0UVBh3q /LJPmbJrXv0dZPGmR25HWjEsYFZaoZhbPfNMKhJnWwF5z5P35wdXyaGP+/GBPTarD3Tm Ha9hslh4+06BOXWSM9BwT791BJJgksNnjbG2DaKPLywl/XIk11Rv45zT7oB9vBc1NPow eD1w== X-Gm-Message-State: APjAAAUOt8EEnwWBxDOnae2eS83PJu7+XQDSfGS4B1eFbz3mtl2tJZ0s tvQ496SxR0LP8KN+8u8sZw== X-Received: by 2002:aca:281a:: with SMTP id 26mr5884115oix.82.1572386501064; Tue, 29 Oct 2019 15:01:41 -0700 (PDT) Received: from localhost (24-155-109-49.dyn.grandenetworks.net. [24.155.109.49]) by smtp.gmail.com with ESMTPSA id k18sm13904oik.58.2019.10.29.15.01.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 29 Oct 2019 15:01:40 -0700 (PDT) Date: Tue, 29 Oct 2019 17:01:39 -0500 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 3/5] dt-bindings: clk: sprd: add bindings for sc9863a clock controller Message-ID: <20191029220139.GA24212@bogus> References: <20191025111338.27324-1-chunyan.zhang@unisoc.com> <20191025111338.27324-4-chunyan.zhang@unisoc.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20191025111338.27324-4-chunyan.zhang@unisoc.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 Fri, Oct 25, 2019 at 07:13:36PM +0800, Chunyan Zhang wrote: > > add a new bindings to describe sc9863a clock compatible string. > > Signed-off-by: Chunyan Zhang > --- > .../bindings/clock/sprd,sc9863a-clk.txt | 59 +++++++++++++++++++ > 1 file changed, 59 insertions(+) > create mode 100644 Documentation/devicetree/bindings/clock/sprd,sc9863a-clk.txt Please make this a DT schema. > diff --git a/Documentation/devicetree/bindings/clock/sprd,sc9863a-clk.txt b/Documentation/devicetree/bindings/clock/sprd,sc9863a-clk.txt > new file mode 100644 > index 000000000000..a73ae5574c82 > --- /dev/null > +++ b/Documentation/devicetree/bindings/clock/sprd,sc9863a-clk.txt > @@ -0,0 +1,59 @@ > +Unisoc SC9863A Clock Binding > +------------------------ > + > +Required properties: > +- compatible: should contain the following compatible strings: > + - "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" > + > +- #clock-cells: must be 1 > + > +- clocks : Should be the input parent clock(s) phandle for the clock, this > + property here just simply shows which clock group the clocks' > + parents are in, since each clk node would represent many clocks > + which are defined in the driver. The detailed dependency > + relationship (i.e. how many parents and which are the parents) > + are implemented in driver code. You need to define how many clocks for each block. > + > +Optional properties: > + > +- reg: Contain the registers base address and length. It must be configured > + only if no 'sprd,syscon' under the node. > + > +- sprd,syscon: 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. Can't these be child nodes of the syscon instead? > + > +Example: > + ap_clk: clock-controller@21500000 { > + compatible = "sprd,sc9863a-ap-clk"; > + reg = <0 0x21500000 0 0x1000>; > + clocks = <&ext_32k>, <&ext_26m>, > + <&pll 0>, <&rpll 0>; > + #clock-cells = <1>; > + }; > + > + pmu_gate: pmu-gate { > + compatible = "sprd,sc9863a-pmu-gate"; > + sprd,syscon = <&pmu_regs>; /* 0x402b0000 */ > + clocks = <&ext_26m>; > + #clock-cells = <1>; > + }; > + > + pll: pll { > + compatible = "sprd,sc9863a-pll"; > + sprd,syscon = <&anlg_phy_g2_regs>; /* 0x40353000 */ > + clocks = <&pmu_gate 0>; > + #clock-cells = <1>; > + }; > -- > 2.20.1 > >