From nobody Sun Nov 24 11:44:56 2024 Received: from mail-wm1-f44.google.com (mail-wm1-f44.google.com [209.85.128.44]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E9C701D4351 for ; Tue, 5 Nov 2024 11:37:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.44 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1730806676; cv=none; b=brd7ze9D90v1MosXYPJ72++A8Zbl1JCLSfMfEHnZcYVFi6pI6Fk1XkKUJ1CbcLaC9jfOdNtVFuTCKh1S7RvdAclWnUqZZ+bNfDAORQh7lfOeraKrCk1wpO99vJsYSTkaJquNkxYvQirP/Jv0ODR+NV+bbWXR5iXh1/a9WwQPZXc= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1730806676; c=relaxed/simple; bh=BI2meJHmLKjzFcCEJbF3FZiDFGsMfh8n4PIbpBn3g40=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=YTjCGL9sFwnO2ERgdPSUXs+kPns4tvkTPNTkdFUFrT3csY9KO7RH9pvMpQLM9YFxJlCXoTiIVtFVxIU9GpNpCYjaZ5xWfA9FOmDqa5UCIly2cIt5nU6eRafGlXovtTmpib8c1ksFsotBWCniOri2SGdPvzCIRdH/Gi5LYUePJYA= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=R0hbudfR; arc=none smtp.client-ip=209.85.128.44 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="R0hbudfR" Received: by mail-wm1-f44.google.com with SMTP id 5b1f17b1804b1-431616c23b5so33313175e9.0 for ; Tue, 05 Nov 2024 03:37:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1730806673; x=1731411473; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=sGRDtmGmJ05hRR3sHi8vRL9my5VuOnWy1BIiW+Rka1k=; b=R0hbudfRMIE9u+yH1dW1vF13D118eGpUuFmg2uJtUimBNBehJK9+DdDVpNjWRjfOZU fbd408NMDpqYviuN92BzaMZ3eEjQsaosCxvRnQlkVVB4B5pFVN92lJ2NY6AeN/xLmDi+ m2vwQDD36Vrt7YdzqkQU2wqbaONmMi5Ax5CeGIdfj9ilDEhRzTW9KWq/3RnXtb8oBNkB L+P5qo4R27+Of0Y4sXAuO3wjJOFyJUYk+qwIeH9IJ7O4XC0Z5snwjr2WYlrgKnPl+R27 TA/lT2OmVsWCb9segEEy8U/9496sZaIE5E7Bz8DbFt2Uxxcp1OjoA/tO7mS7zSlIwezS BJhA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1730806673; x=1731411473; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=sGRDtmGmJ05hRR3sHi8vRL9my5VuOnWy1BIiW+Rka1k=; b=t2qHS/Y/NVfOG28OEojGFH8CUDSJjOOSgqR6A3JDbiaBGSN5fN6kFtGsDGpCHfCzYN ordtbH+b9/QV63Q3NVGxawfJq92WmUGQZZCA9gmtWG9JsiFCSH0E3ahvLDAKFm1tGiAm y3XAOyiCMEXqHbxN/Bwn+OMsKph6uzEYXXOoUnkjOrh55AEGILaMCI555IVgU3qmAQc2 Kn7oNy0rest2QVW54AyBpWsrQ67y2MGHMmmmdZxtFuukzDollitdX6/n5QEgZtbAOb6F GtXFzULgeKaJTMRaS8zKSv7vH57KybL93VAY2CW4ZRxWUndd/Vzu4IwJBjl835nQ4j+8 Jb0Q== X-Forwarded-Encrypted: i=1; AJvYcCUigMEaJo5P4toHXlD4oAOhmRDpvywbpWhKXx+aWVcUNewrkbg3SE0sema+/8pnIB8g+2ZdapMuq/7SInM=@vger.kernel.org X-Gm-Message-State: AOJu0Ywn1V5JPsqmc+1kY0Idww33ZcvrpiPjjJVG82luq1CFM/dQDzwb ODCymoVPDRytVv5ovxG5TTxjPun/1K1z+tEIsyeRehgsTE5G70Aqq2CAa7LNBW4= X-Google-Smtp-Source: AGHT+IE81YKlOns7i42CHTSYaGb0+1UFP7sHMyU2PQ99F7+WEjSLj0cDi/OZZLEIMlnlZi4TCOq86A== X-Received: by 2002:a05:600c:4f41:b0:42c:b8c9:16c8 with SMTP id 5b1f17b1804b1-4327dabab21mr145555935e9.10.1730806673276; Tue, 05 Nov 2024 03:37:53 -0800 (PST) Received: from [127.0.1.1] ([82.76.168.176]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4327d5bf429sm181816845e9.12.2024.11.05.03.37.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Nov 2024 03:37:52 -0800 (PST) From: Abel Vesa Date: Tue, 05 Nov 2024 13:37:32 +0200 Subject: [PATCH 1/2] arm64: dts: qcom: x1e78100-t14s: Enable support for both Type-A USB ports 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 Message-Id: <20241105-x1e80100-qcp-t14-enable-usb-type-a-ports-v1-1-b4386def91d8@linaro.org> References: <20241105-x1e80100-qcp-t14-enable-usb-type-a-ports-v1-0-b4386def91d8@linaro.org> In-Reply-To: <20241105-x1e80100-qcp-t14-enable-usb-type-a-ports-v1-0-b4386def91d8@linaro.org> To: Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: Dmitry Baryshkov , Johan Hovold , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Abel Vesa X-Mailer: b4 0.15-dev-dedf8 X-Developer-Signature: v=1; a=openpgp-sha256; l=2944; i=abel.vesa@linaro.org; h=from:subject:message-id; bh=BI2meJHmLKjzFcCEJbF3FZiDFGsMfh8n4PIbpBn3g40=; b=owEBbQKS/ZANAwAKARtfRMkAlRVWAcsmYgBnKgOLIpSv5JBaRVz6XBqLSJriFTe3SxvLD5UJ/ bf/fRgDQWaJAjMEAAEKAB0WIQRO8+4RTnqPKsqn0bgbX0TJAJUVVgUCZyoDiwAKCRAbX0TJAJUV VtA9D/9x1ZSaQL5feSqCuTudCVxG12kqI8XdrPT0D7JFyO1tMZIDzw04peaycMo+V9h7kEhCFn7 6LUH77SCsKrv1X7Ufpoxx69WbMaeolnxIHetGbWHsOW0CgZWvLSD9vaGQUg3D+o5siDQig87iOi zYpe4dBY2OaQi42+9d9wqrn4kmHJTSzuiolGvQnqWzaqA9R0UgMnV5G68p9dsqdJGaSakYYWAPt dkioSSi1Uk+FLdsshe266fhrhp+/hP1Wz6osHyLGyPWK8/PDEvXQAIbn9EQZ+PYKHtmwRJFgx0n mvjMyLw6rlylhHoHGlmALy5Deck3I6KCKV1lM/7ThmGZ9Bawv70TWIv75XkCu2SkC0Z4OJ1Qahu lerbGDAq6VgP4mdPSFmEM3Qy0cPJvALo9aaryLW+mMfm++mnsB027/W+th64abMTIoX9gyhNhcJ +L85VGhDI5HDr3XMeQMxV59Fc5j1XRnq3rIwBRafcNw8Z0jdjuR3TEUo8p1UFCEmfWMXiJAWJbD RAsZu6WuKxphzi11WFpZEUhhciBHlRJPR5cgGdE/Aqq76p6e6dXW41ycecTRbEeJM4n9jiAdUxn oAPVHLMUUEd1pdv4r4m899Carwujbz2TNp0+REqt5yuS3JL/jGX4WtShvoyl4VX6UyeZzk/dAZ8 CSpAbyWLmz0d5Sw== X-Developer-Key: i=abel.vesa@linaro.org; a=openpgp; fpr=6AFF162D57F4223A8770EF5AF7BF214136F41FAE The Thinkpad T14s has 2 USB-A ports, both connected to the USB multiport controller, each one via a separate NXP PTN3222 eUSB2-to-USB2 redriver to the eUSB2 PHY for High-Speed support, with a dedicated QMP PHY for SuperSpeed support. Describe each redriver and then enable each pair of PHYs and the USB controller itself, in order to enable support for the 2 USB-A ports. Signed-off-by: Abel Vesa --- .../dts/qcom/x1e78100-lenovo-thinkpad-t14s.dts | 86 ++++++++++++++++++= ++++ 1 file changed, 86 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/x1e78100-lenovo-thinkpad-t14s.dts b/a= rch/arm64/boot/dts/qcom/x1e78100-lenovo-thinkpad-t14s.dts index 975550139e1024420ed335a2a46e4d54df7ee423..7468ae443ecdac28fa0c0a42e72= 454907935a5a9 100644 --- a/arch/arm64/boot/dts/qcom/x1e78100-lenovo-thinkpad-t14s.dts +++ b/arch/arm64/boot/dts/qcom/x1e78100-lenovo-thinkpad-t14s.dts @@ -495,6 +495,40 @@ keyboard@3a { }; }; =20 +&i2c5 { + clock-frequency =3D <400000>; + + status =3D "okay"; + + eusb3_repeater: redriver@47 { + compatible =3D "nxp,ptn3222"; + reg =3D <0x47>; + #phy-cells =3D <0>; + + vdd3v3-supply =3D <&vreg_l13b_3p0>; + vdd1v8-supply =3D <&vreg_l4b_1p8>; + + reset-gpios =3D <&tlmm 6 GPIO_ACTIVE_LOW>; + + pinctrl-0 =3D <&eusb3_reset_n>; + pinctrl-names =3D "default"; + }; + + eusb6_repeater: redriver@4f { + compatible =3D "nxp,ptn3222"; + reg =3D <0x4f>; + #phy-cells =3D <0>; + + vdd3v3-supply =3D <&vreg_l13b_3p0>; + vdd1v8-supply =3D <&vreg_l4b_1p8>; + + reset-gpios =3D <&tlmm 184 GPIO_ACTIVE_LOW>; + + pinctrl-0 =3D <&eusb6_reset_n>; + pinctrl-names =3D "default"; + }; +}; + &i2c8 { clock-frequency =3D <400000>; =20 @@ -651,6 +685,22 @@ &tlmm { <72 2>, /* Secure EC I2C connection (?) */ <238 1>; /* UFS Reset */ =20 + eusb3_reset_n: eusb3-reset-n-state { + pins =3D "gpio6"; + function =3D "gpio"; + drive-strength =3D <2>; + bias-disable; + output-low; + }; + + eusb6_reset_n: eusb6-reset-n-state { + pins =3D "gpio184"; + function =3D "gpio"; + drive-strength =3D <2>; + bias-disable; + output-low; + }; + tpad_default: tpad-default-state { pins =3D "gpio3"; function =3D "gpio"; @@ -808,3 +858,39 @@ &usb_1_ss1_dwc3_hs { &usb_1_ss1_qmpphy_out { remote-endpoint =3D <&pmic_glink_ss1_ss_in>; }; + +&usb_mp { + status =3D "okay"; +}; + +&usb_mp_hsphy0 { + vdd-supply =3D <&vreg_l2e_0p8>; + vdda12-supply =3D <&vreg_l3e_1p2>; + + phys =3D <&eusb6_repeater>; + + status =3D "okay"; +}; + +&usb_mp_qmpphy0 { + vdda-phy-supply =3D <&vreg_l3e_1p2>; + vdda-pll-supply =3D <&vreg_l3c_0p8>; + + status =3D "okay"; +}; + +&usb_mp_hsphy1 { + vdd-supply =3D <&vreg_l2e_0p8>; + vdda12-supply =3D <&vreg_l3e_1p2>; + + phys =3D <&eusb3_repeater>; + + status =3D "okay"; +}; + +&usb_mp_qmpphy1 { + vdda-phy-supply =3D <&vreg_l3e_1p2>; + vdda-pll-supply =3D <&vreg_l3c_0p8>; + + status =3D "okay"; +}; --=20 2.34.1 From nobody Sun Nov 24 11:44:56 2024 Received: from mail-lf1-f41.google.com (mail-lf1-f41.google.com [209.85.167.41]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8E63E1D47BD for ; Tue, 5 Nov 2024 11:37:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.41 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1730806678; cv=none; b=a/nIYk6uOOlEVCzI7fbnOWRPWSWHzPgDeqlrDFMMSkTIHN+iMwz9MDZFzDYH8G2uRMimmulTl8pzM2k4izP+V/cuins02RDoldvhl66pHiyTsa7CCmyG3PHNXk0G/rq/+F69pek2PmTv7QRzo2UJcTyvvqAdsJlHgIgIsuQkOcA= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1730806678; c=relaxed/simple; bh=snuUtiSL/ybuiG1jJeB441EEojxXeaRAIydWFUMluW0=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=cCxcgd2auC0JXY/bYjbMDznDaHpyZl79ivT1cic4GR9Iup0vwx73JYL/WSo5xvr/fj3czR0FqaJpSv2Ui8KKvEVf3dhoxhpbFPBuKyLwTaipLuCogsy5DFbtbZAseepi9pR0Gzyd3n5dOM8BGaAtcea7Tt/gb2jVW6ZlOf1bmx8= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=DY6xL29P; arc=none smtp.client-ip=209.85.167.41 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="DY6xL29P" Received: by mail-lf1-f41.google.com with SMTP id 2adb3069b0e04-539f0f9ee49so6063253e87.1 for ; Tue, 05 Nov 2024 03:37:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1730806675; x=1731411475; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=rUR4G4+KmGfw2qjWg659n+t+XFqWG6GKx9RaaMjNBVk=; b=DY6xL29PTJn+8wBvqtu3oO8O9JxBJe5ghJQlwjZcqnXI3djLmcmn3r/i+1MM1tIUbk sU/DvRboTD4AGmfYfxvXVF3773sI227UpUAlvZWUucYnajap5bBrHXc72PX+/XOmp7lx EqAdcg0sOUlsWc6e9i/bqBts3BjHnIr/rM1I0YEtZ0ow/2iJ5J5n8e1CeIsLzQUQctGc SOJLxO0CHbx3ThAfKiP0T9esytYnMiRNT3T8rMmtbIa/4Ng591LAAv8+Y0zKIHl7Hh2L d0iOrL8q4jNojjp6BBDETdh3zBUsRrKDUJNpVn+95NNNdqruAuA+BT4B2CG+Pjf66Zbo pJdw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1730806675; x=1731411475; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=rUR4G4+KmGfw2qjWg659n+t+XFqWG6GKx9RaaMjNBVk=; b=nIok+zOl0JiG/+07iDHBwOOa+HAy8AvuFmgOFRN/lbgQcd/T7vxJb0hfQBJrFqkHi1 H4C0Ts7Mp53yfNBerVc0Ze6ZexjswMQph8LeKUxTMjvb2VV4FKm+EjEI5leqEEwxyG88 o0V1Kf/FvPtIW1RaCWamar1UcIX5UzMlStM6IawImNzGNuKRx2+FBKVZjLWPcwkuxYYm DiWvL3GgawJZCGifUWjpW/YnpGCxjyjvLEsX49mqtEn1T4y2kzanVbjHi1munQHJpubP FiIAiKCdFczo1CEKz6JmQ0zR6xDEqQHX9gaAm5y8VkGfWCN9ZvUU2r1UXNQz/lDdAGRJ sRxw== X-Forwarded-Encrypted: i=1; AJvYcCVZ7GZzM/n9dPeNgXmOPoFLsokZZ3Cq9yFVekgfmuaJCJWeBHSb4jhX3K5czBnhdsl8g9jxXWc/lj+wyPc=@vger.kernel.org X-Gm-Message-State: AOJu0YwGV7YTOBiLjArmdO3ygsWn2wgiejRI81rRpBEUMTObU4bP1L1y 9o6GFNRWobLPDkd62X5nSb7s8xbG0RykMeVMstOtTh7I4obMSZnhDJocL/wpeRk= X-Google-Smtp-Source: AGHT+IF2HLn5OuDk/TB8JnDc6PcOsIzoUFHc7eqF2+sIPbthR4zPdoM6HtwREP6/JqDnchoUOQjMrQ== X-Received: by 2002:a05:6512:1105:b0:539:e776:71f2 with SMTP id 2adb3069b0e04-53b34a33f15mr18418462e87.52.1730806674538; Tue, 05 Nov 2024 03:37:54 -0800 (PST) Received: from [127.0.1.1] ([82.76.168.176]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4327d5bf429sm181816845e9.12.2024.11.05.03.37.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Nov 2024 03:37:54 -0800 (PST) From: Abel Vesa Date: Tue, 05 Nov 2024 13:37:33 +0200 Subject: [PATCH 2/2] arm64: dts: qcom: x1e78100-qcp: Enable Type-A USB ports labeled 3 and 4/6 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 Message-Id: <20241105-x1e80100-qcp-t14-enable-usb-type-a-ports-v1-2-b4386def91d8@linaro.org> References: <20241105-x1e80100-qcp-t14-enable-usb-type-a-ports-v1-0-b4386def91d8@linaro.org> In-Reply-To: <20241105-x1e80100-qcp-t14-enable-usb-type-a-ports-v1-0-b4386def91d8@linaro.org> To: Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: Dmitry Baryshkov , Johan Hovold , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Abel Vesa X-Mailer: b4 0.15-dev-dedf8 X-Developer-Signature: v=1; a=openpgp-sha256; l=2920; i=abel.vesa@linaro.org; h=from:subject:message-id; bh=snuUtiSL/ybuiG1jJeB441EEojxXeaRAIydWFUMluW0=; b=owEBbQKS/ZANAwAKARtfRMkAlRVWAcsmYgBnKgON/c3tJ21JZAcD05ny6D5svRT1ag7gP1jYo eDbroaNCASJAjMEAAEKAB0WIQRO8+4RTnqPKsqn0bgbX0TJAJUVVgUCZyoDjQAKCRAbX0TJAJUV Vgl5EACQmgNQNAVeAr8lf7jB2+lTK2V/okejH7egi+6z5DqD6FcQ8BHCfG5yNCuXi1muVYFNprr SGqgU4wzTRnPpq2/CLjeKhy18+c2BsB3z7Xurcoq/at9LorHpXa9+ncDUgYasXgwyXMXEbEahRt U9yfxxRxF668as4EZos13CuTgNkP5IGB4Wb8lKPKylohC0S+KShvfoJ20kNRniV/pCjnVIbhLB/ H4zHuoMXh/mxhh/j5q6eBoAEBnVt9wa1Y6GhhkJhgnpbA4mCNZJCr9kihCYCYnI/jpFmIM8JQ2o CdK3kVOK34HTOOzzURd3ZmlkXot58CkXFR8Gk5gvEUDSvNP5FyCvCTEdjmWNfe2lIbsboy/Oebh nQSvnsao+LkGPAHd5no7UZGk7pVVGVeA0tKRYXNsASCfOlxFvfkfxf6ZfNyfhk9lI8kYoVPiquL j9QRFuhr7AO+Sj0fimVvkHx7kYAn9Zkr6tVu2L47skA8Ag6TyvaGj4UPnKckgflkSP+falKfipE By0PNknB9QiVHjAmfd0sZw5PLhBp/Wo+CxyjFaf90SSHsiUswq4sXFRe5I+tys8SCaGWhSS9WNH W1bZPHvyAiosJdQUzhnSS5hm+JsR5QJMmq+mcPlmlmyufAg5QbzvfEdcuzsR6uaqmPr+gBfsBzK EVxLa8arCijgoLg== X-Developer-Key: i=abel.vesa@linaro.org; a=openpgp; fpr=6AFF162D57F4223A8770EF5AF7BF214136F41FAE The X Elite QCP board has 3 USB-A ports. The ones labed as USB3 and USB4/6 are both connected to the multiport controller, each one via a separate NXP PTN3222 eUSB2-to-USB2 redriver to the eUSB2 PHY for High-Speed support, with a dedicated QMP PHY for SuperSpeed support. Describe these two redrivers and enable each pair of PHYs along with the USB controller, all in order to enable support for these 2 USB-A ports. Signed-off-by: Abel Vesa --- arch/arm64/boot/dts/qcom/x1e80100-qcp.dts | 86 +++++++++++++++++++++++++++= ++++ 1 file changed, 86 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/x1e80100-qcp.dts b/arch/arm64/boot/dt= s/qcom/x1e80100-qcp.dts index 5ef030c60abe2998d093ee60a6754a90cd5aaf72..f52ead28eb7d16847f5049185ea= 5ff0d8edb10e7 100644 --- a/arch/arm64/boot/dts/qcom/x1e80100-qcp.dts +++ b/arch/arm64/boot/dts/qcom/x1e80100-qcp.dts @@ -616,6 +616,40 @@ zap-shader { }; }; =20 +&i2c5 { + clock-frequency =3D <400000>; + + status =3D "okay"; + + eusb3_repeater: redriver@47 { + compatible =3D "nxp,ptn3222"; + reg =3D <0x47>; + #phy-cells =3D <0>; + + vdd3v3-supply =3D <&vreg_l13b_3p0>; + vdd1v8-supply =3D <&vreg_l4b_1p8>; + + reset-gpios =3D <&tlmm 6 GPIO_ACTIVE_LOW>; + + pinctrl-0 =3D <&eusb3_reset_n>; + pinctrl-names =3D "default"; + }; + + eusb6_repeater: redriver@4f { + compatible =3D "nxp,ptn3222"; + reg =3D <0x4f>; + #phy-cells =3D <0>; + + vdd3v3-supply =3D <&vreg_l13b_3p0>; + vdd1v8-supply =3D <&vreg_l4b_1p8>; + + reset-gpios =3D <&tlmm 184 GPIO_ACTIVE_LOW>; + + pinctrl-0 =3D <&eusb6_reset_n>; + pinctrl-names =3D "default"; + }; +}; + &lpass_tlmm { spkr_01_sd_n_active: spkr-01-sd-n-active-state { pins =3D "gpio12"; @@ -819,6 +853,22 @@ edp_reg_en: edp-reg-en-state { bias-disable; }; =20 + eusb3_reset_n: eusb3-reset-n-state { + pins =3D "gpio6"; + function =3D "gpio"; + drive-strength =3D <2>; + bias-disable; + output-low; + }; + + eusb6_reset_n: eusb6-reset-n-state { + pins =3D "gpio184"; + function =3D "gpio"; + drive-strength =3D <2>; + bias-disable; + output-low; + }; + nvme_reg_en: nvme-reg-en-state { pins =3D "gpio18"; function =3D "gpio"; @@ -981,3 +1031,39 @@ &usb_1_ss2_dwc3_hs { &usb_1_ss2_qmpphy_out { remote-endpoint =3D <&pmic_glink_ss2_ss_in>; }; + +&usb_mp { + status =3D "okay"; +}; + +&usb_mp_hsphy0 { + vdd-supply =3D <&vreg_l2e_0p8>; + vdda12-supply =3D <&vreg_l3e_1p2>; + + phys =3D <&eusb6_repeater>; + + status =3D "okay"; +}; + +&usb_mp_qmpphy0 { + vdda-phy-supply =3D <&vreg_l3e_1p2>; + vdda-pll-supply =3D <&vreg_l3c_0p8>; + + status =3D "okay"; +}; + +&usb_mp_hsphy1 { + vdd-supply =3D <&vreg_l2e_0p8>; + vdda12-supply =3D <&vreg_l3e_1p2>; + + phys =3D <&eusb3_repeater>; + + status =3D "okay"; +}; + +&usb_mp_qmpphy1 { + vdda-phy-supply =3D <&vreg_l3e_1p2>; + vdda-pll-supply =3D <&vreg_l3c_0p8>; + + status =3D "okay"; +}; --=20 2.34.1