From nobody Tue Feb 10 04:03:26 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 BFD7FE55C for ; Thu, 22 Jan 2026 09:29:35 +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=1769074178; cv=none; b=QjjzfDcGEqmKQmVx3UIMH8wgbXmGw9T1LSBgWvfNmb5BErov005AR//6dbGWZy8+gHresUJ+oTB/XjbuO5Rxt+fQrb3t6kYSYMGmGo/6k58qW/SP3bJ8c+3Nhv+Esths3wSuL8Btoa1d8msyVESa/w2rNIEGoH9tnS0vHcGqRXc= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769074178; c=relaxed/simple; bh=oRKZqK1FP6N75hwnAoVdkW2YX4a2y1ykNd3us2G+tzY=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=UsCAcSLgO0G32HQk6jK8gW1AIk5qhHo3NhMYUeH/2bkx2b7z/V6tRme2XLMwXJW9AFvcV3srpJuPne4hIIF9pdoFXLwaWfR573xXdQdNkAteaRYuEevNYVpVDpA+88C82SelO/xUrclb/PsZds7OKd6lK+j2XizFdS4mG7rL+Xc= 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=laf/QqBR; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b=ay0Vct1R; 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="laf/QqBR"; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b="ay0Vct1R" 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 60M7n6dI107348 for ; Thu, 22 Jan 2026 09:29:34 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:date:from:in-reply-to:message-id :mime-version:references:subject:to; s=qcppdkim1; bh=p5yf7jdT8vi mfZOvvscm/Z1IVEImEwdEsdOy6TjF2MI=; b=laf/QqBRpwoGrYtm1b6AfeYRp0A l3hH8Oq7RU7P+33e3oibrT7J0f7nebzrmM8BzfG2vixwUXeKqDwsR4nvJUYoQ8bi lNSinvPIq8/+qb5cdwSGJ8YuhzfAD2L6845vJ7ySsGAXrv2bbhK+z0xyUTOB7G+J ybyW7VtjhS9y/c1xgZluyF4irWvyirkjvkL3Wh2Ok1Y/d1Ig1gZqUjJU8ns8EJ1z UexnPB3YPhN1IPH3RhfayEJusn9mp7T29d9nVku1JEOiJy4rK1nGeUCWFoz+FOMf q0bb4sHQwHOy2bH3/3cisnhnrCfUllxQSmgzZbTZIDiYq+seQhlXgljioew== Received: from mail-pl1-f197.google.com (mail-pl1-f197.google.com [209.85.214.197]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4bu6pgsvr4-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Thu, 22 Jan 2026 09:29:34 +0000 (GMT) Received: by mail-pl1-f197.google.com with SMTP id d9443c01a7336-29f1f79d6afso8531145ad.0 for ; Thu, 22 Jan 2026 01:29:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1769074173; x=1769678973; 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=p5yf7jdT8vimfZOvvscm/Z1IVEImEwdEsdOy6TjF2MI=; b=ay0Vct1RKIf+tfprFXvk+5TyrmxIgbByf+DEvG68G5TnOEDU4l1QMLhvM0RkzR3R6Q jhIcFdqGJ9tKHk1csb//ZX/2qKmCINQPLDiFbXwXb4aHRO2fbLRMNElgjss1ryPgPobi LxFsluZ3Fo6HU6q504JLseX4d/s2hnvF0QWEuLu2bs/k1ayeTI30bXPvQrbrn4KXMRCL C4SXqzTCz9zGavGLoEY1txXeNNosvJsZwkZ+jFPowsvMI3PQhHdEXrWviMi5809Jh+fK sV5MHBV/0qceulO2fEyfUzhoztUcHJALNtDjrzpVX56NaJVhkk/fKxoOaa1/i8sEQBtn orxw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1769074173; x=1769678973; 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=p5yf7jdT8vimfZOvvscm/Z1IVEImEwdEsdOy6TjF2MI=; b=b52oI2eXBZ6Z6YuyiQwoja/wbs/fyNjBEXF+sSi7VHjVmKEfUXxxsUpRt9ttSVTM5E DihnD5wY+lAuPEAIC4gqos9QSRxDDQqbugHGgHghlULjQd4qrqJOe5ajDLz2JqV4OVfC Oe3QaqqtQcvGfrJKjy8ayJCIrFOa2obqEIrE49dcBkpycrFz5SlA+w/zKhwxWfLtiQuv 340hbVEepJ0CuJVdCskFwMuVHTD6b0Vd3QKcvGoDn23pe8lxhJZrTayxpZOhZ9ty83vE Z/NK2rqSyZCvCNP3WiZkVnk6xZ6HQiaK9P+eEeevNxG1z6BvjaggGD2LYE9v11BFGjkw Dl5A== X-Forwarded-Encrypted: i=1; AJvYcCUN5czwkswx88bYxzTfZtSpPpEOEW6mdjLfEvzNLEec0n2PCBitB6KdoKWBbaz8h4yfQlItEQMMskua5Hc=@vger.kernel.org X-Gm-Message-State: AOJu0Yw+dgVA1W9QLkoBHjoyN2OTF5Q8MiEmN3O4TAWiNhnEZ5xtjmZI FqX/8wBe0oVvs0Jw7FrKq8Gpj4R1MIINt/u/OZ949ua0CpwDi+3yvcTabNPT7vuZkkt/G2kdojC A2spq0peX45mVFdQyxR3c6fgF1AzMbxf1FdknThk8hu5hrB7etgn00CwWj8ru5ZVjx+A= X-Gm-Gg: AZuq6aK5R9i73i4aMLepi2uoh1c/gB02gYwEX4RwzayRboSeb2YlN3aIVIHsbqXr6y7 qiSmo7mncsBPXDz2z/Y2uEXEqaQpxMU1jCo5lYmUiF8OmSpxSMLpMbHY7ULvrSX6TbxzrrzgcHp osOyoUxtDZk3xviBP3gcdX+Zj79lXI2UFaGIL67NCX7OwEjf4Hg2GYpxt/0Mb2wniVeAzf1mqmz RWQTihmLFWNMOoaZOYTPklyTk08C6PY+X7YlUgmS6ArP3fyIADhJWkdAI4qIWLVpQofDRfch3p1 Z8FvJBKoQ5ZgNxSr5dqvcWMRBNksH+A+tN16l5WSVsrxsXKku62MjHKE7+7S/5gpObdp4RVnyp+ bQgwK6KNFroRMI+ma9sC2UxOUXa530oDQ9zVJd9QxU7U= X-Received: by 2002:a17:903:1105:b0:2a1:3ee7:cc7a with SMTP id d9443c01a7336-2a7188896ddmr194997315ad.17.1769074173338; Thu, 22 Jan 2026 01:29:33 -0800 (PST) X-Received: by 2002:a17:903:1105:b0:2a1:3ee7:cc7a with SMTP id d9443c01a7336-2a7188896ddmr194997015ad.17.1769074172772; Thu, 22 Jan 2026 01:29:32 -0800 (PST) Received: from hu-swatagar-hyd.qualcomm.com ([202.46.23.25]) by smtp.gmail.com with ESMTPSA id 41be03b00d2f7-c5edf355ca7sm17395247a12.27.2026.01.22.01.29.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Jan 2026 01:29:32 -0800 (PST) From: Swati Agarwal To: Greg Kroah-Hartman , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Icenowy Zheng , Matthias Kaehlcke , Mike Looijmans , Stephen Boyd , Dmitry Baryshkov , Jens Glathe , Chaoyi Chen , =?UTF-8?q?J=20=2E=20Neusch=C3=A4fer?= , Pin-yen Lin , Catalin Popescu , Bjorn Andersson , Konrad Dybcio Cc: linux-usb@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, Swati Agarwal Subject: [PATCH v5 4/4] arm64: dts: qcom: lemans-evk: Enable secondary USB controller in host mode Date: Thu, 22 Jan 2026 14:58:52 +0530 Message-Id: <20260122092852.887624-5-swati.agarwal@oss.qualcomm.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20260122092852.887624-1-swati.agarwal@oss.qualcomm.com> References: <20260122092852.887624-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-Transfer-Encoding: quoted-printable X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwMTIyMDA2NCBTYWx0ZWRfX4xDneYVi6JiJ Vd0Wb6Wtz6ZwmJT37eG1MT5199iec5t9my6c0l89Ub1T3II8KwyGY0I8D/9Lqdo0Yhak6XouG34 ofQMa3fuRWOxhZXmE6+SMTJsCzbb3xxhM6IMrIBiol6KduTJ6N2zliMm0QQc5PXtMxhWT+0Q+9l /xqDNpe+gxFDVOEU9Uf8cRv8wLCwbfM5dRcqwCE4qfasTMYX76LuAfhKwLGIq2sG6CBLUxTrmJv J6wOv1mxqJ3MSPSkAps4d5S0wt3fhfw07yb91y3AlVz74QQL5umcFEs/Plx/WIKHBgBbOql8F1E p6HtDVOSquihqXLhivfGpaSZ+0+jV7/lPn2Gp8ZwjFzcpKc0OR9cBg9HWOF28hl6Ne9bowbWBTV d9AvYL5aKCZ4MlJIF0ab7hMFq/jj27YMM72cXjz3TZHwLeYNH/clI5Ao2XWhDLzPM5APtRF8Sxr OLun1ZGhrYWRJbikSbg== X-Authority-Analysis: v=2.4 cv=OZGVzxTY c=1 sm=1 tr=0 ts=6971edfe cx=c_pps a=cmESyDAEBpBGqyK7t0alAg==:117 a=ZePRamnt/+rB5gQjfz0u9A==:17 a=vUbySO9Y5rIA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=EUspDBNiAAAA:8 a=6A85_hAfsEMDmSNDHIoA:9 a=1OuFwYUASf3TG4hYMiVC:22 X-Proofpoint-ORIG-GUID: eQrNWrdS2cFDiJF9RKf_IotoboNriwDa X-Proofpoint-GUID: eQrNWrdS2cFDiJF9RKf_IotoboNriwDa X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1121,Hydra:6.1.20,FMLib:17.12.100.49 definitions=2026-01-21_04,2026-01-20_01,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 bulkscore=0 lowpriorityscore=0 malwarescore=0 impostorscore=0 adultscore=0 suspectscore=0 clxscore=1015 phishscore=0 spamscore=0 priorityscore=1501 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2601150000 definitions=main-2601220064 Content-Type: text/plain; charset="utf-8" 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 --- 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 { }; }; =20 + connector-1 { + compatible =3D "usb-c-connector"; + label =3D "USB1-Type-C"; + data-role =3D "host"; + power-role =3D "source"; + + vbus-supply =3D <&vbus_supply_regulator_1>; + + ports { + #address-cells =3D <1>; + #size-cells =3D <0>; + + port@0 { + reg =3D <0>; + + usb1_con_ss_ep: endpoint { + remote-endpoint =3D <&hd3ss3220_1_in_ep>; + }; + }; + + port@1 { + reg =3D <1>; + + usb1_hs_in: endpoint { + remote-endpoint =3D <&usb_hub_2_1>; + }; + + }; + + port@2 { + reg =3D <2>; + + usb1_ss_in: endpoint { + remote-endpoint =3D <&usb_hub_3_1>; + }; + }; + }; + }; + edp0-connector { compatible =3D "dp-connector"; label =3D "EDP0"; @@ -141,6 +180,16 @@ vbus_supply_regulator_0: regulator-vbus-supply-0 { enable-active-high; }; =20 + vbus_supply_regulator_1: regulator-vbus-supply-1 { + compatible =3D "regulator-fixed"; + regulator-name =3D "vbus_supply_1"; + gpio =3D <&expander1 3 GPIO_ACTIVE_HIGH>; + regulator-min-microvolt =3D <5000000>; + regulator-max-microvolt =3D <5000000>; + regulator-boot-on; + enable-active-high; + }; + vmmc_sdc: regulator-vmmc-sdc { compatible =3D "regulator-fixed"; =20 @@ -536,6 +585,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 { + }; + }; + }; + }; + }; =20 &i2c18 { @@ -699,6 +781,14 @@ usb0_intr_state: usb0-intr-state { bias-pull-up; power-source =3D <0>; }; + + usb1_intr: usb1-intr-state { + pins =3D "gpio6"; + function =3D "normal"; + input-enable; + bias-pull-up; + power-source =3D <0>; + }; }; =20 &qup_i2c19_default { @@ -868,6 +958,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 &uart10 { @@ -922,6 +1018,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_hs_in>; + }; + }; + + /* + * 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 <&usb1_ss_in>; + }; + }; + + 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"; +}; + &xo_board_clk { clock-frequency =3D <38400000>; }; --=20 2.34.1