From patchwork Thu Sep 28 21:04:05 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Robert Marko X-Patchwork-Id: 146338 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:cae8:0:b0:403:3b70:6f57 with SMTP id r8csp3649970vqu; Thu, 28 Sep 2023 15:55:35 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFJifa43GDUUNs1Lo08e8IVJnD9DTZUMFiTmk7ZwdhDq+Rn3DwxuNqOjwyLVk+/eTatMyiB X-Received: by 2002:a05:6870:2306:b0:1bf:9fa2:bf8e with SMTP id w6-20020a056870230600b001bf9fa2bf8emr2758010oao.1.1695941735525; Thu, 28 Sep 2023 15:55:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695941735; cv=none; d=google.com; s=arc-20160816; b=UMo3Qz48xFeHxUCi6AnbotzNnThV3b0wGnhfQgzNmSwlL7d8JugtxaY+qNQRoAuAQi I43MjWMPah+gX6XTQcMSJau9y7GoMXc+i4/lMHCIr1nD9nm24LOtM7z0xG7M1RLaTkrI Sq4ivGdByhCTnmJ/qdbqkVTGG1SML+L3vDcp11bLMhTFI99XeEjjgolSmT+nD/gA0Vgi N0e28YlFEaL5EqZWYZwQbBSzqx3tVp1naa8sqOjuq4z3xcLv0Q4j4o5mqNhFMZWFVxze bLZ2jTD1znqeYzZxq/wwrW7FD7Jk0w3OCAq8+myZh62vdC6rc7m6iiOzbndZ2Qld32wO uzvQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=8TiUWEa7vtDvez0qxDGdk3dEAqTmN/a6RoDYpX62PWU=; fh=tIvQt8p5p62lUiQIgcyo1Qt2qWcFvCCPAhYjZMcUcZw=; b=K3f7uIj7zzqrK+kfkF6dpiOW+oixz7rCgiD2GNJ8D3T4SeJ1EKFSOLWQUEnfXC2Y+Z 68Jkr4Pl72uxvmT3C0teor2wQwjdkmCDzeE1E2LEt1TyREstNCyhK41Lor8S1WmPvt6Q 4Le43kZvRAeF4/WxlNvCWyZ25sTQPrtn2iVnxwjrJ7ivyx0lmd54uSvHnrFyn8co5Nvh /qs6sKNtsRwO1X8wfvbMn1604Lc7ABrMJRYbeeeNLQdoQ04PbeSQYodAhV+fcWDFdhNH jnyQcKj6ChjoJw/yD6nS+pFPJ3QkgT/OXQ9req6zP+cz231TLq79uZjwKKN0VyC2qQTN sROQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=m+cRF2C0; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id x7-20020a634847000000b0056c297d163csi19315576pgk.530.2023.09.28.15.55.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Sep 2023 15:55:35 -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=@gmail.com header.s=20230601 header.b=m+cRF2C0; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id E903382915BB; Thu, 28 Sep 2023 14:05:47 -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 S232364AbjI1VFj (ORCPT + 22 others); Thu, 28 Sep 2023 17:05:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42426 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232296AbjI1VFh (ORCPT ); Thu, 28 Sep 2023 17:05:37 -0400 Received: from mail-ej1-x636.google.com (mail-ej1-x636.google.com [IPv6:2a00:1450:4864:20::636]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 12E6A19D; Thu, 28 Sep 2023 14:05:32 -0700 (PDT) Received: by mail-ej1-x636.google.com with SMTP id a640c23a62f3a-9ad8d47ef2fso1717216166b.1; Thu, 28 Sep 2023 14:05:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1695935130; x=1696539930; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=8TiUWEa7vtDvez0qxDGdk3dEAqTmN/a6RoDYpX62PWU=; b=m+cRF2C0QlrpnFSzflvETVY4kR0nAljWbeDKZ6lL9IrPFjJ8ESGP86sA3TXhMN8VIc PK4V3oTcAZXK2hv3JAx0I5jsT//7hLkXSzYBkYRaYiqrplKzn72zikvm/N1pp3ldOwDx ES3TtmSBo6fYxpGqV+TBEfPrsq3ETVyQqULPLMatyhbC7JWh/KjwRXGo8MGzo8/0YuSx +cmlWgUDKKimJjxKOICdxHjRppXCi8DqlTMSLzQjIpoFbPgucqAdqoXOcOLMydcXAE77 vftsQs2rUfb5u+AfLKkgrQuhSUgbw888xdlnGu5hZ13EGFWQcr0pKkDT77eqmID6d2ji KcoQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695935130; x=1696539930; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=8TiUWEa7vtDvez0qxDGdk3dEAqTmN/a6RoDYpX62PWU=; b=cC5UCvg8ZexyKSfiSe8eoWxCQHe5WhqfVR19w3mdgxAw6qaIPTVghC0dKxFIo/EQvB cOsuTLsTpL1zaG7McgZ0AKvtOr8B/40yBCLDcpIzyGJPrcFp6ABIA9kFrhkayOnZihrx pNDnoVWtnuaeK98hFunKgIAfksyK3ab1o1OTBP8W3FwPwwE5I2VbCQBnYR5CkXpmukCi IJa4cHslu9ksgHsUUosazzoZZLR9PWUXOxDFeAhui2O85ZNwJwEv4rgelbcwUKJPjZst 0ELQojADOSGbQpxT7Q4Uwkd2+/FTp0CVaRQF5jGQg3HWMxU1Wg50npWj65Yno65tv1ln mWNw== X-Gm-Message-State: AOJu0YwEHRAh1g9KCduzPWMY489QUQhNDMdnyUMmoN4a3o/X1HqmgWUM eFP7BuYix/N3HiVR3kLpgCVShn00GrmSZw== X-Received: by 2002:a17:906:454d:b0:9ae:4f64:6db with SMTP id s13-20020a170906454d00b009ae4f6406dbmr2196049ejq.55.1695935130178; Thu, 28 Sep 2023 14:05:30 -0700 (PDT) Received: from fedora.. (dh207-99-57.xnet.hr. [88.207.99.57]) by smtp.googlemail.com with ESMTPSA id la9-20020a170906ad8900b0098f33157e7dsm11386849ejb.82.2023.09.28.14.05.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Sep 2023 14:05:29 -0700 (PDT) From: Robert Marko To: ilia.lin@kernel.org, vireshk@kernel.org, nm@ti.com, sboyd@kernel.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, agross@kernel.org, andersson@kernel.org, konrad.dybcio@linaro.org, rafael@kernel.org, linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org Cc: Christian Marangi , Robert Marko Subject: [PATCH v4 2/4] dt-bindings: opp: opp-v2-kryo-cpu: Document named opp-microvolt property Date: Thu, 28 Sep 2023 23:04:05 +0200 Message-ID: <20230928210525.1265958-2-robimarko@gmail.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230928210525.1265958-1-robimarko@gmail.com> References: <20230928210525.1265958-1-robimarko@gmail.com> MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=ham 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, 28 Sep 2023 14:05:47 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1778323801499934497 X-GMAIL-MSGID: 1778323801499934497 From: Christian Marangi Document named opp-microvolt property for opp-v2-kryo-cpu schema. This property is used to declare multiple voltage ranges selected on the different values read from efuses. The selection is done based on the speed pvs values and the named opp-microvolt property is selected by the qcom-cpufreq-nvmem driver. Signed-off-by: Christian Marangi Signed-off-by: Robert Marko --- Changes in v4: * Describe PVS * Add description for opp-microvolt entries --- .../bindings/opp/opp-v2-kryo-cpu.yaml | 38 +++++++++++++++++++ 1 file changed, 38 insertions(+) diff --git a/Documentation/devicetree/bindings/opp/opp-v2-kryo-cpu.yaml b/Documentation/devicetree/bindings/opp/opp-v2-kryo-cpu.yaml index bbbad31ae4ca..f1b4553fd66a 100644 --- a/Documentation/devicetree/bindings/opp/opp-v2-kryo-cpu.yaml +++ b/Documentation/devicetree/bindings/opp/opp-v2-kryo-cpu.yaml @@ -63,6 +63,12 @@ patternProperties: 5: MSM8996SG, speedbin 1 6: MSM8996SG, speedbin 2 7-31: unused + + Bitmap for IPQ806X SoC: + 0: IPQ8062 + 1: IPQ8064/IPQ8066/IPQ8068 + 2: IPQ8065/IPQ8069 + 3-31: unused enum: [0x1, 0x2, 0x3, 0x4, 0x5, 0x6, 0x7, 0x9, 0xd, 0xe, 0xf, 0x10, 0x20, 0x30, 0x70] @@ -71,6 +77,22 @@ patternProperties: required-opps: true + patternProperties: + '^opp-microvolt-speed[0-9]+-pvs[0-9]+$': + description: | + Named opp-microvolt property following the same generic + binding for named opp-microvolt. + + The correct voltage range is selected based on the values + in the efuse for the speed and the pvs (power variable + scaling). + minItems: 1 + maxItems: 4 # Up to 4 regulators: Core, Mem, Dig and HFPLL + items: + - description: nominal voltage + - description: minimum voltage + - description: maximum voltage + required: - opp-hz @@ -256,6 +278,22 @@ examples: }; }; + /* Dummy opp table to give example for named opp-microvolt */ + opp-table-2 { + compatible = "operating-points-v2-kryo-cpu"; + nvmem-cells = <&speedbin_efuse>; + + opp-384000000 { + opp-hz = /bits/ 64 <384000000>; + opp-microvolt-speed0-pvs0 = <1000000 950000 1050000>; + opp-microvolt-speed0-pvs1 = <925000 878750 971250>; + opp-microvolt-speed0-pvs2 = <875000 831250 918750>; + opp-microvolt-speed0-pvs3 = <800000 760000 840000>; + opp-supported-hw = <0x7>; + clock-latency-ns = <100000>; + }; + }; + smem { compatible = "qcom,smem"; memory-region = <&smem_mem>;