Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp2616202rdb; Mon, 25 Dec 2023 21:37:09 -0800 (PST) X-Google-Smtp-Source: AGHT+IF2xfom8tE/ioiqwy1e+Frp5dei4Jy8XmBwOD0NlbgQVlQiuWm7PxH8AYJnZ+uaYKZBfa7P X-Received: by 2002:a05:6e02:348f:b0:35f:b42a:6f2 with SMTP id bp15-20020a056e02348f00b0035fb42a06f2mr5226156ilb.17.1703569029357; Mon, 25 Dec 2023 21:37:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703569029; cv=none; d=google.com; s=arc-20160816; b=sNrvEMUf5glIviUkNOIzdD7cbKrDoprGwKFm7TX3Ua51W6b2ROGQoBdeOmjHfxGme1 arZclVxXKsXHhVc7ffhRRES77xZKOSLPv93lGPizTJKhS+WPTJuHWcQHc5VsCc4w4w3S +83QJfdOnxMj9Z+RUiEV8qP4NpZUZsOWD8QjNFo5VgxWUCMVjk1PmbzQI5kMnRCY+F3d qGWBHejddKeMfjTGsaHWE3+pajtEfjzcc0Co00w+x/F7V5rvqQ0ZhoZufptLFkg+bY2r nAmHX7K8i7BEaorKKeA4ottlQvPyFULmHLmGq4XxOSJqr8ePzXeLNG+zx6CWKXzJFva9 WV5g== ARC-Message-Signature: i=1; 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=wt8Y6H9UYhlcK+Kq+g9t/n5C3ulwRlQUCahaLJRULwM=; fh=ayH8Wi8Dkkik4uyeCb/scl/bTpgb1k25JqasuKrLuEs=; b=jq4JiXAMX30iJ7foFSU9HwC5gR689F1owdyo3kTiHKYjYc4YaYp3lRcSfYcV+LpmKd ppqmVPpTR6rSw+vFXe1g5NRO3PMlH7YokP+kg8WXVhnpcB44uVZDZScyntYnJE9EOrin nqH/LS8bPwIO1oYETTjFdH/SzEVNMWb15D0FoUjLpum4XKhvyu/+3nyZXKBIM3KslkfK 3+4Kwc3BiXChJ+g5ImP8U0H6m1RHhUbDZJI96fZm2rglt994VmshcteUmU6RQrmEuKsQ z+pXFX301MgB4Lpo1L0ovIW2hPwZOlVbxBqNUwNQ81lAa1LQ/73xOR75YOI5Gh9ccGgx T5Zw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=kb4bslvc; spf=pass (google.com: domain of linux-kernel+bounces-11354-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-11354-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id q16-20020a638c50000000b005c5e26ed226si8879671pgn.429.2023.12.25.21.37.08 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Dec 2023 21:37:09 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-11354-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=kb4bslvc; spf=pass (google.com: domain of linux-kernel+bounces-11354-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-11354-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 774E5B21BAF for ; Tue, 26 Dec 2023 05:37:03 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id BED0C4B5AD; Tue, 26 Dec 2023 05:36:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="kb4bslvc" X-Original-To: linux-kernel@vger.kernel.org Received: from mail-pf1-f180.google.com (mail-pf1-f180.google.com [209.85.210.180]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B4E9D4B13A for ; Tue, 26 Dec 2023 05:36:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-pf1-f180.google.com with SMTP id d2e1a72fcca58-6d9b3a967dbso1114951b3a.1 for ; Mon, 25 Dec 2023 21:36:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1703569010; x=1704173810; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=wt8Y6H9UYhlcK+Kq+g9t/n5C3ulwRlQUCahaLJRULwM=; b=kb4bslvcT6z6QfLdpH1H4ZHWcbODxAuZMwncCTLSkWLh0qlwJBY/Yqj4l+FmOrdwcB x6wxwb1o63gHxmIBPGDLG4yPiZ7nM9ZgRPUH/yMpWv5zglL6hFniO2GLls5cNlf+5oqy V+EU/AMLiVwykdrJgYLVWG5PJh/CNjAoT8RJXjbRWjJmJZvPGx2WU9i/1pITCPyl+od1 EihHrB7F17JCEKoCnPEvIYkn91xcCoKxbXTu8DGstVjVqSI3fKO4fLkkErV9cIhkL2pu l2JGbNslo/vnIvtpbuGI5nR8Y7Fd4O2RhLbxJUin8/4HGYlqeDfNTbQF3m3o4LCWJXKz nUhQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1703569010; x=1704173810; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=wt8Y6H9UYhlcK+Kq+g9t/n5C3ulwRlQUCahaLJRULwM=; b=Ji1ydsLtgO9+5SUMjhLUVxrr1EDiCzUKSZ2fvRv6epGXg4xrZcpQF6QzzKPJ02q9Yw 5dSskFP6alf/E7HpsWsRao0ILlF/e8rvTStE/JAaEEVnDBok1qn/Hkf1zUm4wgzPn94T yqPZ1qTUfYtoFARtVxHqj0wjWY4JkgLVQT4L8tU9TPG0cFqEwsSubqH/S2id7ntJoXEd +hriz9TeuUb4UIdkO4/7JV4ZsV1v9UzbclbcrFzVwGzIQxzrjBrvrKjYRBfD/Hw4W0uW mkoXJuj5Gs4HWliTDLmqjTHAU0an255BCsEyRRj/bzNDC95IDi8m88GzfvM1HkGjBNxx I5Rw== X-Gm-Message-State: AOJu0YxbLZKpqYUb9/gawruWCbOklbNQIZf7ViK9+J6txxmf4PAymoh5 +BpdSo1CWgWCwSdTvoXHGtyML+tYkZDFZA== X-Received: by 2002:a05:6a00:181e:b0:6d9:ba7f:8b02 with SMTP id y30-20020a056a00181e00b006d9ba7f8b02mr3323033pfa.32.1703569009897; Mon, 25 Dec 2023 21:36:49 -0800 (PST) Received: from localhost ([122.172.86.168]) by smtp.gmail.com with ESMTPSA id ff21-20020a056a002f5500b006cef5c09ca3sm9165969pfb.147.2023.12.25.21.36.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Dec 2023 21:36:49 -0800 (PST) Date: Tue, 26 Dec 2023 11:06:47 +0530 From: Viresh Kumar To: Brandon Cheo Fusi Cc: Andre Przywara , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Paul Walmsley , Palmer Dabbelt , Albert Ou , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland , Yangtao Li , "Rafael J . Wysocki" , Stephen Rothwell , 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: [RFC PATCH v3 3/3] riscv: dts: allwinner: Fill in OPPs Message-ID: <20231226053647.kvrpn4pjtc2lhfcm@vireshk-i7> References: <20231222111407.104270-1-fusibrandon13@gmail.com> <20231222111407.104270-4-fusibrandon13@gmail.com> 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: <20231222111407.104270-4-fusibrandon13@gmail.com> On 22-12-23, 12:14, Brandon Cheo Fusi wrote: > Specify two voltage ranges, in order of increasing stability, > for each OPP. > > Also define an nvmem cpu speed grade cell of length 2. > > Link: https://github.com/Tina-Linux/linux-5.4/blob/master/arch/riscv/boot/dts/sunxi/sun20iw1p1.dtsi#L118-L133 > Link: https://github.com/mangopi-sbc/tina-linux-5.4/blob/0d4903ebd9d2194ad914686d5b0fc1ddacf11a9d/arch/riscv/boot/dts/sunxi/sun20iw1p1.dtsi#L118-L182 > > Signed-off-by: Brandon Cheo Fusi > --- > arch/riscv/boot/dts/allwinner/sun20i-d1s.dtsi | 19 ++++++++++++++++--- > 1 file changed, 16 insertions(+), 3 deletions(-) > > diff --git a/arch/riscv/boot/dts/allwinner/sun20i-d1s.dtsi b/arch/riscv/boot/dts/allwinner/sun20i-d1s.dtsi > index 64c3c2e6c..7e2e015e0 100644 > --- a/arch/riscv/boot/dts/allwinner/sun20i-d1s.dtsi > +++ b/arch/riscv/boot/dts/allwinner/sun20i-d1s.dtsi > @@ -39,16 +39,23 @@ cpu0_intc: interrupt-controller { > }; > > opp_table_cpu: opp-table-cpu { > - compatible = "operating-points-v2"; > + compatible = "allwinner,sun20i-d1-operating-points"; > + nvmem-cells = <&cpu_speed_grade>; > + nvmem-cell-names = "speed"; > + opp-shared; > > opp-408000000 { > opp-hz = /bits/ 64 <408000000>; > - opp-microvolt = <900000 900000 1100000>; > + > + opp-microvolt-speed0 = <950000 950000 1100000>; > + opp-microvolt-speed1 = <900000 900000 1100000>; > }; > > opp-1080000000 { > opp-hz = /bits/ 64 <1008000000>; > - opp-microvolt = <900000 900000 1100000>; > + > + opp-microvolt-speed0 = <1100000>; I was expecting the above two lines to have same values. Why change them ? > + opp-microvolt-speed1 = <950000 950000 1100000>; > }; > }; > > @@ -115,3 +122,9 @@ pmu { > <0x00000000 0x0000000f 0xffffffff 0xffffffff 0x00020000>; > }; > }; > + > +&sid { > + cpu_speed_grade: cpu-speed-grade@0 { > + reg = <0x00 0x2>; > + }; > +}; > -- > 2.30.2 -- viresh