From nobody Thu Apr 2 14:08:21 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 DC8413803C2 for ; Tue, 10 Feb 2026 14:39:40 +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=1770734383; cv=none; b=YmUsm3Muoc0wStslOBBg6uad4lT7DXRPLlNAjoBbEN1r3eB+2OhEPiwo541h6uIvrB8wpMFTR9H70t0+gei+A+C5CdAowIlrHL5/xrCYj/qNmq8bo3cP50dSdRZPDwc8EKTDWb31obbMLzDC5jvfheO6bAkdnuzka7WSgmE7L/g= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770734383; c=relaxed/simple; bh=FDQeQ9WisaxkObANUnG/O4WPbixKOxhrfhMkTcDTNvE=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=oyaBAbgqM35bRw9izqgnjfswAp/LR5iI41RqnGWP0V+fszEjocxFfP8ZFt8vPL6TAF0P0DJDQ/qtJEhxJ952Z+FiAB/bS6kfsd/iLL9cLfWZ3Xn/dwyNxnehYh6+qh2Tt4v0qPFr87lf5C274HQBRAbKigCrzWtnekkaow1BZDY= 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=QRG5IozK; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b=hnVKZLYv; 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="QRG5IozK"; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b="hnVKZLYv" Received: from pps.filterd (m0279869.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 61AEHp5Y3919346 for ; Tue, 10 Feb 2026 14:39:39 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:date:from:message-id:mime-version :subject:to; s=qcppdkim1; bh=fWOSmsmobLjsdZNFxDY70HSsDuyWa+G+hpu szEf82Eg=; b=QRG5IozK1LMk65XxtIke9b0qfNqPnq29sw53ALNziLlGYgFS+Ae wT6xbKw0l8GB57EqGXXWcM4KeIVDvNJCTr9PZjh2TiW9snv0droq91uwcn1s4Ss2 Zt/K20IdhPG1+8ROKosIju2ELQShYKsXraTuPlERO30mv39fTul3PPYACOa+A8k5 tcH28f0irQLX5nM8Rz/sJbGDt7Qom+sv9AJrMdW0b9uxvwDmRCyEUXvKiBNnmRIR hdYyaQQuoBuk6cJ6Xx/s9KSwbvnvdYPHruztVo4fOYcbjn7zf68pZ3nhoKv7jCGI fqp9oz2fHQiza7kN4qmRMbIaRPeA1eLOO8g== Received: from mail-pj1-f72.google.com (mail-pj1-f72.google.com [209.85.216.72]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4c86akg2m5-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Tue, 10 Feb 2026 14:39:39 +0000 (GMT) Received: by mail-pj1-f72.google.com with SMTP id 98e67ed59e1d1-352de7a89e1so975190a91.1 for ; Tue, 10 Feb 2026 06:39:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1770734379; x=1771339179; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=fWOSmsmobLjsdZNFxDY70HSsDuyWa+G+hpuszEf82Eg=; b=hnVKZLYvPx3uY4rzID5m6DzLajewYCpS5s8sDfPs+R0CvfFKqvgnQhh9htKVU5W6hJ dZoBq/c/ACKs8z6g9LAFLl7u1UONJ9MuLLs67jKgKkk+5x7gb0GnRw02u0ll4M/1u/dY 4sQ+Lh/eeM6FzYhhwvX5i0OiPXC9yrKy2y8AqkUb4Y3MEU5k+S5MCXN1xEUzIeCeYAWh sNUv3dJUXHunSVFSispX7JOaPn9nk+s4Ek+RwbDcKvU0KOVuUFP8J+S4dXXCMdtsmmZo 2/MTxMJVqbNkIgN0FOTb3VRYbXQAT02CL9BeUzEHOS/YIRfUA/y5OkQxF1NluW6csMUj 3Xpg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1770734379; x=1771339179; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=fWOSmsmobLjsdZNFxDY70HSsDuyWa+G+hpuszEf82Eg=; b=p1Ib2J5JDfzXpamr6Q6UYTJ3FH8uOrQaf2NyVVJrnMjIfljApMvcpGf1k1++v4DvFx oHX8PdLsPriytlI4Bi+iBZ45KZVbY/FVQ7pZy6gHjI1IRSwTHcSXJGkknQrX8zEasLpy EFzNCnbnhgevL2PYzacn/tLCKXXO7O6ctkvTu8z+iPPGjnQUUlMth/EK60dFbIB3QZW9 u5FREkfz3qM+S4yAG23AcUHOCkMzO4ORVcU0IxC7+RhWCJGRp623mgrZR76uH3H0YZNa 8mLLSrHwjG5i9XDBXDnd1ICDlkni0tWR0/UGBuN9QBNSp8+8kvubkBJC6bkmi6hSRHyj z1ZQ== X-Forwarded-Encrypted: i=1; AJvYcCU7kd8o1KWoKu40I/6jhP87/IDa9jfIMpwbZcdte5vr1pTFU9cB8nEMQ5v+A704wl9awmPU6KYeI/5pH8E=@vger.kernel.org X-Gm-Message-State: AOJu0YxO5mAclgs1SpRHK348/quMiL34HX0J7qB/+ZHNwlwfItQqA9mF E1iIRPnIlEh1HQpktx585Lp+1CufJpcLdvExrEfHexkxVFFB05nMTU+ZoxcMpodC2LnBMndvb+2 pTn4v7h+1O53YX5PWkmxY4ppzy5A5J0KWP8rOLi6yK+bYGnzw9sLP/tzPoPTi9V5JpF4= X-Gm-Gg: AZuq6aLdC77RI42YtngS8xw9ZOIKNgjIVd3WdKuYO4/2VqZQvDAeVGBvtHkbhAjt1lY 4gbf/tZZm5Zm7zS5TJi4SiR33PF2VhVWVALY+V/M2xuotfUSUYUYEYuMx6c7qdwf4TESNUqoRL4 VwxsCXKVjgyrM7XrjaKHP90v2gfM3/qdDFXggpl2nOIayCOQhr+xspMtdxNjAVGF35W8X4SLRgD A3MCZVJi6/piieVKuOXBmE8y78ahVOFqCiYbLWsDznG4b28i1s1WBEF8QJmWdlfo+jtEvYtIUsN owPBUn6/MMhpAWbu5WA5nWujFpMBUG/x1OCnA+Ri57s7PpOC7tTbXrhkGa5bCMcoHPDuriPXeHU ddVcriNM5kO/vZ/IHxKHdm4lioaSVDZpsS8IV4vE0wHSj5Td6wA== X-Received: by 2002:a17:90b:2e90:b0:356:4ea0:e9e2 with SMTP id 98e67ed59e1d1-3564ea0fcb0mr4687522a91.34.1770734378638; Tue, 10 Feb 2026 06:39:38 -0800 (PST) X-Received: by 2002:a17:90b:2e90:b0:356:4ea0:e9e2 with SMTP id 98e67ed59e1d1-3564ea0fcb0mr4687486a91.34.1770734378154; Tue, 10 Feb 2026 06:39:38 -0800 (PST) Received: from hu-akakum-hyd.qualcomm.com ([202.46.23.25]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-35662e531desm3153057a91.2.2026.02.10.06.39.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Feb 2026 06:39:37 -0800 (PST) From: Akash Kumar To: Greg Kroah-Hartman , Bjorn Andersson , Konrad Dybcio , Rob Herring , Dmitry Baryshkov , Krzysztof Kozlowski , Conor Dooley Cc: linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org Subject: [PATCH] arm64: dts: qcom: qcs6490-rb3gen2: Enable USB2 controller Micro-USB OTG Date: Tue, 10 Feb 2026 20:09:26 +0530 Message-ID: <20260210143931.3324647-1-akash.kumar@oss.qualcomm.com> X-Mailer: git-send-email 2.43.0 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-Authority-Analysis: v=2.4 cv=HI7O14tv c=1 sm=1 tr=0 ts=698b432b cx=c_pps a=RP+M6JBNLl+fLTcSJhASfg==:117 a=ZePRamnt/+rB5gQjfz0u9A==:17 a=HzLeVaNsDn8A:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=Mpw57Om8IfrbqaoTuvik:22 a=GgsMoib0sEa3-_RKJdDe:22 a=EUspDBNiAAAA:8 a=nDjxtR87dJjKcGfwTHQA:9 a=iS9zxrgQBfv6-_F4QbHw:22 X-Proofpoint-GUID: 4xF33wb4FQUyYcffNhqXqVahHUvmaz-L X-Proofpoint-ORIG-GUID: 4xF33wb4FQUyYcffNhqXqVahHUvmaz-L X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwMjEwMDEyMyBTYWx0ZWRfX3Hk4MlIzT+sU 0JTEPD30uZWgPTf9u15u5T0CK56y7WolzcL8qND+Pi5EScMnr6zg6J/2YWrSaCnKqP1IlRogj3/ EN73GAhr9NOkh+pxn7A3bIZsye2V07r7UI7Jti+MF7jFTetue5HExAs+RXkd9df4W6xpXt/mznr c6LPfBGcf6c7NagCqpFzYjTC51IqP5MpDWMwen0G7vi+xvKQzP8TDhJysHAAtlivVFn0SqrblBE EB+OSUXboZPulVrmmgXUJxu182pGZTNfLXZftbcT0dtVQFene0o4jEFLrZVCr3JL7P5NlF8/ZII 2lke1UZfzR0vhM94p/kR+oyRP2681YV9jkXzz+KLpKIPdJ0TtdZjjvrUW6SC/ifruzWxsD1/e4y RmOwzg6zCuAGEVKiliuCUEQbzeZ3upko74q0ChqnzHPdnmtZglSrNeiSlfQsKmWvG9Uj1qnoKg6 /EsgrbTNXOh2bAwWeng== X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1121,Hydra:6.1.51,FMLib:17.12.100.49 definitions=2026-02-10_01,2026-02-10_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 priorityscore=1501 lowpriorityscore=0 adultscore=0 suspectscore=0 bulkscore=0 clxscore=1011 impostorscore=0 malwarescore=0 phishscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2601150000 definitions=main-2602100123 Content-Type: text/plain; charset="utf-8" Enable the secondary USB controller (USB2) and its High-Speed PHY to support OTG functionality via a Micro-USB connector. Define a dedicated 'usb2-connector' node using the 'gpio-usb-b-connector' compatible to handle ID and VBUS detection. Link this connector to the DWC3 controller via OF graph ports to satisfy schema requirements and enable role switching. Specific hardware configuration: - ID pin: TLMM 61 - VBUS detection: PM7325 GPIO 9 - VBUS supply: Fixed regulator controlled by TLMM 63 - Configure &usb_2 in OTG mode with role switching enabled. - Define a gpio-usb-b-connector node for Micro-USB support, mapping the ID pin to TLMM 61 and VBUS detection to PM7325 GPIO 9. - Add the 'vdd_micro_usb_vbus' fixed regulator (controlled by TLMM 63) to supply VBUS to the connector. - Add the 'usb2_id_detect' pinctrl state to configure GPIO 61 for ID detection. - Enable &usb_2_hsphy and populate necessary voltage supplies (VDDA PLL, VDDA 1.8V, VDDA 3.3V). Signed-off-by: Akash Kumar --- arch/arm64/boot/dts/qcom/qcs6490-rb3gen2.dts | 68 ++++++++++++++++++++ 1 file changed, 68 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/qcs6490-rb3gen2.dts b/arch/arm64/boot= /dts/qcom/qcs6490-rb3gen2.dts index f29a352b0288..ee472d8b2db1 100644 --- a/arch/arm64/boot/dts/qcom/qcs6490-rb3gen2.dts +++ b/arch/arm64/boot/dts/qcom/qcs6490-rb3gen2.dts @@ -217,6 +217,16 @@ pmic_glink_sbu_in: endpoint { }; }; =20 + vdd_micro_usb_vbus: regulator-micro-usb-vbus { + compatible =3D "regulator-fixed"; + regulator-name =3D "MICRO_USB_VBUS"; + gpio =3D <&tlmm 63 GPIO_ACTIVE_HIGH>; + regulator-min-microvolt =3D <5000000>; + regulator-max-microvolt =3D <5000000>; + regulator-boot-on; + enable-active-high; + }; + vph_pwr: regulator-vph-pwr { compatible =3D "regulator-fixed"; regulator-name =3D "vph_pwr"; @@ -262,6 +272,30 @@ active-config0 { }; }; =20 + usb2-connector { + compatible =3D "gpio-usb-b-connector", + "usb-b-connector"; + label =3D "micro-USB"; + type =3D "micro"; + id-gpios =3D <&tlmm 61 GPIO_ACTIVE_HIGH>; + vbus-gpios =3D <&pm7325_gpios 9 GPIO_ACTIVE_HIGH>; + vbus-supply =3D <&vdd_micro_usb_vbus>; + pinctrl-0 =3D <&usb2_id_detect>; + pinctrl-names =3D "default"; + + ports { + #address-cells =3D <1>; + #size-cells =3D <0>; + + port@0 { + reg =3D <0>; + usb2_connector_ep: endpoint { + remote-endpoint =3D <&usb2_controller_ep>; + }; + }; + }; + }; + wcn6750-pmu { compatible =3D "qcom,wcn6750-pmu"; pinctrl-0 =3D <&bt_en>; @@ -606,6 +640,7 @@ vreg_bob_3p296: bob { regulator-max-microvolt =3D <3960000>; }; }; + }; =20 &gcc { @@ -1137,6 +1172,12 @@ qup_uart7_sleep_tx: qup-uart7-sleep-tx-state { */ bias-pull-up; }; + + usb2_id_detect: usb2-id-detect-state { + pins =3D "gpio61"; + function =3D "gpio"; + bias-pull-up; + }; }; =20 &uart5 { @@ -1200,6 +1241,33 @@ &usb_1_qmpphy { status =3D "okay"; }; =20 +&usb_2 { + dr_mode =3D "otg"; + usb-role-switch; + + status =3D "okay"; + + ports { + #address-cells =3D <1>; + #size-cells =3D <0>; + + port@0 { + reg =3D <0>; + usb2_controller_ep: endpoint { + remote-endpoint =3D <&usb2_connector_ep>; + }; + }; + }; +}; + +&usb_2_hsphy { + vdda-pll-supply =3D <&vreg_l10c_0p88>; + vdda18-supply =3D <&vreg_l1c_1p8>; + vdda33-supply =3D <&vreg_l2b_3p072>; + + status =3D "okay"; +}; + &usb_dp_qmpphy_out { remote-endpoint =3D <&redriver_phy_con_ss>; }; --=20 2.43.0