From: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
To: Petr Vorel <pvorel@suse.cz>, Konrad Dybcio <konradybcio@kernel.org>
Cc: "Greg Kroah-Hartman" <gregkh@linuxfoundation.org>,
"Rob Herring" <robh@kernel.org>,
"Krzysztof Kozlowski" <krzk+dt@kernel.org>,
"Conor Dooley" <conor+dt@kernel.org>,
"Wesley Cheng" <quic_wcheng@quicinc.com>,
"Bjorn Andersson" <andersson@kernel.org>,
"Yassine Oudjana" <y.oudjana@protonmail.com>,
"Marijn Suijten" <marijn.suijten@somainline.org>,
linux-arm-msm@vger.kernel.org, linux-usb@vger.kernel.org,
devicetree@vger.kernel.org, linux-kernel@vger.kernel.org,
"Kryštof Černý" <cleverline1mc@gmail.com>,
"Alexander Reimelt" <alexander.reimelt@posteo.de>,
"Dominik Kobinski" <dominikkobinski314@gmail.com>,
"Harry Austen" <hpausten@protonmail.com>,
"Konrad Dybcio" <konrad.dybcio@oss.qualcomm.com>
Subject: Re: [PATCH RFT 4/4] arm64: dts: qcom: msm8994: Describe USB interrupts
Date: Sat, 14 Dec 2024 23:33:09 +0100 [thread overview]
Message-ID: <ac88ba7b-0b14-4302-9074-ec4fcee223d7@oss.qualcomm.com> (raw)
In-Reply-To: <20241206220252.GA138783@pevik>
On 6.12.2024 11:02 PM, Petr Vorel wrote:
> Hi Konrad, all,
>
>> From: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
>
>> Previously the interrupt lanes were not described, fix that.
>
>> Fixes: d9be0bc95f25 ("arm64: dts: qcom: msm8994: Add USB support")
>> Signed-off-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
>> ---
>> arch/arm64/boot/dts/qcom/msm8994.dtsi | 9 +++++++++
>> 1 file changed, 9 insertions(+)
>
>> diff --git a/arch/arm64/boot/dts/qcom/msm8994.dtsi b/arch/arm64/boot/dts/qcom/msm8994.dtsi
>> index 1acb0f159511996db07bc7543cf4f194a4ebd0fa..8c0b1e3a99a767e7c28bcaf3b9687501cc15cd58 100644
>> --- a/arch/arm64/boot/dts/qcom/msm8994.dtsi
>> +++ b/arch/arm64/boot/dts/qcom/msm8994.dtsi
>> @@ -437,6 +437,15 @@ usb3: usb@f92f8800 {
>> #size-cells = <1>;
>> ranges;
>
>> + interrupts = <GIC_SPI 180 IRQ_TYPE_LEVEL_HIGH>,
>> + <GIC_SPI 311 IRQ_TYPE_LEVEL_HIGH>,
>> + <GIC_SPI 133 IRQ_TYPE_LEVEL_HIGH>,
>> + <GIC_SPI 310 IRQ_TYPE_LEVEL_HIGH>;
>> + interrupt-names = "pwr_event",
>> + "qusb2_phy",
>> + "hs_phy_irq",
>> + "ss_phy_irq";
>> +
>
> Tested-by: Petr Vorel <petr.vorel@gmail.com>
>
> Well, I tested this on msm8994 Huawei Nexus 6P. It did not break anything,
> but obviously it's not enough for phone to get USB working. IMHO none of
> msm899[24] has working USB.
It did work for me on both libra and on the Sony phones.. On the Lumias
it worked when I booted through lk2nd, and I tracked it down to one of
the writes that I never implemented.. and then I removed the repo
where I had it tracked down
I took a quick peek (but don't have the time right now to make sure it's
this one) and if my memory doesn't fail me, you may need to
// the second address in qcom,usb-dwc3-msm in downstream
void __iomem *foo = ioremap(0xFD4AB000, 0x4);
u32 val = readl(foo);
val |= BIT(0);
writel(val, foo);
> msm8996 has usb3phy, hsusb_phy[12] labels, I suppose USB will not be working
> until this is set. Below is a snippet of a downstream device tree. I might
> be able to transform it to the mainline tree, but feel free to post a patch
> (probably obvious for you).
So long as the PHY is not reset, it should be working as well as it
did in the bootloader.. which depending on whether your BL set it up
may mean "well" or "not at all".. Give the above a shot, put it in
some early init code.
Konrad
next prev parent reply other threads:[~2024-12-14 22:33 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-11-29 22:12 [RFT PATCH 0/4] More QC DWC3 fixups Konrad Dybcio
2024-11-29 22:12 ` [PATCH RFT 1/4] dt-bindings: usb: qcom,dwc3: Make ss_phy_irq optional for MSM8996 Konrad Dybcio
2024-12-04 14:22 ` Rob Herring (Arm)
2024-11-29 22:12 ` [PATCH RFT 2/4] dt-bindings: usb: qcom,dwc3: Fix MSM8994 interrupt spec Konrad Dybcio
2024-12-04 14:22 ` Rob Herring (Arm)
2024-11-29 22:12 ` [PATCH RFT 3/4] arm64: dts: qcom: msm8996: Fix up USB3 interrupts Konrad Dybcio
2024-11-29 22:12 ` [PATCH RFT 4/4] arm64: dts: qcom: msm8994: Describe USB interrupts Konrad Dybcio
2024-12-06 22:02 ` Petr Vorel
2024-12-14 22:33 ` Konrad Dybcio [this message]
2024-12-26 22:38 ` (subset) [RFT PATCH 0/4] More QC DWC3 fixups Bjorn Andersson
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=ac88ba7b-0b14-4302-9074-ec4fcee223d7@oss.qualcomm.com \
--to=konrad.dybcio@oss.qualcomm.com \
--cc=alexander.reimelt@posteo.de \
--cc=andersson@kernel.org \
--cc=cleverline1mc@gmail.com \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=dominikkobinski314@gmail.com \
--cc=gregkh@linuxfoundation.org \
--cc=hpausten@protonmail.com \
--cc=konradybcio@kernel.org \
--cc=krzk+dt@kernel.org \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-usb@vger.kernel.org \
--cc=marijn.suijten@somainline.org \
--cc=pvorel@suse.cz \
--cc=quic_wcheng@quicinc.com \
--cc=robh@kernel.org \
--cc=y.oudjana@protonmail.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