From nobody Thu Apr 2 15:36: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 779E03370E3 for ; Wed, 11 Feb 2026 05:21:56 +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=1770787317; cv=none; b=kxTy9IHk9LQKa77RTt/EUmsEEWq3fr4pQ4phdFgGLYPiaDR1BQI5fQa+qApBwaF1pxreSgT8ziEMEnKQBul/8EMMFQjjIrWblZPqfHsaBLWuQiO/b/h2vRI1PiiRuhMjyeSkuheWbDsMfFqk9xhgfYyInx22w+uCmBW4IF5Osmw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770787317; c=relaxed/simple; bh=PcGaK6KgYnSrAyu1cmf9etzsXUS1gTw7ofw0nqD0/uI=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=kJgm97b8MMLTgD+qIcYqBwt0Yc0k6AQy20UwYLKH9yQuZQoXU1KrPJ1kaM1x35ii2uKQEBcS0pWwq+YnZ8Aay8BVyEdlt7TtWz8+kS/COo4gfNjTaAimQx74gZljvoWKNXNTz04KJ98V/PoVQBjgFtFa3p2BAqgETe34t+61bfI= 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=Z8W52fv6; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b=fuAm0ZwA; 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="Z8W52fv6"; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b="fuAm0ZwA" 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 61ALvDJD3920970 for ; Wed, 11 Feb 2026 05:21:55 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=2mGekC0M2yjAAuN4WY4fhNZAavvVZXR8J38 63w8fhoc=; b=Z8W52fv6Q1x+IAYV2CWEo06m4vLrbMKwNr2+VnXXadWYc2/c92o xuM4GWS4rg6WL8/BBBMRv46eGun8l0sfCTTbf5LzZri6VLqgtYm+/WkTEGECzLho 2BjzvBopk3f8T+r40D0PlTireYvUj9uEm9FFw9etyysQLpudZsqcsYLEbAF/K7W0 83UPKMx90yNT8Mfe/gvseQ295jdHJ/OBv+JE5ZhrqXAdPot9JZDuMHVpOYFl1Fug I8lVgj++S8sJLjr74V1hVELlOiq3bQCpf3K4G0/hdNnaraFkWjsDc98rgMlTsS7j 2VhusliRD+8NXmZ1Me/cu2lzMux11x2rycA== Received: from mail-pg1-f200.google.com (mail-pg1-f200.google.com [209.85.215.200]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4c86akjm41-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Wed, 11 Feb 2026 05:21:55 +0000 (GMT) Received: by mail-pg1-f200.google.com with SMTP id 41be03b00d2f7-c56848e6f53so4111588a12.0 for ; Tue, 10 Feb 2026 21:21:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1770787314; x=1771392114; 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=2mGekC0M2yjAAuN4WY4fhNZAavvVZXR8J3863w8fhoc=; b=fuAm0ZwAz/i8fd0/Z9fLwY3jlNupotHfcJK4HrtlrvJKKOWdR+sS5MSLDvl8i2JcSE Xq8lvs87s43nZ5u9R1CJ0FIM/1EaOk3JVMN7k1JrMXLZxPxQyD4BZIWIyC1T/5nDofbt GW9IfFYqTrNp0OmLLnVM29mcLsaSi/eLVdVjokoDQqWA6SMd6ac+2mMyBmMCe3pnkU+E RYiNOENUkB6ny5aiHvlFtzSYLQBDpJI46obFQDMam9g2/Z0G0ieSnkjaGRmUxbBjOZv4 sXZMw9QEDH4QZZTFmkFh0YsWhnXIbi2RkApw4DULMHmCaqrTt3BIuusLuUr739Twiyr2 5KNg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1770787314; x=1771392114; 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=2mGekC0M2yjAAuN4WY4fhNZAavvVZXR8J3863w8fhoc=; b=URaECOBalTuiLoXIonnUp/7jX46AoyyuZz0cS0iowpKbCqnDkaAPbW+rQnu8aCrt5V f7DTY801BYXdIZOi2P0QJFmGa7i0k2OHhZbZxx5sUcfP0Z4UkYLMx1vN0BbKZX1BIqou 3a6n/ogCAylgPv2Hcffishgcen4AxGF94f5bLnVOviDZ2CS+TZGew3hgCJR30OkzcSIM qVYqtlWm72ToHnr6fhfVsomqmhyfGtdRijHsF8pFNaW9DMwPumrFr8UXa3JeSQcoyr3m Ug9lyakF/amjFToyLrIauGGwu4N/u/QWpjDerJTlAswUoNXJ6pb1grderYtR99bin3u2 IGfQ== X-Forwarded-Encrypted: i=1; AJvYcCVmuHcpHXU2rTSJgBYGmYAqZ50dAKLAMp6yVsOuYrUpw97aMTxHYS4I+7idCnRtt91jp3SrTNGBW/oEtqM=@vger.kernel.org X-Gm-Message-State: AOJu0YyO9Mr0BkDSHHoFCKF8GQH9QjaIWG86b4Ku04lyrgnzULMzSweL Lgo3DjQrlibfueS4VOgt5Vs9i4b8DrtIbOUPE8STbK2Xe00tZnq0ZuhR/5SCR848lKZt+s00aVX G9Q99YBwKiFn0lOEEEpZ/DyByVnk4BDYas6HMxQSyE2SWZmRsVIkpB1G5RY+MLPPFgqw= X-Gm-Gg: AZuq6aJ3Kub1ue51IcWoU0SB+IQtXDVDnfPQ0+JnlwLKSnUOpcAjJH5ucYUWYB/UeQ2 l8s9JZU5b4jYfELMSSO+GvFxUgOd/psWZ6z24k8JayDq+zYyCwpyRJvVeIQpfT0xh67cAHdVwga Gh9weSvaIUSUh/4GWlCalVMPKMlxj5HOjrnLHSeBYFkKXSizpV/Ufl4zI+IwTSfuzMNp3/H/xnl vTKscmB4ZueQrkTvpVBmfYKPnQ5g0GcywauUfpFJ++uzW3BMZCw0fg1Sgw3heI0/tnBPKSvF/z4 ogY9S+cdbAekC6p//CJVYDW6tLSAGqNC9UD18jQqpYr5WlKAhX9/oW+m/IDqzWUjJhbQuKCEeTH h99+3uQuIykio5j26NSZjcBXeHLhhu/NJxWSNsOGvyFUatgjPVw== X-Received: by 2002:a05:6a20:431e:b0:38d:ebdc:3558 with SMTP id adf61e73a8af0-39432253f51mr949291637.6.1770787314352; Tue, 10 Feb 2026 21:21:54 -0800 (PST) X-Received: by 2002:a05:6a20:431e:b0:38d:ebdc:3558 with SMTP id adf61e73a8af0-39432253f51mr949267637.6.1770787313862; Tue, 10 Feb 2026 21:21:53 -0800 (PST) Received: from hu-akakum-hyd.qualcomm.com ([202.46.23.25]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-3567e7d8eb9sm864675a91.1.2026.02.10.21.21.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Feb 2026 21:21:53 -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 v2] arm64: dts: qcom: qcs6490-rb3gen2: Enable USB2 controller Micro-USB OTG Date: Wed, 11 Feb 2026 10:48:18 +0530 Message-ID: <20260211052146.3760500-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=698c11f3 cx=c_pps a=oF/VQ+ItUULfLr/lQ2/icg==:117 a=ZePRamnt/+rB5gQjfz0u9A==:17 a=HzLeVaNsDn8A:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=Mpw57Om8IfrbqaoTuvik:22 a=GgsMoib0sEa3-_RKJdDe:22 a=VwQbUJbxAAAA:8 a=EUspDBNiAAAA:8 a=nDjxtR87dJjKcGfwTHQA:9 a=3WC7DwWrALyhR5TkjVHa:22 X-Proofpoint-GUID: iEKmen2aUc1davyGja1qzA5-ekqZk1b4 X-Proofpoint-ORIG-GUID: iEKmen2aUc1davyGja1qzA5-ekqZk1b4 X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwMjExMDA0MSBTYWx0ZWRfX4qj9+NUEHfTq Man+u6PTvJCyi4dK+H2ImTWluVaOKOGpXXh+GQumETAU6zCL2DdjcjCCZIKF+DrIliq+bM0QLeF cGK3MbFqj8abdzzGbzBGEQeHNeS1SGx2Tf6kplr8BISEGC0KBDLg7zeewYFKKVusxqdsqItYzLq +OqY1u04YPZaAHlte/bvQ3kvazFaP5XPQMlSL3OJp7n16vGQnxsGrLpSWAtntY69e8Y1kP50QMm fdvm5QvKlY14MfPhLmZqF2hGXbjqoB174x3yzsbIXeFMjUz9Jh5y7W6J731dZSPp/ip3N203hqj hJCqTjlNguyr/0TdOVkNXDhIAWbecRf0qjvdgrnLsh5rJG6NAjotwegvukXrI26SwuKG2k6pf0l aZU28ozJ71E2tvSTj4ArzO3y4BwRJnggQYHizt96+407MkOKmxHGlCPkDXPcMLioQDHI8Ec2PKV Q+8BMhvuaMDw0PO7oNA== 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_03,2026-02-10_03,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=1015 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-2602110041 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 - 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 Reviewed-by: Dmitry Baryshkov Reviewed-by: Konrad Dybcio --- v2: Fixed minor comments on v1: https://lore.kernel.org/all/ad294a50-027f-4= caa-a9b4-e145f709b50a@oss.qualcomm.com/ --- arch/arm64/boot/dts/qcom/qcs6490-rb3gen2.dts | 64 ++++++++++++++++++++ 1 file changed, 64 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/qcs6490-rb3gen2.dts b/arch/arm64/boot= /dts/qcom/qcs6490-rb3gen2.dts index f29a352b0288..af21c8ab48fa 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>; @@ -1137,6 +1171,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 +1240,30 @@ &usb_1_qmpphy { status =3D "okay"; }; =20 +&usb_2 { + 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