Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp3969282rdg; Wed, 18 Oct 2023 10:52:06 -0700 (PDT) X-Google-Smtp-Source: AGHT+IG+1ayurQUCQw3hvpXXC2tpHaNJeVGPfHEKoJc1F6Ixgob42fCRvLteAowkdqQXCm2zU6lJ X-Received: by 2002:a17:903:1212:b0:1c9:dd6a:5bee with SMTP id l18-20020a170903121200b001c9dd6a5beemr58957plh.52.1697651525659; Wed, 18 Oct 2023 10:52:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697651525; cv=none; d=google.com; s=arc-20160816; b=L6NDb+g8UKntAtYpzku7qDH2/u3DLih4MGWi0OGG2gOJNSd5Qqyysi9/926ajKVfHL JH1+uhumbey0korWG2TnoJIz1Y/nmyTlkCwWJgbYl+MaoyaSnO1pW280hKyOJofnpBOy Ga4H2IP95zvNGt8Pf8Gq0YStKyYSCwLtXofI7P1FPEw89FwzwhxJXhkWbXGjyXJCTjLU JyjBFdf8VLRvigxXA6irWNOojWBiWvQCtNRw+U7VLijsWsJntvBlm+YBdNcDz41rvS7m PVJ+px54qkEEjrhyiq7XL+emSvNT8pEU3n1jWUzZgLxJU7fHNNV35t4NKRIoLeUwnErX S91w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:to:content-language:subject:user-agent:mime-version:date :message-id:dkim-signature; bh=gHJSF5X1nkWgGuo3YQxKlNnSL2Jb3AlzWdUDQa0ejrA=; fh=5rz953cagD+JOOBXt8dAcQKTlKTPna1yD7NeYaSHQY8=; b=kidXnXVxi8YwT0xC2Tx051QLBXlpnzfV1ZbtgZCkWWJ+aFR4vpxxSPJIb9/LduH5NE deiHdbECRz8qKEIjvm7a9CFk7cxSFNbunZ/xfImJrPQ9QNThyaRDRFXxsgJf3ZKrA6yV ss0bDhE+2mkCR8F+69SaDfTiGFQ15v0X6yBKS0tcrIpuGYBNvdXgyUHMgZFIYHasGV0b JSdFKNNEXA5OK+ctTqE/TZ0U/xksCblZxXBNYQ/sp/O8lWOgR+yBe6mmO4Fxh3QyTgyT BhP9oCNmGcN60lN8BBL2sU695cTcTBGSRXSWLSfw1vrtujEcSoFTq8c7bclHFZpy4TYO B4vg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=s82zJd5Y; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 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 lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id s6-20020a170902ea0600b001c77e00809csi380658plg.453.2023.10.18.10.52.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Oct 2023 10:52:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=s82zJd5Y; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 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 lipwig.vger.email (Postfix) with ESMTP id C286F807E938; Wed, 18 Oct 2023 10:52:02 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231266AbjJRRvs (ORCPT + 99 others); Wed, 18 Oct 2023 13:51:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59124 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231335AbjJRRvr (ORCPT ); Wed, 18 Oct 2023 13:51:47 -0400 Received: from mail-lj1-x233.google.com (mail-lj1-x233.google.com [IPv6:2a00:1450:4864:20::233]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 51D25115 for ; Wed, 18 Oct 2023 10:51:45 -0700 (PDT) Received: by mail-lj1-x233.google.com with SMTP id 38308e7fff4ca-2bb9a063f26so94239881fa.2 for ; Wed, 18 Oct 2023 10:51:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1697651503; x=1698256303; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:references:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=gHJSF5X1nkWgGuo3YQxKlNnSL2Jb3AlzWdUDQa0ejrA=; b=s82zJd5YurNSHwIlkxxXvaugD8+71EV9KMohp5SjSHngLsC1Rn2yM5RziwTJ7yFafC BfcHav6U41G6MpSuahq5sprt+oHC3z/fVr5IolHlC1bEw5DxDEOINIBTYgapmsEb9Q51 v6lsV6HNDZ+vUr/HDAQ6dQsXMZdmdKf7RZp9UID09OPMyhBPLqdDf83hvQr+hi1E9an/ DklhOjEqat+97H32YIpZMI7U4p3fqR9ixORxITWDXaQfnmb6dZtcWlL8Web2JfjAmNlH qa0KEzm9YJpAKxLLqPEkP3ebBZAeGR+a3RKgYFR0FU9pQOt49E/RWqBYI1ocx04kmdH0 yMvA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697651503; x=1698256303; h=content-transfer-encoding:in-reply-to:from:references:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=gHJSF5X1nkWgGuo3YQxKlNnSL2Jb3AlzWdUDQa0ejrA=; b=EuvywIFjH7hDEKMdgqSQory+E8Fh4K7Ph8Ye9FvNa2VFGZgtjObk4eXVgetAKDhWj/ 3LLMkyKmmWlnOb1zhNndQ7L9D3SA8p2+DleRWuWggLFO1mINRTD1uJkikdDBQaSfXv7l AFWmOu1pubIf0JAiNtF25t7erJTRr1XNubK1RLJYrfyFRoTapfGxPLzJzNG09Jy5M2wG wpypUkM5el+qVQouxFef+QZ5T2g2w41HvV93xdflnA7mngra8uJnK1oXpktA38J449yO bbDeS3zF6oNvZlPBp6GlZ8jsPNaBaFmJm9b0KF0c9+HMwHFfCbphcCEOBUqTAV5oEw9Q KGsg== X-Gm-Message-State: AOJu0Yxp+b9Qz2UEqDvVzfxxN6KmXanjU5kwy/LGGYx27Gl6YMUyD5cq eHSiUnJihTSrRImuwolfksI8Xg== X-Received: by 2002:ac2:484c:0:b0:503:35b3:aa31 with SMTP id 12-20020ac2484c000000b0050335b3aa31mr4419418lfy.27.1697651503384; Wed, 18 Oct 2023 10:51:43 -0700 (PDT) Received: from [172.30.205.86] (UNUSED.212-182-62-129.lubman.net.pl. [212.182.62.129]) by smtp.gmail.com with ESMTPSA id x25-20020a19f619000000b0050797a35f8csm779407lfe.162.2023.10.18.10.51.40 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 18 Oct 2023 10:51:43 -0700 (PDT) Message-ID: Date: Wed, 18 Oct 2023 19:51:39 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v3 6/8] arm64: dts: qcom: ipq5332: populate the opp table based on the eFuse Content-Language: en-US To: Varadarajan Narayanan , agross@kernel.org, andersson@kernel.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, mturquette@baylibre.com, sboyd@kernel.org, rafael@kernel.org, viresh.kumar@linaro.org, ilia.lin@kernel.org, quic_kathirav@quicinc.com, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org, linux-pm@vger.kernel.org References: From: Konrad Dybcio In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.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 (lipwig.vger.email [0.0.0.0]); Wed, 18 Oct 2023 10:52:03 -0700 (PDT) On 10/18/23 11:29, 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. > > ------------------------------------------------ > Frequency BIT2 BIT1 opp-supported-hw > 1.1GHz 1.5GHz > ------------------------------------------------ > 1100000000 1 1 0xf BIT(0) | BIT(1) | BIT(2) is 0x7 > 1500000000 0 1 0x3 > ------------------------------------------------ > > Signed-off-by: Kathiravan T > Signed-off-by: Varadarajan Narayanan > --- > v2: Fix inconsistencies in comment and move it to commit log > as suggested > Remove opp-microvolt entries as no regulator is managed by Linux > cpu_speed_bin -> cpu-speed-bin in node name > Remove "nvmem-cell-names" due to dtbs_check error > --- > arch/arm64/boot/dts/qcom/ipq5332.dtsi | 19 ++++++++++++++++--- > 1 file changed, 16 insertions(+), 3 deletions(-) > > diff --git a/arch/arm64/boot/dts/qcom/ipq5332.dtsi b/arch/arm64/boot/dts/qcom/ipq5332.dtsi > index 4206f05..a0dcba3 100644 > --- a/arch/arm64/boot/dts/qcom/ipq5332.dtsi > +++ b/arch/arm64/boot/dts/qcom/ipq5332.dtsi > @@ -91,11 +91,19 @@ > }; > > cpu_opp_table: opp-table-cpu { > - compatible = "operating-points-v2"; > + compatible = "operating-points-v2-kryo-cpu"; > opp-shared; > + nvmem-cells = <&cpu_speed_bin>; > > - opp-1488000000 { > - opp-hz = /bits/ 64 <1488000000>; > + opp-1100000000 { > + opp-hz = /bits/ 64 <1100000000>; > + opp-supported-hw = <0xF>; hex literals must be lowercase. Konrad