Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp10364146rwr; Fri, 12 May 2023 07:15:53 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4Q7ozluopxEKUmLeLlHfj7J4414Kd8JmaD0QtEevdywpcReRTxBsF3DtKqwVbnMgArYq2w X-Received: by 2002:a05:6a21:7899:b0:101:2dde:37b7 with SMTP id bf25-20020a056a21789900b001012dde37b7mr19331300pzc.11.1683900952701; Fri, 12 May 2023 07:15:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683900952; cv=none; d=google.com; s=arc-20160816; b=XztqAIHXm2VFqDYYg6qFOLFh8bpq0fZbxDwqNj13Fg+TNB2TGLsAPMc9HbH9sD7fPa xBNlPYKOOU03ukrTSJf3hM7nBZQaZb4dRhZ1GQfHP5ase41fOvahlESH26I1UUopaJtE ZC2sUd7NsiLhJXcne17MGmd7PWvTAM05Jk5vAaGgxjNdGeZJ8vetYU9qwTMyBgY6QjdB fU4MasdXn0c67SYvb0eaPWFcQj4mikkTPD2YHq1RKp1O/f4GwUbP8WgQgFnBzjpft7aU /5bTk2GQU+6AZg6lHiy8erfV5e/g4O7p+4hskotrgGJGXVsbDL8dn5Lh+ftaaciU1Bvb 0dyw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=mHo+7Tj7vT2tZSPgCrs8VqWuDEcFOxmqFzAMtlxYIoQ=; b=rDjlrOc+o/j7YMMvBxgvUbolCLQTGCzqL+zTLAtQjvu6U8NYFyZcMjzi55WhyWi4Vu o2lPoIAc+E3ETIYtn7URdHr0gy0yvTdRFHH1a+plwyAMplrJ6T0b8FRnPwy077R7p6qj PRfVdObuPTfn+D8sVvrKgXWTNVL2BdjnkdnOsyJ07PFDP040Je5gnYwioo7lEcRpOHXX peMDib5SJxNav9zVPnzF7vrtUWsEK3nlhGKXhWKddJz2Aqjfj3Wdt9Dh4hrSuoNjx35c NrqR7+6quf1xrQfnREzsXw3wlHem1p809ZryPy6kOSVFabgl7v5D8D9QTIudW1Bp18fm y/SQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@microchip.com header.s=mchp header.b=jalO+Qu1; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=microchip.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l136-20020a633e8e000000b00528d90d40e4si9266875pga.88.2023.05.12.07.15.15; Fri, 12 May 2023 07:15:52 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@microchip.com header.s=mchp header.b=jalO+Qu1; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=microchip.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241331AbjELNtz (ORCPT + 99 others); Fri, 12 May 2023 09:49:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58522 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241325AbjELNty (ORCPT ); Fri, 12 May 2023 09:49:54 -0400 Received: from esa.microchip.iphmx.com (esa.microchip.iphmx.com [68.232.154.123]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 301EF12EA9; Fri, 12 May 2023 06:49:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1683899393; x=1715435393; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=DuNeysYSTXy/mIZofYnY1xvzASlALFjZdE92szRAONc=; b=jalO+Qu1oHnS0FfJgzVsS84HrwTnpOqII992QLCJf1te4pfzAhqA71d3 e5/JPXViiWgCfUhnR1J8CEAy42yukDc1X8TG9bMnApgnas6oN3W7KPSs5 aqKulDjLCCr9BwzuQgnKEf3Q+yOZ77FTq/igFZJIqzuGcbxg5Y70gfAXc R9TBX7K9THPlkWmm19EqasQavHFWsCmib+rQ/QgBlk4Df4PXoSNonSRZ4 r8vc+ZblUVm24cUoemNfMgv3K9olZfevenckc+Z1EJtbsCapoMLG8tn0a 3ggUMw88eYK9udVQOx7CmfL2EywPiQSKajicXRKFVDn8P307pNzHHIEY6 Q==; X-IronPort-AV: E=Sophos;i="5.99,269,1677567600"; d="asc'?scan'208";a="210975138" X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN Received: from unknown (HELO email.microchip.com) ([170.129.1.10]) by esa4.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 12 May 2023 06:49:52 -0700 Received: from chn-vm-ex04.mchp-main.com (10.10.85.152) by chn-vm-ex01.mchp-main.com (10.10.85.143) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.21; Fri, 12 May 2023 06:49:50 -0700 Received: from wendy (10.10.115.15) by chn-vm-ex04.mchp-main.com (10.10.85.152) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.21 via Frontend Transport; Fri, 12 May 2023 06:49:48 -0700 Date: Fri, 12 May 2023 14:49:27 +0100 From: Conor Dooley To: Xingyu Wu CC: , , Michael Turquette , Stephen Boyd , Krzysztof Kozlowski , Philipp Zabel , Conor Dooley , Emil Renner Berthing , Rob Herring , Paul Walmsley , Palmer Dabbelt , Albert Ou , Hal Feng , William Qiu , , Subject: Re: [PATCH v4 3/7] dt-bindings: clock: jh7110-syscrg: Add PLL clock inputs Message-ID: <20230512-traffic-popsicle-5c3423b37fab@wendy> References: <20230512022036.97987-1-xingyu.wu@starfivetech.com> <20230512022036.97987-4-xingyu.wu@starfivetech.com> <20230512-uproar-external-49a9e793fbc4@wendy> <91e4fd3c-20cb-724b-c9a8-e038600aabb7@starfivetech.com> <20230512-backlit-radiated-ded0b38b4a94@wendy> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="qj/PZxe9T53Afs5A" Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_NONE,T_SCC_BODY_TEXT_LINE, URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --qj/PZxe9T53Afs5A Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, May 12, 2023 at 05:56:16PM +0800, Xingyu Wu wrote: > On 2023/5/12 17:35, Conor Dooley wrote: > > On Fri, May 12, 2023 at 04:07:47PM +0800, Xingyu Wu wrote: > >> On 2023/5/12 14:47, Conor Dooley wrote: > >> > On Fri, May 12, 2023 at 10:20:32AM +0800, Xingyu Wu wrote: > >> >> Add PLL clock inputs from PLL clock generator. > >> >>=20 > >> >> Acked-by: Krzysztof Kozlowski > >> >> Signed-off-by: Xingyu Wu > >> >> --- > >> >> .../clock/starfive,jh7110-syscrg.yaml | 20 +++++++++++++++= ++-- > >> >> 1 file changed, 18 insertions(+), 2 deletions(-) > >> >=20 > >> > /tmp/tmp.KDlzwQM5ma/arch/riscv/boot/dts/starfive/jh7110-starfive-vis= ionfive-2-v1.3b.dtb: clock-controller@13020000: clocks: 'oneOf' conditional= failed, one must be fixed: > >> > [[19], [20], [21], [22], [23], [24], [25], [26], [27]] is too short > >> > From schema: /Documentation/devicetree/bindings/clock/starfive,jh71= 10-syscrg.yaml > >> > /tmp/tmp.KDlzwQM5ma/arch/riscv/boot/dts/starfive/jh7110-starfive-vis= ionfive-2-v1.3b.dtb: clock-controller@13020000: clock-names: 'oneOf' condit= ional failed, one must be fixed: > >> > ['osc', 'gmac1_rmii_refin', 'gmac1_rgmii_rxin', 'i2stx_bclk_ext', '= i2stx_lrck_ext', 'i2srx_bclk_ext', 'i2srx_lrck_ext', 'tdm_ext', 'mclk_ext']= is too short > >> > 'i2stx_bclk_ext' was expected > >> > 'i2stx_lrck_ext' was expected > >> > 'i2srx_bclk_ext' was expected > >> > 'i2srx_lrck_ext' was expected > >> > 'tdm_ext' was expected > >> > 'mclk_ext' was expected > >> > 'pll0_out' was expected > >> > From schema: /Documentation/devicetree/bindings/clock/starfive,jh71= 10-syscrg.yaml > >> > /tmp/tmp.KDlzwQM5ma/arch/riscv/boot/dts/starfive/jh7110-starfive-vis= ionfive-2-v1.2a.dtb: clock-controller@13020000: clocks: 'oneOf' conditional= failed, one must be fixed: > >> > [[19], [20], [21], [22], [23], [24], [25], [26], [27]] is too short > >> > From schema: Documentation/devicetree/bindings/clock/starfive,jh711= 0-syscrg.yaml > >> > /tmp/tmp.KDlzwQM5ma/arch/riscv/boot/dts/starfive/jh7110-starfive-vis= ionfive-2-v1.2a.dtb: clock-controller@13020000: clock-names: 'oneOf' condit= ional failed, one must be fixed: > >> > ['osc', 'gmac1_rmii_refin', 'gmac1_rgmii_rxin', 'i2stx_bclk_ext', '= i2stx_lrck_ext', 'i2srx_bclk_ext', 'i2srx_lrck_ext', 'tdm_ext', 'mclk_ext']= is too short > >> > 'i2stx_bclk_ext' was expected > >> > 'i2stx_lrck_ext' was expected > >> > 'i2srx_bclk_ext' was expected > >> > 'i2srx_lrck_ext' was expected > >> > 'tdm_ext' was expected > >> > 'mclk_ext' was expected > >> > 'pll0_out' was expected > >> > Documentation/devicetree/bindings/clock/starfive,jh7110-syscrg.yaml > >> >=20 > >> > This binding change is incompatible with the existing devicetrees for > >> > the visionfive 2. > >>=20 > >> This looks like less clocks about PLL in SYSCRG node. And I add this i= n patch 7. > >=20 > > The existing devicetree is a valid, albeit limited, description of the > > hardware. > > After your changes to the clock driver in this series, but *without* the > > changes to the devicetrees, does the system still function? > > From a quick check of 4/7, it looks like it will not? >=20 > I just tested it on the board and the system still worked without the cha= nges > about devicetree. But these clocks' rate were 0 because these could not g= et > the PLL clocks from devicetree. Hmm, that sounds like an issue to me. If all of the clock rates are computed based off of parents that incorrectly report 0, are we not in for trouble? Should the fixed-factor clocks be retained as a fallback for the sake of compatibility? Emil, Stephen? --qj/PZxe9T53Afs5A Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRh246EGq/8RLhDjO14tDGHoIJi0gUCZF5D5wAKCRB4tDGHoIJi 0ls8AQDZMoyMjXuX37lw7BCSWsU9Gxef0TEiBYOlGG+R1S9i9gEAlqR+XYcFjG8B 9nGwVdlLV70d09Xp6IjHrhusCQ2QSA4= =fsw/ -----END PGP SIGNATURE----- --qj/PZxe9T53Afs5A--