Received: by 2002:a05:7412:518d:b0:e2:908c:2ebd with SMTP id fn13csp410973rdb; Thu, 5 Oct 2023 09:18:47 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHRorcG60awMhizEj29ps8/nEPAaIRT8sfRZeYVdCNsBLJEYXoNpzSx3PZaPvsX+BceI65D X-Received: by 2002:a05:6a20:7345:b0:167:26c4:256d with SMTP id v5-20020a056a20734500b0016726c4256dmr2234499pzc.21.1696522727613; Thu, 05 Oct 2023 09:18:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696522727; cv=none; d=google.com; s=arc-20160816; b=PZ0QFHp4kE5hwj+4lKvniFna//Zs0n9Cl/dyBmGlsHs03nWK7kHUVHgkLJ9lYJSg0j mDGaCeVkF8TyFLmgdVPzydA1bI1B8cYEqDTz4IaVG7wnNwOdmQ77ufyEe1grhkbfEgND udr+l18qxKvxXjNLqmKAEo432BRGOccEnNMp3NblHwFgsxRnPAqau1VCZJZIaH1f4aQj b120GWcs+xxCmWcyAkyYRcvSlc6duH4Rip+lpH1/jnLSJo1KsJWIGj0Q42bVgPIpvmV7 dQz+NnaN1XE88SXAUoaU9BSyhWPDgoqWdXvJKZJ+0EzroIogEPHEqZ5HtrUZyV9U9tuj yuYg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=0IYhvMB+/tYsbO1if1548hQ+c5ri7I00N34cZT67haM=; fh=HBPqmR+cUG7O/lDI2uFW1UoQzP7YoqP3L3DqLYxw2E4=; b=f1MwzbUWykU7y1HfuwbwGoTmzT6j8v/tkpcgX1qfb0Qj34/ZLQ4PUFOWl+o04pbx3j pxNd8biGzwm9cKEoEo32RIfFJ0LF80d2AFrgK7rofY/gsdkQ2aobPtvrA4b8ZhzhQaMn xNFj/wfUwQq50EElKAY9vU0w0yxZIuXC4kqHq7MmWbRcr5BFHhJGdmm35uFHeBBTNBo5 LW1gXdhPq3O++C40CT/wnvauN+93cBcE5miDbawSggEQr4ss3STbu1gtywAaDGikeqs4 XgOE81S+pAioMyrtHFgy4SLnvuBeCf8xCURm2ugKoAJ/6OMxiSu6AAFVPStQTKLB/YiR /hvg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=oUq2raYX; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id m5-20020a633f05000000b00578e21ee4a0si1787444pga.174.2023.10.05.09.18.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 05 Oct 2023 09:18:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=oUq2raYX; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 40BD78319205; Thu, 5 Oct 2023 09:18:46 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242599AbjJEQSV (ORCPT + 99 others); Thu, 5 Oct 2023 12:18:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52352 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241486AbjJEQO2 (ORCPT ); Thu, 5 Oct 2023 12:14:28 -0400 Received: from mail-yw1-x1134.google.com (mail-yw1-x1134.google.com [IPv6:2607:f8b0:4864:20::1134]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 35EFD24EB7 for ; Thu, 5 Oct 2023 04:39:55 -0700 (PDT) Received: by mail-yw1-x1134.google.com with SMTP id 00721157ae682-59f6767a15dso17633077b3.0 for ; Thu, 05 Oct 2023 04:39:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1696505994; x=1697110794; darn=vger.kernel.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=0IYhvMB+/tYsbO1if1548hQ+c5ri7I00N34cZT67haM=; b=oUq2raYXSnEPlgXt9I4U8k/ylLqsjxW7iy19qYuBTNdQNuQgMb3A7Dpz1OpTKmXVpZ bsMOeRUoimciF283mTMFn2aX+N2iDW5xlSkEBBPqawFIl6M/UxoJVSWEsyTulKgmfPRs SaU9+JOqJTJPx4MyVA4FiY5en+miU2dTVehnKbFJ5R+cLqZ547vuBbmgyp0VqL0FATmR ZbywQHrc3+dm1lA+tG/gYeLz+vkztGYrG8fNPF7egVXjnxqQNu1swsvhbDZlGbr75sid kF/Z2tBOpOx57v+pW3Y/YqqpsycOPdvliwuUJbC0UpWPTnev5H22Y+rUIV+UBWMOHiCv k1UQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696505994; x=1697110794; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=0IYhvMB+/tYsbO1if1548hQ+c5ri7I00N34cZT67haM=; b=aMaXPJvjD5WD+kAStUqhU+FO8BRDFe/EoyVbGlVw3+6h46cKGAAyZtfg6vGwuedNYM nyuOTjeX135aOiAfXCoqO1JQ73C9Nzyj/L7XVB94ESN9btKZUa8zb1el4zopZzi81KaC /5fd60/WIdaz6qcgQNpvs5RNLnhAd74nm4E9E7lQ4UdOFJJiB2N0c1OMQaN9vuUI7/eL JqLyShXtCiSw8qncT9X4oKK5Ai94RZlLY6fob2+iU/rfhUwnhr1V9rGBQbVl3aXArxAO Iy7Rnc5KGukk2kzoODFugP3YAtFVJciT+CX34s7j1rGWTXSNg9rUCKqzkYmeJH1M7XEK tbtA== X-Gm-Message-State: AOJu0YwIv98jNVQQ888DGLsIxHedAwq9qGQ60o5T4ZiCxFIz0ztDWMNL Wy6oetp8Xu8PP9Jye+JvIfqjpoBD7JmPj9+/+8ZP7A== X-Received: by 2002:a0d:d711:0:b0:59f:79e7:6e5d with SMTP id z17-20020a0dd711000000b0059f79e76e5dmr716346ywd.15.1696505994365; Thu, 05 Oct 2023 04:39:54 -0700 (PDT) MIME-Version: 1.0 References: <20231005095744.GA29795@varda-linux.qualcomm.com> In-Reply-To: <20231005095744.GA29795@varda-linux.qualcomm.com> From: Dmitry Baryshkov Date: Thu, 5 Oct 2023 14:39:43 +0300 Message-ID: Subject: Re: [PATCH v1 07/10] arm64: dts: qcom: ipq5332: populate the opp table based on the eFuse To: Varadarajan Narayanan Cc: ilia.lin@kernel.org, agross@kernel.org, andersson@kernel.org, konrad.dybcio@linaro.org, rafael@kernel.org, viresh.kumar@linaro.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, mturquette@baylibre.com, sboyd@kernel.org, quic_kathirav@quicinc.com, linux-pm@vger.kernel.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=unavailable 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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Thu, 05 Oct 2023 09:18:46 -0700 (PDT) On Thu, 5 Oct 2023 at 12:58, Varadarajan Narayanan wrote: > > On Thu, Sep 07, 2023 at 04:59:28PM +0300, Dmitry Baryshkov wrote: > > On Thu, 7 Sept 2023 at 08:23, Varadarajan Narayanan > > wrote: > > > > > > IPQ53xx have different OPPs available for the CPU based on > > > SoC variant. This can be determined through use of an eFuse > > > register present in the silicon. > > > > > > Add support to read the eFuse and populate the OPPs based on it. > > > > > > Signed-off-by: Kathiravan T > > > Signed-off-by: Varadarajan Narayanan > > > --- > > > arch/arm64/boot/dts/qcom/ipq5332.dtsi | 34 +++++++++++++++++++++++++++++++--- > > > 1 file changed, 31 insertions(+), 3 deletions(-) > > > > > > diff --git a/arch/arm64/boot/dts/qcom/ipq5332.dtsi b/arch/arm64/boot/dts/qcom/ipq5332.dtsi > > > index 82761ae..3ca3f34 100644 > > > --- a/arch/arm64/boot/dts/qcom/ipq5332.dtsi > > > +++ b/arch/arm64/boot/dts/qcom/ipq5332.dtsi > > > @@ -91,11 +91,34 @@ > > > }; > > > > > > cpu_opp_table: opp-table-cpu { > > > - compatible = "operating-points-v2"; > > > + compatible = "operating-points-v2-kryo-cpu"; > > > opp-shared; > > > + nvmem-cells = <&cpu_speed_bin>; > > > + nvmem-cell-names = "speed_bin"; > > > + > > > + /* > > > + * Listed all supported CPU frequencies and opp-supported-hw > > > + * values to select CPU frequencies based on the limits fused. > > > + * ------------------------------------------------------------ > > > + * Frequency BIT3 BIT2 BIT1 BIT0 opp-supported-hw > > > + * 1.0GHz 1.2GHz 1.5GHz No Limit > > > + * ------------------------------------------------------------ > > > + * 1100000000 1 1 1 1 0xF > > > + * 1500000000 0 0 1 1 0x3 > > > + * ----------------------------------------------------------- > > > + */ > > > > This can probably go to the commit message instead. > > Ok > > > > + > > > + opp-1100000000 { > > > + opp-hz = /bits/ 64 <1100000000>; > > > > But your table shows 1.0 GHz and 1.2 GHz instead of 1.1 GHz > > Will update it. > > > > + opp-microvolt = <850000>; > > > + opp-supported-hw = <0xF>; > > > + clock-latency-ns = <200000>; > > > + }; > > > > > > - opp-1488000000 { > > > - opp-hz = /bits/ 64 <1488000000>; > > > + opp-1500000000 { > > > + opp-hz = /bits/ 64 <1500000000>; > > > > So, 1.488 GHz or 1.5 GHz? > > 1.5 GHz > > > > + opp-microvolt = <950000>; > > > > Which regulator is controlled by this microvolt? > > Based on the SKU, the XBL sets up the regulator to provide 950000uV > on CPUs capable of running 1.5G and 850000uV on other SKUs. Linux > doesn't control it. Then why do you need this property here in the first place? -- With best wishes Dmitry