From: Konrad Dybcio <konrad.dybcio@linaro.org>
To: Amit Kucheria <amitk@kernel.org>,
Thara Gopinath <thara.gopinath@gmail.com>,
Andy Gross <agross@kernel.org>,
Bjorn Andersson <andersson@kernel.org>,
"Rafael J. Wysocki" <rafael@kernel.org>,
Daniel Lezcano <daniel.lezcano@linaro.org>,
Zhang Rui <rui.zhang@intel.com>, Rob Herring <robh+dt@kernel.org>,
Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>,
Georgi Djakov <djakov@kernel.org>,
Sibi Sankar <quic_sibis@quicinc.com>
Cc: linux-arm-msm@vger.kernel.org, linux-pm@vger.kernel.org,
devicetree@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH 12/15] arm64: dts: qcom: sm6375: Introduce MPM support
Date: Wed, 15 Mar 2023 00:57:51 +0100 [thread overview]
Message-ID: <adb3a64f-2542-6123-4306-3ed6eac928dc@linaro.org> (raw)
In-Reply-To: <20230303-topic-sm6375_features0_dts-v1-12-8c8d94fba6f0@linaro.org>
On 3.03.2023 22:58, Konrad Dybcio wrote:
> Add a node for MPM and wire it up on consumers that use it. This also
> fixes a very bad and sad assumption I made when initially porting this
> SoC that the downstream MPM-TLMM mappings were 1-1. That apparently
> changed some time ago, so with this patch the MPM consumers will actually
> be hooked up to the correct interrupt lines.
>
> Fixes: 59d34ca97f91 ("arm64: dts: qcom: Add initial device tree for SM6375")
> Signed-off-by: Konrad Dybcio <konrad.dybcio@linaro.org>
> ---
As agreed with Krzysztof offline, this one is a no-go.
Awaiting resolution on RPM MSG RAM bindings.
Konrad
> arch/arm64/boot/dts/qcom/sm6375.dtsi | 32 ++++++++++++++++++++++++++------
> 1 file changed, 26 insertions(+), 6 deletions(-)
>
> diff --git a/arch/arm64/boot/dts/qcom/sm6375.dtsi b/arch/arm64/boot/dts/qcom/sm6375.dtsi
> index 94bb373f8d97..ecb654357288 100644
> --- a/arch/arm64/boot/dts/qcom/sm6375.dtsi
> +++ b/arch/arm64/boot/dts/qcom/sm6375.dtsi
> @@ -315,6 +315,7 @@ CPU_PD7: power-domain-cpu7 {
>
> CLUSTER_PD: power-domain-cpu-cluster0 {
> #power-domain-cells = <0>;
> + power-domains = <&wakegic>;
> domain-idle-states = <&CLUSTER_SLEEP_0>;
> };
> };
> @@ -633,7 +634,7 @@ tlmm: pinctrl@500000 {
> reg = <0 0x00500000 0 0x800000>;
> interrupts = <GIC_SPI 227 IRQ_TYPE_LEVEL_HIGH>;
> gpio-ranges = <&tlmm 0 0 157>;
> - /* TODO: Hook up MPM as wakeup-parent when it's there */
> + wakeup-parent = <&wakegic>;
> interrupt-controller;
> gpio-controller;
> #interrupt-cells = <2>;
> @@ -755,7 +756,7 @@ spmi_bus: spmi@1c40000 {
> <0 0x01c0a000 0 0x26000>;
> reg-names = "core", "chnls", "obsrvr", "intr", "cnfg";
> interrupt-names = "periph_irq";
> - interrupts = <GIC_SPI 86 IRQ_TYPE_LEVEL_HIGH>;
> + interrupts-extended = <&wakegic 86 IRQ_TYPE_LEVEL_HIGH>;
> qcom,ee = <0>;
> qcom,channel = <0>;
> #address-cells = <2>;
> @@ -791,6 +792,25 @@ rpm_msg_ram: sram@45f0000 {
> reg = <0 0x045f0000 0 0x7000>;
> };
>
> + wakegic: interrupt-controller@45f01b8 {
> + compatible = "qcom,mpm";
> + reg = <0 0x045f01b8 0 0x1000>;
> + interrupts = <GIC_SPI 197 IRQ_TYPE_EDGE_RISING>;
> + mboxes = <&ipcc IPCC_CLIENT_AOP IPCC_MPROC_SIGNAL_SMP2P>;
> + interrupt-controller;
> + #interrupt-cells = <2>;
> + #power-domain-cells = <0>;
> + interrupt-parent = <&intc>;
> + qcom,mpm-pin-count = <96>;
> + qcom,mpm-pin-map = <5 296>, /* Soundwire wake_irq */
> + <12 422>, /* DWC3 ss_phy_irq */
> + <86 183>, /* MPM wake, SPMI */
> + <89 314>, /* TSENS0 0C */
> + <90 315>, /* TSENS1 0C */
> + <93 164>, /* DWC3 dm_hs_phy_irq */
> + <94 165>; /* DWC3 dp_hs_phy_irq */
> + };
> +
> sram@4690000 {
> compatible = "qcom,rpm-stats";
> reg = <0 0x04690000 0 0x400>;
> @@ -1185,10 +1205,10 @@ usb_1: usb@4ef8800 {
> <&gcc GCC_USB30_PRIM_MASTER_CLK>;
> assigned-clock-rates = <19200000>, <133333333>;
>
> - interrupts = <GIC_SPI 302 IRQ_TYPE_LEVEL_HIGH>,
> - <GIC_SPI 12 IRQ_TYPE_LEVEL_HIGH>,
> - <GIC_SPI 93 IRQ_TYPE_LEVEL_HIGH>,
> - <GIC_SPI 94 IRQ_TYPE_LEVEL_HIGH>;
> + interrupts-extended = <&intc GIC_SPI 302 IRQ_TYPE_LEVEL_HIGH>,
> + <&wakegic 12 IRQ_TYPE_LEVEL_HIGH>,
> + <&wakegic 93 IRQ_TYPE_LEVEL_HIGH>,
> + <&wakegic 94 IRQ_TYPE_LEVEL_HIGH>;
> interrupt-names = "hs_phy_irq",
> "ss_phy_irq",
> "dm_hs_phy_irq",
>
next prev parent reply other threads:[~2023-03-14 23:58 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-03-03 21:58 [PATCH 00/15] SM6375 feature enablement (round one) Konrad Dybcio
2023-03-03 21:58 ` [PATCH 01/15] dt-bindings: thermal: qcom-tsens: Add compatible for SM6375 Konrad Dybcio
2023-03-06 8:57 ` Krzysztof Kozlowski
2023-03-03 21:58 ` [PATCH 02/15] dt-bindings: interconnect: OSM L3: Add SM6375 CPUCP compatible Konrad Dybcio
2023-03-06 8:58 ` Krzysztof Kozlowski
2023-03-03 21:58 ` [PATCH 03/15] dt-bindings: sram: qcom,imem: document SM6375 IMEM Konrad Dybcio
2023-03-06 8:58 ` Krzysztof Kozlowski
2023-03-03 21:58 ` [PATCH 04/15] arm64: dts: qcom: sm6375: Add RPM sleep stats Konrad Dybcio
2023-03-03 21:58 ` [PATCH 05/15] arm64: dts: qcom: sm6375: Add IMEM Konrad Dybcio
2023-03-03 21:58 ` [PATCH 06/15] arm64: dts: qcom: sm6375: Add RMTFS Konrad Dybcio
2023-03-03 21:58 ` [PATCH 07/15] arm64: dts: qcom: sm6375: Add wifi node Konrad Dybcio
2023-03-03 21:58 ` [PATCH 08/15] arm64: dts: qcom: sm6375: Add modem nodes Konrad Dybcio
2023-03-03 21:58 ` [PATCH 09/15] arm64: dts: qcom: sm6375: Add CPUCP L3 node Konrad Dybcio
2023-03-10 3:14 ` Sibi Sankar
2023-03-10 13:15 ` Konrad Dybcio
2023-03-03 21:58 ` [PATCH 10/15] arm64: dts: qcom: sm6375: Add TSENS Konrad Dybcio
2023-03-03 21:58 ` [PATCH 11/15] arm64: dts: qcom: sm6375: Configure TSENS thermal zones Konrad Dybcio
2023-03-03 21:58 ` [PATCH 12/15] arm64: dts: qcom: sm6375: Introduce MPM support Konrad Dybcio
2023-03-14 23:57 ` Konrad Dybcio [this message]
2023-03-03 21:58 ` [PATCH 13/15] arm64: dts: qcom: sm6375: Bump CPU rail power collapse index Konrad Dybcio
2023-03-03 21:58 ` [PATCH 14/15] arm64: dts: qcom: sm6375: Introduce C3 power state for both ARM clusters Konrad Dybcio
2023-03-03 21:58 ` [PATCH 15/15] arm64: dts: qcom: sm6375-pdx225: Add volume down GPIO key Konrad Dybcio
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=adb3a64f-2542-6123-4306-3ed6eac928dc@linaro.org \
--to=konrad.dybcio@linaro.org \
--cc=agross@kernel.org \
--cc=amitk@kernel.org \
--cc=andersson@kernel.org \
--cc=daniel.lezcano@linaro.org \
--cc=devicetree@vger.kernel.org \
--cc=djakov@kernel.org \
--cc=krzysztof.kozlowski+dt@linaro.org \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pm@vger.kernel.org \
--cc=quic_sibis@quicinc.com \
--cc=rafael@kernel.org \
--cc=robh+dt@kernel.org \
--cc=rui.zhang@intel.com \
--cc=thara.gopinath@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®