From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.1 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id D16DCC35254 for ; Mon, 10 Feb 2020 18:45:48 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id A36A420842 for ; Mon, 10 Feb 2020 18:45:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1581360348; bh=1HEo325uKcJScMqA1TBMxTyz69hQ2kusxwb1WY+5d6w=; h=In-Reply-To:References:Subject:From:Cc:To:Date:List-ID:From; b=WjcnuQUBuON/wQaJqDaRDcoHZP1bTFrIKYazzG3avpgXbK772FFbLI4ZBvqLF9yy8 WOL4XJ364+hGqDN8bPaIJLl0k72RgrVKub4HCug8xShcMV3f7kDy//qOpgZPf4jeSn Qbfn7udeDcX+R2UQ0QdVmFpzGLEA9JNYyFvXtAmA= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727573AbgBJSps (ORCPT ); Mon, 10 Feb 2020 13:45:48 -0500 Received: from mail.kernel.org ([198.145.29.99]:57306 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726816AbgBJSps (ORCPT ); Mon, 10 Feb 2020 13:45:48 -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 5FE6B20715; Mon, 10 Feb 2020 18:45:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1581360347; bh=1HEo325uKcJScMqA1TBMxTyz69hQ2kusxwb1WY+5d6w=; h=In-Reply-To:References:Subject:From:Cc:To:Date:From; b=NdKqBThhzMhuAHRe2+WtUZ1+wejRl1ueQ6kv59onPhamqyc+lX6JIkIxnZ96amPkw H+p42TwWdhwtBxbUDFDh0UW2ZwTa2JGVxwnV3vCVXju5Ku3/obTgujV8sDjDrI3IQo xeiGrx+9qOrOv/fccDCB8NpQMziZ4n8mEMAhYtrI= Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable In-Reply-To: <20200207044425.32398-2-vigneshr@ti.com> References: <20200207044425.32398-1-vigneshr@ti.com> <20200207044425.32398-2-vigneshr@ti.com> Subject: Re: [PATCH v2 1/2] dt-bindings: clock: Add binding documentation for TI syscon gate clock From: Stephen Boyd Cc: linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Vignesh Raghavendra , Tero Kristo To: Mark Rutland , Michael Turquette , Rob Herring , Santosh Shilimkar , Vignesh Raghavendra Date: Mon, 10 Feb 2020 10:45:46 -0800 Message-ID: <158136034652.94449.4389789192412792346@swboyd.mtv.corp.google.com> User-Agent: alot/0.9 Sender: linux-clk-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-clk@vger.kernel.org Quoting Vignesh Raghavendra (2020-02-06 20:44:24) > diff --git a/Documentation/devicetree/bindings/clock/ti,am654-ehrpwm-tbcl= k.yaml b/Documentation/devicetree/bindings/clock/ti,am654-ehrpwm-tbclk.yaml > new file mode 100644 > index 000000000000..98fcac2b41f3 > --- /dev/null > +++ b/Documentation/devicetree/bindings/clock/ti,am654-ehrpwm-tbclk.yaml > @@ -0,0 +1,47 @@ > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/clock/ti,am654-ehrpwm-tbclk.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: TI syscon gate clock driver > + > +maintainers: > + - Vignesh Raghavendra > + > +description: | > + > + This binding uses common clock bindings > + Documentation/devicetree/bindings/clock/clock-bindings.txt Maybe have a real description instead of this line which is mostly useless. > + > +properties: > + compatible: > + items: I think you can drop items. > + - const: ti,am654-ehrpwm-tbclk > + > + "#clock-cells": > + const: 1 > + > + ti,tbclk-syscon: > + $ref: /schemas/types.yaml#/definitions/phandle > + description: > + Phandle to the system controller node that has bits to > + control eHRPWM's TBCLK > + > +required: > + - compatible > + - "#clock-cells" > + - ti,tbclk-syscon > + > +examples: > + - | > + tbclk_ctrl: tbclk_ctrl@4140 { > + compatible =3D "syscon"; > + reg =3D <0x4140 0x18>; > + }; > + > + ehrpwm_tbclk: clk0 { > + compatible =3D "ti,am654-ehrpwm-tbclk"; > + #clock-cells =3D <1>; > + ti,tbclk-syscon =3D <&tbclk_ctrl>; > + }; I don't understand the binding. Why can't the syscon node register clks and have #clock-cells?