From mboxrd@z Thu Jan 1 00:00:00 1970 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 33C783537E0 for ; Fri, 11 Sep 2026 14:21:22 +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=1789136484; cv=none; b=LGg4MQBoGhDhit1n83Don9KvprcOxzZ1WPsTlWsz57ycQajAPzeTBXv4hm09T+0W7OhotJXlp70TqSHOa+Lpo3p45mmg7NfOlsJFl5hsj97UXRy8rr0RIRjvvSZE9rh0t2M6eoFryI5Nh3zAZh0YGZDmzgAF9cB+eEdeVAZbJr8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789136484; c=relaxed/simple; bh=Y/hvlFXG9GLs1AM2S6LZjNChMvP7T7olaEoMqfTajbU=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=kg53E+1QEEGKp/TAZ9GI4d4od5os7V6XjqR7AM/CbKvSYWpCQDr14yJNZKP4aUSsNWs/hj7N/KveQxHrVhiCxWH5QPK48AdfxuLe3veU7AmzGf/Z6/f7nUi2tk8a6q+ozwPyflAmp6kEkYHbREdepcS0r52eMtLROKAapXlEqx4= 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=oX+seEQW; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b=Fc+yAarq; 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="oX+seEQW"; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b="Fc+yAarq" Received: from pps.filterd (m0279867.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 68BCjl5M1099012 for ; Fri, 11 Sep 2026 14:21:22 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=R4glxcAwmtc nwT/5Sgeo+cgLNqx5F0q3TY8ltfG2568=; b=oX+seEQWQRxmDCM7Y/7Sf4HIMDY CmXsdPB1wfIq6RdCO2Zw6Gpy+CT+sG192BUKGrrUjX9oPYfs7ILQz1QKRlhT9jM0 C9oXBM2gYjf3FxBvlhJEreAP0sEydyvQKkGxTgUbkOOK9Bvh3tMjbMbeUqEIiN9g vJx073zwL79zylFnCrddJEJaemsQjA0Hiu9qO0SRjlAPhEN3DQYH6DCLeTskPO95 faLRjMsSpXBOFutzjxUw5F6FWXtxPyMgFoRyqoJAU/3q7HmR4HO554wThy6XNmd1 mwT6xRj+TAUgKG59ETv9WBXqF9LxCkDYqMKzQDebJzW8kMYzrngyuJwXXSg== Received: from mail-yw1-f199.google.com (mail-yw1-f199.google.com [209.85.128.199]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4gmbf8j4tr-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Fri, 11 Sep 2026 14:21:22 +0000 (GMT) Received: by mail-yw1-f199.google.com with SMTP id 00721157ae682-8461ade272bso11340827b3.1 for ; Fri, 11 Sep 2026 07:21:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1789136481; x=1789741281; 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:content-type; bh=R4glxcAwmtcnwT/5Sgeo+cgLNqx5F0q3TY8ltfG2568=; b=Fc+yAarqokbbzAuBtkFdFoE2hfLuz1Cz88NqHhHJJxEIyPgmdncMHWCMFIhw0FLOXl mdXK0MmoEcOOlQUFoWXpWew31QOBbFh2RTBFneFGbLw8AkIS/zFKN7F4rIldNqEQHiGt CPHtk4apk9enPl710jkjUt26888Mn8UqqMo8gP4FHIQ13qQOpKfWE3eTM/z8Fef34KUV f88FK8xlXwJ8xigU4KalHVHjI1VIIEdRtlq+ekXXiEh2uINolabpPY8wfGdfJe/un84Z 5V1S3uDdZDPgPbNkH3Vlci1SUNLxNJx6ODbB8HRcwJ/wAD0j7f28oUrUUIySD+q/LVkx wAhA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1789136481; x=1789741281; 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:content-type; bh=R4glxcAwmtcnwT/5Sgeo+cgLNqx5F0q3TY8ltfG2568=; b=RF/cGVCggmOjNSNKpbyHyduQZ4ciUNoO7l2K3oYS+7hfM39ffxGXfCQw7rIp8fYm2R 1kiD9m24sWHLtm0X86IJ7nwkLIbAocU5QvJ/hjfmonnVJK3Yb6foA3tLPV6G6TkErdLb rht7dLqCw3j3Cc0EIsOJuhPU6EbNHeqF5MeyK0AsA9EwbiHmmUIo2NqIYbWQZjYQ5Gel swoLOCR/75XTl23NpGQOX4qToI5tYgAoqZhGLzMi4CXhdd2v+oFBeQxQaR0LV59INvhj Vqcf/b6BJJNlD3AFJAK2242OqujcUulUsquCiws2siVE7l+0QKU2r7eO88prsdABPWj3 /ocg== X-Forwarded-Encrypted: i=1; AKwUvByzNkePAsmZ+4P3/UJ2X3z+GEcAMepwe24L30MIpDTL47Fg2Z52c+6ma6k+hF0ZcstdY28LvdCtsHPcJdg=@vger.kernel.org X-Gm-Message-State: AFuF++mxfKR5yht8etFNao81/4IVDx3NPiDcJR4vhhzZ0+33VTkzZd4/ B0fd+l43jHegiMJeYjuXBvqF7w9quKiugiptcdMFhkUThiPJSXSTQUFqRpzUG0mWJnn5USocwOy VO7VFcw8B8mNG53jxdcfmPxN2tP3sV5UJKcMdTAJ/AL0kAyDhkPTPS65yRW0jnmdfvGQ= X-Gm-Gg: AYBFou0rva+tcNK7y8UJAWawUODg6mnKohb7AecAPMqqaXSWRkac/8HaQ7iMouOeUSc fJ9d8ZgLXE5ijeEFDbZXbubt+1ApRfHLv60RWj8POZAha46e+TgT0HoptxQunFY4/dOa5gf58cu MHyJ5f8R/S4M3rKRWU0uXq8oM4EHqXUlUx8z0y8yf9rqVnd+9eiPn8D2sJkK7aZfB4oQFmCC5oJ oeN2Ldf9waAjbA0gTmGLMLMraae2YPQ8qjq44vDDxEzVYCP1+8A0k/lnDthc0y5E0UZTS6Xvj2X vSbAJ6S8x0u9ffCmJB/7gDf7aP1/6x9SgWIQUMaZcIEZdmlkU/kDWTxvlvuwS9b1XiJi8CdAdo8 CUQQMqRvJAZzAyQPP88QI3u56YoTUcLkhNPDXWbbU8dUM5z1siPCZ91mnWtU6 X-Received: by 2002:a05:690c:4b83:b0:81e:b78d:688b with SMTP id 00721157ae682-88201e57c63mr24323907b3.12.1789136481394; Fri, 11 Sep 2026 07:21:21 -0700 (PDT) X-Received: by 2002:a05:690c:4b83:b0:81e:b78d:688b with SMTP id 00721157ae682-88201e57c63mr24323737b3.12.1789136480825; Fri, 11 Sep 2026 07:21:20 -0700 (PDT) Received: from QCOM-aGQu4IUr3Y.qualcomm.com (i-global052.qualcomm.com. [199.106.103.52]) by smtp.gmail.com with ESMTPSA id 00721157ae682-884895001fasm10483237b3.45.2026.09.11.07.21.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 11 Sep 2026 07:21:19 -0700 (PDT) From: Shawn Guo To: Bjorn Andersson Cc: Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Bartosz Golaszewski , Krishna Kurapati , devicetree@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, Shawn Guo Subject: [PATCH 4/5] arm64: dts: qcom: nord-rrd: Enable USB ports Date: Fri, 11 Sep 2026 22:20:39 +0800 Message-ID: <20260911142040.100263-5-shengchao.guo@oss.qualcomm.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20260911142040.100263-1-shengchao.guo@oss.qualcomm.com> References: <20260911142040.100263-1-shengchao.guo@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: 8bit X-Proofpoint-GUID: ZVQRJNbiE-YlWDjtSEGjkwCdJEu6Qg2B X-Proofpoint-ORIG-GUID: ZVQRJNbiE-YlWDjtSEGjkwCdJEu6Qg2B X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwOTExMDIwMCBTYWx0ZWRfX7KIbCdcZt2nI 1ibpe+Q8tu+85B3re2dw6j4AWkEqrReQ6+Sb7E2W4O2W6CfdG7TPv1BIbMLL9W2LVGPFC4HSA0d oeNewyKx0QI2Lam0BLqjVWj/tHR+WxnDJI4JVg7ISknVPdUrzwZ0J9GkwvvsC6iGOnuZcyxBRpB OnADsZM/ekaJSKNMtb7BZKw49IjAaCUXt4/6cadbeYJ6Kn2X+iGFyZHJUvRSXsKEV6Sbq62x5VR jqVZX3v5Hm8e6M+ZOMvegytN0MqI0H5t0h3EhFSTP0cMr2BOTP5MDJLkq5+tPYgfxXr1R3GvU7q 3CgRieav6N/RsiK4IOazKjC/UB9qU6lvDxBPMje/gB0OZ0P9h/B1dzFJAcimficK9tW+EC6vlPI yFVFchMdBvRF9P2qQ5TAgTLoLyybWGS+XJqRGzy46cxPIj5qV4mx3K4bZHktYpxmbg36mqmgzyL qKF6ep8Qc7Ua8vqcEiA== X-Proofpoint-Spam-Info: AW1haW4tMjYwOTExMDIwMCBTYWx0ZWRfX0WNeeVBl+AT6 ZoftyalS4Rt7F6UXNfeg3I+dr8/0c3FlEAQhqfzaxH2bnRK03FtGW8qc8hTUa0ncuMCphxuPylP Ox033tAURSKTDsWgbog2FZeF8TYKMbo= X-Authority-Analysis: v=2.4 cv=UJFIjyfy c=1 sm=1 tr=0 ts=6aa40e62 cx=c_pps a=72HoHk1woDtn7btP4rdmlg==:117 a=b9+bayejhc3NMeqCNyeLQQ==:17 a=VdqzKS8jKosA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=eoimf2acIAo5FJnRuUoq:22 a=EUspDBNiAAAA:8 a=kAg6WJeHQ7d9V-TtBpYA:9 a=kA6IBgd4cpdPkAWqgNAz:22 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.134,FMLib:17.12.100.49 definitions=2026-09-11_04,2026-09-11_01,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 lowpriorityscore=0 phishscore=0 bulkscore=0 spamscore=0 adultscore=0 malwarescore=0 suspectscore=0 impostorscore=0 clxscore=1015 priorityscore=1501 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2609040000 definitions=main-2609110200 Describe the RRD USB topology. Enable i2c9 and add the two NXP PTN3222 eUSB2 repeaters for USB_0 and USB_1, supplied from vreg_l3l_1p8 and a new fixed 3.3 V pre-regulator, and reset through pmau0102_i GPIOs 9 and 10. Add the onsemi FUSB15201 Type-C controller at 0x50 with its interrupt and pinctrl state on pmau0102_i gpio8. Unlike RIDE, only port A of the controller is wired on this board, to USB_0, so a single usb-c-connector is described and port B is left out. USB_0 is configured for OTG with usb-role-switch and its HS and SS endpoints are linked to the dwc3 HS endpoint and the QMP combo PHY SS output. USB_1 is a fixed host port feeding an on-board Genesys Logic GL3590 USB 3.1 hub. Add the HS and SS hub pair as children of USB_1, linked with peer-hub, with the HS half reset via TLMM GPIO 170 and the SS half additionally supplied by a fixed 1.2 V rail. Assisted-by: LLM Signed-off-by: Shawn Guo --- arch/arm64/boot/dts/qcom/nord-rrd.dts | 169 ++++++++++++++++++++++++++ 1 file changed, 169 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/nord-rrd.dts b/arch/arm64/boot/dts/qcom/nord-rrd.dts index c547963371b4..c2f870ac4234 100644 --- a/arch/arm64/boot/dts/qcom/nord-rrd.dts +++ b/arch/arm64/boot/dts/qcom/nord-rrd.dts @@ -6,6 +6,7 @@ /dts-v1/; #include +#include #include #include "nord-embedded.dtsi" @@ -53,6 +54,22 @@ bi_tcxo_ao_div2: bi-tcxo-ao-div2-clk { clock-div = <2>; }; }; + + vreg_per_3p3: regulator-per-3p3 { + compatible = "regulator-fixed"; + regulator-name = "vreg_per_3p3"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + regulator-always-on; + }; + + vreg_hub_1p2: regulator-hub-1p2 { + compatible = "regulator-fixed"; + regulator-name = "vreg_hub_1p2"; + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <1200000>; + regulator-always-on; + }; }; &apps_rsc { @@ -377,6 +394,86 @@ rtc@32 { }; }; +&i2c9 { + clock-frequency = <400000>; + + status = "okay"; + + usb0_repeater: redriver@43 { + compatible = "nxp,ptn3222"; + reg = <0x43>; + #phy-cells = <0>; + vdd1v8-supply = <&vreg_l3l_1p8>; + vdd3v3-supply = <&vreg_per_3p3>; + reset-gpios = <&pmau0102_i_gpios 9 GPIO_ACTIVE_LOW>; + }; + + usb1_repeater: redriver@4f { + compatible = "nxp,ptn3222"; + reg = <0x4f>; + #phy-cells = <0>; + vdd1v8-supply = <&vreg_l3l_1p8>; + vdd3v3-supply = <&vreg_per_3p3>; + reset-gpios = <&pmau0102_i_gpios 10 GPIO_ACTIVE_LOW>; + }; + + typec@50 { + compatible = "onnn,fusb15201"; + reg = <0x50>; + interrupts-extended = <&pmau0102_i_gpios 8 IRQ_TYPE_LEVEL_LOW>; + + pinctrl-0 = <&usb_pd_int_default>; + pinctrl-names = "default"; + + #address-cells = <1>; + #size-cells = <0>; + + /* + * Only port A of the controller is wired up on this board, to + * USB_0. Port B is left unconnected. + */ + connector@0 { + compatible = "usb-c-connector"; + reg = <0>; + label = "USB-C0"; + power-role = "dual"; + data-role = "dual"; + try-power-role = "sink"; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + reg = <0>; + + usb_0_con_hs: endpoint { + remote-endpoint = <&usb_0_dwc3_hs>; + }; + }; + + port@1 { + reg = <1>; + + usb_0_con_ss: endpoint { + remote-endpoint = <&usb_0_qmpphy_usb_ss_out>; + }; + }; + }; + }; + }; +}; + +&pmau0102_i_gpios { + usb_pd_int_default: usb-pd-int-state { + pins = "gpio8"; + function = "normal"; + input-enable; + bias-pull-up; + power-source = <0>; + }; +}; + &qupv3_0 { firmware-name = "qcom/nord/qupv3fw.elf"; @@ -459,3 +556,75 @@ &ufs_mem_phy { status = "okay"; }; + +&usb_0 { + dr_mode = "otg"; + usb-role-switch; + + status = "okay"; +}; + +&usb_0_dwc3_hs { + remote-endpoint = <&usb_0_con_hs>; +}; + +&usb_0_hsphy { + vdd-supply = <&vreg_l1h_0p9>; + vdda12-supply = <&vreg_l2h_1p2>; + + phys = <&usb0_repeater>; + + status = "okay"; +}; + +&usb_0_qmpphy { + vdda-phy-supply = <&vreg_l2k_0p9>; + vdda-pll-supply = <&vreg_l2h_1p2>; + + status = "okay"; +}; + +&usb_0_qmpphy_usb_ss_out { + remote-endpoint = <&usb_0_con_ss>; +}; + +&usb_1 { + dr_mode = "host"; + + #address-cells = <1>; + #size-cells = <0>; + + status = "okay"; + + hub_hs: hub@1 { + compatible = "usb5e3,610"; + reg = <1>; + reset-gpios = <&tlmm 170 GPIO_ACTIVE_LOW>; + vdd-supply = <&vreg_per_3p3>; + peer-hub = <&hub_ss>; + }; + + hub_ss: hub@2 { + compatible = "usb5e3,625"; + reg = <2>; + vdd-supply = <&vreg_per_3p3>; + vdd12-supply = <&vreg_hub_1p2>; + peer-hub = <&hub_hs>; + }; +}; + +&usb_1_hsphy { + vdd-supply = <&vreg_l1h_0p9>; + vdda12-supply = <&vreg_l2h_1p2>; + + phys = <&usb1_repeater>; + + status = "okay"; +}; + +&usb_1_qmpphy { + vdda-phy-supply = <&vreg_l2k_0p9>; + vdda-pll-supply = <&vreg_l2h_1p2>; + + status = "okay"; +}; -- 2.43.0