From patchwork Sat Jan 21 00:01:44 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christian Marangi X-Patchwork-Id: 46704 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp493321wrn; Fri, 20 Jan 2023 16:09:31 -0800 (PST) X-Google-Smtp-Source: AMrXdXvI3908o4ZZnRyntjF3RIqDMOaTdBSHChp5r9A/IPxud6r09GrUeYQVu96rII5zzorag9TV X-Received: by 2002:a17:906:ad82:b0:872:e6fd:1c79 with SMTP id la2-20020a170906ad8200b00872e6fd1c79mr17077447ejb.77.1674259771463; Fri, 20 Jan 2023 16:09:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674259771; cv=none; d=google.com; s=arc-20160816; b=ZmyNrkmxrADl+2k0xdVjOmrpaIpZaXd5xF5xdcXi+ndfGGYm3hjIYRlTa5JFvYrqz+ wH5OR7B+7TLkxIk7IdFRNwEnL3lK0DmpIH6GdBMrKDRtfGxI48NkJwEfb0oh8QPlBZ8R gRcfIO1yayio0H/x0bOH23KuMjf5mrUUAqf4uirc2br6E6Xl2VnW6pZDxqAMMApUG6AP V5ZtaSZ2p9LQ17EVcx5lp5plPpRwk7CdynDEe5seDJtJoreqzNhieCMMAts8fTlhaTBp g3pLextkYISxzuQ5hHJj2ycmjdp61z61bVLSM9LFLPxULFkVC3nciXdKE2S98idXT7Ee EwrQ== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=fhc4Y58GfuJKdaxY2E2d3ec0IbqBR1waIv5D5PvQivo=; b=RodL39sFxIUX5kJuhoztP66XzL/IQD6dsgmRGbrNwNEhekTj8g2Gxjppb21xvXPUN7 IlKxFUVOmE6/8yoxJCB7mQPOcCvLKBvsacT5+gciGzTAvGctbqiNybSF5T5O4SuLqppG jUNFgyI6kzoY+eVvRPfsRhWwTOUhpwZ4A9O/djc9Nn4df8blKiCM5Nsm4LhC4jjwP7ic 8zLxxZrNFBICAVF3mQKrBs/RqqJPUVi50YFJtlPvA7tJ6aPZxFe0Uw7yjjcJ2zO2gQm0 t03l48DJ7VaC+h5HZ2J2+D5S6+1J7SxpOAhIAExEdPpsBFMVWTsmQieM7kEzM++DIppc OEFQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=WGxp0F2T; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id oz14-20020a1709077d8e00b0087760357eacsi10070296ejc.949.2023.01.20.16.09.08; Fri, 20 Jan 2023 16:09:31 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=WGxp0F2T; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229778AbjAUAB5 (ORCPT + 99 others); Fri, 20 Jan 2023 19:01:57 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43476 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229484AbjAUAB4 (ORCPT ); Fri, 20 Jan 2023 19:01:56 -0500 Received: from mail-wm1-x331.google.com (mail-wm1-x331.google.com [IPv6:2a00:1450:4864:20::331]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BE21F72C2D; Fri, 20 Jan 2023 16:01:54 -0800 (PST) Received: by mail-wm1-x331.google.com with SMTP id q8so5205901wmo.5; Fri, 20 Jan 2023 16:01:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=fhc4Y58GfuJKdaxY2E2d3ec0IbqBR1waIv5D5PvQivo=; b=WGxp0F2TAS20TYxjbXmwc/7G+zGhU4YiYa3FcdzYwc4ZozaZpVqz5+KIpLaJ0H++PX Kq7c7sM6hpqbOsZGGganbMflhKSybAfCzSSwxPaHd84SvrQH4OOGs9jF4GDdUAMf4S5e jpIfNzMeDYDQxNtMnqTsE05t8rYz00BLPqAorJEqAnJ+5MSjWY/PSlM2WilmPCIU1mRy /xseyJrPvS/0S1WlIwYD9Fj906Uu2kNaHpNQA2xNIyr7dC4Z0XJChutOtmRd/p9aR4pn Rio+m2949kaRZeHv3dByAk6wxk9rq5sgBx3eMe2i91Wh+VIgny2tbaMKBaX5cml1ilJJ i2uw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=fhc4Y58GfuJKdaxY2E2d3ec0IbqBR1waIv5D5PvQivo=; b=p7+8S3h8u/F5tpbAylnerBtSIfbXvhxFFcfm629JFz3pGTRWOLka+LhsF6ezXU6gaj YZEiZrv6y0dJEjW2FeiRg8eFAq+57N6ohhCtNaAcKIM0pq9NlD8glcgabYIWEcwd9eiS 42pGPLOCClxPdNietmyIn0ZCljdOOQi/SZCbKj0gFqsIM+ScvTYjxiP/EDG6JJXnS+/a +FoPCoooPezYwx+kY/Ru2peAmU3Z1YErlSEZpz5OyBxI1+tbCXaXCu5SwW3Q57od+9RG mk1V+JYfSX0WLp99pJ/FfC8+jcsJUj1unySLjtg55cQupbRTxFH67vLIPRXAfsDYFD9o Zx6g== X-Gm-Message-State: AFqh2kr+W0y6KACHwzTfzo8cY0rSxd2SuwJbaYT7OK/eNu4RJlaUDwjQ 7naHbA3XncNxyZS3Vb8ZEak= X-Received: by 2002:a05:600c:4689:b0:3d6:80b5:f948 with SMTP id p9-20020a05600c468900b003d680b5f948mr15180561wmo.39.1674259313187; Fri, 20 Jan 2023 16:01:53 -0800 (PST) Received: from localhost.localdomain (93-34-92-88.ip49.fastwebnet.it. [93.34.92.88]) by smtp.googlemail.com with ESMTPSA id h11-20020a05600c314b00b003db2e3f2c7csm5284292wmo.0.2023.01.20.16.01.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 20 Jan 2023 16:01:52 -0800 (PST) From: Christian Marangi To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Ilia Lin , "Rafael J. Wysocki" , Viresh Kumar , Rob Herring , Krzysztof Kozlowski , Nishanth Menon , Stephen Boyd , Yassine Oudjana , linux-arm-msm@vger.kernel.org, linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Christian Marangi Subject: [PATCH 1/3] dt-bindings: cpufreq: qcom-cpufreq-nvmem: make cpr bindings optional Date: Sat, 21 Jan 2023 01:01:44 +0100 Message-Id: <20230121000146.7809-1-ansuelsmth@gmail.com> X-Mailer: git-send-email 2.38.1 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-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1755588614571928902?= X-GMAIL-MSGID: =?utf-8?q?1755588614571928902?= The qcom-cpufreq-nvmem driver also supports legacy devices pre-cpr that doesn't have power-domains. When the schema was introduced, it was wrongly set to always require these binding but this is not the case for legacy device that base everything on nvmem cells and multiple microvolt binding providing values based on speedbin, psv and version. Make the power-domain optional and set them required only for qcs404 based devices. Fixes: ec24d1d55469 ("dt-bindings: opp: Convert qcom-nvmem-cpufreq to DT schema") Signed-off-by: Christian Marangi --- .../bindings/cpufreq/qcom-cpufreq-nvmem.yaml | 78 +++++++++++++------ 1 file changed, 54 insertions(+), 24 deletions(-) diff --git a/Documentation/devicetree/bindings/cpufreq/qcom-cpufreq-nvmem.yaml b/Documentation/devicetree/bindings/cpufreq/qcom-cpufreq-nvmem.yaml index 9c086eac6ca7..04aac634d7fc 100644 --- a/Documentation/devicetree/bindings/cpufreq/qcom-cpufreq-nvmem.yaml +++ b/Documentation/devicetree/bindings/cpufreq/qcom-cpufreq-nvmem.yaml @@ -17,6 +17,9 @@ description: | on the CPU OPP in use. The CPUFreq driver sets the CPR power domain level according to the required OPPs defined in the CPU OPP tables. + For old implementation efuses are parsed to select the correct opp table and + voltage and CPR is not supported/used. + select: properties: compatible: @@ -33,37 +36,64 @@ select: required: - compatible -properties: - cpus: - type: object +if: + properties: + compatible: + contains: + enum: + - qcom,qcs404 - patternProperties: - '^cpu@[0-9a-f]+$': - type: object +then: + properties: + cpus: + type: object - properties: - power-domains: - maxItems: 1 + patternProperties: + '^cpu@[0-9a-f]+$': + type: object + + properties: + power-domains: + maxItems: 1 - power-domain-names: - items: - - const: cpr + power-domain-names: + items: + - const: cpr - required: - - power-domains - - power-domain-names + required: + - power-domains + - power-domain-names + + patternProperties: + '^opp-table(-[a-z0-9]+)?$': + if: + properties: + compatible: + const: operating-points-v2-kryo-cpu + then: + patternProperties: + '^opp-?[0-9]+$': + required: + - required-opps patternProperties: '^opp-table(-[a-z0-9]+)?$': - if: - properties: - compatible: - const: operating-points-v2-kryo-cpu - then: - patternProperties: - '^opp-?[0-9]+$': - required: - - required-opps + allOf: + - if: + properties: + compatible: + const: operating-points-v2-kryo-cpu + then: + $ref: /schemas/opp/opp-v2-kryo-cpu.yaml# + + - if: + properties: + compatible: + const: operating-points-v2-qcom-level + then: + $ref: /schemas/opp/opp-v2-qcom-level.yaml# + + unevaluatedProperties: false additionalProperties: true From patchwork Sat Jan 21 00:01:45 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christian Marangi X-Patchwork-Id: 46705 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp493331wrn; Fri, 20 Jan 2023 16:09:32 -0800 (PST) X-Google-Smtp-Source: AMrXdXvROH6k1Gnqun4wIUezHltp4XNWWkjPhTpGojft8SCiM18VhKMreW39KxoWInp6ZVYVBK6h X-Received: by 2002:a17:906:3783:b0:86f:e116:295 with SMTP id n3-20020a170906378300b0086fe1160295mr21278941ejc.4.1674259772703; Fri, 20 Jan 2023 16:09:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674259772; cv=none; d=google.com; s=arc-20160816; b=Ya5WIJz38tFA+SIcIHr1Y8oLcoWINn51DMM6kQFgrEed8c5OURwsCkecdJkjfBg/XA ijA7d4x7mQQpO1dMnDdxAUtWhV+OZ0pA8PnM07YKJHw0Nlu2IqTCSeEq61vgA9enIjL5 hufYpicxkbGcVxr8DmwghD4T6K4dZx395EMEjB5WnXOLEViz1nMvJQWt+GjtQ1zM1KU5 Bjrvi0Qb/g3PriCeIyOTAzWadapO2it9SRp5Uyqk0QGIdBg5wOkr8a1+2Ee52V7xgwsn NMW1QCJhTPgMg1J0WWwlAgr3B7yngvEOJ5WUClWiANAqYxEXJ4KimA1sWdZnb7qCyxQL CzSw== 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=zd8X1w31p03LQ0JCvCdaSsk+BBXGwn/BPzQzqQpcm5U=; b=TiTuJW8K6+n6RFiqfcFnprI1pHLRuJVN8sZwDUKJ7owvGXVncrPxQtNsXiNlv6tD9z IWiKovqPypQQZCixKXsB3pUAOwm4A4wunQ7Pw5nE/+dbDkyWNU92J67xbdwNv2bNkQAv B9X+cpIBN4QJJPBl1KfxVO1ZZOIMisaAgCtcmcE++ys+VBgyMOZVy/ztt89ggYD5NvNG 9bwDz+7SUObWXfxDgxPQrngB2kAHcU4VfFZ3QLJj46WuCeopIkh6VbxrAKt5IM+733eN 3/iawdetMxSaqUxUwiel/tiOpfaup3MmRmIwDjIL9M4Sg3R/aJIDp3MlZkQ2EqJoUTYh Upuw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b="M6mW/VOy"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id hp15-20020a1709073e0f00b008722ef50e4fsi99849ejc.140.2023.01.20.16.09.09; Fri, 20 Jan 2023 16:09:32 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b="M6mW/VOy"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229897AbjAUAB7 (ORCPT + 99 others); Fri, 20 Jan 2023 19:01:59 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43478 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229523AbjAUAB4 (ORCPT ); Fri, 20 Jan 2023 19:01:56 -0500 Received: from mail-wm1-x336.google.com (mail-wm1-x336.google.com [IPv6:2a00:1450:4864:20::336]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DDD6E8B745; Fri, 20 Jan 2023 16:01:55 -0800 (PST) Received: by mail-wm1-x336.google.com with SMTP id l8so5218199wms.3; Fri, 20 Jan 2023 16:01:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; 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=zd8X1w31p03LQ0JCvCdaSsk+BBXGwn/BPzQzqQpcm5U=; b=M6mW/VOyceIQU6kCUiqbPhsj390voQEygv7Xj7G/EX8aHytisKgnuyyHVCcMAEhl2c qvFRTzkHmqwxGaUbuggPsI2qm985n8Mm+y2XeAlof1TyLCDIWTYJFxdvD+QhVV+HfiEz Xb2emrjNNYupzLmYVcp4zOU/v6Jipdi20YSqkfu/P6IOQc/eDL6ecGiWabGMRuI6Nx6g DZWLwR76BATF8xH5vFmiqgm11Jd/VCRt+HIiJWo/6drEroHVQ8eGoN2P6jIMu4qeQhde 3zNZ9Vh1ukdMJ8F1tDsXj4A3GK2Lljn5bZ7GAdDZo0J31UvON2W28p+p7eYjOEfOdUek c4Gg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=zd8X1w31p03LQ0JCvCdaSsk+BBXGwn/BPzQzqQpcm5U=; b=Kw0jhchT7cC2GzjBeYRtc06UQvnZqI8ZNtHvMfawXcPr0fpW4zjyhu2YWyXQHB+hZP X3ukiFyjB0NHae9eudfPEa589g94I8ooat0KLc7J7nWFCs11GWQL4Hq1BHzJ8I8UHY1V x6Ozz11BK6HNaZelmARer1mN9yi5uHPrnJurZCNzKTSF6zNfchuMFdjN+XIjQlfcHmot OZRdYgBT9kS1HEvtsB46FSOO2x3SijxSfWtTLgZgA/CDtPj1XhILOERQn1O/M++ZSuCL bLLzpTxzLPjhhYTG7/eK72EVK8EclJK2EYh3uX7296/xs2Sgnldgmnkf51m95jnIar1R 0Gew== X-Gm-Message-State: AFqh2kpib5I2oXFz6gE+n1s7lelXIG2CPtjELIBTkGt2zuNj8a+m/W9G nfNzHe/W+9+0UVavh6r1Yt0D4NkIZ9E= X-Received: by 2002:a05:600c:4a27:b0:3da:fae5:7e2f with SMTP id c39-20020a05600c4a2700b003dafae57e2fmr16019245wmp.3.1674259314228; Fri, 20 Jan 2023 16:01:54 -0800 (PST) Received: from localhost.localdomain (93-34-92-88.ip49.fastwebnet.it. [93.34.92.88]) by smtp.googlemail.com with ESMTPSA id h11-20020a05600c314b00b003db2e3f2c7csm5284292wmo.0.2023.01.20.16.01.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 20 Jan 2023 16:01:53 -0800 (PST) From: Christian Marangi To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Ilia Lin , "Rafael J. Wysocki" , Viresh Kumar , Rob Herring , Krzysztof Kozlowski , Nishanth Menon , Stephen Boyd , Yassine Oudjana , linux-arm-msm@vger.kernel.org, linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Christian Marangi Subject: [PATCH 2/3] dt-bindings: opp: opp-v2-kryo-cpu: add opp-microvolt nvmem based Date: Sat, 21 Jan 2023 01:01:45 +0100 Message-Id: <20230121000146.7809-2-ansuelsmth@gmail.com> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20230121000146.7809-1-ansuelsmth@gmail.com> References: <20230121000146.7809-1-ansuelsmth@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-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1755588615531769058?= X-GMAIL-MSGID: =?utf-8?q?1755588615531769058?= The operating-points-v2-kryo-cpu driver supports defining multiple opp-microvolt based on the blown efuses in the soc. It consist of 3 values that are parsed: speedbin, psv and version. They are all appended to the opp-microvolt name and selected by the nvmem driver and loaded dynamically at runtime. Example: opp-microvolt-speed0-pvs0-v0 = <1050000 997500 1102500>; opp-microvolt-speed0-pvs1-v0 = <975000 926250 1023750>; opp-microvolt-speed0-pvs2-v0 = <925000 878750 971250>; opp-microvolt-speed0-pvs3-v0 = <850000 807500 892500>; Add support for this and reject these special binding if we don't have a nvmem-cell to read data from. Signed-off-by: Christian Marangi --- .../devicetree/bindings/opp/opp-v2-kryo-cpu.yaml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/Documentation/devicetree/bindings/opp/opp-v2-kryo-cpu.yaml b/Documentation/devicetree/bindings/opp/opp-v2-kryo-cpu.yaml index b4947b326773..cea932339faf 100644 --- a/Documentation/devicetree/bindings/opp/opp-v2-kryo-cpu.yaml +++ b/Documentation/devicetree/bindings/opp/opp-v2-kryo-cpu.yaml @@ -61,6 +61,17 @@ patternProperties: required-opps: true + patternProperties: + '^opp-microvolt-speed[0-9]-pvs[0-9]-v[0-9]$': + description: | + Assign a microvolt value to the opp hz based on the efuses value from + speedbin, pvs and version value read from the provided nvmem cell. + minItems: 1 + maxItems: 8 # Should be enough regulators + items: + minItems: 1 + maxItems: 3 + required: - opp-hz @@ -75,6 +86,11 @@ then: '^opp-?[0-9]+$': required: - opp-supported-hw +else: + patternProperties: + '^opp-?[0-9]+$': + patternProperties: + '^opp-microvolt-speed[0-9]-pvs[0-9]-v[0-9]$': false additionalProperties: false From patchwork Sat Jan 21 00:01:46 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christian Marangi X-Patchwork-Id: 46703 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp493255wrn; Fri, 20 Jan 2023 16:09:23 -0800 (PST) X-Google-Smtp-Source: AMrXdXswSCrVrkebBQEqhNKHqniSrreVuONo+/9It7mb8w7n96mSrOjSfCDdmB9n847eXajURQt9 X-Received: by 2002:a17:902:8301:b0:194:7f1f:7dfc with SMTP id bd1-20020a170902830100b001947f1f7dfcmr25331599plb.42.1674259762918; Fri, 20 Jan 2023 16:09:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674259762; cv=none; d=google.com; s=arc-20160816; b=PSCFcprnLmxijkw+uv+0100vbyhujB6i0yg8kBxpECjpEbx2pKNDTro4ju2jlHbtee WX8zCwhP3boi9+KdXkgR2ZmRzKxFti5SPKlxI0g0TsWqfmjMiUrJOfui+8EHpLZeea5I 6+SLjeaLh0qkhN9xB4DN5kE+q6ZogcK7dIVBqlvbN8ZVMSO6eiFOhx9aUdjPbNylVKk2 lJzvUmOCIDlTY3v4qlYaqlXMmc81JodwiII9VNZ9p6+S/eBpeE4ZLeQYzidc6iQLLUi9 ehXPu8pYISJ93qTr/R9AnpmoIPlqwJhT2kE6Teg7aQBD83vBstR3i6ckPCA5A60wm/nS mdDg== 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=0ogL/1lSUlkuM5blt1CF8xgQb3CjQ2KzCvYZsa2SRR4=; b=E0S5JQGCCfpiT1CHCPrqBrhyLfJy+IWefjoNU0LExZdQnyWfWsMmmTEoVavK8j2wij WRJ8zA5gZQ6Y+Q9VtI96P0XqqQhDONwSrXe6m6y0BEAN1xAZFvPDfu360ehM+tntV59H V40VMNt30JnaHXGJxQiLRq8nKdg1wCrhCbvlK9tkJkQUT1vwou7O07wwz/XkHMpS8XjB mB7EVKfgIpDvI/v2gu1yyRFnrj4++L4P+dnxtWcRlJB1IasznXPQjHQqgrsyDVImjgov WuxF1DFQdzJn5fn3OD5/BPirocqwzP+GyVcGIZBeC3ENlYOGLYe12wYKedXaFojaO1e+ tkaw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b="evrm8fT/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u2-20020a170902bf4200b00192a2923f37si41672281pls.359.2023.01.20.16.09.10; Fri, 20 Jan 2023 16:09:22 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b="evrm8fT/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229960AbjAUACC (ORCPT + 99 others); Fri, 20 Jan 2023 19:02:02 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43484 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229780AbjAUAB5 (ORCPT ); Fri, 20 Jan 2023 19:01:57 -0500 Received: from mail-wm1-x331.google.com (mail-wm1-x331.google.com [IPv6:2a00:1450:4864:20::331]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C91138B753; Fri, 20 Jan 2023 16:01:56 -0800 (PST) Received: by mail-wm1-x331.google.com with SMTP id q10-20020a1cf30a000000b003db0edfdb74so1639315wmq.1; Fri, 20 Jan 2023 16:01:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; 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=0ogL/1lSUlkuM5blt1CF8xgQb3CjQ2KzCvYZsa2SRR4=; b=evrm8fT/Kwu45Vp+aemRE5zqqp7ggtVo8Ps1wtNglPyWMeHF63ePTlgrUZQ9viVblW GTGge4PNNEC9bRo1l4jpE/eJc/jGolUTAZ4oiQWSP5d9D8CN1/zXoDrY//Fcc3RE+AXy YZFTM0OXU6Y6y8YTLuOCF166yVzqay+8/Ae+dQ0AFviC2MXKRD0UY47etrQL3xqdenjX VAPUzJnaK/xlXx/ybEUKOX7zmW1shQ/WbIeuY1BGRH5JYJ8iJNueWZlU+oynSkr2RLuA T8JUUQXbGfZXM+4icMDk69Lc7dDoMXGrIorMkg69QgDkDbePRNxwLynqlfPt93FRyVSm rkgw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=0ogL/1lSUlkuM5blt1CF8xgQb3CjQ2KzCvYZsa2SRR4=; b=InaKtcafF2yO1w/LiRnPCuhGPtv0q35NM+dNT86C6UymeAFCdDCG2WpwaMYpF499ML cmXhsLM8nxRgsLVSXXiNHQ8+VVR9TuX8s9R6Y4kZwF/6lleMeiv4STx32b97lMMlMrF2 SmNgda6U2zsq/TrzxPY2cuqFq46cvoF1M/cXgE4UgRVhoC7nIcEY3qZ1Wx/jQjei+QQC Ogu9Iqn/IxG6HHiGVIWgdaxseP6ROtVl3tHWhLcUIEjPcbzfaw2EwAhnZ1vx96c33oaD NqIA29BKzoMAmwSXW5SjXBTeljOIVwE4+FlnH389LQnRszZzXvdHIMh356rstsaTELmm XX3A== X-Gm-Message-State: AFqh2kry7XaQhc7FEmp44gZgUYIETcQno19gmenOBVkkI6sKMcDfh2RW ZR0+eDrw0njLRci72lhqeWM= X-Received: by 2002:a05:600c:ad0:b0:3d9:ebab:ccff with SMTP id c16-20020a05600c0ad000b003d9ebabccffmr24307431wmr.33.1674259315287; Fri, 20 Jan 2023 16:01:55 -0800 (PST) Received: from localhost.localdomain (93-34-92-88.ip49.fastwebnet.it. [93.34.92.88]) by smtp.googlemail.com with ESMTPSA id h11-20020a05600c314b00b003db2e3f2c7csm5284292wmo.0.2023.01.20.16.01.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 20 Jan 2023 16:01:54 -0800 (PST) From: Christian Marangi To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Ilia Lin , "Rafael J. Wysocki" , Viresh Kumar , Rob Herring , Krzysztof Kozlowski , Nishanth Menon , Stephen Boyd , Yassine Oudjana , linux-arm-msm@vger.kernel.org, linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Christian Marangi Subject: [PATCH 3/3] dt-bindings: opp: opp-v2-kryo-cpu: enlarge opp-supported-hw maximum Date: Sat, 21 Jan 2023 01:01:46 +0100 Message-Id: <20230121000146.7809-3-ansuelsmth@gmail.com> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20230121000146.7809-1-ansuelsmth@gmail.com> References: <20230121000146.7809-1-ansuelsmth@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-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1755588605386845555?= X-GMAIL-MSGID: =?utf-8?q?1755588605386845555?= Enlarge opp-supported-hw maximum value. In recent SoC we started matching more bit and we currently match mask of 112. The old maximum of 7 was good for old SoC that didn't had complex id, but now this is limiting and we need to enlarge it to support more variants. Signed-off-by: Christian Marangi --- Documentation/devicetree/bindings/opp/opp-v2-kryo-cpu.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/opp/opp-v2-kryo-cpu.yaml b/Documentation/devicetree/bindings/opp/opp-v2-kryo-cpu.yaml index cea932339faf..b4ebaf68b43e 100644 --- a/Documentation/devicetree/bindings/opp/opp-v2-kryo-cpu.yaml +++ b/Documentation/devicetree/bindings/opp/opp-v2-kryo-cpu.yaml @@ -55,7 +55,7 @@ patternProperties: 1: MSM8996, speedbin 1 2: MSM8996, speedbin 2 3-31: unused - maximum: 0x7 + maximum: 0xff clock-latency-ns: true