Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp5993849rdb; Thu, 14 Dec 2023 05:47:34 -0800 (PST) X-Google-Smtp-Source: AGHT+IGDQmHfRIlK74EO5CsTibUClpF7W/XGXBqRgnlxLs7xiV/ZavzjLCR5Xth9VVNDCN4Fe5iD X-Received: by 2002:a05:6358:8809:b0:170:17eb:14bd with SMTP id hv9-20020a056358880900b0017017eb14bdmr9422321rwb.45.1702561654136; Thu, 14 Dec 2023 05:47:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702561654; cv=none; d=google.com; s=arc-20160816; b=dMrdkDV4j/69dOKIRpmS5/Ggn1lhqNTj0c0wBEaS8LMg/lz5+86phqXgMv0ZwP4DSU 4N8sqmnnOzbDJJ5SjL4OZVxB+x8A/Erhi4C4FtfEhM+FSX79763Y1pZVxRViT5vlEQ5r 2C447o/IDBeb88FpnUZsPjP5KPhUSNoQ6fzFCY/QSuuw9sFW6ltPf5oHFxDDC90Nj/H3 pQNi2U7dNKJU6nThM21z9lCyasQ4BjY4NxvirLY8ZjAq5Euz7qFZGQoM52R35P5CxqYc mAKvK2oVbLBPDO/mCp5269PrRRt06YAh36Io+B0bXQUqoLL5+8yhVyFJNNixdsr/ioOg nnzw== 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=rR4iQhct0JSactCnpysiJQ6RX/Xp7Q37KbzziGQiP70=; fh=TcwCL2Xs8hC0PDR0LkrE2zEsyeedas9yLy26RLg6cRk=; b=ytO570sy9a0qTroUwuYaOKJ8lD1dSrJp2AUxGzwmvta5dHsd3a9KEsUfam2Hs2IyFV uYzGKwOp/1BMYPjiEfliSyA3pWJioMzz54mgDxTn4hQuN3FhfH3/8r+C7b067nhwGovn IsO29X9CMc6o9GBpCkuoqOZt1vigTISspCr1++GAuk6gqV8O4MWFIr105N5OxbSt6MF8 ol8tzp2tYF0jKbPw5aZJSg2wJreIhG5JZSpt+lJgYFj0b8kX04dSA6ME+J6WH5yuiVQH WeogO7TKJOKdKWswFYVdtqZpCn7tG5cpjQNCk1xz79srQsvUVCAvb5CvpGnhGxuJvYaF rZhA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="p/Diy8RF"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 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 agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id m188-20020a6326c5000000b005c604ef1844si11264516pgm.3.2023.12.14.05.47.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Dec 2023 05:47:34 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="p/Diy8RF"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 9C8FA801CEA8; Thu, 14 Dec 2023 05:47:31 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1573102AbjLNNrR (ORCPT + 99 others); Thu, 14 Dec 2023 08:47:17 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33696 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229922AbjLNNrP (ORCPT ); Thu, 14 Dec 2023 08:47:15 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 001818E for ; Thu, 14 Dec 2023 05:47:21 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 03207C433C8; Thu, 14 Dec 2023 13:47:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1702561641; bh=lWqoyY+Lp0x9QIy2h5s/P2Ib5HZKYH1QdBbOLtUFQsE=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=p/Diy8RFki0Xj0UHq3i2rCZfhaqQg8EttcvF9psMEeM0+YTNy7zkRYMakriJZiqLK dBOBbHJ+2pqIQ0Qiwgg2Tr1V9wqcoRJR7PDuwBSk4mBYFvTth01psHiZwYVmPnOXFz 5ZxP23bDpK1suw9uvM+qoQSUZ5tw10ARjNfqk6zQtsFdG1PWOwxgbD2ZmqHv2CYbpC 9VPpcEJFmiFv05M30RH9pLf4nm5OPAT2tauPWu6Qol9Fq1zAhY/NLJC7PSJXfnbV27 uuzPsug4M8oVleSFbo6yHZdfymHCVUNOMf/YNt6auGzR7/YglzJO7oLpFmFiQT9mXD 5eH3JiIG3ZIhQ== Date: Thu, 14 Dec 2023 13:47:14 +0000 From: Conor Dooley To: Viresh Kumar Cc: Brandon Cheo Fusi , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland , Paul Walmsley , Palmer Dabbelt , Albert Ou , "Rafael J . Wysocki" , Yangtao Li , devicetree@vger.kernel.org, linux-riscv@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org Subject: Re: [PATCH 1/5] riscv: dts: allwinner: Update opp table to allow CPU frequency scaling Message-ID: <20231214-junkyard-corset-d35b01bad69f@spud> References: <20231214103342.30775-1-fusibrandon13@gmail.com> <20231214103342.30775-2-fusibrandon13@gmail.com> <20231214111446.camz2krqanaieybh@vireshk-i7> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="4Bt0sbK2SeaAxN2v" Content-Disposition: inline In-Reply-To: <20231214111446.camz2krqanaieybh@vireshk-i7> X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Thu, 14 Dec 2023 05:47:31 -0800 (PST) --4Bt0sbK2SeaAxN2v Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Dec 14, 2023 at 04:44:46PM +0530, Viresh Kumar wrote: > On 14-12-23, 11:33, Brandon Cheo Fusi wrote: > > Two OPPs are currently defined for the D1/D1s; one at 408MHz and > > another at 1.08GHz. Switching between these can be done with the > > "sun50i-cpufreq-nvmem" driver. This patch populates the opp table > > appropriately, with inspiration from > > https://github.com/Tina-Linux/linux-5.4/blob/master/arch/riscv/boot/dts= /sunxi/sun20iw1p1.dtsi > >=20 > > The supply voltages are PWM-controlled, but support for that IP > > is still in the works. So stick to a fixed 0.9V vdd-cpu supply, > > which seems to be the default on most D1 boards. > >=20 > > Signed-off-by: Brandon Cheo Fusi > > --- > > arch/riscv/boot/dts/allwinner/sun20i-d1s.dtsi | 18 +++++++++++++++--- > > 1 file changed, 15 insertions(+), 3 deletions(-) > >=20 > > diff --git a/arch/riscv/boot/dts/allwinner/sun20i-d1s.dtsi b/arch/riscv= /boot/dts/allwinner/sun20i-d1s.dtsi > > index 64c3c2e6c..e211fe4c7 100644 > > --- a/arch/riscv/boot/dts/allwinner/sun20i-d1s.dtsi > > +++ b/arch/riscv/boot/dts/allwinner/sun20i-d1s.dtsi > > @@ -39,16 +39,22 @@ cpu0_intc: interrupt-controller { > > }; > > =20 > > opp_table_cpu: opp-table-cpu { > > - compatible =3D "operating-points-v2"; > > + compatible =3D "allwinner,sun20i-d1-operating-points", >=20 > I don't think you should add a new compatible for every SoC that needs > to be supported by a DT bindings and cpufreq driver. Maybe you should > just reuse "allwinner,sun50i-h6-operating-points" and it will work > fine for you ? >=20 > Rob ? The driver can definitely just reuse sun50i-h6, but the binding and devicetree should have a soc-specific compatible for the sun20i-d1. That said, the compatible does need to be documented, there's a dt-bindings patch missing from this series. Cheers, Conor. --4Bt0sbK2SeaAxN2v Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRh246EGq/8RLhDjO14tDGHoIJi0gUCZXsHYgAKCRB4tDGHoIJi 0llNAPwPlCtHYqdw3PHm/F9o63nh77wIsWE9SawYpIg6XvVYSQEA3ontbKuKxaUy sMpsYI0c/7MsH2HbQPLjiFJVxobR5wo= =L6Mk -----END PGP SIGNATURE----- --4Bt0sbK2SeaAxN2v--