From nobody Sun Apr 5 16:31:10 2026 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7CD882D0C9A for ; Fri, 3 Apr 2026 10:08:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.180.131 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775210905; cv=none; b=K/eCMNYbMJLPSUn0XiYaQLppYb26nHLdGrqShnysFJvGsAMjdn1jFSceiHxanUpelw5NSdNDpTZOL8EhzCs35F6o/ZD2hHAR2WaEYcrk0sFGH7qvSMwPOnu3HN/K3VB9cTu6S2hNepoc3cUpJsrRF5eCxhNaT5O8THgIvpdjjVg= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775210905; c=relaxed/simple; bh=1bVEC+WfJcvZ1uctIKmoAJ7fAsmw5MbJ35tM1wKE+QY=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version:Content-Type; b=jcqYqh+EP/oxdUxSz49+hKjtFpu8ePDa1ROax4/aqHf/R/xeXSFtTsUxu5a/45TrbKcxqO7ek6S6PFBRWCZG+BDjaWhFkOx9o8zXozKDRlQScJJORxh3gIx04MDs+SP5YPJe/7YGPdxk36FOO1EDIr0vBmIdhSbVMkeVJQUsX5g= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=oss.qualcomm.com; spf=pass smtp.mailfrom=oss.qualcomm.com; dkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com header.b=CDsSkTgC; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b=N3duAUC3; arc=none smtp.client-ip=205.220.180.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=oss.qualcomm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=oss.qualcomm.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com header.b="CDsSkTgC"; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b="N3duAUC3" Received: from pps.filterd (m0279872.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 6337d8UU2707236 for ; Fri, 3 Apr 2026 10:08:19 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= BVGLaEeFYY9c72Ew3ZZnPD4GNjo1JzVn3GROkPfzp0M=; b=CDsSkTgCkS9eDMZR sRGjWC1eGGg4mV14gALi8y04RiyREJtcjsZBtDxlA0t/SbbQhglkDNvkCYWS9KEB pKEIq1WE9jRT1d4cqCx9AREXzNvswgYWFgOCI40BoTfwoKzoNrrnFFDQ6u5+8V8D GsCYFUawZo0yMrqrNH5MvsawgkW+EO0XJJ+RxUpxL9I1tCd9txX8RdSa6cSqtPqL J2awFmhQyJ+Hqr10LFn61eIQfs3lJzpolhlWS7YXtw8YFrJL7bbyRrnjzWhhnhBe 0+8PZU5Mq+GznnhHwFlfLl7Vb6+aVtqNsrYITtLhmIxUAravVP7IHlMSJnbfsbLD TOFAhw== Received: from mail-pj1-f71.google.com (mail-pj1-f71.google.com [209.85.216.71]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4d9yfjj2bm-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Fri, 03 Apr 2026 10:08:19 +0000 (GMT) Received: by mail-pj1-f71.google.com with SMTP id 98e67ed59e1d1-35d9f68d00fso3811753a91.2 for ; Fri, 03 Apr 2026 03:08:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1775210899; x=1775815699; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=BVGLaEeFYY9c72Ew3ZZnPD4GNjo1JzVn3GROkPfzp0M=; b=N3duAUC3pBiKl1kKNrMOs3X+X7THQYht3umKZnxaE9jRba634CZ5GUVS6KgyLyJtuh y3uVIn09Cm9aPFFrMNngTBvFMHCzvK4zknaLdPV2SW04Pq6WioYuaEeVwO9GS/YfpbAR aNzxirg5Mr71zwNDEM4Sgdl1aN+U3tglYkWP5pt97sgNfHqvHtpEUSI/f2PtTtQF5Kel 8eJetjlNv7LtfuOfOE07feTXubLIXFWtK/6tNIRAWw7hG2M3xMc4KgyZBhMHYu5U56JT Q/oQWO1Wu4eZ+aiCuG1wu7HmKIpXfA8uoPYHq62eC9e1d3OFqFb4WMdEGCNi8Z5ltVJk i4fw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1775210899; x=1775815699; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=BVGLaEeFYY9c72Ew3ZZnPD4GNjo1JzVn3GROkPfzp0M=; b=p8TODnLuqQmCz94ZffhTrMbTwbo/tlLqHOffxwhL4YygBOYVfDbU6s4HwYD/6vielV LE+apEI+oVjxAAFWGf3K89o9pCpR22iTJFSRtoK74y/uw05OVH4a+ZfY19vqhwIa4RNI A/QWHZHpfcW6LuFyVf9A8+rfXXykA9eAirCjwRF0zJqbLjT7sFfZTHr8Fj5JE6PDVZiP 03qZor91GbYgXciXtTrZUoBfYHjii8g3UebTbGIXmL3zeyzI9/PGXMcy802IzTg1jMQ2 EuT2McGplXCxWF+RDi3Rp2jHnJDxQXMsIMhkCAAgTDc+uU3d3aV1N4ELU08kehcZeX4w CkUg== X-Forwarded-Encrypted: i=1; AJvYcCUEgPC85cQFeZ2OP7KQ2btifisL0luZBQpJU0HGLoCA/W251SfqTSB6vwsLbDsDYfXnAmF2y1G6Xa/jOLs=@vger.kernel.org X-Gm-Message-State: AOJu0YwW6XN4mkYP7ItNrY8NyeddQ4dE6wZ4MAyqyI20PuNWHwRXhKml YHq+oaQRc4XiqbUE4x0KBGy0fhfI57ae/0rMG+v/IVVBiM5DQRHZeke2KXryZHkLHpQ6qo/sX2t L1k6z7WoUp5i8XconSFjNsFn/erUC41iL9Brej0GSKNGpB4kS/XxhypBe9B7xeeUCoqs= X-Gm-Gg: AeBDies2S2+BG4M7CZ0j4UeBGBorj1eVNqlvRtNDwi8u/EISWUkt1F3JVgHPbMFX91g OvZr7VxcdevTcgxECsxPh29BkJ7Oaqjd9zKPbOsA5gxTSfI1mjAQrxz4cdCzsITI/nms64QeaDK XX4lH0vwdkOEt1zP8soKNZGvSE66RibYORbsl8CUhLbXiruxviMoCvyQmjHP+JNMu24XNO9XhWE knwfj2uo+GhPUnAUwiB2ozVigNZRTaffms5LubJwEVC3ZTWNb0Sgyb07VLXPtm9hF94c3kNjZjq pa8ktbZwh4i4ZF2TkkfdO8o2TrGCihfbHGiciWShRYUi0NvK8kooAMNuzNx08sdRXvjsv18/zWz azwMN2LCJq9uQkOwPKmqyqDSrQba/HC0KSk7JCf5TAxUQEnwKorQ3UP8= X-Received: by 2002:a17:90b:3811:b0:359:1130:1047 with SMTP id 98e67ed59e1d1-35de68ebf53mr2468400a91.17.1775210898711; Fri, 03 Apr 2026 03:08:18 -0700 (PDT) X-Received: by 2002:a17:90b:3811:b0:359:1130:1047 with SMTP id 98e67ed59e1d1-35de68ebf53mr2468376a91.17.1775210898189; Fri, 03 Apr 2026 03:08:18 -0700 (PDT) Received: from hu-swatagar-hyd.qualcomm.com ([202.46.23.25]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-35dbe624756sm13497522a91.5.2026.04.03.03.08.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 Apr 2026 03:08:17 -0700 (PDT) From: Swati Agarwal To: Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Swati Agarwal Subject: [PATCH v7 2/2] arm64: dts: qcom: lemans-evk: Enable secondary USB controller in host mode Date: Fri, 3 Apr 2026 15:37:53 +0530 Message-Id: <20260403100753.3477925-3-swati.agarwal@oss.qualcomm.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20260403100753.3477925-1-swati.agarwal@oss.qualcomm.com> References: <20260403100753.3477925-1-swati.agarwal@oss.qualcomm.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Proofpoint-GUID: LzVdlmjk8Zf3cLGqqs7HMLAiq1CMTJyB X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwNDAzMDA4OSBTYWx0ZWRfX2wCUFTKLst4/ KcBr+nvtHglwCrosMKuHgpYqPNkmDU0F/BM72SlyHO5FQk9LtWwkEoTJOo53PurzJAJ3b2FXmoA a1Yhu3daupErKcskRGkhe8y0Joth06flJETC0Jt/+VSSq3yPOLKgaX4cwQVobT0Jni0I4C9aKir q+Na5Yim9cKNmdJ2vJxQPiDjOYaM4VNTEBrA/bwTZbfOXdzpE8bTAA1qr4Qag3Tc0ScpKig7Oam Ts1ljVHJbwnP50b+/npenW8M+jIPNuomFjf4wFnCvm+eM4PIba77haihXm7TGhKewqSL/CBfbF4 mHn2DEVq3yDoT+NYLtign9fBuLSmiP2W70+Wtz0rQCn+4xwLw6Geb27A5zCzmh4PnWM4gCPynj6 mwR3XPCATeERzpUEExOQuQdWI8fuAQbZmdfRAXCQ9JrYuly0iAF02tKMXq6ljHg43Yyk1XGVE8/ fJFNf3rZlGcAflWzGNw== X-Authority-Analysis: v=2.4 cv=OrpCCi/t c=1 sm=1 tr=0 ts=69cf9193 cx=c_pps a=UNFcQwm+pnOIJct1K4W+Mw==:117 a=ZePRamnt/+rB5gQjfz0u9A==:17 a=IkcTkHD0fZMA:10 a=A5OVakUREuEA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=yx91gb_oNiZeI1HMLzn7:22 a=EUspDBNiAAAA:8 a=6A85_hAfsEMDmSNDHIoA:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=uKXjsCUrEbL0IQVhDsJ9:22 X-Proofpoint-ORIG-GUID: LzVdlmjk8Zf3cLGqqs7HMLAiq1CMTJyB X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1143,Hydra:6.1.51,FMLib:17.12.100.49 definitions=2026-04-03_03,2026-04-03_01,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 impostorscore=0 malwarescore=0 adultscore=0 suspectscore=0 phishscore=0 lowpriorityscore=0 spamscore=0 bulkscore=0 clxscore=1015 priorityscore=1501 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2603050001 definitions=main-2604030089 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. Secondary USB Controller =E2=86=93 GL3590 USB Hub (4 ports) | |-- Port 1 =E2=86=92 HD3SS3220 Type=E2=80=91C Port Controller =E2=86=92= USB=E2=80=91C Connector | |-- Port 2 =E2=86=92 Mezzanine USB Hub (when mezz attached) | |-- Port 3 =E2=86=92 M.2 B=E2=80=91Key Slot (when mezz attached) | |-- Port 4 =E2=86=92 M.2 E=E2=80=91Key Slot (Default: BT via UART; USB only if NFA765 module is installed) 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 --- arch/arm64/boot/dts/qcom/lemans-evk.dts | 206 ++++++++++++++++++++++++ 1 file changed, 206 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/lemans-evk.dts b/arch/arm64/boot/dts/= qcom/lemans-evk.dts index 522d407c9925..f0010c4e69c2 100644 --- a/arch/arm64/boot/dts/qcom/lemans-evk.dts +++ b/arch/arm64/boot/dts/qcom/lemans-evk.dts @@ -69,6 +69,44 @@ usb0_con_ss_ep: endpoint { }; }; =20 + connector-1 { + compatible =3D "usb-c-connector"; + label =3D "USB1-Type-C"; + data-role =3D "host"; + power-role =3D "source"; + + vbus-supply =3D <&usb1_vbus>; + + ports { + #address-cells =3D <1>; + #size-cells =3D <0>; + + port@0 { + reg =3D <0>; + + usb1_con_hs_ep: endpoint { + remote-endpoint =3D <&usb_hub_2_1>; + }; + }; + + port@1 { + reg =3D <1>; + + usb1_con_ss_ep: endpoint { + remote-endpoint =3D <&hd3ss3220_1_in_ep>; + }; + + }; + + port@2 { + reg =3D <2>; + + usb1_con_sbu_ep: endpoint { + }; + }; + }; + }; + connector-2 { compatible =3D "gpio-usb-b-connector", "usb-b-connector"; label =3D "micro-USB"; @@ -161,6 +199,15 @@ usb0_vbus: regulator-usb0-vbus { enable-active-high; }; =20 + usb1_vbus: regulator-usb1-vbus { + compatible =3D "regulator-fixed"; + regulator-name =3D "usb1_vbus"; + gpio =3D <&expander1 3 GPIO_ACTIVE_HIGH>; + regulator-min-microvolt =3D <5000000>; + regulator-max-microvolt =3D <5000000>; + enable-active-high; + }; + usb2_vbus: regulator-usb2-vbus { compatible =3D "regulator-fixed"; regulator-name =3D "usb2_vbus"; @@ -565,6 +612,39 @@ hd3ss3220_0_out_ep: endpoint { }; }; }; + + usb-typec@47 { + compatible =3D "ti,hd3ss3220"; + reg =3D <0x47>; + + interrupts-extended =3D <&pmm8654au_2_gpios 6 IRQ_TYPE_EDGE_FALLING>; + + id-gpios =3D <&tlmm 51 GPIO_ACTIVE_HIGH>; + + pinctrl-0 =3D <&usb1_id>, <&usb1_intr>; + pinctrl-names =3D "default"; + + ports { + #address-cells =3D <1>; + #size-cells =3D <0>; + + port@0 { + reg =3D <0>; + + hd3ss3220_1_in_ep: endpoint { + remote-endpoint =3D <&usb1_con_ss_ep>; + }; + }; + + port@1 { + reg =3D <1>; + + hd3ss3220_1_out_ep: endpoint { + remote-endpoint =3D <&usb_hub_3_1>; + }; + }; + }; + }; }; =20 &i2c18 { @@ -749,6 +829,14 @@ usb0_intr_state: usb0-intr-state { power-source =3D <0>; }; =20 + usb1_intr: usb1-intr-state { + pins =3D "gpio6"; + function =3D "normal"; + input-enable; + bias-pull-up; + power-source =3D <0>; + }; + usb2_id: usb2-id-state { pins =3D "gpio11"; function =3D "normal"; @@ -949,6 +1037,12 @@ usb_id: usb-id-state { function =3D "gpio"; bias-pull-up; }; + + usb1_id: usb1-id-state { + pins =3D "gpio51"; + function =3D "gpio"; + bias-pull-up; + }; }; =20 &uart0 { @@ -1007,6 +1101,118 @@ &usb_0_qmpphy { status =3D "okay"; }; =20 +&usb_1 { + dr_mode =3D "host"; + + #address-cells =3D <1>; + #size-cells =3D <0>; + + status =3D "okay"; + + usb_hub_2_x: hub@1 { + compatible =3D "usb5e3,610"; + reg =3D <1>; + + peer-hub =3D <&usb_hub_3_x>; + + ports { + #address-cells =3D <1>; + #size-cells =3D <0>; + + port@1 { + reg =3D <1>; + + usb_hub_2_1: endpoint { + remote-endpoint =3D <&usb1_con_hs_ep>; + }; + }; + + /* + * Port-2 and port-3 are not connected to anything on corekit. + */ + port@2 { + reg =3D <2>; + + usb_hub_2_2: endpoint { + }; + }; + + port@3 { + reg =3D <3>; + + usb_hub_2_3: endpoint { + }; + }; + + /* + * Port-4 is connected to M.2 E key connector on corekit. + */ + port@4 { + reg =3D <4>; + + usb_hub_2_4: endpoint { + }; + }; + }; + }; + + usb_hub_3_x: hub@2 { + compatible =3D "usb5e3,625"; + reg =3D <2>; + + peer-hub =3D <&usb_hub_2_x>; + + ports { + #address-cells =3D <1>; + #size-cells =3D <0>; + + port@1 { + reg =3D <1>; + + usb_hub_3_1: endpoint { + remote-endpoint =3D <&hd3ss3220_1_out_ep>; + }; + }; + + port@2 { + reg =3D <2>; + + usb_hub_3_2: endpoint { + }; + }; + + port@3 { + reg =3D <3>; + + usb_hub_3_3: endpoint { + }; + }; + + port@4 { + reg =3D <4>; + + usb_hub_3_4: endpoint { + }; + }; + }; + }; +}; + +&usb_1_hsphy { + vdda-pll-supply =3D <&vreg_l7a>; + vdda18-supply =3D <&vreg_l6c>; + vdda33-supply =3D <&vreg_l9a>; + + status =3D "okay"; +}; + +&usb_1_qmpphy { + vdda-phy-supply =3D <&vreg_l1c>; + vdda-pll-supply =3D <&vreg_l7a>; + + status =3D "okay"; +}; + &usb_2 { status =3D "okay"; }; --=20 2.34.1