From patchwork Mon Nov 18 10:34:29 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stephan Gerhold X-Patchwork-Id: 13878387 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 024D6D49205 for ; Mon, 18 Nov 2024 10:36:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References :Message-Id:Content-Transfer-Encoding:Content-Type:MIME-Version:Subject:Date: From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=Yr1292EdCuKFfiA+4ZvZQTerR4Z3UgKV6lwrmxEoxeo=; b=vgb+YpuI38ntdnkqeT7+1SmPzF QdSDUWBxP7aSm+ZiTG6MwJ8zvK7QOAgmXZTmOo0DdpdHURKrIVHrNozt2hyIPeErNwnwjrJUN1yHn qkNyXfag5//CMxp0g8Tymuk8nwzMSJ6BgIcFf8m93gXNyqMbhe33hDN+wvSAoD1TQYOx6yfF2p6yt PWFfAxKTs+9f/SMWiZgFOOE4H5xETRYMKv1qaRx3dbaa7cnXrBPnlm0awWrJmv50epnPHVKkgKAJd xxzrzZK60yL07AHPGyyKM2MmuSpNw/rAWSszp5Ngz/THwP3ESOekxh9nrK6C05h0iezYCfIabmd7h //YF5C7Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1tCz7Q-000000096m2-0mZf; Mon, 18 Nov 2024 10:36:32 +0000 Received: from mail-wm1-x32e.google.com ([2a00:1450:4864:20::32e]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1tCz5a-000000096L2-0sSb for linux-arm-kernel@lists.infradead.org; Mon, 18 Nov 2024 10:34:39 +0000 Received: by mail-wm1-x32e.google.com with SMTP id 5b1f17b1804b1-431616c23b5so22453655e9.0 for ; Mon, 18 Nov 2024 02:34:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1731926076; x=1732530876; darn=lists.infradead.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=Yr1292EdCuKFfiA+4ZvZQTerR4Z3UgKV6lwrmxEoxeo=; b=eo7P3VPtXRfAi6gunmYKe3OrdsQ9rzdAQM2ZwLccEaosHOGXnL0fmc25OPPe5GjB11 Lw0mudZLwss1s3SZuP66+Unrgg0bicIMVVrOAtvnr90bE6Urex+HoXPf+vAC72LwAfdU SUPhXcGoIp3s3plsa8RxUnvx/+ZpMj0vC+MxIT0gQNr5sqrUDPnPrLZI7hIvnmAarM8+ hk+W0Db9KTPz0I1+tzlysWDWTuvdBS0d2VXs/ZZwIzvdNdewI7bfcS2E4P28xKjSQGUa 2bndh1ighvKqbHUBgP3EGQBQsM/rW8DWn6QNO4M45R/f4ujI6y2xwuKzbG8T69CHPUaV 5KjA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1731926076; x=1732530876; 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=Yr1292EdCuKFfiA+4ZvZQTerR4Z3UgKV6lwrmxEoxeo=; b=CUGLYS96ReAecEOKT17icTEB6jbHMA4SGNThpDRXF6Ghx8Ai/Yl8djkFr5GjBNMZN/ g20EzXSgfUvIqhIAgh32aKkMoy4FIXBDCQ2uYYbGsF7p4sXhdZglDWyIm6BszMq6Bmlq wHl/gtXFA3rhH4w2WIQ/MIWDzRuqJ/GBxylV1FXqeFFXmIQ21FBipQBBGnT0WcCAzZJl 6kLAplAACcxZAqYs51k3eWsfZeZIYdKgg4QZ5+oSvXlffONn/UcheZBV4LGwGkPBGZTP FYGk6k2Rwpbv7vRGrK7FvR3kqVYbqwwALBO30fBXN19MDRbQOTQyOM6mrSFePMjCISqy JNwg== X-Forwarded-Encrypted: i=1; AJvYcCUI97i2LDRp+VSsUxYf6bd/XGCa1euyJYT4OPaopmzlYztfASDz27drcWmCpg8E79f1/VTw1zBj8Vd0WIviX+Gj@lists.infradead.org X-Gm-Message-State: AOJu0YwLiAue1n5TMMQKAgRGIgm6XuGyh0aQyqvu26flRD6HT42+ej6y btBk7fneQHYrGIvyBIeJPA2l2j8jTj6LPQB2Ht9yN18PEyFgrm/JOW0XzvfMJHE= X-Google-Smtp-Source: AGHT+IEpR027bQwqgL+gWsLc+SHyyXqlwdyiwrb5NhXy2pdUH//X/toKtnp1aDwfHxO74fzhk6rBZg== X-Received: by 2002:a05:600c:1d1d:b0:431:3b80:6ca7 with SMTP id 5b1f17b1804b1-432d9767819mr147645655e9.13.1731926076147; Mon, 18 Nov 2024 02:34:36 -0800 (PST) Received: from [127.0.0.2] ([2a02:2454:ff21:ef40:5b7a:75b3:1e72:6e3d]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-38245e95925sm3162979f8f.111.2024.11.18.02.34.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Nov 2024 02:34:35 -0800 (PST) From: Stephan Gerhold Date: Mon, 18 Nov 2024 11:34:29 +0100 Subject: [PATCH 1/2] arm64: dts: qcom: x1e80100-crd: Add USB multiport fingerprint reader MIME-Version: 1.0 Message-Id: <20241118-x1e80100-crd-fp-v1-1-ec6b553a2e53@linaro.org> References: <20241118-x1e80100-crd-fp-v1-0-ec6b553a2e53@linaro.org> In-Reply-To: <20241118-x1e80100-crd-fp-v1-0-ec6b553a2e53@linaro.org> To: Bjorn Andersson , Konrad Dybcio Cc: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Catalin Marinas , Will Deacon , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Abel Vesa , Johan Hovold X-Mailer: b4 0.13.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241118_023438_251722_95C71E19 X-CRM114-Status: GOOD ( 12.10 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org The X1E80100 CRD has a Goodix fingerprint reader connected to the USB multiport controller on eUSB6. All other ports (including USB super-speed pins) are unused. Set it up in the device tree together with the NXP PTN3222 repeater. Signed-off-by: Stephan Gerhold --- arch/arm64/boot/dts/qcom/x1e80100-crd.dts | 48 +++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/x1e80100-crd.dts b/arch/arm64/boot/dts/qcom/x1e80100-crd.dts index 39f9d9cdc10d..44942931c18f 100644 --- a/arch/arm64/boot/dts/qcom/x1e80100-crd.dts +++ b/arch/arm64/boot/dts/qcom/x1e80100-crd.dts @@ -735,6 +735,26 @@ keyboard@3a { }; }; +&i2c5 { + clock-frequency = <400000>; + + 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"; + }; +}; + &i2c8 { clock-frequency = <400000>; @@ -1047,6 +1067,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"; @@ -1260,3 +1288,23 @@ &usb_1_ss2_dwc3_hs { &usb_1_ss2_qmpphy_out { remote-endpoint = <&pmic_glink_ss2_ss_in>; }; + +&usb_mp { + status = "okay"; +}; + +&usb_mp_dwc3 { + /* Limit to USB 2.0 and single port */ + maximum-speed = "high-speed"; + phys = <&usb_mp_hsphy1>; + phy-names = "usb2-1"; +}; + +&usb_mp_hsphy1 { + vdd-supply = <&vreg_l2e_0p8>; + vdda12-supply = <&vreg_l3e_1p2>; + + phys = <&eusb6_repeater>; + + status = "okay"; +}; From patchwork Mon Nov 18 10:34:30 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stephan Gerhold X-Patchwork-Id: 13878388 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 8452CD49205 for ; Mon, 18 Nov 2024 10:37:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References :Message-Id:Content-Transfer-Encoding:Content-Type:MIME-Version:Subject:Date: From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=W7YU9L/ihohCgSGV7XFCQCDHEXAXKVeCUTFSk43kuSs=; b=0CoDeDY3WaSqiENhIOjYn2Tm9M Xqas57DH1SCXeYYh/L+YduACuAmBsUdzhOWFcxSYDuXSPSzapp9fV4wD6vhC/FpzCaxK6LKqEqFh5 HcYVw85kt89YYossxfjLkRgv3vLBfUk1NHkWnMdLfuTNJXhp+rvGMX25eyXEm1wY7kLJCcrBWoD5Q xlDgbI9g2npw11lLytuc8OILGRK9ML27/XXh2q1yEm7KCiHpn5y76PF+10XEUKPuPPOoPH6Ro4EF4 5yvNQX9mIDq77rIcQZaCjjWCTbSbFqgqaxmyKQ5TnzIOQAxYC8VBQSjwHvxFnSAGvRhBsmbCj7KHv /VWCKaQA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1tCz8J-000000096wI-3jYl; Mon, 18 Nov 2024 10:37:27 +0000 Received: from mail-wr1-x42c.google.com ([2a00:1450:4864:20::42c]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1tCz5a-000000096LF-2T8m for linux-arm-kernel@lists.infradead.org; Mon, 18 Nov 2024 10:34:39 +0000 Received: by mail-wr1-x42c.google.com with SMTP id ffacd0b85a97d-3822b77da55so1410687f8f.1 for ; Mon, 18 Nov 2024 02:34:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1731926077; x=1732530877; darn=lists.infradead.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=W7YU9L/ihohCgSGV7XFCQCDHEXAXKVeCUTFSk43kuSs=; b=d/mabAiKYnUpelcSWOAH6WeaDyoFbF2AGeiL9bCZRrY3wWRlsWTLHO64F8rzI34LUx G7Jb4F8xc/G0iOf+TaeHLhUV+l5gDLm7O/V+6Dyb6ZBfV7sNEzpeHdNsOafq93A9ep6n cmxJhcqPzxT5CsbSw6CNGPYbfsysn60JImDhYsjBS8Xwnl4ljBTa1BGVYE8JR7NidCcq X2bjDgQuDKOoONd3DRDSlOL8YJSqQfckCEFLc18FlMd1mhcpvlsrcZmdySIq0ogYWjer P8n13hgZiewKaZsbJWp0cu5iZKoUyOqYWmMk08ujJTg32FS/9ZUHGDjZZoDvObDC4m9f x9yA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1731926077; x=1732530877; 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=W7YU9L/ihohCgSGV7XFCQCDHEXAXKVeCUTFSk43kuSs=; b=V2UEk/1nKnAkK2QrSABbLa0d5JhYnbhm43XcNdED4z00NnIBysbQ5jrFdkMEuUD5RI dd+LrODf8PBAjTVLj1nq40B8w/WYGKMNsTHPMNMrWRxoRE4ZzbdKWMV+dAteSnrbcPJA tydL71f1QUPwRxQZ8vt0QdWfLOiKF4fen+fBP7vObqW5YhLjJlqPJpnSt1Yvs1eeLOdg DZgDBnDLPEB/iXoU1RzmbRfo6sa2VyYrHCircSEyKK7O1D1E4Z5he4KV/vVRsqGQ5Bd9 kQtouzxytNO/VDMBDKkVIqzUZaxgVtbTcpmQvW8IApcPa1mKErWRSw1oj9nUYu37AWu7 G3wg== X-Forwarded-Encrypted: i=1; AJvYcCVr0tbNeFxRO09O9P8zyyeNMl7zRj5SNGY6aKjFqKWq6Oifo3LSnrXtKX+d/s6j4mWVkokuVKRKn+kKiVX2m+0r@lists.infradead.org X-Gm-Message-State: AOJu0YyRMpZ51y0wCQfla2bDMh3HB9DFAEFcoRKlYIJfZyBrNcsWE4Jy pmLeyju8NEXEG9LxIs7xoT2mFspyp2GhTEokWne7WuhrWOp0exC+nH2C4ndwMk/Xk+PG0HK+sVi q X-Google-Smtp-Source: AGHT+IGwcJJL68jiIs4CpOJY91QszYJvr1I5b9vVKUwSfS1kEIk0ygwL6xoo18htvJHm4mOKTYcF8g== X-Received: by 2002:a5d:6d8a:0:b0:382:484d:45da with SMTP id ffacd0b85a97d-382484d4782mr2179017f8f.6.1731926076817; Mon, 18 Nov 2024 02:34:36 -0800 (PST) Received: from [127.0.0.2] ([2a02:2454:ff21:ef40:5b7a:75b3:1e72:6e3d]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-38245e95925sm3162979f8f.111.2024.11.18.02.34.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Nov 2024 02:34:36 -0800 (PST) From: Stephan Gerhold Date: Mon, 18 Nov 2024 11:34:30 +0100 Subject: [PATCH 2/2] arm64: defconfig: enable NXP PTN3222 eUSB2 to USB2 redriver driver MIME-Version: 1.0 Message-Id: <20241118-x1e80100-crd-fp-v1-2-ec6b553a2e53@linaro.org> References: <20241118-x1e80100-crd-fp-v1-0-ec6b553a2e53@linaro.org> In-Reply-To: <20241118-x1e80100-crd-fp-v1-0-ec6b553a2e53@linaro.org> To: Bjorn Andersson , Konrad Dybcio Cc: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Catalin Marinas , Will Deacon , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Abel Vesa , Johan Hovold X-Mailer: b4 0.13.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241118_023438_628564_3A828C69 X-CRM114-Status: UNSURE ( 9.35 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org It is used in many of the Qualcomm X1 Elite laptops for additional USB-A ports, USB fingerprint readers or similar peripherals. Signed-off-by: Stephan Gerhold --- arch/arm64/configs/defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig index 0b8303eb498d..8b17d70b3b58 100644 --- a/arch/arm64/configs/defconfig +++ b/arch/arm64/configs/defconfig @@ -1530,6 +1530,7 @@ CONFIG_RESET_RZG2L_USBPHY_CTRL=y CONFIG_RESET_TI_SCI=y CONFIG_PHY_XGENE=y CONFIG_PHY_CAN_TRANSCEIVER=m +CONFIG_PHY_NXP_PTN3222=m CONFIG_PHY_SUN4I_USB=y CONFIG_PHY_CADENCE_TORRENT=m CONFIG_PHY_CADENCE_DPHY_RX=m