From patchwork Tue Apr 11 13:47:17 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 672454 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 91648C76196 for ; Tue, 11 Apr 2023 13:48:01 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230419AbjDKNsA (ORCPT ); Tue, 11 Apr 2023 09:48:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33880 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230401AbjDKNrZ (ORCPT ); Tue, 11 Apr 2023 09:47:25 -0400 Received: from mail-lj1-x22c.google.com (mail-lj1-x22c.google.com [IPv6:2a00:1450:4864:20::22c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6E3503AAA for ; Tue, 11 Apr 2023 06:47:24 -0700 (PDT) Received: by mail-lj1-x22c.google.com with SMTP id a3so3037604ljr.11 for ; Tue, 11 Apr 2023 06:47:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1681220842; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=lnOa1rnUIW+VOH2jrUKXRz6zTj4Kf4Fep5TGBDQYvsQ=; b=k5dSAhm5qHMWnCH2FNZJ51zDDkW5l7jKxuKcwwGlLqCG9z9X8FeAxp3DVocNrWpUAz HeRV6hY8oD99WT26OLXsHK/v7fTEiIEc6DhEHtt0q+wVSYzRxOzYRA2xyD4pFdWzNtJM DkbwD1D6WV2ke3I9ns/rE2+Zt4MZhUM5cdnB0pPKCmfj9jLwcsQnOwmwTcJXgIvoiQ4O kBCugDzNdOp+S9pT4pP+to4dhveDhL5m6Ksy1YdxUK0dblmSgAOFfa+nflArPPelj39y W6S6zEpNzlD3g2HD0DJbLizz5FpZdGZDxPlt0S4tRkjk7RZl7VbT2UkXfms7XBkVkJKb tDVQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1681220842; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=lnOa1rnUIW+VOH2jrUKXRz6zTj4Kf4Fep5TGBDQYvsQ=; b=kVZICpmxe0LCPoXRKp+g6WE9CWgKoxIFW8/h5nsjAJ3mx17iy1o05QLqeLq3bsBvVE iemYsqvYk+eiERlkxXBd8ccDUd3XEBvub0Xk5YxEh1VC71+bnlbM4G+QElqhAs8kwBTq jKs+vqUemHC4zzg6zKJbhCdJzr9vixzpobY/5aN1xr9DkMBjJPWZF99/wcbD2WgxqwAB lQ64ZmtjdThSY82gGNsoxViwQnQQWW0tKRRpMeTRofljfisbgs22Plx4C5SFj0RTLA/8 +wkITaU6BCRePOu3T9J+orLIq7JK/e4N6Z7Sf+pfGn5wMnwhq8ykCwx0ZIP2Z+JMSMZu xMrg== X-Gm-Message-State: AAQBX9ewpyw6hNEA7i5zzi6hcfJPO1sG56w7GTLVKdxI2tsl9uUQ24x7 aoC90MyFKngDb7Zw0jYgTdnjF5TpWHw9Lb/hAmk= X-Google-Smtp-Source: AKy350a1m+Y/HfUj1FBHEOehNpusviqs5rax+2zYdmiHX+5UhMZqOIUVFE/wXrizC+lNWX3MH7O2ww== X-Received: by 2002:a2e:920b:0:b0:2a7:7b5e:271 with SMTP id k11-20020a2e920b000000b002a77b5e0271mr651740ljg.24.1681220842452; Tue, 11 Apr 2023 06:47:22 -0700 (PDT) Received: from [192.168.1.101] (abxj23.neoplus.adsl.tpnet.pl. [83.9.3.23]) by smtp.gmail.com with ESMTPSA id c10-20020a2e680a000000b002a77583b718sm1245887lja.12.2023.04.11.06.47.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 11 Apr 2023 06:47:22 -0700 (PDT) From: Konrad Dybcio Date: Tue, 11 Apr 2023 15:47:17 +0200 Subject: [PATCH v2 3/3] arm64: dts: qcom: Split out SA8155P and use correct RPMh power domains MIME-Version: 1.0 Message-Id: <20230411-topic-hanaau-v2-3-fd3d70844b31@linaro.org> References: <20230411-topic-hanaau-v2-0-fd3d70844b31@linaro.org> In-Reply-To: <20230411-topic-hanaau-v2-0-fd3d70844b31@linaro.org> To: Andy Gross , Bjorn Andersson , Rob Herring , Krzysztof Kozlowski Cc: Marijn Suijten , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Bartosz Golaszewski , Bhupesh Sharma , Konrad Dybcio X-Mailer: b4 0.12.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1681220837; l=2119; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=GTxTzfHDkLcCspsXqSwwuRYb2T4ZqC5yjZaaQlxphPk=; b=rGen8sT5XjdbxkaKlembBhwUlJG9cvFLwnBLZgGvlrDk0vTG0pSChCVlSvyincyAJApnpLzvzqmn bp5/4k1tC/1SmWyCyIDP9M4jbjGcJ8jKEswNLy7TL1/NKp5KaGBP X-Developer-Key: i=konrad.dybcio@linaro.org; a=ed25519; pk=iclgkYvtl2w05SSXO5EjjSYlhFKsJ+5OSZBjOkQuEms= Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org 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 | 40 ++++++++++++++++++++++++++++++++ 2 files changed, 41 insertions(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/qcom/sa8155p-adp.dts b/arch/arm64/boot/dts/qcom/sa8155p-adp.dts index 339fea522509..15e1ae1c1a97 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..ffb7ab695213 --- /dev/null +++ b/arch/arm64/boot/dts/qcom/sa8155p.dtsi @@ -0,0 +1,40 @@ +// 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, + * though the cmd-db doesn't reflect that and access attemps result in a bite. + */ + +#include "sm8150.dtsi" + +&dispcc { + power-domains = <&rpmhpd SA8155P_CX>; +}; + +&mdss_dsi0 { + power-domains = <&rpmhpd SA8155P_CX>; +}; + +&mdss_dsi1 { + power-domains = <&rpmhpd SA8155P_CX>; +}; + +&mdss_mdp { + power-domains = <&rpmhpd SA8155P_CX>; +}; + +&remoteproc_slpi { + power-domains = <&rpmhpd SA8155P_CX>, + <&rpmhpd SA8155P_MX>; +}; + +&rpmhpd { + /* + * The bindings were crafted such that SA8155P PDs match their + * SM8150 counterparts to make it more maintainable and only + * necessitate adjusting entries that actually differ + */ + compatible = "qcom,sa8155p-rpmhpd"; +};