From: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
To: Krishna Kurapati <krishna.kurapati@oss.qualcomm.com>,
Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>,
Swati Agarwal <swati.agarwal@oss.qualcomm.com>
Cc: "Greg Kroah-Hartman" <gregkh@linuxfoundation.org>,
"Rob Herring" <robh@kernel.org>,
"Krzysztof Kozlowski" <krzk+dt@kernel.org>,
"Conor Dooley" <conor+dt@kernel.org>,
"Icenowy Zheng" <uwu@icenowy.me>,
"Matthias Kaehlcke" <mka@chromium.org>,
"Mike Looijmans" <mike.looijmans@topic.nl>,
"Stephen Boyd" <swboyd@chromium.org>,
"Jens Glathe" <jens.glathe@oldschoolsolutions.biz>,
"Chaoyi Chen" <chaoyi.chen@rock-chips.com>,
"J. Neuschäfer" <j.ne@posteo.net>,
"Pin-yen Lin" <treapking@chromium.org>,
"Catalin Popescu" <catalin.popescu@leica-geosystems.com>,
"Bjorn Andersson" <andersson@kernel.org>,
"Konrad Dybcio" <konradybcio@kernel.org>,
linux-usb@vger.kernel.org, devicetree@vger.kernel.org,
linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org
Subject: Re: [PATCH v5 4/4] arm64: dts: qcom: lemans-evk: Enable secondary USB controller in host mode
Date: Wed, 4 Feb 2026 10:34:46 +0100 [thread overview]
Message-ID: <421a0916-ae2b-44a2-a3bd-ceca0737f334@oss.qualcomm.com> (raw)
In-Reply-To: <6a982b56-2f4c-441f-acf7-a8e77ea55600@oss.qualcomm.com>
On 2/4/26 6:56 AM, Krishna Kurapati wrote:
>
>
> On 2/4/2026 7:03 AM, Dmitry Baryshkov wrote:
>> On Tue, Jan 27, 2026 at 10:53:46AM +0530, Swati Agarwal wrote:
>>> On Thu, Jan 22, 2026 at 4:02 PM Dmitry Baryshkov
>>> <dmitry.baryshkov@oss.qualcomm.com> wrote:
>>>>
>>>> On Thu, Jan 22, 2026 at 02:58:52PM +0530, Swati Agarwal wrote:
>>>>> Enable secondary USB controller in host mode on lemans EVK Platform.
>>>>>
>>>>> Secondary USB controller is connected to a Genesys Logic USB HUB GL3590
>>>>> having 4 ports. The ports of hub that are present on lemans EVK standalone
>>>>> board are used as follows:-
>>>>> 1) port-1 is connected to HD3SS3220 Type-C port controller.
>>>>> 2) port-4 is used for the M.2 E key on corekit. Standard core kit uses UART
>>>>> for Bluetooth. This port is to be used only if user optionally replaces the
>>>>> WiFi card with the NFA765 chip which uses USB for Bluetooth.
>>>>>
>>>>> Remaining 2 ports will become functional when the interface plus mezzanine
>>>>> board is stacked on top of corekit:
>>>>>
>>>>> 3) port-2 is connected to another hub which is present on the mezz through
>>>>> which 4 type-A ports are connected.
>>>>> 4) port-3 is used for the M.2 B key for a 5G card when the mezz is
>>>>> connected.
>>>>>
>>>>> Mark the second USB controller as host only capable and add the HD3SS3220
>>>>> Type-C port controller along with Type-c connector for controlling vbus
>>>>> supply.
>>>>>
>>>>> Signed-off-by: Swati Agarwal <swati.agarwal@oss.qualcomm.com>
>>>>> ---
>>>>> arch/arm64/boot/dts/qcom/lemans-evk.dts | 208 ++++++++++++++++++++++++
>>>>> 1 file changed, 208 insertions(+)
>>>>>
>>>>> diff --git a/arch/arm64/boot/dts/qcom/lemans-evk.dts b/arch/arm64/boot/dts/qcom/lemans-evk.dts
>>>>> index 074a1edd0334..a549f7fe53a1 100644
>>>>> --- a/arch/arm64/boot/dts/qcom/lemans-evk.dts
>>>>> +++ b/arch/arm64/boot/dts/qcom/lemans-evk.dts
>>>>> @@ -68,6 +68,45 @@ usb0_con_ss_ep: endpoint {
>>>>> };
>>>>> };
>>>>>
>>>>> + connector-1 {
>>>>> + compatible = "usb-c-connector";
>>>>> + label = "USB1-Type-C";
>>>>> + data-role = "host";
>>>>> + power-role = "source";
>>>>> +
>>>>> + vbus-supply = <&vbus_supply_regulator_1>;
>>>>> +
>>>>> + ports {
>>>>> + #address-cells = <1>;
>>>>> + #size-cells = <0>;
>>>>> +
>>>>> + port@0 {
>>>>> + reg = <0>;
>>>>> +
>>>>> + usb1_con_ss_ep: endpoint {
>>>>
>>>> This contradicts USB-C connector bindings. Why?
>>>>
>>>>> + remote-endpoint = <&hd3ss3220_1_in_ep>;
>>>>> + };
>>>>> + };
>>>>> +
>>>>> + port@1 {
>>>>> + reg = <1>;
>>>>> +
>>>>> + usb1_hs_in: endpoint {
>>>>> + remote-endpoint = <&usb_hub_2_1>;
>>>>> + };
>>>>> +
>>>>> + };
>>>>> +
>>>>> + port@2 {
>>>>> + reg = <2>;
>>>>> +
>>>>> + usb1_ss_in: endpoint {
>>>>
>>>> port@2 is for the SBU signals. It can't be connected to the hub.
>>>>
>>>>> + remote-endpoint = <&usb_hub_3_1>;
>>>>> + };
>>>>> + };
>>>>> + };
>>>>> + };
>>>>> +
>>>>> edp0-connector {
>>>>> compatible = "dp-connector";
>>>>> label = "EDP0";
>>>>> @@ -141,6 +180,16 @@ vbus_supply_regulator_0: regulator-vbus-supply-0 {
>>>>> enable-active-high;
>>>>> };
>>>>>
>>>>> + vbus_supply_regulator_1: regulator-vbus-supply-1 {
>>>>> + compatible = "regulator-fixed";
>>>>> + regulator-name = "vbus_supply_1";
>>>>> + gpio = <&expander1 3 GPIO_ACTIVE_HIGH>;
>>>>> + regulator-min-microvolt = <5000000>;
>>>>> + regulator-max-microvolt = <5000000>;
>>>>> + regulator-boot-on;
>>>>> + enable-active-high;
>>>>> + };
>>>>> +
>>>>> vmmc_sdc: regulator-vmmc-sdc {
>>>>> compatible = "regulator-fixed";
>>>>>
>>>>> @@ -536,6 +585,39 @@ hd3ss3220_0_out_ep: endpoint {
>>>>> };
>>>>> };
>>>>> };
>>>>> +
>>>>> + usb-typec@47 {
>>>>> + compatible = "ti,hd3ss3220";
>>>>> + reg = <0x47>;
>>>>> +
>>>>> + interrupts-extended = <&pmm8654au_2_gpios 6 IRQ_TYPE_EDGE_FALLING>;
>>>>> +
>>>>> + id-gpios = <&tlmm 51 GPIO_ACTIVE_HIGH>;
>>>>> +
>>>>> + pinctrl-0 = <&usb1_id>, <&usb1_intr>;
>>>>> + pinctrl-names = "default";
>>>>> +
>>>>> + ports {
>>>>> + #address-cells = <1>;
>>>>> + #size-cells = <0>;
>>>>> +
>>>>> + port@0 {
>>>>> + reg = <0>;
>>>>> +
>>>>> + hd3ss3220_1_in_ep: endpoint {
>>>>> + remote-endpoint = <&usb1_con_ss_ep>;
>>>>> + };
>>>>> + };
>>>>> +
>>>>> + port@1 {
>>>>> + reg = <1>;
>>>>> +
>>>>> + hd3ss3220_1_out_ep: endpoint {
>>>>> + };
>>>>
>>>> Why is this port disconnected? It it really N/C?
>>>
>>> Hi Dmitry,
>>>
>>> Sorry for the confusion, Can we do it as follows:
>>>
>>> hub: Hd3ss3220 typec-connector
>>>
>>> usb_hub_2_1 <-> port@1 port@1 <-> empty
>>> usb_hub_3_1 <-> port@2 port@2 <-> <empty>
>>> port@0 <-> port@0
>>>
>>
>> You still missed the _why_. Why port@1 of HD3SS3220 is not connected?
>>
>
> There are no remote endpoints added in dwc3 node. Since we are making dr_mode host. Hence keeping this remore endpoint empty.
So can you like.. add the endpoints under that node and problem
solved?
Konrad
next prev parent reply other threads:[~2026-02-04 9:34 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-01-22 9:28 [PATCH v5 0/4] Enable secondary USB controller in host mode Swati Agarwal
2026-01-22 9:28 ` [PATCH v5 1/4] dt-bindings: usb: Add binding for Genesys Logic GL3590 hub Swati Agarwal
2026-01-22 17:06 ` Rob Herring
2026-01-22 9:28 ` [PATCH v5 2/4] usb: misc: onboard_usb_hub: Add Genesys Logic GL3590 hub support Swati Agarwal
2026-01-22 9:28 ` [PATCH v5 3/4] arm64: dts: qcom: lemans-evk: Rename hd3ss3220_ instance for primary port controller Swati Agarwal
2026-01-22 9:28 ` [PATCH v5 4/4] arm64: dts: qcom: lemans-evk: Enable secondary USB controller in host mode Swati Agarwal
2026-01-22 10:31 ` Dmitry Baryshkov
2026-01-27 5:23 ` Swati Agarwal
2026-02-03 6:25 ` Swati Agarwal
2026-02-04 1:33 ` Dmitry Baryshkov
2026-02-04 5:56 ` Krishna Kurapati
2026-02-04 9:34 ` Konrad Dybcio [this message]
2026-02-12 9:00 ` Krishna Kurapati PSSNV
2026-02-13 18:14 ` Dmitry Baryshkov
2026-02-04 10:32 ` Dmitry Baryshkov
2026-02-04 19:07 ` Krishna Kurapati
2026-02-04 19:40 ` Dmitry Baryshkov
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=421a0916-ae2b-44a2-a3bd-ceca0737f334@oss.qualcomm.com \
--to=konrad.dybcio@oss.qualcomm.com \
--cc=andersson@kernel.org \
--cc=catalin.popescu@leica-geosystems.com \
--cc=chaoyi.chen@rock-chips.com \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=dmitry.baryshkov@oss.qualcomm.com \
--cc=gregkh@linuxfoundation.org \
--cc=j.ne@posteo.net \
--cc=jens.glathe@oldschoolsolutions.biz \
--cc=konradybcio@kernel.org \
--cc=krishna.kurapati@oss.qualcomm.com \
--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=mike.looijmans@topic.nl \
--cc=mka@chromium.org \
--cc=robh@kernel.org \
--cc=swati.agarwal@oss.qualcomm.com \
--cc=swboyd@chromium.org \
--cc=treapking@chromium.org \
--cc=uwu@icenowy.me \
/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