Received: by 2002:ab2:4a89:0:b0:1f4:a8b6:6e69 with SMTP id w9csp245896lqj; Wed, 10 Apr 2024 09:13:36 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWQ6tjc+GO8yKaovSljHTRh5lvYGtYPW910Ip+do+dELoGfLPn/XBX/HcL1X2gT3Jitjfcnbp1utnzKEh6EP1kaWEvk4IjoHmGxQpJ99Q== X-Google-Smtp-Source: AGHT+IGK+ER3T29MQ7/DXLfhjnUEq2zyBsDRhwVUcPUQu4VkKAXt/jFcwgxcm901ae79S8A4MQmw X-Received: by 2002:a17:907:2ce3:b0:a4e:8c9d:a724 with SMTP id hz3-20020a1709072ce300b00a4e8c9da724mr2657649ejc.69.1712765616218; Wed, 10 Apr 2024 09:13:36 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712765616; cv=pass; d=google.com; s=arc-20160816; b=gX6SgL/Sg/N4oDM3N0y6bDR1KSiYYhjIX/qA2dW/9YI5CDDVdDn5EX90dp+zA/w8XT gw1QJVO14W3paAzIIBvRqN++pSTAA37wHKyWxKwDLAqa99v0OzmvWFdVshwRQX8gfx4G QVG/aBaGflALPNQ1/e1x64S2/AxzoMOq+tEFh012X9mrzVfX+vB3jYv1Zq+Qk2BhouCR dAsTemJK+vSCRX3BPpVMvbQZ/peu5ER8ArY2X1vIhySG0RjEtfLM2mWwE6Y8csMbLP+b lXQ55PJXnGl/sQn4WmDup6bxE7UVjJASJJ0KGIdxAX9QGi++8Arv7l07ISYTTR7CCgho LJQQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=3pwlOPYqZZJumkvrVekNslD+LLEetc5ESCubzm5vc3M=; fh=ZDpKi8viABPMSmZhhJjz11b0uvfXyTjeQwvCPpc81ow=; b=K730vr9ZJ4d99siS8cp57zdkHumXw7L+7qgT+ZvjzfMZKXniz3Ruxot98cKGX6oRp8 JEGjtjmVO/dgTRTdnXCssv913MDZtvnTXRO+auPwrBdDfxr79BkdDeszY+tzVlyhXhz5 y9ITPJlM6/MAsgrA7oFL2xNnGK6z+HJetBk0c/1LUtvk22RrvIRMOJeRdcTClVP/EmEf BiuHrsCrDDesjO+b0FNXxXjT+ZucqKstdJSiXm7EbGgTySi1tH22/1IEb3RptviI5Sh7 IX7zKiIXqYYjAWDOY9qTu8zUKfOrxnB8JT3fZzQM6G/g7R0c+hXVA0oSSGsmg35WI81V BYyA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=WpP1ch0S; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-138959-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-138959-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id j5-20020a170906830500b00a4e26ede4c1si6032995ejx.156.2024.04.10.09.13.36 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Apr 2024 09:13:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-138959-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=WpP1ch0S; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-138959-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-138959-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 9C76F1F222A0 for ; Wed, 10 Apr 2024 16:13:35 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4473F17996E; Wed, 10 Apr 2024 16:13:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="WpP1ch0S" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1F6BD179670; Wed, 10 Apr 2024 16:13:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712765594; cv=none; b=WSPRBg16SrZa/3rmO1L6mwO82ws96crdGsUQv0//yC0DLRmlBEdPOQ9bFbl73h35xZsQoMSd55lmvXHXsOTNtmIIMUr9MCiyAJKUSjBpd/qK6oHKO2e2FGRURvWrjoq+IjsR6HOiPV4ez5XOQzqBtaHVN+WDeMKGcerY0AQnGLo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712765594; c=relaxed/simple; bh=EiSUT6z9f9FKUZqNR3GwiGyw/VHRO7l/LNdz3P1SDkU=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=kLUcA2Nj0Di4c7RzwMmQgtvYTTTdZH1XMD6xolooUq44N8CjusLMQflSZuLyaapM23dOLXkF1C1xTimrDjl0KQ6hKDNT7QdReCvGbfJzCwgrFr7DmcEnPp7kgNsFs8Erp1xhRM0mHc+/VgMUUORIKWqCzHqietOP0rxB+lapoLw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=WpP1ch0S; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id B5010C433C7; Wed, 10 Apr 2024 16:13:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1712765594; bh=EiSUT6z9f9FKUZqNR3GwiGyw/VHRO7l/LNdz3P1SDkU=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=WpP1ch0SaSPGqADO/wz+U7251Hp2PvvVvKW3o5OGz2sAjFN8M4eqv6xhubA5c286k jH8WRpKYI4llFfR5H1HTcZOSSgKylMdFHXwYRWp2DK+RkR+mAGVUVpnbkg0yv27bfq AA/i12+sfnAVW3bILXKbaj7cn9CAzaRA29TmyFTMK5SW92HSbc1d4A1aUTMJ26+zur TxcJyfdH91dgzX5mj9meW8+re4ZdXLDQ1TJjGwNED925jj+hZm5P9+83Dss7/By2dt 3RTSoy9kHo5FYnuzeE74kEZuuSlsq+KKKcaa8zhSUWwrRSwNZyLHp0E3bNpBww/1hi 2DmIvn+c6gPiw== Date: Wed, 10 Apr 2024 11:13:11 -0500 From: Rob Herring To: Yoshinori Sato Cc: linux-sh@vger.kernel.org, Damien Le Moal , Niklas Cassel , Krzysztof Kozlowski , Conor Dooley , Geert Uytterhoeven , Michael Turquette , Stephen Boyd , David Airlie , Daniel Vetter , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , Thomas Gleixner , Bjorn Helgaas , Lorenzo Pieralisi , Krzysztof =?utf-8?Q?Wilczy=C5=84ski?= , Greg Kroah-Hartman , Jiri Slaby , Magnus Damm , Daniel Lezcano , Rich Felker , John Paul Adrian Glaubitz , Lee Jones , Helge Deller , Heiko Stuebner , Shawn Guo , Sebastian Reichel , Chris Morgan , Linus Walleij , Arnd Bergmann , David Rientjes , Hyeonggon Yoo <42.hyeyoo@gmail.com>, Vlastimil Babka , Baoquan He , Andrew Morton , Guenter Roeck , Kefeng Wang , Stephen Rothwell , Javier Martinez Canillas , Guo Ren , Azeem Shaikh , Max Filippov , Jonathan Corbet , Jacky Huang , Herve Codina , Manikanta Guntupalli , Anup Patel , Biju Das , Uwe =?iso-8859-1?Q?Kleine-K=F6nig?= , Sam Ravnborg , Sergey Shtylyov , Laurent Pinchart , linux-ide@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-renesas-soc@vger.kernel.org, linux-clk@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-pci@vger.kernel.org, linux-serial@vger.kernel.org, linux-fbdev@vger.kernel.org Subject: Re: [RESEND v7 13/37] dt-bindings: clock: sh7750-cpg: Add renesas,sh7750-cpg header. Message-ID: <20240410161311.GA4074406-robh@kernel.org> References: <1db8627e4ca50b9d2d27e95d245518cac1cd62dc.1712207606.git.ysato@users.sourceforge.jp> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1db8627e4ca50b9d2d27e95d245518cac1cd62dc.1712207606.git.ysato@users.sourceforge.jp> On Thu, Apr 04, 2024 at 02:14:24PM +0900, Yoshinori Sato wrote: > SH7750 CPG Clock output define. This and the subject don't match what the patch does. > > Signed-off-by: Yoshinori Sato > --- > .../bindings/clock/renesas,sh7750-cpg.yaml | 105 ++++++++++++++++++ > include/dt-bindings/clock/sh7750-cpg.h | 26 +++++ > 2 files changed, 131 insertions(+) > create mode 100644 Documentation/devicetree/bindings/clock/renesas,sh7750-cpg.yaml > create mode 100644 include/dt-bindings/clock/sh7750-cpg.h > > diff --git a/Documentation/devicetree/bindings/clock/renesas,sh7750-cpg.yaml b/Documentation/devicetree/bindings/clock/renesas,sh7750-cpg.yaml > new file mode 100644 > index 000000000000..04c10b0834ee > --- /dev/null > +++ b/Documentation/devicetree/bindings/clock/renesas,sh7750-cpg.yaml > @@ -0,0 +1,105 @@ > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/clock/renesas,sh7750-cpg.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Renesas SH7750/7751 Clock Pulse Generator (CPG) > + > +maintainers: > + - Yoshinori Sato > + > +description: > + The Clock Pulse Generator (CPG) generates core clocks for the SoC. It > + includes PLLs, and variable ratio dividers. > + > + The CPG may also provide a Clock Domain for SoC devices, in combination with > + the CPG Module Stop (MSTP) Clocks. > + > +properties: > + compatible: > + enum: > + - renesas,sh7750-cpg # SH7750 > + - renesas,sh7750s-cpg # SH775S > + - renesas,sh7750r-cpg # SH7750R > + - renesas,sh7751-cpg # SH7751 > + - renesas,sh7751r-cpg # SH7751R > + > + reg: true > + > + reg-names: true > + > + clocks: > + maxItems: 1 > + > + clock-names: > + const: extal > + > + '#clock-cells': > + const: 1 > + > + renesas,mode: > + description: Board-specific settings of the MD[0-2] pins on SoC > + $ref: /schemas/types.yaml#/definitions/uint32 > + minimum: 0 > + maximum: 6 > + > + '#power-domain-cells': > + const: 0 > + > +required: > + - compatible > + - reg > + - reg-names > + - clocks > + - clock-names > + - '#clock-cells' > + > +allOf: > + - if: > + properties: > + compatible: > + contains: > + enum: > + - renesas,sh7750-cpg > + - renesas,sh7750s-cpg > + then: > + properties: > + reg: > + maxItems: 1 > + reg-names: > + items: > + - const: FRQCR > + > + - if: > + properties: > + compatible: > + contains: > + enum: > + - renesas,sh7750r-cpg > + - renesas,sh7751-cpg > + - renesas,sh7751r-cpg > + then: > + properties: > + reg: > + maxItems: 2 minItems: 2 (instead) > + reg-names: > + items: > + - const: FRQCR > + - const: CLKSTP00 Move this to the top-level and add 'minItems: 1'. Then above you just need 'maxItems: 1' and here 'minItems: 2'. > + > +additionalProperties: false > + > +examples: > + - | > + #include > + cpg: clock-controller@ffc00000 { > + #clock-cells = <1>; > + #power-domain-cells = <0>; > + compatible = "renesas,sh7751r-cpg"; > + clocks = <&extal>; > + clock-names = "extal"; > + reg = <0xffc00000 20>, <0xfe0a0000 16>; > + reg-names = "FRQCR", "CLKSTP00"; > + renesas,mode = <0>; > + }; > diff --git a/include/dt-bindings/clock/sh7750-cpg.h b/include/dt-bindings/clock/sh7750-cpg.h > new file mode 100644 > index 000000000000..ec267be91adf > --- /dev/null > +++ b/include/dt-bindings/clock/sh7750-cpg.h > @@ -0,0 +1,26 @@ > +/* SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > + * > + * Copyright 2023 Yoshinori Sato > + */ > + > +#ifndef __DT_BINDINGS_CLOCK_SH7750_H__ > +#define __DT_BINDINGS_CLOCK_SH7750_H__ > + > +#define SH7750_CPG_PLLOUT 0 > + > +#define SH7750_CPG_PCK 1 > +#define SH7750_CPG_BCK 2 > +#define SH7750_CPG_ICK 3 > + > +#define SH7750_MSTP_SCI 4 > +#define SH7750_MSTP_RTC 5 > +#define SH7750_MSTP_TMU012 6 > +#define SH7750_MSTP_SCIF 7 > +#define SH7750_MSTP_DMAC 8 > +#define SH7750_MSTP_UBC 9 > +#define SH7750_MSTP_SQ 10 > +#define SH7750_CSTP_INTC 11 > +#define SH7750_CSTP_TMU34 12 > +#define SH7750_CSTP_PCIC 13 > + > +#endif > -- > 2.39.2 >