Received: by 2002:a05:7412:d1aa:b0:fc:a2b0:25d7 with SMTP id ba42csp1640475rdb; Wed, 31 Jan 2024 05:04:42 -0800 (PST) X-Google-Smtp-Source: AGHT+IEMm++KLDVLrqKB9414T1vRx5J84rigDpY4AOG1UlMi5XnMl/VQBAJ+rPIeQ/LcM6MMCC1u X-Received: by 2002:a05:6a20:26a5:b0:19c:b0f6:25c with SMTP id h37-20020a056a2026a500b0019cb0f6025cmr1268934pze.45.1706706282069; Wed, 31 Jan 2024 05:04:42 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706706282; cv=pass; d=google.com; s=arc-20160816; b=TJkbycyLwOFN+6Db2h4zdAwDkFTWe/lQ10Tly1gBck8il62YM4UxIFVv44c7cxhlmH ixUNZ1NI/XlvSm7mgQb1KAJ7XB3JKIJE1HLgkf9jhl9YlwQ6kKTStme23vJh2etemQzZ DdryQlDwtLVyNj+L+2mae2TBD803m35qUUFmgmXBovJQTc5AECUg9YWXwo0VAp/auobE 9oSrcnas3zMHcwyHl9CAKsI4GLQwSVOm81hofTZxGA6zBfKTmPbNh4dQ5ryUX7B/kZ/M M5CUS9HmjAN/d/eZeYPZ23zbyUhI4VNU7JGq7pmEJ/AD7/LuSO96lJwBTTYCVKfDm/N/ IASw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :dkim-signature; bh=5L/tMbC6cusFxl6pPtmgbyUWE6zqIJ5tXoW7n67BpgU=; fh=64OpUfGFlMt5F/9h4seSNaLnZD/RxBybQSSMclsnZVc=; b=V+ck6luD+GyUwlNaeIJICOP+0UsCYYLelvR3xlMJmiX0++m0wqHJVj1UlLG4K1lLKG N6XNeF5A8/XanZm89KIHZrPHEYA6gesUhtF57VBYs4RcxLE1aE9HnqZbODd+7LcO9CIO LipUJKy5LPz9SEVIlVKcN3mrajStl2ExNxQu4ooZpd+Phu5rSp7BIyaEYcuWVqzkatPG eVfRawa5Y1kqIBIyAoqibWmSZz3BMN9ivO3lBCKDG+IUwbnmOMakdGyd3kN0O3wheiq6 j0LTCIfcAQS6GrZJVTicSDF5ZWZb2VkrGLGdrseQCOREZOiC6rAstaIMV79z5LR4GNW9 Evcw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="H1kcHeM/"; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-46422-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-46422-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org X-Forwarded-Encrypted: i=1; AJvYcCUKQweuT5FvlJX7RdqxxdfIqSoJGD/E3adep9BBCRZ66blIFBaxWJW1XXKyWmb0KI/mePTNh+K4JHe9rTzRF7ih3XOOjVMi8iVv8n/cBw== Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id x23-20020a63b217000000b005ceb4a8475esi9491936pge.401.2024.01.31.05.04.41 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 31 Jan 2024 05:04:42 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-46422-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="H1kcHeM/"; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-46422-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-46422-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 618AFB26864 for ; Wed, 31 Jan 2024 12:27:48 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id CAE5679DD4; Wed, 31 Jan 2024 12:27:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="H1kcHeM/" Received: from mail-yw1-f172.google.com (mail-yw1-f172.google.com [209.85.128.172]) (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 84D0778B78 for ; Wed, 31 Jan 2024 12:27:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.172 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706704023; cv=none; b=qRzYuWmoxYY1kYwepRgmUlAkRRmRy0YMz6iGMcg5XIOFiW56FpGvhXMWho5O7dX5xmBcqlRTvYDRkpc81sySkg78L6B4HvhBnUPOQgBSR4Z7TDTqkapyAD3j1uU9GhH4NTyGAON25nwtY6H2RoK2NF4KbYkcXfLPoW/r9z6Ku70= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706704023; c=relaxed/simple; bh=H9HsAc6EPMnurDsAxVdEA3FB5kKp89C8i+CXaQzDOPY=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=hJaH/G+TYJSKJLC/KUU6UWTVJsgvPJ19kKeyomhQCRLWChCjjG7M48aMBqyaw1/EeBcp+R82khDRa/HAzgcisQQUQwSmVi6s0OxwPVcOaUo9zY5yeJISpEn2yXaluFEvw3ULJ6DccyzdDB+Z0/HijOQVVNiCxWlDtrCgIaxjV2M= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=H1kcHeM/; arc=none smtp.client-ip=209.85.128.172 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-yw1-f172.google.com with SMTP id 00721157ae682-6001449a2beso37063997b3.3 for ; Wed, 31 Jan 2024 04:27:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1706704019; x=1707308819; 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=5L/tMbC6cusFxl6pPtmgbyUWE6zqIJ5tXoW7n67BpgU=; b=H1kcHeM/vaq0oJ0fr5yde6rIKw5tn0Mc7nH6KGnPx6RMFbOuhfksqsxY24Gp2ZVbRN pWgfB2gGE5qYbaTMF3j9jPGep+U7Ugn+jfcNqK0YDB1qIaXEQ3rZRo9QI7fhS8OGBdVd qO05ilH1WCqa+Dnn2faAa5aPWNBCgkTGilvzN27BQwaRuY2ubvfHphmeiiDcyyX+4HLi ittVFCuRHUhp2owtYbgqlNO7ILkx9Y8JGbSQ3FvhzfcpEQindj0W5Bp3H45Rdlci4Rxa F8XSHUQNbs67pGSHXPevVUsMkMdvG3IVHugGqPbDKLuhmHokafqlSFnlcy0gqjZtkw3O OHiw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706704019; x=1707308819; 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=5L/tMbC6cusFxl6pPtmgbyUWE6zqIJ5tXoW7n67BpgU=; b=tCKauGguM3z1o7i9/dKw7ARO9f5VLUS6Fakjq82lntah/7q/uIvL3laZqrJpUNXCgw vkmLoTh/PBZ9oFqpaO2EAPBkQCuLXY88GmctTG+ZzQbapd8653E/h9sQATlxjZRoTG0N c9W9TUOzmW8YIrc7ovvii4m72F6CpOQzI4hSoQT2g+P1BWyCNOwZ29PXgWLjml0n9KWh 1iZP+Tm+l2IclAMV+VmFX3AyNJB9X/I72sTKwRgfts8dcSd4cEtUE18TjM3K46j3caDC bR8QUKYBiz3rk+9C06VBN3Y4zLrKqiwS44hz5mOSLzQq18IV8zZe6MXEVHa4q6AdpMD1 F20A== X-Gm-Message-State: AOJu0YztYM1SQidZ1/YAVu84JbasBndDArnWzSugceO5hwwtre+Wgg7h ZIQHtybbKbwXxvpHgkuiGZO/xEu+xHpSubyCZEkYQ0+lLeZHojSWR0JjZLVLAcedf2X81i8WlCw aXfkh6fsz9t/+xwTFoWjUTFv0Dji1gJka+5k/Sg== X-Received: by 2002:a25:acda:0:b0:dc3:6990:99eb with SMTP id x26-20020a25acda000000b00dc3699099ebmr1464707ybd.55.1706704019522; Wed, 31 Jan 2024 04:26:59 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240131102003.2061203-1-amadeus@jmu.edu.cn> <20240131102003.2061203-2-amadeus@jmu.edu.cn> In-Reply-To: <20240131102003.2061203-2-amadeus@jmu.edu.cn> From: Dmitry Baryshkov Date: Wed, 31 Jan 2024 14:26:48 +0200 Message-ID: Subject: Re: [PATCH 2/3] arm64: dts: qcom: ipq6018: add ipq6000 CPU OPP tables To: Chukun Pan Cc: Bjorn Andersson , Konrad Dybcio , Krzysztof Kozlowski , Conor Dooley , Rob Herring , linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org Content-Type: text/plain; charset="UTF-8" On Wed, 31 Jan 2024 at 12:23, Chukun Pan wrote: > > Some IPQ6000 SoCs don't have pmic chips, and fused 1.2GHz. > Add a separate CPU OPP tables for these SoCs. > > Signed-off-by: Chukun Pan > --- > arch/arm64/boot/dts/qcom/ipq6000-opp.dtsi | 49 +++++++++++++++++++++++ > 1 file changed, 49 insertions(+) > create mode 100644 arch/arm64/boot/dts/qcom/ipq6000-opp.dtsi > > diff --git a/arch/arm64/boot/dts/qcom/ipq6000-opp.dtsi b/arch/arm64/boot/dts/qcom/ipq6000-opp.dtsi > new file mode 100644 > index 000000000000..acb4774da33e > --- /dev/null > +++ b/arch/arm64/boot/dts/qcom/ipq6000-opp.dtsi > @@ -0,0 +1,49 @@ > +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) > +/* > + * IPQ6000 without PMIC (MP5496) CPU OPP tables > + */ > + > +/ { > + cpu_opp_table: opp-table-cpu { > + compatible = "operating-points-v2-kryo-cpu"; > + nvmem-cells = <&cpu_speed_bin>; > + opp-shared; > + > + opp-864000000 { > + opp-hz = /bits/ 64 <864000000>; > + opp-microvolt = <725000>; > + opp-supported-hw = <0xf>; > + clock-latency-ns = <200000>; > + }; > + > + opp-1056000000 { > + opp-hz = /bits/ 64 <1056000000>; > + opp-microvolt = <787500>; > + opp-supported-hw = <0xf>; > + clock-latency-ns = <200000>; > + }; > + > + opp-1200000000 { > + opp-hz = /bits/ 64 <1200000000>; > + opp-microvolt = <850000>; > + opp-supported-hw = <0x4>; > + clock-latency-ns = <200000>; > + }; I don't see this OPP entry in the existing table. If it is supported by the SoC, please add it to that table instead. > + }; > +}; > + > +&CPU0 { > + operating-points-v2 = <&cpu_opp_table>; > +}; > + > +&CPU1 { > + operating-points-v2 = <&cpu_opp_table>; > +}; > + > +&CPU2 { > + operating-points-v2 = <&cpu_opp_table>; > +}; > + > +&CPU3 { > + operating-points-v2 = <&cpu_opp_table>; > +}; > -- > 2.25.1 > > -- With best wishes Dmitry