From patchwork Tue Feb 14 09:54:33 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 56813 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp2873524wrn; Tue, 14 Feb 2023 01:57:14 -0800 (PST) X-Google-Smtp-Source: AK7set/ErXf3j0WjV9s6+vyNSaZx9Ht6hXXiSsv97BoB48uu4tvskrk4HPLriQufYbKbNcz6uxXW X-Received: by 2002:a50:d702:0:b0:4ac:da71:2723 with SMTP id t2-20020a50d702000000b004acda712723mr1583574edi.38.1676368633831; Tue, 14 Feb 2023 01:57:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1676368633; cv=none; d=google.com; s=arc-20160816; b=AOm0NPL+wIgNpB4vEIcEMnFTRBETGO728yWJblaI/jYdGm/XB0OyKFzPR/5orFT4Z1 kSKyp6ZDzK3x+8rHPH/VMWkfQHme3k/5PcQ0HYNQSqrkKTeF+Zz9Etc4RMoluNTLG/LV vTl+fSHya8J/SX/4Tu8i4rZkdcL99pUzBgw4bbg3mseLGPZrVhdvDGilADcCx8Kad3MY SN/aQ7aWsG8YR5x7Aoxb/6tAOj/LE3EM68vFOt8BMzCp5ipU7Bhkiy2eogudxQvnXrlD 5m5T1tCfkg8cJh8KZhSBhlLE9PzzgqWCXJveknCE2+vFIdxPcrjUGb+ryEsD8pun7VTO HSbg== 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=Swwz0i61XmcyN0eChJbFKDnT0VXzHBOjQLzsplB2lBw=; b=PvyhYSN1MfK518njP1TWoIsSoWHyy05caYuweLUtT7xRpfmFtK6RpWkoGwAYYKiDpC 4M14dkanq5S5ys5PqgF0yBnn5M8Kew9HUFsufRqVC4vRIIbF5rMn63q8TDwyVVPUYNP3 yUnsfGEFAHo6/6AoThelPQj5oJz5qreULVXHhNbL8gTDFIsPF8aITA3V65LDOV9FrJEC StqedW7exz9sT4aXghCPe94t1bttaHjF+zpA9Bl/mA5IHW9DANK465IAPk6ufKRyHB1y 1BhFwwDj4H0ceevBi3EDZCaROWlagaGmhuReGyT0sgOzibfW+8j23IpTA8tMHqxXJWR0 g6JA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=xfpW5v5O; 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=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id r13-20020aa7da0d000000b004acd272dc9fsi3464108eds.573.2023.02.14.01.56.49; Tue, 14 Feb 2023 01:57:13 -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=@linaro.org header.s=google header.b=xfpW5v5O; 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=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232198AbjBNJzT (ORCPT + 99 others); Tue, 14 Feb 2023 04:55:19 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34344 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231839AbjBNJyr (ORCPT ); Tue, 14 Feb 2023 04:54:47 -0500 Received: from mail-ej1-x629.google.com (mail-ej1-x629.google.com [IPv6:2a00:1450:4864:20::629]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5C1A224CAD for ; Tue, 14 Feb 2023 01:54:43 -0800 (PST) Received: by mail-ej1-x629.google.com with SMTP id k16so7112356ejv.10 for ; Tue, 14 Feb 2023 01:54:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=Swwz0i61XmcyN0eChJbFKDnT0VXzHBOjQLzsplB2lBw=; b=xfpW5v5Onb1cwdnB7BYYtmOpk5i0yYw9DXeANC+ERy1qqllOZVEd5MgWVO9NRYUahL ABHFs9BX8UeWLEbR2qwp5UPacJF9gbN/xCeBc3WK3E6TWa6eJ5rg1Hx+3Pg0LGLH8CMX zKxyfSG86lnvdAijoLvQDDDcijWfwT1OV6jXd+uPa1BOkHGaOpZ6l6BIxss0Uq8MPGJt MWqiF4Cu5U0MfH2pxRS8wx35uH5o/fsi4rCkBiNE1wlumzSWRkr32dfU5NRKVz778r5E 5hCKNaIzC2sK7vji0rdcuQYHAUhRjdAN39aha6mKSgVGY1pc1yBZ/c01fb8JyaiTwdt9 /tXg== 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=Swwz0i61XmcyN0eChJbFKDnT0VXzHBOjQLzsplB2lBw=; b=M1L/AjM3fN1ctyLxk01T2lh/vPsIjx2l3sF1BPPXiehjNWcHpjWlUlPHBgyqphpc/F wRonlqzUAyEsSmSpszUDF1S2MCfiZjz1VoZhQ8d6pUuOcLkXyPQBtbOqP3hvNBFdTvWz 9TtZ78/OxtFpUSOiPvlQ6UnGgU2Ciu6uGWfSeHxC5lqJFva3mUzzz0KBYt+imO4mgE2Y S4EU71YBsmyLeWceV/eVqukisvOxsd4LYSoIt+mx0WldBPVRVoVnCC3lpdX8DLJ4LYtS x0l6fOepyPqQT3GN0+hh2XR45s99YYK7DWsQDbwKXxxrQKe0Uz/wiNKIRDDdnrojgh27 qU6w== X-Gm-Message-State: AO0yUKUYtgtd4uhnuCUJb+SPCol+61oNo76jm8dezJ8/S1ey1fDFz44p C44wqKbVOWUNe08nyDQLmeOclw== X-Received: by 2002:a17:906:5ac9:b0:882:ed4a:f23 with SMTP id x9-20020a1709065ac900b00882ed4a0f23mr2292261ejs.49.1676368481714; Tue, 14 Feb 2023 01:54:41 -0800 (PST) Received: from localhost.localdomain (abxh117.neoplus.adsl.tpnet.pl. [83.9.1.117]) by smtp.gmail.com with ESMTPSA id b12-20020a170906038c00b0088f464ac276sm7936172eja.30.2023.02.14.01.54.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 14 Feb 2023 01:54:41 -0800 (PST) From: Konrad Dybcio To: linux-arm-msm@vger.kernel.org, andersson@kernel.org, agross@kernel.org, krzysztof.kozlowski@linaro.org Cc: marijn.suijten@somainline.org, Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/3] dt-bindings: power: qcom,rpmpd: Add SA8155P Date: Tue, 14 Feb 2023 10:54:33 +0100 Message-Id: <20230214095435.2192153-1-konrad.dybcio@linaro.org> X-Mailer: git-send-email 2.39.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,RCVD_IN_DNSWL_NONE, 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 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?1757799916341513823?= X-GMAIL-MSGID: =?utf-8?q?1757799916341513823?= Add a compatible for SA8155P platforms and relevant defines to the include file. Signed-off-by: Konrad Dybcio Reviewed-by: Krzysztof Kozlowski --- Documentation/devicetree/bindings/power/qcom,rpmpd.yaml | 1 + include/dt-bindings/power/qcom-rpmpd.h | 9 +++++++++ 2 files changed, 10 insertions(+) diff --git a/Documentation/devicetree/bindings/power/qcom,rpmpd.yaml b/Documentation/devicetree/bindings/power/qcom,rpmpd.yaml index afad3135ed67..f9c211a9a938 100644 --- a/Documentation/devicetree/bindings/power/qcom,rpmpd.yaml +++ b/Documentation/devicetree/bindings/power/qcom,rpmpd.yaml @@ -29,6 +29,7 @@ properties: - qcom,qcm2290-rpmpd - qcom,qcs404-rpmpd - qcom,qdu1000-rpmhpd + - qcom,sa8155p-rpmhpd - qcom,sa8540p-rpmhpd - qcom,sa8775p-rpmhpd - qcom,sdm660-rpmpd diff --git a/include/dt-bindings/power/qcom-rpmpd.h b/include/dt-bindings/power/qcom-rpmpd.h index 1bf8e87ecd7e..5a6dd5ded087 100644 --- a/include/dt-bindings/power/qcom-rpmpd.h +++ b/include/dt-bindings/power/qcom-rpmpd.h @@ -4,6 +4,15 @@ #ifndef _DT_BINDINGS_POWER_QCOM_RPMPD_H #define _DT_BINDINGS_POWER_QCOM_RPMPD_H +/* SA8155P Power Domain Indexes */ +#define SA8155P_CX 0 +#define SA8155P_CX_AO 1 +#define SA8155P_EBI 2 +#define SA8155P_GFX 3 +#define SA8155P_MSS 4 +#define SA8155P_MX 5 +#define SA8155P_MX_AO 6 + /* SA8775P Power Domain Indexes */ #define SA8775P_CX 0 #define SA8775P_CX_AO 1 From patchwork Tue Feb 14 09:54:34 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 56811 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp2873312wrn; Tue, 14 Feb 2023 01:56:39 -0800 (PST) X-Google-Smtp-Source: AK7set9/dSw29Rmx7xd31iNrcnDToNBNHsqBPsfO+2L1gHheuZ+HSTjvE27e72ho5Q9jWEQx8LRD X-Received: by 2002:a17:906:209d:b0:878:7471:6da7 with SMTP id 29-20020a170906209d00b0087874716da7mr3436911ejq.66.1676368599567; Tue, 14 Feb 2023 01:56:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1676368599; cv=none; d=google.com; s=arc-20160816; b=qWaDd9rH5BXr1UA2pxsGkfAb2tAKw6sAL012eqlm2z8lBELTpkZ6bx+wbsLHmty8+o KhHS6vlbAuwEOgyiPfeM/0flg5otAwd0R41ufh2ASn5tzVT7/FSHy6EGReBpB+sVbDRo NEcvcaY7wJoC/F66EBcNhRlNdyHCYxaNRmowddJOPE3AK6wP71fJmkjcyZkJl/AlNePA M8KfMgESheN6I6o6+wcU9KsRiO1fppUczr7v/eJrG8I5H44un31JHRSi/au8Kcnia3aM /TNsw5RRk3p7XDHJXwax/E/1m+7RWB5l/6/kaHWAxd7dDYVg17e2bAGJCDJHFSs9xW3+ OgGQ== 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=alcmQEv21lf+ZQxfpXql4sGdLArmHdHiJ6Fsno5k1fs=; b=Q+ytlEY3UQ3Xp78XT8YimDhCIvJLBy1VXdSqWnVrAViqTCyvUzVGJ5xP+0GTUN5lxy QE2OglMeUJY7g7kpO0mLQcHfK4w9yQnUd8QTl87m96zF+I8Llrz4fkEEzLn7fFkG5gJG 6YMFAVaQVZl1QHWhQ9uetUr8xJWA0fs9UnnUUNPwVk+aN63Jqf8qW3IwwDCAXizlPicf OTQDWWKCdlf+v+8zOqVEyPEKXV14hupdYuKmorGT9bQItjuVK81mvP1uHH1+FqErBPS3 BNxKRbIXx+DcZIH4s2sAiUQlFBUKNi5mod5aFzWD6Z0yF+I00amC8aSk9drdb0UMk809 vQRw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=J8CiysRG; 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=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d10-20020a17090692ca00b008775c0dd569si14096268ejx.418.2023.02.14.01.56.16; Tue, 14 Feb 2023 01:56:39 -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=@linaro.org header.s=google header.b=J8CiysRG; 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=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231655AbjBNJzN (ORCPT + 99 others); Tue, 14 Feb 2023 04:55:13 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34898 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231758AbjBNJyq (ORCPT ); Tue, 14 Feb 2023 04:54:46 -0500 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 60C5CC640 for ; Tue, 14 Feb 2023 01:54:44 -0800 (PST) Received: by mail-ej1-x636.google.com with SMTP id rp23so38632024ejb.7 for ; Tue, 14 Feb 2023 01:54:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; 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=alcmQEv21lf+ZQxfpXql4sGdLArmHdHiJ6Fsno5k1fs=; b=J8CiysRGB/U8cQz2Di2tXKgm2Ue5izuOlZRhd6dr/iapz7cZ16ru/pOfBojJf2beLw 0xHbu+jBA7BsSBdXgTJXVUajvNRkruOvY2Y9Z3CgMc6NH7zCGYBtKWWDl87ouXHq3wAU JK6u+wIOxqZiFr9J42aXYwzrdrHI7M1L1hqobIPr8DOl1BTIgLYUjniOhFpO4TcmEXph W3W6acRqUE3ZzB5KUI2ediLyVknVhOdvBwD3rup1ZxzdBgE0aruse+CTAQDroiB9Cy2H LtYHv9dmKNnJCg0yIHsxJAgtn2ITy6GjSEcF864iMFbc0p1KeVikpXBe9IR8p1GamMKK lIGw== 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=alcmQEv21lf+ZQxfpXql4sGdLArmHdHiJ6Fsno5k1fs=; b=M0u3b3vUvZhJkguypritcC52V5oV6Ws5MdIhAz1Zfin4/WSc/Zmq9ZN21m05sEO64D CdExj8HWu3uV/Ej6UoFxPWJkXvyqMcv1ri2saTr/m5W74sOT6lEMAZg8a17hs36ob+iB yBq1yuXoIlsOSGobdeWQoNvsflR7ht/TDvALcKw3AV3HF3YHw9oCytRRK59WHP4VmyMJ KV6svfvL0q4YHF40nyxvUwzkFPxhZvF/H5U7et52O8NPx/YAp4JjB0hzcey9AAn+1O+P nMVywcSkWMdiSWZNe/GXPYqrkW8fW/W7XIFICi6PWOqMHwADNfCacuW5Hvc9TGz/SKUj cV9w== X-Gm-Message-State: AO0yUKXKxIpLK1nHgG2FKNZa8ZRXNqzA91LRxU3L4mjOEPG8KOjr8CgA gbe7AlDmSGHjd6XWm3sOx7348A== X-Received: by 2002:a17:906:33ca:b0:864:223:40b with SMTP id w10-20020a17090633ca00b008640223040bmr2954742eja.33.1676368482998; Tue, 14 Feb 2023 01:54:42 -0800 (PST) Received: from localhost.localdomain (abxh117.neoplus.adsl.tpnet.pl. [83.9.1.117]) by smtp.gmail.com with ESMTPSA id b12-20020a170906038c00b0088f464ac276sm7936172eja.30.2023.02.14.01.54.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 14 Feb 2023 01:54:42 -0800 (PST) From: Konrad Dybcio To: linux-arm-msm@vger.kernel.org, andersson@kernel.org, agross@kernel.org, krzysztof.kozlowski@linaro.org Cc: marijn.suijten@somainline.org, Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 2/3] soc: qcom: rpmhpd: Add SA8155P power domains Date: Tue, 14 Feb 2023 10:54:34 +0100 Message-Id: <20230214095435.2192153-2-konrad.dybcio@linaro.org> X-Mailer: git-send-email 2.39.1 In-Reply-To: <20230214095435.2192153-1-konrad.dybcio@linaro.org> References: <20230214095435.2192153-1-konrad.dybcio@linaro.org> 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,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?1757799880439365762?= X-GMAIL-MSGID: =?utf-8?q?1757799880439365762?= Add the power domains exposed by RPMh in the Qualcomm SA8155P platform. Turns out they differ from SM8150. Signed-off-by: Konrad Dybcio --- drivers/soc/qcom/rpmhpd.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/drivers/soc/qcom/rpmhpd.c b/drivers/soc/qcom/rpmhpd.c index f20e2a49a669..63c35a32065b 100644 --- a/drivers/soc/qcom/rpmhpd.c +++ b/drivers/soc/qcom/rpmhpd.c @@ -342,6 +342,21 @@ static const struct rpmhpd_desc sm8150_desc = { .num_pds = ARRAY_SIZE(sm8150_rpmhpds), }; +static struct rpmhpd *sa8155p_rpmhpds[] = { + [SA8155P_CX] = &cx_w_mx_parent, + [SA8155P_CX_AO] = &cx_ao_w_mx_parent, + [SA8155P_EBI] = &ebi, + [SA8155P_GFX] = &gfx, + [SA8155P_MSS] = &mss, + [SA8155P_MX] = &mx, + [SA8155P_MX_AO] = &mx_ao, +}; + +static const struct rpmhpd_desc sa8155p_desc = { + .rpmhpds = sa8155p_rpmhpds, + .num_pds = ARRAY_SIZE(sa8155p_rpmhpds), +}; + /* SM8250 RPMH powerdomains */ static struct rpmhpd *sm8250_rpmhpds[] = { [SM8250_CX] = &cx_w_mx_parent, @@ -519,6 +534,7 @@ static const struct rpmhpd_desc sc8280xp_desc = { static const struct of_device_id rpmhpd_match_table[] = { { .compatible = "qcom,qdu1000-rpmhpd", .data = &qdu1000_desc }, + { .compatible = "qcom,sa8155p-rpmhpd", .data = &sa8155p_desc }, { .compatible = "qcom,sa8540p-rpmhpd", .data = &sa8540p_desc }, { .compatible = "qcom,sa8775p-rpmhpd", .data = &sa8775p_desc }, { .compatible = "qcom,sc7180-rpmhpd", .data = &sc7180_desc }, From patchwork Tue Feb 14 09:54:35 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 56812 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp2873432wrn; Tue, 14 Feb 2023 01:57:01 -0800 (PST) X-Google-Smtp-Source: AK7set/fokOnKOZoRFpp/70IwukKhXNPwT0faAWp7ZtWW6YvKyPDAHZWURqmxlNXDJN7jSWeoNgT X-Received: by 2002:a17:906:8395:b0:8af:54d2:36af with SMTP id p21-20020a170906839500b008af54d236afmr2077584ejx.76.1676368620900; Tue, 14 Feb 2023 01:57:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1676368620; cv=none; d=google.com; s=arc-20160816; b=HgFcup1qct4Cpqd+LxEaAXiFo7+O3tVMSurwNbd6aG2o5JBtYLFVvaya3aOAPd6bqZ Gpt8K1ngb//gv7gTntCDWZByHkn1cqHNeVX6YKhOHvnT8nhy9GM2UhEGpGpkCTOAA620 +c3GadanddwTQaEIDzwfucvl/iTb0k3h+BypXRIdEvTEpYmDnRNPfDtI0syGvxXAtp8h dLeux+io7bboOhz9Vq6eUuohulX47omCZWKcpMiL4+zyEndw23od4F85TN/BrYPncWDH UQDxVZz9a2NmmKo9I1PWD4UDMygu4kCEvzVczbMpQ7KhMIvRY0uvR0/ntZcHDqQEDi46 txFQ== 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=ojz/IndadzvCh/MxBOcdddWP2Cz3VxxnwtTNlpFnCXE=; b=mdaY0ixVu9Vf2wvM3WncwAcqIED3UpyFjJbFVBy9ap3ta0G7oLUnJiToKYT6rI8mB0 Zlnw5cm+y+3ZgvoxdXBG7kkzi9GTpI7C4fPAAtLpvueGZgCvLuzWFrqAYr/JIcDyxxPm W82TCKZQgQv5BD6DhJgR8+Lwp0Qk+VuRixDs9vuXLeGTmjvblKvbhST5uKxV6PiG1YRz xCH6p04WqPhFIlAqjuimIaDc8Yr9m4AxM/TuSIrphYsHd9APEX8f5m/CvchVvNbcv5i3 6MMEyhrC70mRULnL98X7plBZdj0VfmcaEWfbRBJNAM+biVx5OnXbaa1h89OFSI9QYFxX ftyQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=w2V6QzHc; 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=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id bp8-20020a170907918800b008b12a1979fdsi1935635ejb.535.2023.02.14.01.56.37; Tue, 14 Feb 2023 01:57:00 -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=@linaro.org header.s=google header.b=w2V6QzHc; 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=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232080AbjBNJzQ (ORCPT + 99 others); Tue, 14 Feb 2023 04:55:16 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35192 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232226AbjBNJyv (ORCPT ); Tue, 14 Feb 2023 04:54:51 -0500 Received: from mail-ej1-x62d.google.com (mail-ej1-x62d.google.com [IPv6:2a00:1450:4864:20::62d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 28B0B7DA6 for ; Tue, 14 Feb 2023 01:54:46 -0800 (PST) Received: by mail-ej1-x62d.google.com with SMTP id rp23so38632208ejb.7 for ; Tue, 14 Feb 2023 01:54:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; 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=ojz/IndadzvCh/MxBOcdddWP2Cz3VxxnwtTNlpFnCXE=; b=w2V6QzHcVqzF2wUIpdMO09Z2XGoYsyl0FM9aS96R0HywOimqrhl7w6q9vMefbhDsGT L8YKL2Nh+2plQ9p6wjduMlSwsMC88dH8JFB9AdcD4y6XIo0LsEOdwm1LDYornK41kKam GCMaKCuvIE+lWzGNlRhEf0c8yZt/uStZtNaIRBkFGVCLcoh+BK/pQr4ZfSO3ajbug6zd aG2xjYchretIafCeup7GRu7hA60nUGaFTV/H0mqSUP7AG7xLFNOkOTrK5UxFq2XWR1YA SPbAE6YAhpWHr4/F5Xf2FfpigwwF8O6IN+G8JDHXtpMmVo4+xwgTYgfIYZ9zm+Txkifr 6haw== 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=ojz/IndadzvCh/MxBOcdddWP2Cz3VxxnwtTNlpFnCXE=; b=fO3VtwTFFjxaOndFoW1xc476B7YQtaJMdITqmhXGONT77yC97wwIgOtvMDALwC5unY /6ESUeMWLBg8O0cPwcj8ZDDpCF8UFsGh5o6wX50LNlU+Kj9BKxrhGd4ZWBckJKzl4UNb 2q0j/Wpfw5KBuYtD6yuzSkAB3vibxJqSVRwyDGmse/GY9/6+qOT8o+rax7+VcYl69/u2 L0HhF7wBpMVYGAIOhc9b4CEYX+j87oGVDTqlToI8v/wCHHki6yRMF1JP6qdJQyBqpBUy 7oKEDAKWNa8Qapu66v6gWQsnEYOvWTXzGKG1thQ3JFt/FK4TzusMBHYHzQLjEGv94jyI GItw== X-Gm-Message-State: AO0yUKXZVvc6WD2nRoIXFgaRWgPIEMng9spZe8MxbyUUo8t1f4VzLj6k fjoi4Z7v0GYRg356VbdOpSYwBA== X-Received: by 2002:a17:906:3019:b0:8b1:2fbe:7d6b with SMTP id 25-20020a170906301900b008b12fbe7d6bmr1581981ejz.73.1676368484734; Tue, 14 Feb 2023 01:54:44 -0800 (PST) Received: from localhost.localdomain (abxh117.neoplus.adsl.tpnet.pl. [83.9.1.117]) by smtp.gmail.com with ESMTPSA id b12-20020a170906038c00b0088f464ac276sm7936172eja.30.2023.02.14.01.54.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 14 Feb 2023 01:54:44 -0800 (PST) From: Konrad Dybcio To: linux-arm-msm@vger.kernel.org, andersson@kernel.org, agross@kernel.org, krzysztof.kozlowski@linaro.org Cc: marijn.suijten@somainline.org, Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 3/3] arm64: dts: qcom: Split out SA8155P and use correct RPMh power domains Date: Tue, 14 Feb 2023 10:54:35 +0100 Message-Id: <20230214095435.2192153-3-konrad.dybcio@linaro.org> X-Mailer: git-send-email 2.39.1 In-Reply-To: <20230214095435.2192153-1-konrad.dybcio@linaro.org> References: <20230214095435.2192153-1-konrad.dybcio@linaro.org> 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,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?1757799902831838744?= X-GMAIL-MSGID: =?utf-8?q?1757799902831838744?= The RPMhPD setup on SA8155P is different compared to SM8150. Correct it to ensure the platform will not try accessing forbidden/missing RPMh entries at boot, as a bad vote will hang the machine. Signed-off-by: Konrad Dybcio --- arch/arm64/boot/dts/qcom/sa8155p-adp.dts | 2 +- arch/arm64/boot/dts/qcom/sa8155p.dtsi | 51 ++++++++++++++++++++++++ 2 files changed, 52 insertions(+), 1 deletion(-) create mode 100644 arch/arm64/boot/dts/qcom/sa8155p.dtsi diff --git a/arch/arm64/boot/dts/qcom/sa8155p-adp.dts b/arch/arm64/boot/dts/qcom/sa8155p-adp.dts index 459384ec8f23..9454e8e4e517 100644 --- a/arch/arm64/boot/dts/qcom/sa8155p-adp.dts +++ b/arch/arm64/boot/dts/qcom/sa8155p-adp.dts @@ -7,7 +7,7 @@ #include #include -#include "sm8150.dtsi" +#include "sa8155p.dtsi" #include "pmm8155au_1.dtsi" #include "pmm8155au_2.dtsi" diff --git a/arch/arm64/boot/dts/qcom/sa8155p.dtsi b/arch/arm64/boot/dts/qcom/sa8155p.dtsi new file mode 100644 index 000000000000..f2fd7c28764e --- /dev/null +++ b/arch/arm64/boot/dts/qcom/sa8155p.dtsi @@ -0,0 +1,51 @@ +// SPDX-License-Identifier: BSD-3-Clause +/* + * Copyright (c) 2023, Linaro Limited + * + * SA8155P is an automotive variant of SM8150, with some minor changes. + * Most notably, the RPMhPD setup differs: MMCX and LCX/LMX rails are gone. + */ + +#include "sm8150.dtsi" + +&dispcc { + power-domains = <&rpmhpd SA8155P_CX>; +}; + +&mdss_mdp { + power-domains = <&rpmhpd SA8155P_CX>; +}; + +&mdss_dsi0 { + power-domains = <&rpmhpd SA8155P_CX>; +}; + +&mdss_dsi1 { + power-domains = <&rpmhpd SA8155P_CX>; +}; + +&remoteproc_adsp { + power-domains = <&rpmhpd SA8155P_CX>; +}; + +&remoteproc_cdsp { + power-domains = <&rpmhpd SA8155P_CX>; +}; + +&remoteproc_mpss { + power-domains = <&rpmhpd SA8155P_CX>, + <&rpmhpd SA8155P_MSS>; +}; + +&remoteproc_slpi { + power-domains = <&rpmhpd SA8155P_CX>, + <&rpmhpd SA8155P_MX>; +}; + +&rpmhpd { + compatible = "qcom,sa8155p-rpmhpd"; +}; + +&sdhc_2 { + power-domains = <&rpmhpd SA8155P_CX>; +};