From patchwork Wed Mar 19 03:22:56 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bjorn Andersson via B4 Relay X-Patchwork-Id: 14022000 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id AE5E8C35FFB for ; Wed, 19 Mar 2025 03:23:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:Reply-To:List-Subscribe:List-Help: List-Post:List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References: Message-Id:MIME-Version:Subject:Date:From:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=TAGK7/HlazSUtR4Rl2+iU7zqFNH01WehJMBUGvxua+Y=; b=EQ9ZE0w0qcbgXG 7AddBKcjVCsk1m85fMkBUAFPs2Zp+d9i13bdMdCR+qBE8Ps1QCIkJnaGPLNRXPexy2YcXG2ZBxPH3 LN1/dvJAgwJ0KiH2b6rEV2FjP8ZX+v/a1mysePkDkMOWGRduWkuPu0tGlP8/vgZQ9/hmOi2O+oYZc Qv2kidbf+EdL+fvwgT0LsFarxYwE3I5GQhWHlB7engd9bzPQdtH/h6RulzBppcLLDWS04pTPCraun wo7/aHRPrb/2CbxDFPQwm9Zf0r9Jb7pYGmEm2Al8FvrYuCCNUwKQgapsDG9iZ8xuyS/3yWEJjiJtX C5BI6mJ4N8fLy9uGGB3w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1tuk1F-00000007sz2-1Hcj; Wed, 19 Mar 2025 03:23:01 +0000 Received: from dfw.source.kernel.org ([139.178.84.217]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1tuk1C-00000007sxY-1f7X for linux-phy@lists.infradead.org; Wed, 19 Mar 2025 03:22:59 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by dfw.source.kernel.org (Postfix) with ESMTP id 643525C5A0A; Wed, 19 Mar 2025 03:20:40 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPS id C4FE5C4CEEA; Wed, 19 Mar 2025 03:22:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1742354576; bh=cYuwxdwZwNpptSRKnZ3r6sjUWtozhGMOY3iV7LMaXhs=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=R7XJZyOamyfTkXqyqdTEqs9osfuLhbaH+y+EqJ8mzkg0TxkpVi6etvIIkKBgr3zIC 6129mlqzMFC+3gsSPovOo6XzjZGYwwdCVunoFm/kyDjGHiNkOnFpv/CxRgN3MmR32d QuxA8pdejZU1JS5eNJP3zO0h2a1JhmHhFI9d13WTtmW+LR6SwPky2yreUhY7JqKV/A 3zUxdvPpjX+i1vLbtfkr8YyyXJ7Vm/7EVCXVbIQFiLrHtlk9nJKZkewdVKaiQfN2Br 4EVh4TCKiVWJOI7lxOsYPMagcumag1+ACQFXYd0hMdQJzmEUn3tACiXZuHtwH1rNCF lSGUj1jtCpMVg== Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id A617AC35FFC; Wed, 19 Mar 2025 03:22:56 +0000 (UTC) From: Bjorn Andersson via B4 Relay Date: Tue, 18 Mar 2025 22:22:56 -0500 Subject: [PATCH 1/2] phy: qcom: phy-qcom-snps-eusb2: Make repeater optional MIME-Version: 1.0 Message-Id: <20250318-xps13-fingerprint-v1-1-fbb02d5a34a7@oss.qualcomm.com> References: <20250318-xps13-fingerprint-v1-0-fbb02d5a34a7@oss.qualcomm.com> In-Reply-To: <20250318-xps13-fingerprint-v1-0-fbb02d5a34a7@oss.qualcomm.com> To: Vinod Koul , Kishon Vijay Abraham I , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: Aleksandrs Vinarskis , linux-arm-msm@vger.kernel.org, linux-phy@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Bjorn Andersson X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1742354576; l=1783; i=bjorn.andersson@oss.qualcomm.com; s=20250318; h=from:subject:message-id; bh=F7hjgKZGyX/2eLEjN8svonHsIEOir26AqogeCcUlWcE=; b=rYdWDRbOX/8sX0ywyxFrEIdhuYcea6Fgdn0JHBSHBmXVsYtepF/Etfb/31gQk04mSVN6QgPpc fkCi2bLlQ6fDEq3EejcttGvRSFjO2pPHKcYGnSYCJIVFBXUolthYW3u X-Developer-Key: i=bjorn.andersson@oss.qualcomm.com; a=ed25519; pk=rD3O9C9Erg+mUPBRBNw91AGaIaDVqquHZbnn6N6xh6s= X-Endpoint-Received: by B4 Relay for bjorn.andersson@oss.qualcomm.com/20250318 with auth_id=362 X-Original-From: Bjorn Andersson X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20250318_202258_540458_FCCD05F5 X-CRM114-Status: GOOD ( 12.68 ) X-BeenThere: linux-phy@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Linux Phy Mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: bjorn.andersson@oss.qualcomm.com Sender: "linux-phy" Errors-To: linux-phy-bounces+linux-phy=archiver.kernel.org@lists.infradead.org From: Bjorn Andersson In a multiport configuration based on the SNPS eUSB2 PHY it's not necessary that all ports are connected to something. While this is allowed by the Devicetree binding, the implementation current fails probing for such PHYs, which also prevents the multiport controller from probing. The lack of repeater does not alter the fact that the PHY is there and attempts at describing only the used PHYs in Devicetree results in failures to initialize the USB controller. Make the repeater optional, to allow the these PHYs to be described in the DeviceTree and for the associated multiport controller to operate the other ports. Signed-off-by: Bjorn Andersson --- drivers/phy/qualcomm/phy-qcom-snps-eusb2.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/drivers/phy/qualcomm/phy-qcom-snps-eusb2.c b/drivers/phy/qualcomm/phy-qcom-snps-eusb2.c index 1484691a41d59a7eaf257ef44300827c668bf7e0..8897d2072ccfcaa5b4a510c17761dcdeed5bad0f 100644 --- a/drivers/phy/qualcomm/phy-qcom-snps-eusb2.c +++ b/drivers/phy/qualcomm/phy-qcom-snps-eusb2.c @@ -401,9 +401,13 @@ static int qcom_snps_eusb2_hsphy_probe(struct platform_device *pdev) "failed to get regulator supplies\n"); phy->repeater = devm_of_phy_get_by_index(dev, np, 0); - if (IS_ERR(phy->repeater)) - return dev_err_probe(dev, PTR_ERR(phy->repeater), - "failed to get repeater\n"); + if (IS_ERR(phy->repeater)) { + if (PTR_ERR(phy->repeater) == -ENODEV) + phy->repeater = NULL; + else + return dev_err_probe(dev, PTR_ERR(phy->repeater), + "failed to get repeater\n"); + } generic_phy = devm_phy_create(dev, NULL, &qcom_snps_eusb2_hsphy_ops); if (IS_ERR(generic_phy)) { From patchwork Wed Mar 19 03:22:57 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bjorn Andersson via B4 Relay X-Patchwork-Id: 14022001 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 12C5BC35FF3 for ; Wed, 19 Mar 2025 03:23:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:Reply-To:List-Subscribe:List-Help: List-Post:List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References: Message-Id:MIME-Version:Subject:Date:From:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=4XKu/eOZ6nyZNm5CfX+YFEVmh8Ut8B9aJMIGAOERqWQ=; b=AdAlTfzBsKonke ugFLTiOd+yhwxKAar57unQiNMPSWOeALvEcuyD4XUfmuZojJnRaw/MVriFqbqWnDYRMPi817lsfCF 3OOPRDzBfOA06D5PCvS7zskS/2Dy4Gf9MZ6QLskinuCO/Qht2Vaorfl3C7Eiv7boLbC5fhVwtruGq /YsdF6nzaeXpX2QIXe2rPpriOBkH7tSzVfbJTjsdwZrqqBG1Nc2/WGIU8ab21BoHCvCiLqKQWkO9q zERKzWjEJSJDQLVB8f1Gvh6Sbt0qfLGcAuHBL3u/SifhkvfXjsix5QxasQQ9iskL290j1NS5OsCwx ZVVRPLayS5Fvrt+0fVvw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1tuk1H-00000007szt-3KIQ; Wed, 19 Mar 2025 03:23:03 +0000 Received: from dfw.source.kernel.org ([139.178.84.217]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1tuk1C-00000007sxb-1f0E for linux-phy@lists.infradead.org; Wed, 19 Mar 2025 03:23:00 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by dfw.source.kernel.org (Postfix) with ESMTP id 8E1F95C59F9; Wed, 19 Mar 2025 03:20:40 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPS id D4540C4CEF1; Wed, 19 Mar 2025 03:22:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1742354576; bh=A+qGhWclSTQgJLfO6HsVTrl9lT2YLZYjDUmxW1OxdLg=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=aXZaKHMuPh9SMOMyJIU2qNcHonFUYFKzCoruEMpmgJwGko0OmlQArTa1+Mu5aLN/Y Zn89NaWXrjH97f7ByzqXzxQ4vggEpOUA1xIIKJLP7e5iTdEPS5qUtSnAkti3sBbWBK wuSHMaQu9XDZQmzNP1cdASBObYl4mXvxuIGGXANwQy4VowdFqDiSOad3uVjWNAKZJk 6zyVxWNYtemH3hGqGTX7U7FD+rMKPNMk//hEQUyenYQ5Y4+o+gqxQGrOqVP4xqXP0h ajhZNbnBVg0FhHUs6AGYmG7PyWEhsXiPm+QvfA+tS5s49Aq0T3JMq6waP30dxc/IhE EMcxKoQv+JIKA== Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id BA79DC35FF3; Wed, 19 Mar 2025 03:22:56 +0000 (UTC) From: Bjorn Andersson via B4 Relay Date: Tue, 18 Mar 2025 22:22:57 -0500 Subject: [PATCH 2/2] arm64: dts: qcom: x1e80100-dell-xps13-9345: Enable fingerprint sensor MIME-Version: 1.0 Message-Id: <20250318-xps13-fingerprint-v1-2-fbb02d5a34a7@oss.qualcomm.com> References: <20250318-xps13-fingerprint-v1-0-fbb02d5a34a7@oss.qualcomm.com> In-Reply-To: <20250318-xps13-fingerprint-v1-0-fbb02d5a34a7@oss.qualcomm.com> To: Vinod Koul , Kishon Vijay Abraham I , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: Aleksandrs Vinarskis , linux-arm-msm@vger.kernel.org, linux-phy@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Bjorn Andersson X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1742354576; l=2311; i=bjorn.andersson@oss.qualcomm.com; s=20250318; h=from:subject:message-id; bh=KSwrj8xKMzxf6ypfNwkySkK2Q48YHl4Qf210H7WoC74=; b=p4E23SmrYTjT4d3hpFlI9Hk/U1ZFSFLDMzYhgP7g98WcIrxdMTwAnsDGcJ40o5WVDjwTVMyUa 6UAUGhcdcoIAE2ziNSxH2EgRJa/qBXHOdwBBpylHI6W8+1DTAxn2zBS X-Developer-Key: i=bjorn.andersson@oss.qualcomm.com; a=ed25519; pk=rD3O9C9Erg+mUPBRBNw91AGaIaDVqquHZbnn6N6xh6s= X-Endpoint-Received: by B4 Relay for bjorn.andersson@oss.qualcomm.com/20250318 with auth_id=362 X-Original-From: Bjorn Andersson X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20250318_202258_540171_04FB1608 X-CRM114-Status: GOOD ( 10.95 ) X-BeenThere: linux-phy@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Linux Phy Mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: bjorn.andersson@oss.qualcomm.com Sender: "linux-phy" Errors-To: linux-phy-bounces+linux-phy=archiver.kernel.org@lists.infradead.org From: Bjorn Andersson The fingerprint sensor, hidden in the power button, is connected to one of the USB multiport ports; while the other port is unused. Describe the USB controller, the four phys and the repeater involved to make the fingerprint sensor operational. Signed-off-by: Bjorn Andersson Reviewed-by: Konrad Dybcio Tested-by: Aleksandrs Vinarskis Reviewed-by: Bryan O'Donoghue Tested-by: Stefan Schmidt --- .../boot/dts/qcom/x1e80100-dell-xps13-9345.dts | 59 +++++++++++++++++++++- 1 file changed, 57 insertions(+), 2 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/x1e80100-dell-xps13-9345.dts b/arch/arm64/boot/dts/qcom/x1e80100-dell-xps13-9345.dts index 967f6dba0878b51a985fd7c9570b8c4e71afe57d..a35557c562d771e2ce209fca05b82c1943d70f63 100644 --- a/arch/arm64/boot/dts/qcom/x1e80100-dell-xps13-9345.dts +++ b/arch/arm64/boot/dts/qcom/x1e80100-dell-xps13-9345.dts @@ -744,8 +744,21 @@ touchscreen@10 { &i2c9 { clock-frequency = <400000>; - status = "disabled"; - /* USB3 retimer device @0x4f */ + status = "okay"; + + eusb6_repeater: redriver@4f { + compatible = "nxp,ptn3222"; + reg = <0x4f>; + #phy-cells = <0>; + + vdd3v3-supply = <&vreg_l13b_3p0>; + vdd1v8-supply = <&vreg_l4b_1p8>; + + reset-gpios = <&tlmm 184 GPIO_ACTIVE_LOW>; + + pinctrl-0 = <&eusb6_reset_n>; + pinctrl-names = "default"; + }; }; &i2c17 { @@ -967,6 +980,14 @@ edp_reg_en: edp-reg-en-state { bias-disable; }; + eusb6_reset_n: eusb6-reset-n-state { + pins = "gpio184"; + function = "gpio"; + drive-strength = <2>; + bias-disable; + output-low; + }; + hall_int_n_default: hall-int-n-state { pins = "gpio92"; function = "gpio"; @@ -1172,3 +1193,37 @@ &usb_1_ss1_dwc3_hs { &usb_1_ss1_qmpphy_out { remote-endpoint = <&retimer_ss1_ss_in>; }; + +&usb_mp { + status = "okay"; +}; + +&usb_mp_hsphy0 { + vdd-supply = <&vreg_l2e_0p8>; + vdda12-supply = <&vreg_l3e_1p2>; + + phys = <&eusb6_repeater>; + + status = "okay"; +}; + +&usb_mp_hsphy1 { + vdd-supply = <&vreg_l2e_0p8>; + vdda12-supply = <&vreg_l3e_1p2>; + + status = "okay"; +}; + +&usb_mp_qmpphy0 { + vdda-phy-supply = <&vreg_l3e_1p2>; + vdda-pll-supply = <&vreg_l3c_0p9>; + + status = "okay"; +}; + +&usb_mp_qmpphy1 { + vdda-phy-supply = <&vreg_l3e_1p2>; + vdda-pll-supply = <&vreg_l3c_0p9>; + + status = "okay"; +};