From patchwork Tue Sep 12 07:12:03 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Heidelberg X-Patchwork-Id: 138517 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9ecd:0:b0:3f2:4152:657d with SMTP id t13csp782653vqx; Tue, 12 Sep 2023 18:13:11 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHn2VYDnzSjvpW9gPji9QtQNfh0Zdiw6KIWJeDvunvLo5ycbtszQVI3n+rW7AqF7PcEgMBU X-Received: by 2002:a05:6870:4721:b0:1d4:d5a8:3d1a with SMTP id b33-20020a056870472100b001d4d5a83d1amr1318677oaq.30.1694567591581; Tue, 12 Sep 2023 18:13:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694567591; cv=none; d=google.com; s=arc-20160816; b=Y4Hh6QaLrWEMpSpROLewa8TveNJmCSLhawXfmoYQYGBNcqg180DIb5FzsQ8PFOVC5m w1NpNfXSpTkcXLXN+sPuea4KrcTEwvuaMl/EI72BKN2hPDzF4X5MgXNM4FGzAmMrJFA/ cWSF1C88bnwV/Y2q1SLV2hG6B2rFscXJ7xqvEfMErFkA7rr6XQSzMo03aSqq1nMG6RER /AyEvRn0xSIC8n6jGZVFFu3tl0y/L81xtWZNz3IDbhbb1T3bkpoAL30/RRIAgKB5rSYD pGwz0rsqiJ/o9W1hPLe64J953kDc2/0XbYBJFA8yytNjCbAbmobyVmZOfxzPSdKtQTAC K2tw== 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=n08BMQhWoXfOcyX10Kl8b5WelZqQa14Kklhs1S69gIM=; fh=fWkqP2iEPPZ5zv/RGsLoxAW5RehZUf32490Xbv9p+4k=; b=bQeunvFEdsw23bj4VnE5svkwFi3Ko7d9vjVtJBsDOUZmjcsj/K0LvQPw/07ySMKtf/ SeJvcup1xZI33NpAufMnelAI4AdypzuhX4OvY5uCSXRIB1HN8Oh8Fbf+vz2ALVg/0ZBe iUbODmV95u7UcIhTDfFb5ok+18al9LhRDWI0YsZzHnRBVGfhbXESwM7kkDuuJ5mslrD3 ORMibt2C9MFuLlsRdjTL4QnwS+7GaJa0XglOzQ2nkQotZzvjJmasICwg+ePi11AIUZet uK+hY9mXvRqPWbdVaiAiq8q2oeGpGFJ6EHDamH/b4E9S050n99PuXyqXfS6xdXrnajYS uziw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ixit.cz header.s=dkim header.b=LCxncamf; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=REJECT dis=NONE) header.from=ixit.cz Received: from pete.vger.email (pete.vger.email. [23.128.96.36]) by mx.google.com with ESMTPS id m27-20020a637d5b000000b00573e1eb9965si2751940pgn.663.2023.09.12.18.13.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Sep 2023 18:13:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) client-ip=23.128.96.36; Authentication-Results: mx.google.com; dkim=pass header.i=@ixit.cz header.s=dkim header.b=LCxncamf; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=REJECT dis=NONE) header.from=ixit.cz Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id 5A45F81F3412; Tue, 12 Sep 2023 00:12:45 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231407AbjILHMg (ORCPT + 38 others); Tue, 12 Sep 2023 03:12:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50192 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230182AbjILHMe (ORCPT ); Tue, 12 Sep 2023 03:12:34 -0400 Received: from ixit.cz (ip-89-177-23-149.bb.vodafone.cz [89.177.23.149]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A973BB9; Tue, 12 Sep 2023 00:12:30 -0700 (PDT) Received: from localhost.localdomain (unknown [115.110.84.132]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by ixit.cz (Postfix) with ESMTPSA id 696BF160123; Tue, 12 Sep 2023 09:12:22 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ixit.cz; s=dkim; t=1694502747; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=n08BMQhWoXfOcyX10Kl8b5WelZqQa14Kklhs1S69gIM=; b=LCxncamfNjW/SPgCD7CD7kaEjC4ZBo4CTU0VVGhOQ5GMztlQxaK7DMBmybzAT8XjIvze/i 0dXiBy+ehr540xrqxMceSKpdMvaZqNufR6WJgHpk+Y+KnYxZkMTJqGCWq+6d/0TXX6q4QH sy0eRTmeE9u7+IOHiLoGSCGt8a4HQuA= From: David Heidelberg To: cros-qcom-dts-watchers@chromium.org, Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Abel Vesa Cc: David Heidelberg , Dmitry Baryshkov , Douglas Anderson , Krzysztof Kozlowski , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 1/2] arm64: dts: qcom: sdm845: Fix PSCI power domain names Date: Tue, 12 Sep 2023 12:42:03 +0530 Message-Id: <20230912071205.11502-1-david@ixit.cz> X-Mailer: git-send-email 2.40.1 MIME-Version: 1.0 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 (pete.vger.email [0.0.0.0]); Tue, 12 Sep 2023 00:12:45 -0700 (PDT) X-Spam-Status: No, score=-0.9 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 pete.vger.email X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1776858140969736284 X-GMAIL-MSGID: 1776882907280153054 The original commit hasn't been updated according to refactoring done in sdm845.dtsi. Fixes: a1ade6cac5a2 ("arm64: dts: qcom: sdm845: Switch PSCI cpu idle states from PC to OSI") Suggested-by: Dmitry Baryshkov Reviewed-by: Douglas Anderson Signed-off-by: David Heidelberg --- v2: - removed power-domains from apps_rsc arch/arm64/boot/dts/qcom/sdm845-cheza.dtsi | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/sdm845-cheza.dtsi b/arch/arm64/boot/dts/qcom/sdm845-cheza.dtsi index 50934d4ab3bc..e0ee91225eec 100644 --- a/arch/arm64/boot/dts/qcom/sdm845-cheza.dtsi +++ b/arch/arm64/boot/dts/qcom/sdm845-cheza.dtsi @@ -144,15 +144,15 @@ panel_in_edp: endpoint { }; &psci { - /delete-node/ cpu0; - /delete-node/ cpu1; - /delete-node/ cpu2; - /delete-node/ cpu3; - /delete-node/ cpu4; - /delete-node/ cpu5; - /delete-node/ cpu6; - /delete-node/ cpu7; - /delete-node/ cpu-cluster0; + /delete-node/ power-domain-cpu0; + /delete-node/ power-domain-cpu1; + /delete-node/ power-domain-cpu2; + /delete-node/ power-domain-cpu3; + /delete-node/ power-domain-cpu4; + /delete-node/ power-domain-cpu5; + /delete-node/ power-domain-cpu6; + /delete-node/ power-domain-cpu7; + /delete-node/ power-domain-cluster; }; &cpus { @@ -338,6 +338,8 @@ flash@0 { &apps_rsc { + /delete-property/ power-domains; + regulators-0 { compatible = "qcom,pm8998-rpmh-regulators"; qcom,pmic-id = "a"; From patchwork Tue Sep 12 07:12:04 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Heidelberg X-Patchwork-Id: 138204 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9ecd:0:b0:3f2:4152:657d with SMTP id t13csp435756vqx; Tue, 12 Sep 2023 07:12:20 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHjHh3jfFobnqt8bP8eoq3cO+g7g0rxZXmw8jVcZVXVzWiRlByJ5AmXpjNDgWKGLbnj+TMb X-Received: by 2002:a17:90b:3a92:b0:268:52a6:103d with SMTP id om18-20020a17090b3a9200b0026852a6103dmr11934966pjb.9.1694527940045; Tue, 12 Sep 2023 07:12:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694527940; cv=none; d=google.com; s=arc-20160816; b=xWF6vj7MVqmyfRc8JWUp6hhFsDDrGCYGGY1gYiu2WBWw8wHUe7eMrDTSQ9EvJobC3N FvdMQmNLuDnt3/AAXeXy4jBcc046JY5KG+VkoEOWelMxxCu7d3ObmPZfLiUvq33UfmAB t3QXyI94s8wcbsRXv0CZ08WHJE5eZomUB9dfy1NBi0WxhlyuQalyXk6EnUZ0cNrw3eX7 09fEmlUPX3y1LqiT6P8sHSOntO4m17HwbPYObRWx1615f1VGiOr2KR4vzqWXDGMBW+HW TKYaqBni87aEq+jtiPlEmNvAMp04Yk8dR2dj4A/T3fDL2OS6esr5NRJmtgm++nuefZS7 ObJA== 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=wJiVd3e0z3dt6zMqGmxvqDx/3/cysR+nCDjl2biifA0=; fh=iPrsPQ43QNzSQzQfCpEakFbRW4PGyhT/6NrC+fybHLY=; b=H4/22MCCjPGyeHIIa6xEzfLxCV5hPtMcKoaQtk/bvBgehbY3oko+h2eDfDV1gCuiiK 41r+VfV+8CuS6SZs3S/J4qRKTMG8+GtXoX5+ldu3SNmYVFHkdR9GA0jTiiHgLJvc5Tup mI0S6+SwHj6RuFhIV3EqMu6EY/prZkSMX479Y/g/Q8gADYlt03u7Vofteid3ofGyh89g 7eBVTppKUcsdIAxBGNfiRmV89btg2X5pAMeeuUowy5pK7yE7KEN30b9ciB37w0/cdgtA 0PBfSberBcpHVCgH2hGEt7rSUTaxPldKu0W9j6VS1X297BULCHyfKnrogfiQqlbB6cd0 Tspw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ixit.cz header.s=dkim header.b=hx+evfRt; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=REJECT dis=NONE) header.from=ixit.cz Received: from groat.vger.email (groat.vger.email. [2620:137:e000::3:5]) by mx.google.com with ESMTPS id gl18-20020a17090b121200b0026fc4f2c6d0si9952808pjb.147.2023.09.12.07.12.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Sep 2023 07:12:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) client-ip=2620:137:e000::3:5; Authentication-Results: mx.google.com; dkim=pass header.i=@ixit.cz header.s=dkim header.b=hx+evfRt; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=REJECT dis=NONE) header.from=ixit.cz Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 1F639806B06C; Tue, 12 Sep 2023 00:14:26 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.8 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231454AbjILHOE (ORCPT + 38 others); Tue, 12 Sep 2023 03:14:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51002 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231218AbjILHOC (ORCPT ); Tue, 12 Sep 2023 03:14:02 -0400 Received: from ixit.cz (ip-89-177-23-149.bb.vodafone.cz [89.177.23.149]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 383F0B9; Tue, 12 Sep 2023 00:13:58 -0700 (PDT) Received: from localhost.localdomain (unknown [115.110.84.132]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by ixit.cz (Postfix) with ESMTPSA id 8FAF3160123; Tue, 12 Sep 2023 09:13:53 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ixit.cz; s=dkim; t=1694502836; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=wJiVd3e0z3dt6zMqGmxvqDx/3/cysR+nCDjl2biifA0=; b=hx+evfRtb33AFfZeAWtF8UnmOMcU7u2JltcPjiZwjCScQ+UjHXfwEUhY6Tj+CcRqrETYao XWq1CjN0PtYIBRMmcNXmo5YvbALJzlIpoYijCLqD/JywndxOx6cI7M+6L/q4nz2wa5B2RN i2yalIpjkq/oiSvj5BtYLNcOzE3Wj6c= From: David Heidelberg To: cros-qcom-dts-watchers@chromium.org, Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Thara Gopinath Cc: David Heidelberg , Dmitry Baryshkov , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 2/2] arm64: dts: qcom: sdm845: cheza doesn't support LMh node Date: Tue, 12 Sep 2023 12:42:04 +0530 Message-Id: <20230912071205.11502-2-david@ixit.cz> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20230912071205.11502-1-david@ixit.cz> References: <20230912071205.11502-1-david@ixit.cz> MIME-Version: 1.0 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 (groat.vger.email [0.0.0.0]); Tue, 12 Sep 2023 00:14:26 -0700 (PDT) X-Spam-Status: No, score=-0.9 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 groat.vger.email X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1776841329291883288 X-GMAIL-MSGID: 1776841329291883288 Cheza firmware doesn't allow controlling LMh from the operating system. Fixes: 36c6581214c4 ("arm64: dts: qcom: sdm845: Add support for LMh node") Suggested-by: Dmitry Baryshkov Signed-off-by: David Heidelberg Reviewed-by: Stephen Boyd Reviewed-by: Douglas Anderson --- v2: - moved power-domains removal from this patch to previous one, since it's not related to LMh support arch/arm64/boot/dts/qcom/sdm845-cheza.dtsi | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sdm845-cheza.dtsi b/arch/arm64/boot/dts/qcom/sdm845-cheza.dtsi index e0ee91225eec..e51bf02fbfe3 100644 --- a/arch/arm64/boot/dts/qcom/sdm845-cheza.dtsi +++ b/arch/arm64/boot/dts/qcom/sdm845-cheza.dtsi @@ -143,6 +143,10 @@ panel_in_edp: endpoint { }; }; +&cpufreq_hw { + /delete-property/ interrupts-extended; /* reference to lmh_cluster[01] */ +}; + &psci { /delete-node/ power-domain-cpu0; /delete-node/ power-domain-cpu1; @@ -275,6 +279,14 @@ &BIG_CPU_SLEEP_1 &CLUSTER_SLEEP_0>; }; +&lmh_cluster0 { + status = "disabled"; +}; + +&lmh_cluster1 { + status = "disabled"; +}; + /* * Reserved memory changes *