From nobody Mon Apr 6 21:12:59 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 E1C8F33D6F0 for ; Wed, 18 Mar 2026 04:07:39 +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=1773806861; cv=none; b=hMdeUYJD7nka8SNZEsJk4OikR/NUNOFhUUAS/0NHLmJ9Rp00ozchZsomnQDmi+DaXDLRCwPilKUCF47Ililhcerje/AwTuCmAE+hlAjtteC2x6W7Wtq/7bbVLka2mQcui10yRWZF6K6fSUvvdco+qTnIMuu1PvAevPZGSkAollc= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773806861; c=relaxed/simple; bh=6DU4UQ9ScKhARkBm50wkN+b9dooeJgsguNKbBpvWJKI=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version:Content-Type; b=Iqz9EAIpLefsfHm8wfLrllrzCSFOqr9HyEYfE/7DSxI6KK6Ze+BC0Zi1dlzrhIpb+2q+1vpJKt4w2Lh7P3pACronsrKKY0aEFY6bUt9Qs6qvRSt4l2Ykh1Idzxc04LTwtAi4M87KbChGvHkgmLH2ApDynmLGGo38iNNTNh952Ms= 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=AS2tGkR1; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b=Y75AHAS8; 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="AS2tGkR1"; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b="Y75AHAS8" Received: from pps.filterd (m0279871.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 62I2wO5a1370762 for ; Wed, 18 Mar 2026 04:07:38 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= MDx6sQmbBnt8wMQUZL8tdA9fS+H2euRnThvVHJhlQZE=; b=AS2tGkR1G5tgKOaj 7YkfhhK/ihsop2/TmG8C5P0uwszdlvqYqfENHKXAC1pUmtKas5ugsuPuJdvuKVJR 49v+TQ+Um3VlQKaUzu/3rMmRA2cSgUJK6bSuYdMYsRV4WD/XTXgM0L/tfU9X3Wby hdcdCXqR96k7Ni/OBegm1dQAA4GYh2uUHng6pg6GqqXBCM98SZ1LAESlzCxJQw0O XGUkHi3XBA98pPLhYkNCwApDlmWAjSKcePcCHtJ7boS5Pp4fakqNIa6QA0dZvoHe ssU7V+/8CuWmCuuQ9T3q3gJnl3E6Wp9WhjL2+al8CSKw7JZMyR1bqpvFQJaZDI73 NTBdPQ== 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 4cy7he35kf-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Wed, 18 Mar 2026 04:07:38 +0000 (GMT) Received: by mail-pl1-f199.google.com with SMTP id d9443c01a7336-2b064f043adso20924505ad.0 for ; Tue, 17 Mar 2026 21:07:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1773806858; x=1774411658; 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=MDx6sQmbBnt8wMQUZL8tdA9fS+H2euRnThvVHJhlQZE=; b=Y75AHAS86lvJA+ZDC82FRBc7SwUWYGmGe+Koq4CHC3DHGT864cQrw61YV3iFgrA4dN C8Ghm7qB0HvL4SCprHqUs16bRhoTzw5HGPhLtVKJtWPKdc9yJZK5G8KmWlJtfWPQFfDP obAPYVAD29jM2p5AqwBF4l71HfXJ4b0xk0srM60D03lnmAMdfMRFAWTjQl/sjr/lwDiB YcEowrvrYjP/Vh7SEi3oTIINGhOAvgjEs4ChfdE0cnC2hRIDWbDeYTyMWkWtIzLd9nk7 nM1m6nnelLAz7zyYrXzuyOJHUJpoQw6lWxHPsc+rJi/xvON+MC24EDRtDK0b+5YsuyjH m9RA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1773806858; x=1774411658; 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=MDx6sQmbBnt8wMQUZL8tdA9fS+H2euRnThvVHJhlQZE=; b=cpDJgxbHv4iRXjtBV25SUonSHUO5ou6IPxpO2l1y9x5pq/cdj1Un7InGf5c07wmB0E sQYo2ZvpfIJLqmqmxpVrR51vI/v3PVCeGe8ErWo+rn4K6LDdT4IeaKw/Ejd6ni7wKb/G eM/DYGhBPdr6Zgd2BSoQH4sPDs4YySeh66VtiTk0x389mtWeh/9wpTv9bdXGauiOv8aU 8QiI8f+gSNxH8Zo6b1vtT77Bc3tpL5fxVzTqOL2je9ImQc67c7i3GGdfzRhjJKLE47D5 KyP5mzfMzU3a2XFc5Ri85mCiEN59nHzWd8s69X88fludJs1Q7MgQzGviYYuPa2cmkPZx rS4Q== X-Forwarded-Encrypted: i=1; AJvYcCVilA6gvJD/C/wXr5H45y2ukoUB6q2MakW+wVKwTr4raNZ24RSdfdBjPVeA8m8qvDPjcY/ln9BqBdYC8DE=@vger.kernel.org X-Gm-Message-State: AOJu0YxnY2pJsTkVatPhiKKfjhsJMwy3/5gWJ2HCHdohsCzu/ZV5yX17 edtOCtIX/OwgEy8dI4GZKxuu98n7cgZqvpPWUfrIDBWqoYmW3Lnl8MHC22/NLDAjbgz8LiH3JuK yB//kixrIZDwppMBAikzdqkWKBuVhrXMbgk+rhbt2f6TU1rlfrRWAthFxXdjhKCyHyY4= X-Gm-Gg: ATEYQzzyCAs6Kg5l0yHsH+6Bo0AQCiibp3xbY2uE9+XrNL2RwOGI/Xdh4uik+1U8JWY YdXNoTKOOO3kJNzBihu6hCDAVQvRCB7vnwbUXu2f+jKvGPrLTaNk3liafvE0EPGfuMIuU+Hb10O hdPHPmSHSJGFAidgK3fw0GoFmm5hvGLAoeVZtFRV095atdaw4gPMFUI27ooOcHPEFra5kBxNEdf HkHlsdDd54DxNZluf/SEXC7Exd58Q8K4Rt6Zn6CoBLxhLtH+Vwmith6IfQpheFvWhCaj1wA1XQK hSBQBmp2BcS4FReKXmvGFeXjm+BFjX+r+edKuC4xd1PfQQfmQhoFLlbJPJxPEiJtHyFzAofoSoE CRsMpprGle9pmJffpy18u1Zw= X-Received: by 2002:a17:903:2445:b0:2b0:51f6:d468 with SMTP id d9443c01a7336-2b06e35f408mr19809205ad.17.1773806855419; Tue, 17 Mar 2026 21:07:35 -0700 (PDT) X-Received: by 2002:a17:903:2445:b0:2b0:51f6:d468 with SMTP id d9443c01a7336-2b06e35f408mr19808685ad.17.1773806854848; Tue, 17 Mar 2026 21:07:34 -0700 (PDT) Received: from hu-swatagar-hyd.qualcomm.com ([202.46.23.25]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-2b06e5f12cesm10243425ad.41.2026.03.17.21.07.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Mar 2026 21:07:34 -0700 (PDT) From: Swati Agarwal To: Greg Kroah-Hartman , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Icenowy Zheng , Matthias Kaehlcke , Mike Looijmans , Pin-yen Lin , Chaoyi Chen , =?UTF-8?q?J=20=2E=20Neusch=C3=A4fer?= , Jens Glathe , 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 v6 4/4] arm64: dts: qcom: lemans-evk: Enable secondary USB controller in host mode Date: Wed, 18 Mar 2026 09:36:44 +0530 Message-Id: <20260318040644.3591478-5-swati.agarwal@oss.qualcomm.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20260318040644.3591478-1-swati.agarwal@oss.qualcomm.com> References: <20260318040644.3591478-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: NOHzSquY9HHnbVnJUTNEcvAt9K_4J7V- X-Proofpoint-ORIG-GUID: NOHzSquY9HHnbVnJUTNEcvAt9K_4J7V- X-Authority-Analysis: v=2.4 cv=QsVTHFyd c=1 sm=1 tr=0 ts=69ba250a cx=c_pps a=JL+w9abYAAE89/QcEU+0QA==:117 a=ZePRamnt/+rB5gQjfz0u9A==:17 a=IkcTkHD0fZMA:10 a=Yq5XynenixoA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=3WHJM1ZQz_JShphwDgj5:22 a=EUspDBNiAAAA:8 a=6A85_hAfsEMDmSNDHIoA:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=324X-CrmTo6CU4MGRt3R:22 X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwMzE4MDAzMiBTYWx0ZWRfX3J9qE/tRX+k3 6wVUWqkGiI4t0JV2i7zfJeOY8JNgzLCfR5j7N38n5vWkYZeYKe8XDPBxffP23KLh0ISfJxJfXFT iUHyVHiIubVCMwomftETn0QaCqfdJTij5+cCjSklSNQpoT79wXykwHlq/OhZ7wLMJMT0oIdxPxx FdNI0CJSCKrg8barVOmr8Zobc9+5TeaHYMkUxcq1bZzm+0QQi5chHoCNrwwp21L/fR5qJrm1fdx u4rns0xZAMKL3/VajRUMTogOclJqPV1QVrILQw04YIXcUTuOyuDllE+PmtUXUW49NXIi+1RPBVC Kdy6lxwU4wtunPU5X4FuDma9PhhRNI3tDpdnmlPxow4sJUUGRMKZv3uq4XmgnHmci5YJGfhd1f/ TaSHJFZKrrkVfKH/6j0zaL/hinKX6DbBOYoYYLnNkoAHO0daQYKtcLvyHxCEYdiaN7X4UkadDGR hizPQ3Kj5d+RKiaZZLA== 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-03-17_05,2026-03-17_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 suspectscore=0 bulkscore=0 priorityscore=1501 spamscore=0 adultscore=0 clxscore=1015 lowpriorityscore=0 malwarescore=0 impostorscore=0 phishscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2603050001 definitions=main-2603180032 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 | 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 2d7eace9d7ac..7c2dcf97bdcf 100644 --- a/arch/arm64/boot/dts/qcom/lemans-evk.dts +++ b/arch/arm64/boot/dts/qcom/lemans-evk.dts @@ -87,6 +87,44 @@ usb2_con_hs_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_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 { + }; + }; + }; + }; + edp0-connector { compatible =3D "dp-connector"; label =3D "EDP0"; @@ -169,6 +207,16 @@ usb2_vbus: regulator-usb2-vbus { 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 @@ -564,6 +612,40 @@ 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 { @@ -755,6 +837,14 @@ usb2_id: usb2-id-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 { @@ -948,6 +1038,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 { @@ -1018,6 +1114,118 @@ &usb_2_hsphy { 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"; +}; + &xo_board_clk { clock-frequency =3D <38400000>; }; --=20 2.34.1