From nobody Mon Apr 6 21:34:19 2026 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.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 223FF330666 for ; Mon, 6 Apr 2026 11:01:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.168.131 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775473294; cv=none; b=DSY6kFnxBBb00WSw5Z6UNJqZJ7MOCbhM7F61AMUu2lEwlwgqgDSa86JeXX9vuagsG+KA6lIJRkFoFhjX45265E9NddxO3Gf8rN0LOli8PTEem5EDz7oWJdAcj8AqKOYAFgGOsk8tFOHzybcc8Z8T748MJWVN2sioebf7nGFNfEo= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775473294; c=relaxed/simple; bh=3NRpE2ZTO4585+Hkk8YWr9b0uqLZAgk8rII+tj7rb24=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version:Content-Type; b=Cp4mv5Zbjd+k22UIizx/rRL9AKbBo26VxaKEn6J+eBkTy6/qUqIpVTGPwW8AqqeE3xNBa4lJ9Hdc15OphL/kV4ZscfSYnbmS0EhZ3t6IvujfwlPCguvIbnfx0HUKe0Tft1VSqOBkwBjl2SetFX0nynrA/jyKM5pN4z7zP8+bBak= 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=bCdnb+ym; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b=Jmo2Gclp; arc=none smtp.client-ip=205.220.168.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="bCdnb+ym"; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b="Jmo2Gclp" Received: from pps.filterd (m0279862.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 636A6LJ61866599 for ; Mon, 6 Apr 2026 11:01:32 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= n3qsSloJn4EwnhjNA0sNUkm7nCERyoGh86KT+G38MqI=; b=bCdnb+ymACXpSUvy d1JSn9oJOyCh/SfIEr09VGgBwYDM5mgYgfGsj6w/g/zTSpZaLm8Ukzvu/ajkaBiX pr5UHX3BwSFqc1QKTmabfAQqynYsfNn5p9e4elZh81aAZLC5IGraamSa9ZIZzu1q 41IW2OhoP1smveQ8ZjyCo8JUcHfJM6P2LOCUHe2ibfVa/6FYf4ZP0eOHNBjAiCOU Mn5fZ5s9T15kEQxvKaA0x3SSUlqtVdIbKYll+TwSJ2nzE/p/VJnoAJsdb1qYx/l8 A/ZzFhMWWwohCIppHFKxLVmOuxt4OEdLZlM8j9tREJQxjCV+L7YLPpU6KVrKmYHE DkqLPQ== Received: from mail-pl1-f199.google.com (mail-pl1-f199.google.com [209.85.214.199]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4daudd4ty5-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Mon, 06 Apr 2026 11:01:32 +0000 (GMT) Received: by mail-pl1-f199.google.com with SMTP id d9443c01a7336-2b0cac007cdso26545685ad.3 for ; Mon, 06 Apr 2026 04:01:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1775473292; x=1776078092; 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=n3qsSloJn4EwnhjNA0sNUkm7nCERyoGh86KT+G38MqI=; b=Jmo2GclpN/UY7Trk2BCDyE7KQnTQ1U61JwPh80LdghUMetXFKASVhNDUnPf05O6itc 2tDokJyHjREx0mncI/M0Pl5d5DlR3pM43TkNhGaa6qGVgBykOJwfCq++4PrqwsxBH6yy lFErYVjrGKWpOKCWKANH0ESotknL48bMSmtgbNBGUOgVe8fwIPvmJt2IxsnPorO4bzzy VOP2sGFgO2QoTRjCE8EBu7BpHK7ygCFT+F+ggpCZXj1C1Yd8lm1sUMz5VH+8XQUEh9HE 1PetFSI6ilEKY09KiYGZ3qDrKOPjknZLekjcABncRunr8PcK7GMBxBdrnmtbbNr8g2II yFoQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1775473292; x=1776078092; 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=n3qsSloJn4EwnhjNA0sNUkm7nCERyoGh86KT+G38MqI=; b=O/odC7dUOWP/gwtIxWNRfCsQqAhI/jih5DNOFTH/ohfT0KhIs3PKbyjzs6VXu3OOXr rmBOH/Y31XBbWA75G8is1NTtqAUSU5s/FNFPPUCbBgEAmInjW0S4rFqdM/7kRvU+ShNu i2aIShEkRxXcbt5LPBgJj70phLQRl6g/o1g511f0MAZMxiGufFuUzwMfQd+BQYf8QaM0 dpwdgAIbI/CDhHEG6Wgu+PIXAkB8JBcJqpmqK8ftvD9Y0kBm1eRILMQcIo0XmQ7tgZ+r rIeuZKUeUtK86fCPRe/dbt/GvQJNtpaYqfEnNQSNYvHkPMbjUFAMo4baw+TobP8Z5ajg clKA== X-Forwarded-Encrypted: i=1; AJvYcCXaZA8tZZc6K5X25zwX2+2oy706Hkc8bGUYowf4Vp1miMrWFDrn/Z5s61PzK50JFk7Hv7O9zYskUOZruK4=@vger.kernel.org X-Gm-Message-State: AOJu0YzuDhuP7D7LPeb6P5iALYLLguMqAhAB7v4F8JRB/y0fkQrv+9zV GKU630zpND7Wr9WY8XNCxavBSIhxHrOoRpRhtZYbiJBiT1OLSdt+uYavZZqGGcRhw1PNjSOii1f jZpIh26w/pbrKe5huD/yBvGi//v1DY/S/v1sVMEmE8l0DiDcBZ5qMhwGsSGPReQELOAEOc0ZNsu 4= X-Gm-Gg: AeBDietUNqkKwqMiPx51cc9syj9uN/OgwjJGJWnyGi6uCsAbe/sqKriOPnajEoQ5LgF Um/5m5/mAGl+c7YEknbrIWEDH2guej0SYANFf2taBUiW6dUYhIN8n90y32rd7+wO4Icu9mhIEFv 0lb908rIDmTCIzEz3xA2No/FXLw/q+JXRvCdVXKEXody72LoDMSSM4MNjKx//qjCh5HmBr5kzQr xb/Z7cNJ+nxk3hsLGQ0AQYW17dAVfyuzr9X/6JOPfO9ZlEb5gIX1gex0d8lSqE7XuW/4+XAopOl 9uFaV40x7eAGSzd8nnLq8rafVUcUJV61opGf6686Z89iyOXsHLGXEFK6b1SoEkQiaH4Zrtri29n zcfWw4T0TIHKi79QA56jh5+57he5hDu20O+0Wc61c6T+6gxqfAF9VStU= X-Received: by 2002:a17:903:1109:b0:2b2:51ed:4524 with SMTP id d9443c01a7336-2b2817e4d3cmr113579515ad.43.1775473291572; Mon, 06 Apr 2026 04:01:31 -0700 (PDT) X-Received: by 2002:a17:903:1109:b0:2b2:51ed:4524 with SMTP id d9443c01a7336-2b2817e4d3cmr113579055ad.43.1775473290903; Mon, 06 Apr 2026 04:01:30 -0700 (PDT) Received: from hu-swatagar-hyd.qualcomm.com ([202.46.23.25]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-2b27475bc2asm141696075ad.19.2026.04.06.04.01.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 Apr 2026 04:01:30 -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 v8 2/2] arm64: dts: qcom: lemans-evk: Enable secondary USB controller in host mode Date: Mon, 6 Apr 2026 16:31:13 +0530 Message-Id: <20260406110113.1709886-3-swati.agarwal@oss.qualcomm.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20260406110113.1709886-1-swati.agarwal@oss.qualcomm.com> References: <20260406110113.1709886-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-ORIG-GUID: Hmbvhtl2SDtg_1z1E8RPmoIZJCljgaTk X-Authority-Analysis: v=2.4 cv=JZ2xbEKV c=1 sm=1 tr=0 ts=69d3928c cx=c_pps a=JL+w9abYAAE89/QcEU+0QA==:117 a=ZePRamnt/+rB5gQjfz0u9A==:17 a=IkcTkHD0fZMA:10 a=A5OVakUREuEA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=_K5XuSEh1TEqbUxoQ0s3:22 a=EUspDBNiAAAA:8 a=6A85_hAfsEMDmSNDHIoA:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=324X-CrmTo6CU4MGRt3R:22 X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwNDA2MDEwOCBTYWx0ZWRfX6Ak0+ER/2Hgh yobwEyjFDTt6fnaZgc6HadkAuGw2RNhsRo2nH9MYe1v+twwd1oFxyHvitZ/KTYGRQP8BtpSWHvW JSglyQ3VCUOvYKxoXoQWYWDr9oG+fxrDxlEU0M4ZAo967H05D0tbKgoJHVRkk6XOW6slFJUcgJk C+u/vjzUIKZVYDc6AcmssuIFzy4W9ftF/lE7aQqEm9bfyv+U7RrMvQRKM3a65pWWu21NVNQR2Gw zmuAD6gvUbH7EpG6hmnjvFQ02NOn3TNJN35qxn/KeJWe1Bw2YYNwX0fu3YVzvOmyoP9Dc01Cbzb JTLZszQd5yfpWCshCyiLc8p7SDTrwVDzWDFerDOAS87nzYzeSJYj3s1JIbXqwt9m1dWZ6lStDob IJGZHebIetyhYVL2dN/549P4EFa6sGcnF2iT9O3t9Ym5huYKkv2TR+2c+N6zOLxSlwrjgTZ1BkC oXg8BwkrhLt7gcHcuxA== X-Proofpoint-GUID: Hmbvhtl2SDtg_1z1E8RPmoIZJCljgaTk 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-06_02,2026-04-03_01,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 impostorscore=0 clxscore=1015 malwarescore=0 suspectscore=0 adultscore=0 priorityscore=1501 lowpriorityscore=0 spamscore=0 bulkscore=0 phishscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2603050001 definitions=main-2604060108 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 | 168 ++++++++++++++++++++++++ 1 file changed, 168 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/lemans-evk.dts b/arch/arm64/boot/dts/= qcom/lemans-evk.dts index 522d407c9925..1e9a7a6ea001 100644 --- a/arch/arm64/boot/dts/qcom/lemans-evk.dts +++ b/arch/arm64/boot/dts/qcom/lemans-evk.dts @@ -69,6 +69,37 @@ 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>; + }; + + }; + }; + }; + connector-2 { compatible =3D "gpio-usb-b-connector", "usb-b-connector"; label =3D "micro-USB"; @@ -161,6 +192,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 +605,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 +822,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 +1030,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 +1094,87 @@ &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-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@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