Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1675354rwd; Tue, 13 Jun 2023 12:27:11 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4mQdnFhzGnc/S0l2spjWi4Ak5gAYGaBXGUl2vkZfflSmTRCkx38wOS/lcWCwMgLH6K+cLv X-Received: by 2002:a05:6a00:2e1d:b0:665:d10d:841a with SMTP id fc29-20020a056a002e1d00b00665d10d841amr3498895pfb.30.1686684430469; Tue, 13 Jun 2023 12:27:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686684430; cv=none; d=google.com; s=arc-20160816; b=WNLm6tDj3k8pBT0VeI+6zRDtx3T262FqtD9+ZjBVKTvGRqQodZp+C1tbUiHRGBFD7N eJMp3Nd4HETFk9qHS4LcLxtk9Nnr4LX0SO/rLOt1RyxfNYDI2b92DNW76Vyt3hxTwGVj nV4AVUyrlTPG3srwvi0Fvli8APVjPSA5F7MZ2uXwhpcSXyG4HRQsAYhhY5y4clEPcV2m I51RBXIGujuxPEUoY4isxtTo8PPknUKW4ICMBURp7w21X7QK3C/u3ljFYGiOaaBMDyZE a/g0W+pFeTXxab4u31IzNDB5YIgJ3cgUSCu1FJWMxeyucs5tuWotQibiMAVCvjcJctKj 7s5A== 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=oD280Kq4hv47N+S/pekjBlHMpeiY3mor5pFjsES0eBU=; b=KI2Oqz11ovrdAL0a25faNdq9lIfP6A9hdWDFnmQm2C6DRzqtjQ6Ae7n3SILKdks7Pf HSBcJeuFhbhM41GFI3DahZQyX4nll5wVLIt9owvVeNmmaD1TuJN9VKRBRq1UPRpsLgTp NcqKpAOxMasybAKxGp36rmKqZbLI2BVO9xpI19y/BNv3i8ebQuI/VRcNXfqMXck3aGdP dvhQFhwHX90wIpS1NCyxb4aFbUgo6+w3N3uI3nVunAUIHeqv/A6aY/Tn4b8PmHGmnQO9 n7a/bshNIv2TR6wAhdUpMRCd+pDQVIR+TG44MPsHyGEJIsPqezcSIyPkTTARNx47FxgP mKKg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=GFaMCioo; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f64-20020a625143000000b0063b356e36fesi9409027pfb.372.2023.06.13.12.26.57; Tue, 13 Jun 2023 12:27:10 -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=@kernel.org header.s=k20201202 header.b=GFaMCioo; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232187AbjFMTRv (ORCPT + 99 others); Tue, 13 Jun 2023 15:17:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58550 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229674AbjFMTRt (ORCPT ); Tue, 13 Jun 2023 15:17:49 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BA1FEC6; Tue, 13 Jun 2023 12:17:48 -0700 (PDT) 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 4DC3F63A09; Tue, 13 Jun 2023 19:17:48 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 48515C433F1; Tue, 13 Jun 2023 19:17:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1686683867; bh=oD280Kq4hv47N+S/pekjBlHMpeiY3mor5pFjsES0eBU=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=GFaMCiooc9xqA+b6v8Ydxm4bW3t48zVN7o+ZLd9NGw0ecZInTVWNcNVsWdohpUWeo 7gyZ+f7Fvo+wbFePOydPko9zAxcfOd9DIrYPdthKHDBIeCVt4ky2Ij8rwjLsNHQubN xD8g7S9oYJDWPtaqKcvrJQuI2BM5Th+SNP49XhZ/8Odl42JApkWMPYNhpk7Ew8WaDY EG8c8EXeDjvhfvXO1CRLI6P6m0PV9kVbx1JOM/88yXzfkbaRfxamz9PEnqw/v4zPYN pU+F39Ep5YJVdAkMNbgHDVeg1/P0gISYAIbp2N+sQCLKy/NZxNoWjLI7j3YTD/Bkk9 RImaTm1CyiEPA== Date: Tue, 13 Jun 2023 20:17:41 +0100 From: Conor Dooley To: Krzysztof Kozlowski Cc: Xingyu Wu , linux-riscv@lists.infradead.org, devicetree@vger.kernel.org, Michael Turquette , Stephen Boyd , Rob Herring , Krzysztof Kozlowski , Philipp Zabel , Conor Dooley , Emil Renner Berthing , Paul Walmsley , Palmer Dabbelt , Albert Ou , Hal Feng , William Qiu , linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org Subject: Re: [PATCH v5 3/7] dt-bindings: clock: jh7110-syscrg: Add PLL clock inputs Message-ID: <20230613-vessel-gallantly-d8c7393c9aca@spud> References: <20230613125852.211636-1-xingyu.wu@starfivetech.com> <20230613125852.211636-4-xingyu.wu@starfivetech.com> <75508c4d-d86e-f88f-191f-dd870ebe7bd7@linaro.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="4FpC5bN6KyvzAt5G" Content-Disposition: inline In-Reply-To: <75508c4d-d86e-f88f-191f-dd870ebe7bd7@linaro.org> 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, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 --4FpC5bN6KyvzAt5G Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Jun 13, 2023 at 08:34:25PM +0200, Krzysztof Kozlowski wrote: > On 13/06/2023 14:58, Xingyu Wu wrote: > > Add optional PLL clock inputs from PLL clock generator. >=20 > Are you sure that PLLs are optional? Usually they are not... They're not. What's happening here is the original binding was defined without these clocks (obviously, since they're only being added now) so for the driver they are still "optional" to keep compatibility. In mainline, the driver takes the "osc" input and registers some fixed-factor clocks to mimic these PLLs & after this patchset that is only done as a fallback if the clock inputs to the clock controller, =66rom the PLLs, are missing. They should not be optional in the dt-binding because they're not optional in the hardware afaik! Cheers, Conor. --4FpC5bN6KyvzAt5G Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRh246EGq/8RLhDjO14tDGHoIJi0gUCZIjA1QAKCRB4tDGHoIJi 0olYAQCUKGw49UtQ9fn/beKhbR7EyT1pRj5cgqbV4cYpDu9U9AEAqbt+eklBEBlT /UHn1MIfOjSf0NW68hlORp8JzD6gSgw= =aTi3 -----END PGP SIGNATURE----- --4FpC5bN6KyvzAt5G--