From: Konrad Dybcio <konrad.dybcio@linaro.org>
To: Bjorn Andersson <andersson@kernel.org>,
Vinod Koul <vkoul@kernel.org>,
Kishon Vijay Abraham I <kishon@kernel.org>,
Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>,
Michael Turquette <mturquette@baylibre.com>,
Stephen Boyd <sboyd@kernel.org>,
Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
Wesley Cheng <quic_wcheng@quicinc.com>
Cc: linux-arm-msm@vger.kernel.org, linux-phy@lists.infradead.org,
devicetree@vger.kernel.org, linux-kernel@vger.kernel.org,
linux-clk@vger.kernel.org, linux-usb@vger.kernel.org,
Bjorn Andersson <quic_bjorande@quicinc.com>
Subject: Re: [PATCH 08/10] arm64: dts: qcom: sc8180x: Add USB MP controller and phys
Date: Tue, 28 May 2024 14:53:09 +0200 [thread overview]
Message-ID: <e8e714ac-610e-4507-82ed-27a38c7be8fb@linaro.org> (raw)
In-Reply-To: <20240525-sc8180x-usb-mp-v1-8-60a904392438@quicinc.com>
On 5/25/24 20:04, Bjorn Andersson wrote:
> From: Bjorn Andersson <quic_bjorande@quicinc.com>
>
> The SC8180X platform comes with a multiport DWC3 controller with two
> ports, each connected to a pair of HighSpeed and QMP SuperSpeed PHYs.
>
> Describe these blocks.
>
> Signed-off-by: Bjorn Andersson <quic_bjorande@quicinc.com>
> ---
> arch/arm64/boot/dts/qcom/sc8180x.dtsi | 146 ++++++++++++++++++++++++++++++++++
> 1 file changed, 146 insertions(+)
>
> diff --git a/arch/arm64/boot/dts/qcom/sc8180x.dtsi b/arch/arm64/boot/dts/qcom/sc8180x.dtsi
> index 9ef3fa40e1d8..0950dc7adb20 100644
> --- a/arch/arm64/boot/dts/qcom/sc8180x.dtsi
> +++ b/arch/arm64/boot/dts/qcom/sc8180x.dtsi
> @@ -2511,6 +2511,34 @@ usb_sec_hsphy: phy@88e3000 {
> status = "disabled";
> };
>
> + usb_mp0_hsphy: phy@88e4000 {
Even though the register names are MPn, I think this is a bit confusing..
There's only one MP controller, so perhaps usb_mp_hsphy0?
[...]
> + clocks = <&gcc GCC_USB3_MP_PHY_AUX_CLK>,
> + <&gcc GCC_USB3_PRIM_CLKREF_CLK>,
> + <&gcc GCC_USB3_MP_PHY_COM_AUX_CLK>,
> + <&gcc GCC_USB3_MP_PHY_PIPE_0_CLK>;
PIPE_1_CLK
> + clock-names = "aux", "ref", "com_aux", "pipe";
This could be a vertical list
> +
> + resets = <&gcc GCC_USB3_UNIPHY_MP1_BCR>,
> + <&gcc GCC_USB3UNIPHY_PHY_MP1_BCR>;
> + reset-names = "phy", "phy_phy";
> +
> + power-domains = <&gcc USB30_MP_GDSC>;
> +
> + #clock-cells = <0>;
> + clock-output-names = "usb2_phy1_pipe_clk";
> +
> + #phy-cells = <0>;
> +
> + status = "disabled";
> + };
> +
> usb_sec_qmpphy: phy@88ee000 {
> compatible = "qcom,sc8180x-qmp-usb3-dp-phy";
> reg = <0 0x088ee000 0 0x18c>,
> @@ -2662,6 +2738,76 @@ gem_noc: interconnect@9680000 {
> qcom,bcm-voters = <&apps_bcm_voter>;
> };
>
> + usb_mp: usb@a4f8800 {
> + compatible = "qcom,sc8180x-dwc3-mp", "qcom,dwc3";
> + reg = <0 0x0a4f8800 0 0x400>;
> + #address-cells = <2>;
> + #size-cells = <2>;
> + ranges;
> + dma-ranges;
> +
> + clocks = <&gcc GCC_CFG_NOC_USB3_MP_AXI_CLK>,
> + <&gcc GCC_USB30_MP_MASTER_CLK>,
> + <&gcc GCC_AGGRE_USB3_MP_AXI_CLK>,
> + <&gcc GCC_USB30_MP_SLEEP_CLK>,
> + <&gcc GCC_USB30_MP_MOCK_UTMI_CLK>,
> + <&gcc GCC_USB3_SEC_CLKREF_CLK>;
This is used by the secondary DWC3 (non-MP). Are you sure?
Actually, are we sure that these clocks are really supplying the DWC3s?
> + clock-names = "cfg_noc",
> + "core",
> + "iface",
> + "sleep",
> + "mock_utmi",
> + "xo";
> +
> + interconnects = <&aggre1_noc MASTER_USB3_2 0 &mc_virt SLAVE_EBI_CH0 0>,
> + <&gem_noc MASTER_AMPSS_M0 0 &config_noc SLAVE_USB3_2 0>;
> + interconnect-names = "usb-ddr", "apps-usb";
> +
> + assigned-clocks = <&gcc GCC_USB30_MP_MOCK_UTMI_CLK>,
> + <&gcc GCC_USB30_MP_MASTER_CLK>;
> + assigned-clock-rates = <19200000>, <200000000>;
> +
> + interrupts-extended = <&intc GIC_SPI 656 IRQ_TYPE_LEVEL_HIGH>,
> + <&intc GIC_SPI 655 IRQ_TYPE_LEVEL_HIGH>,
> + <&intc GIC_SPI 658 IRQ_TYPE_LEVEL_HIGH>,
> + <&intc GIC_SPI 657 IRQ_TYPE_LEVEL_HIGH>,
> + <&pdc 59 IRQ_TYPE_EDGE_BOTH>,
> + <&pdc 46 IRQ_TYPE_EDGE_BOTH>,
> + <&pdc 71 IRQ_TYPE_EDGE_BOTH>,
> + <&pdc 68 IRQ_TYPE_EDGE_BOTH>,
> + <&pdc 7 IRQ_TYPE_LEVEL_HIGH>,
> + <&pdc 30 IRQ_TYPE_LEVEL_HIGH>;
> + interrupt-names = "pwr_event_1", "pwr_event_2",
> + "hs_phy_1", "hs_phy_2",
> + "dp_hs_phy_1", "dm_hs_phy_1",
> + "dp_hs_phy_2", "dm_hs_phy_2",
> + "ss_phy_1", "ss_phy_2";
> +
> + power-domains = <&gcc USB30_MP_GDSC>;
> +
> + resets = <&gcc GCC_USB30_MP_BCR>;
> +
> + status = "disabled";
> +
> + usb_mp_dwc3: usb@a400000 {
> + compatible = "snps,dwc3";
> + reg = <0 0x0a400000 0 0xcd00>;
> + interrupts = <GIC_SPI 654 IRQ_TYPE_LEVEL_HIGH>;
> + iommus = <&apps_smmu 0x60 0>;
> + snps,dis_u2_susphy_quirk;
> + snps,dis_enblslpm_quirk;
sa8195-usb.dtsi lists a bunch more fluff:
snps,has-lpm-erratum;
snps,hird-threshold = /bits/ 8 <0x0>;
snps,is-utmi-l1-suspend;
snps,ssp-u3-u0-quirk;
snps,dis-u1-entry-quirk;
snps,dis-u2-entry-quirk;
snps,dis_u3_susphy_quirk;
snps,force-gen1;
maximum-speed = "super-speed";
the irq numbers look good
Konrad
next prev parent reply other threads:[~2024-05-28 12:53 UTC|newest]
Thread overview: 26+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-05-25 18:03 [PATCH 00/10] arm64: dts: qcom: sc8180x: Enable the USB multiport controller Bjorn Andersson
2024-05-25 18:03 ` [PATCH 01/10] dt-bindings: phy: qcom,sc8280xp-qmp-usb3-uni: Add sc8180x USB3 compatible Bjorn Andersson
2024-05-26 18:17 ` Krzysztof Kozlowski
2024-05-25 18:03 ` [PATCH 02/10] phy: qcom-qmp-usb: Add sc8180x USB UNIPHY Bjorn Andersson
2024-05-25 20:12 ` Dmitry Baryshkov
2024-05-25 18:03 ` [PATCH 03/10] dt-bindings: clock: qcom: Add missing USB MP resets Bjorn Andersson
2024-05-26 18:18 ` Krzysztof Kozlowski
2024-05-25 18:03 ` [PATCH 04/10] clk: qcom: gcc-sc8180x: " Bjorn Andersson
2024-05-28 12:39 ` Konrad Dybcio
2024-05-25 18:03 ` [PATCH 05/10] dt-bindings: usb: qcom,dwc3: Add SC8180X compatibles Bjorn Andersson
2024-05-26 18:22 ` Krzysztof Kozlowski
2024-05-25 18:03 ` [PATCH 06/10] arm64: dts: qcom: sc8180x-pmics: Add second PMC8180 GPIO Bjorn Andersson
2024-05-25 20:15 ` Dmitry Baryshkov
2024-05-25 18:04 ` [PATCH 07/10] arm64: dts: qcom: sc8180x: Align USB nodes with binding Bjorn Andersson
2024-05-28 12:42 ` Konrad Dybcio
2024-05-25 18:04 ` [PATCH 08/10] arm64: dts: qcom: sc8180x: Add USB MP controller and phys Bjorn Andersson
2024-05-25 20:16 ` Dmitry Baryshkov
2024-05-28 12:53 ` Konrad Dybcio [this message]
2024-05-25 18:04 ` [PATCH 09/10] arm64: dts: qcom: sc8180x-primus: Enable the two MP USB ports Bjorn Andersson
2024-05-25 20:16 ` Dmitry Baryshkov
2024-05-28 12:54 ` Konrad Dybcio
2024-05-25 18:04 ` [PATCH 10/10] arm64: dts: qcom: sc8180x-lenovo-flex-5g: Enable USB multiport controller Bjorn Andersson
2024-05-25 20:17 ` Dmitry Baryshkov
2024-05-28 12:56 ` Konrad Dybcio
2024-05-28 17:41 ` [PATCH 00/10] arm64: dts: qcom: sc8180x: Enable the " Rob Herring (Arm)
2024-06-03 14:26 ` (subset) " Vinod Koul
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=e8e714ac-610e-4507-82ed-27a38c7be8fb@linaro.org \
--to=konrad.dybcio@linaro.org \
--cc=andersson@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=gregkh@linuxfoundation.org \
--cc=kishon@kernel.org \
--cc=krzk+dt@kernel.org \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-clk@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-phy@lists.infradead.org \
--cc=linux-usb@vger.kernel.org \
--cc=mturquette@baylibre.com \
--cc=quic_bjorande@quicinc.com \
--cc=quic_wcheng@quicinc.com \
--cc=robh@kernel.org \
--cc=sboyd@kernel.org \
--cc=vkoul@kernel.org \
/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;
as well as URLs for NNTP newsgroup(s).