Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4A3C3C636D7 for ; Tue, 21 Feb 2023 17:23:48 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234584AbjBURXr (ORCPT ); Tue, 21 Feb 2023 12:23:47 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37384 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233746AbjBURXp (ORCPT ); Tue, 21 Feb 2023 12:23:45 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EBB29FD; Tue, 21 Feb 2023 09:23:43 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 86F2A610A0; Tue, 21 Feb 2023 17:23:43 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 65FD5C4339C; Tue, 21 Feb 2023 17:23:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1677000222; bh=Pl03WP9pz1cQTTx/VsalIyGu1+sZ9/CZMBhlsy+Pc0A=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=ZW7tDNOashB0Kv+TDpNQFEyvqNaTUZg/H1F524al5ypnIaxXNFxL5wXCstQSnehc/ 88n2kAios7WCSwxef2XI3HUS0hWu5STws51g0jbgFfToXi/vBjelqlAvasfBUYoee5 KsGD4PYYyNOM5i5YJs9FVHCG7HlynXXig/IdJKA9Xhkizxaem5mNN9W6KoZFrhkNaq rmOc+RIGgi7NN0KkbLGmHQnblhdBmKa+aSyUEWu5biKRO9S/cf0/DoeiCBARCPccaO wVRG90y7YbI2ZvXmVjenZP+agf+uoUfzcF3dgUby5nT9iC07nL1Uh62S8z8HxQxFDD mOqtVkiP4ZyCw== Date: Tue, 21 Feb 2023 17:23:36 +0000 From: Conor Dooley To: Hal Feng Cc: linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-riscv@lists.infradead.org, Stephen Boyd , Michael Turquette , Philipp Zabel , Rob Herring , Krzysztof Kozlowski , Palmer Dabbelt , Paul Walmsley , Albert Ou , Ben Dooks , Daniel Lezcano , Thomas Gleixner , Marc Zyngier , Emil Renner Berthing , linux-kernel@vger.kernel.org Subject: Re: [PATCH v4 09/19] dt-bindings: clock: Add StarFive JH7110 system clock and reset generator Message-ID: References: <20230221024645.127922-1-hal.feng@starfivetech.com> <20230221024645.127922-10-hal.feng@starfivetech.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="5z4OmeN+mDwxYA7S" Content-Disposition: inline In-Reply-To: <20230221024645.127922-10-hal.feng@starfivetech.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --5z4OmeN+mDwxYA7S Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hey Hal, On Tue, Feb 21, 2023 at 10:46:35AM +0800, Hal Feng wrote: > From: Emil Renner Berthing >=20 > Add bindings for the system clock and reset generator (SYSCRG) on the > JH7110 RISC-V SoC by StarFive Ltd. >=20 > Reviewed-by: Rob Herring > Signed-off-by: Emil Renner Berthing > Signed-off-by: Hal Feng > diff --git a/Documentation/devicetree/bindings/clock/starfive,jh7110-sysc= rg.yaml b/Documentation/devicetree/bindings/clock/starfive,jh7110-syscrg.ya= ml > new file mode 100644 > index 000000000000..ec81504dcb27 > --- /dev/null > +++ b/Documentation/devicetree/bindings/clock/starfive,jh7110-syscrg.yaml > @@ -0,0 +1,80 @@ > +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/clock/starfive,jh7110-syscrg.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: StarFive JH7110 System Clock and Reset Generator > + > +maintainers: > + - Emil Renner Berthing > + > +properties: > + compatible: > + const: starfive,jh7110-syscrg > + > + reg: > + maxItems: 1 > + > + clocks: > + items: > + - description: Main Oscillator (24 MHz) > + - description: GMAC1 RMII reference > + - description: GMAC1 RGMII RX > + - description: External I2S TX bit clock > + - description: External I2S TX left/right channel clock > + - description: External I2S RX bit clock > + - description: External I2S RX left/right channel clock > + - description: External TDM clock > + - description: External audio master clock You didn't reply to the conversation I had with Krzysztof about how to represent the optional nature of some of these clocks, contained in this thread here: https://lore.kernel.org/all/7a7bccb1-4d47-3d32-36e6-4aab7b5b8dad@starfivete= ch.com/ What happens to the gmac1 mux if only one of the input clocks is provided? And I mean what does the hardware do, not the software representation of that mux in the driver. > + > + clock-names: > + items: > + - const: osc > + - const: gmac1_rmii_refin > + - const: gmac1_rgmii_rxin > + - const: i2stx_bclk_ext > + - const: i2stx_lrck_ext > + - const: i2srx_bclk_ext > + - const: i2srx_lrck_ext > + - const: tdm_ext > + - const: mclk_ext --5z4OmeN+mDwxYA7S Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRh246EGq/8RLhDjO14tDGHoIJi0gUCY/T+GAAKCRB4tDGHoIJi 0pRkAQC6ht/DbBLlbYtspRHjx7cCxZOkTEjjNHlLyj+f8sZeswD8C+0TU6D7Ciun VaHOn1Vw8T9AeqqwUsyerL6bkIj/+QA= =ZCkp -----END PGP SIGNATURE----- --5z4OmeN+mDwxYA7S--