Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp1641071ybx; Thu, 7 Nov 2019 14:56:22 -0800 (PST) X-Google-Smtp-Source: APXvYqwU+BJhtJfF2M3a6GHXoLgi1wqaYc3v7ykk99UjRNNhQfb0RDc2016/m3jSATGv2k3PM/rj X-Received: by 2002:a05:6402:19ae:: with SMTP id o14mr6745790edz.241.1573167381958; Thu, 07 Nov 2019 14:56:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573167381; cv=none; d=google.com; s=arc-20160816; b=UqYKiMSCenhBcQo5moURBVp0J5+WYwsxWWEJpWuZNBIbMCJe80W4uBO2mUN4TxVjbk RpFBuYXycHWGHrBvuXP1uF2xKbbkRUt4uhCkmbIqocHkl8uMP3nDFqLPhqtGTBJWG0cc NcT9FitYDhksX/sE86ECp3pkfugH2TqRw4x7dNkNbv2f6HajTsG5zb2dDHuI8p0yjBw5 Tr1BMcGiJTUCZB901WmRPf2QxwWqOu3tNuB2pEJm2dF5wasVVxcY3tnFQsIKKfnJqXWp 3J/fIGuFdJhcos0LIzg3xsU+IfG1UaEpXPH08qwriLHAORS/O7yuZz/Ta3i6RRRntxi6 q4iA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:user-agent:subject:cc:to :from:references:in-reply-to:content-transfer-encoding:mime-version :dkim-signature; bh=d62l6e9hBDNQus6j2Z9X8VceZc7kJO+H0nqPkR300D0=; b=kyQRbQC/kx1SMt20cKP4gmXUDdG6DWllTgfsWYXBUT8+/3cuXzGVpcWSNyX3XkpiXg yktXC9V7m9j+winbws7We5r7d4i1iC491YvqmbNtKV+aizLjnVr+45h6xcoMRIcbh843 qFWClA34UGf2CRaMZ+dR1fZLTLo6IFmwe6Qg7i8iP7p4v0A5WaIBFlxx/uWV3g8QSMMQ pxIe8ODFyhjCBGkZ1wVa0HpJtGfzNbymsehok5pygKJWRZaoLY9bHWSokZ6OR+f/2JrJ FxpID3dZtW7BCARMtaI/shslM6OS3H3ngB58iLhlPSGQ5BZbomQJ51aCnVFdX3FIXzy1 btGg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=CoYtf+xL; 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=pass (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 x14si2901100edl.128.2019.11.07.14.55.55; Thu, 07 Nov 2019 14:56:21 -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; dkim=pass header.i=@kernel.org header.s=default header.b=CoYtf+xL; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726925AbfKGWzK (ORCPT + 99 others); Thu, 7 Nov 2019 17:55:10 -0500 Received: from mail.kernel.org ([198.145.29.99]:51138 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725882AbfKGWzK (ORCPT ); Thu, 7 Nov 2019 17:55:10 -0500 Received: from kernel.org (unknown [104.132.0.74]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 5C3732085B; Thu, 7 Nov 2019 22:55:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1573167309; bh=jExGSxODnj6qW8jJKoeORibxwrOMTybXfuDaiSWa98s=; h=In-Reply-To:References:From:To:Cc:Subject:Date:From; b=CoYtf+xLGfDiQfquE2zCW0O1/SA4w1+/M3OThuKGMHV++4ZFRd6kg/yDEDY6ACVnf zWTq4MY7EGiGMrRQElaTliKuFz7ml3CGC40OfboKtZEAOA1bialhhSgwlrz4MbJikR x8CZmnN5FnxlQLarGfonSlGiXRYosy1u01MJFdlw= Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable In-Reply-To: <1573111012-29095-1-git-send-email-rajan.vaja@xilinx.com> References: <1573111012-29095-1-git-send-email-rajan.vaja@xilinx.com> From: Stephen Boyd To: Rajan Vaja , mark.rutland@arm.com, mturquette@baylibre.com, robh+dt@kernel.org Cc: linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Rajan Vaja , Jolly Shah , Michal Simek Subject: Re: [PATCH] dt-bindings: clock: Add bindings for versal clock driver User-Agent: alot/0.8.1 Date: Thu, 07 Nov 2019 14:55:08 -0800 Message-Id: <20191107225509.5C3732085B@mail.kernel.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Quoting Rajan Vaja (2019-11-06 23:16:52) > Add documentation to describe Xilinx Versal clock driver > bindings. >=20 > Signed-off-by: Rajan Vaja > Signed-off-by: Jolly Shah > Signed-off-by: Michal Simek Signoff chain is all wrong. The sender should come last. Please read up on how to submit patches to the kernel with proper SoB chains in kernel docs. I can dig it up if you can't find it. > --- > .../devicetree/bindings/clock/xlnx,versal-clk.txt | 48 ++++++++ > include/dt-bindings/clock/xlnx-versal-clk.h | 123 +++++++++++++++= ++++++ > 2 files changed, 171 insertions(+) > create mode 100644 Documentation/devicetree/bindings/clock/xlnx,versal-c= lk.txt > create mode 100644 include/dt-bindings/clock/xlnx-versal-clk.h >=20 > diff --git a/Documentation/devicetree/bindings/clock/xlnx,versal-clk.txt = b/Documentation/devicetree/bindings/clock/xlnx,versal-clk.txt > new file mode 100644 > index 0000000..398e751 > --- /dev/null > +++ b/Documentation/devicetree/bindings/clock/xlnx,versal-clk.txt Can you write this in YAML so we can validate it? > @@ -0,0 +1,48 @@ > +------------------------------------------------------------------------= -- > +Device Tree Clock bindings for the Xilinx Versal > +------------------------------------------------------------------------= -- > +The clock controller is a h/w block of Xilinx versal clock tree. It reads > +required input clock frequencies from the devicetree and acts as clock p= rovider > +for all clock consumers of PS clocks. > + > +See clock_bindings.txt for more information on the generic clock binding= s. > + > +Required properties: > + - #clock-cells: Must be 1 > + - compatible: Must contain: "xlnx,versal-clk" > + - clocks: List of clock specifiers which are external input > + clocks to the given clock controller. Please refer > + the next section to find the input clocks for a > + given controller. > + - clock-names: List of clock names which are exteral inp= ut clocks > + to the given clock controller. Please refer to the > + clock bindings for more details. > + > +Input clocks for Xilinx Versal clock controller: > + > +The Xilinx Versal has one primary and two alternative reference clock in= puts. > +These required clock inputs are: > + - ref_clk > + - alt_ref_clk > + - pl_alt_ref_clk > + > +Output clocks are registered based on clock information received > +from firmware. Output clocks indexes are mentioned in > +include/dt-bindings/clock/xlnx-versal-clk.h. > + > +------- > +Example > +------- > + > +firmware { > + versal_firmware: versal-firmware { > + compatible =3D "xlnx,versal-firmware"; > + method =3D "smc"; > + versal_clk: clock-controller { > + #clock-cells =3D <1>; > + compatible =3D "xlnx,versal-clk"; > + clocks =3D <&ref_clk>, <&alt_ref_clk>, <&pl_alt_r= ef_clk>; > + clock-names =3D "ref_clk", "alt_ref_clk", "pl_alt= _ref_clk"; > + }; > + }; > +}; > diff --git a/include/dt-bindings/clock/xlnx-versal-clk.h b/include/dt-bin= dings/clock/xlnx-versal-clk.h > new file mode 100644 > index 0000000..264d634 > --- /dev/null > +++ b/include/dt-bindings/clock/xlnx-versal-clk.h > @@ -0,0 +1,123 @@ > +/* SPDX-License-Identifier: GPL-2.0 */ > +/* > + * Copyright (C) 2019 Xilinx Inc. > + * > + */ > + > +#ifndef _DT_BINDINGS_CLK_VERSAL_H > +#define _DT_BINDINGS_CLK_VERSAL_H > + > +#define PMC_PLL 1 Why not start with 0?