From patchwork Tue Jan 7 13:35:07 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Abel Vesa X-Patchwork-Id: 13928905 Received: from mail-wm1-f41.google.com (mail-wm1-f41.google.com [209.85.128.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 141165CB8 for ; Tue, 7 Jan 2025 13:35:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.41 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1736256919; cv=none; b=FKNbyMVPTSxpn+2sChhdyLcPsCfXLMrPm5wR29jS2zePNr+I6IQxIPt1TwoawyXnKaiKhkCukZm6cW+41PuvjCuVwQcwcibQy7trzT6R0PSN/eEReWIEC2/Qs236U1caP250lJO3FJVaQG5yOmoBs7wSKwuVXbpg/aFPZqfdoi0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1736256919; c=relaxed/simple; bh=O9/apjJxGBelYRg6wchcBwX09vc3JomViypUrPHPljM=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:To:Cc; b=oiAvQo1muvPHNeFmB7Ug4JsYKWFoENsOrjx7asuUjFM40/SM+nfgGmO2uaNSWc0PzMKtb/ziuEx/CpQDwI4ZRw8uEcq/+/O9/+KhYVatDjpOP14ffBe14MXD5zznSgvlsY4Rqygq25cTm+r6UWKunkVCKKIjj/meXV8YlFnis1U= 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=EduB17Rp; arc=none smtp.client-ip=209.85.128.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="EduB17Rp" Received: by mail-wm1-f41.google.com with SMTP id 5b1f17b1804b1-43624b2d453so160094195e9.2 for ; Tue, 07 Jan 2025 05:35:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1736256913; x=1736861713; darn=vger.kernel.org; h=cc:to:message-id:content-transfer-encoding:mime-version:subject :date:from:from:to:cc:subject:date:message-id:reply-to; bh=yxmsgvbwPQs2GZoNBxVcC25NIUJqe+8/fvlpMm4yiJQ=; b=EduB17RpUzdURBb3iVhpR27w2KPEDy6phWVc/eUfwWFT4gBs5D4ftMkHg4z6oPPgT9 i4/5mRnR7I27eJz+RghMEbeoHFHYC2xYgO7YgSiDqETnkbuJZnUFRnpP+5b94tUutMDv Kb9pzNHRB5NATNJpmyk2kaAOwaLfTNwGJHHuvVv09sdVprav4aL+Cn9qtGkTXHfpcfGO CQZ4d4rWPXsetWOT3CVrWFV6mWCwZ2hrYnQ84zOOoJwYAGF0s/2GA0XQT21HyeKAbye0 cTL/g55O6SAXJGuGyHI3IDD4WEJ7CcVkwkHzgDVpI4/+KOk+zATzC6cFYlK9iu/FXXIV iVgg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1736256913; x=1736861713; h=cc:to:message-id:content-transfer-encoding:mime-version:subject :date:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=yxmsgvbwPQs2GZoNBxVcC25NIUJqe+8/fvlpMm4yiJQ=; b=q3U62ELwjFvncSufz9y3DXIL2W9x7eu6EM5MhPTMd5e1uGCraoyD3Y6hLZmgzieNfS kRZ83QYsGPhCLjNoqGRElBWMkyQkXs2xK9ZqU7wkE4rVVopourJ1OlYmYWG+PqJPOyya 2FbL7bNXYspvgLpD9FObWPQdrG8MdewfYmhgOSNNhork1Nkp/DhT2K6Qjd36011GCtdd 48Eux1E+dHT49ugTmRdtuU/WkWSYlETTiQlC7fzIfZ1OYmbixTQKteP8J3RdelzBgbZF iP4w8dhP6sTwxY9+nHsb6Eahh1z+JaMYQqJvi53aFBP4P0jGsc9CQeMBPNS50VF/tSi5 2I3w== X-Forwarded-Encrypted: i=1; AJvYcCVUUKPdob7DiI88Rggkpkb2QoLWkgDUg1jO+kaEGGzIalrVg2QkH+XiIdgX5FrzrKzbf0shxIgZUBrEqsjX@vger.kernel.org X-Gm-Message-State: AOJu0YyFOG/MJWiOj4i6lPKQRyiw8+kMSAwfOFJS8rEhiB7fE3loYuc1 go3/6txZ8J7o3apC4TuULQz+Z2I2erSBzd2Z6blCMhq7Rb6FiVao8zYqDWVEERY69RJGs8dXfY7 3 X-Gm-Gg: ASbGnct36aNf2kW/r48sNIlb3hDEfQwWAGZN+VumZhB5rOSLszpK3nCpIxJIHVwGIFy nAoP55mJJqylvpIdM4cDd3mwLdcyNDJfEiNcTx2EfM6Q3JY62xduapM9XPuMz6f4H1PsAGuCVNX JjFQM3EhGUdH+dCZAdQuOg4i3LODQPYkBbA35dLqRh4BcB8cqNNfMY5iyBgIGzcJv/3Tzw7Ovu/ omkCvOgIySaJz8PnJwjAUgAdCfha5LNLLpbTcsZ4BeeGmTdCzDCheiw X-Google-Smtp-Source: AGHT+IGcoQ2BCArOBXSbkcethRP4kHtN7FiqEIwHiAJyObJJCkHzqTKHJOM1/ieNgXSMhpJp8F1SdA== X-Received: by 2002:a05:600c:3146:b0:434:f817:4492 with SMTP id 5b1f17b1804b1-43668b5f887mr579200635e9.31.1736256913391; Tue, 07 Jan 2025 05:35:13 -0800 (PST) Received: from [127.0.1.1] ([86.121.162.10]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-38a1c89e126sm49644705f8f.65.2025.01.07.05.35.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Jan 2025 05:35:12 -0800 (PST) From: Abel Vesa Date: Tue, 07 Jan 2025 15:35:07 +0200 Subject: [PATCH] arm64: dts: qcom: x1e78100-t14s: Enable fingerprint reader Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20250107-x1e80100-t14-enable-fingerprint-sensor-v1-1-8fd911d39ad1@linaro.org> X-B4-Tracking: v=1; b=H4sIAIotfWcC/x2NQQrCQAxFr1KyNjApnY54FXERNdWApCUpUii9u 8Hde/D4f4cQVwm4dDu4fDV0thQ6dfB4s70E9ZkOfelrodJwIzknFFxpQDG+fwQnzdAXV1sxxGJ 25EqNmYexthFybHGZdPsfXW/H8QPUv+JjeAAAAA== X-Change-ID: 20250107-x1e80100-t14-enable-fingerprint-sensor-a517aaa46576 To: Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: Johan Hovold , Dmitry Baryshkov , 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=2308; i=abel.vesa@linaro.org; h=from:subject:message-id; bh=O9/apjJxGBelYRg6wchcBwX09vc3JomViypUrPHPljM=; b=owEBbQKS/ZANAwAKARtfRMkAlRVWAcsmYgBnfS2MmgbwlZi4VHvTFnu+PnV6v08BSrHppjaxj B8XJaFTfXmJAjMEAAEKAB0WIQRO8+4RTnqPKsqn0bgbX0TJAJUVVgUCZ30tjAAKCRAbX0TJAJUV VokHEACUqVVKpEazvRYGeC/itbCrce+KfJf4gok0eLSQfhn8TOPqfYlGDnqqLvEFvQi/DaHHGIu TfwSigQMEzlJeRQVGk2s2Zx1u6AuCdIEBpvMNTyyYCZSIoqlG/ecw7COBTHHvUEnkKjq2H5V5yc 2wFIGfX15+RP22GD5Mrp6IMGSZC1JGL3hQRBOixk0bNEtoRIQgFysLrxGYeFFr6dnY9TDwj99mv DK9fTZIWiJTEEEVdweTGOmcmylt/IavrJ5bW4y29Zb/hEJXoB22fRjBunA3zmc2a2J7MW15VNKg 2O96cDN/LizY2Fq6RN9iiCraxaLOfBRho1iCpyUwiSOboqW6Rlf1aMBTwhcmTQdeQMirOR95ClZ 7AmhBp/zJW9pfO/CI887qzq6WJEjzoU50EeLCjoRU7es2UQbIXtKBJfolyS5lYmllDVTXnKYjQr 6HLyg5sqQjqcMmizYjZIawConq9Bp8vmBs5VceENZMy1804Oeao7SFr9g02WV054K0BUAg4OhKw ux1N25tBwHvlvB7noIb4VI0Emit89J/hWCIc0yLKRMboYnTwmZEAa4I2DznGaWnr8F2sz5eg5uD xUU4iQWGA6g+GvNKC/E0SdUPXT+DCLTA2jHHBT2Ny9I9xiyLf4Tq2ogYQDcTdTJ/6nPc6jUg7lG vK18k9lIsYwJTBg== X-Developer-Key: i=abel.vesa@linaro.org; a=openpgp; fpr=6AFF162D57F4223A8770EF5AF7BF214136F41FAE On Lenovo ThinkPad T14s, the fingerprint reader placed in the power button is connected via the usb_2 controller. The controller has only a USB 2.0 PHY which is then connected via a NXP PTN3222 eUSB2 repeater, which in turn is connected to the Goodix fingerprint reader. So enable all the usb_2 controller and PHY nodes, set dual-role mode to host and describe the eUSB2 repeater in order to get the fingerprint reader discovered. Signed-off-by: Abel Vesa Reviewed-by: Johan Hovold Tested-by: Johan Hovold --- .../dts/qcom/x1e78100-lenovo-thinkpad-t14s.dts | 39 ++++++++++++++++++++++ 1 file changed, 39 insertions(+) --- base-commit: 7b4b9bf203da94fbeac75ed3116c84aa03e74578 change-id: 20250107-x1e80100-t14-enable-fingerprint-sensor-a517aaa46576 Best regards, diff --git a/arch/arm64/boot/dts/qcom/x1e78100-lenovo-thinkpad-t14s.dts b/arch/arm64/boot/dts/qcom/x1e78100-lenovo-thinkpad-t14s.dts index 9bb6994cc482e28e3e78817adf7ef15421f63219..b2c2347f54fa65f9355f0d7c008119e95bb64fb2 100644 --- a/arch/arm64/boot/dts/qcom/x1e78100-lenovo-thinkpad-t14s.dts +++ b/arch/arm64/boot/dts/qcom/x1e78100-lenovo-thinkpad-t14s.dts @@ -612,6 +612,20 @@ &i2c5 { status = "okay"; + eusb5_repeater: redriver@43 { + compatible = "nxp,ptn3222"; + reg = <0x43>; + #phy-cells = <0>; + + vdd3v3-supply = <&vreg_l13b_3p0>; + vdd1v8-supply = <&vreg_l4b_1p8>; + + reset-gpios = <&tlmm 7 GPIO_ACTIVE_LOW>; + + pinctrl-0 = <&eusb5_reset_n>; + pinctrl-names = "default"; + }; + eusb3_repeater: redriver@47 { compatible = "nxp,ptn3222"; reg = <0x47>; @@ -884,6 +898,14 @@ eusb3_reset_n: eusb3-reset-n-state { output-low; }; + eusb5_reset_n: eusb5-reset-n-state { + pins = "gpio7"; + function = "gpio"; + drive-strength = <2>; + bias-disable; + output-low; + }; + eusb6_reset_n: eusb6-reset-n-state { pins = "gpio184"; function = "gpio"; @@ -1058,6 +1080,23 @@ &usb_1_ss1_qmpphy_out { remote-endpoint = <&pmic_glink_ss1_ss_in>; }; +&usb_2 { + status = "okay"; +}; + +&usb_2_dwc3 { + dr_mode = "host"; +}; + +&usb_2_hsphy { + vdd-supply = <&vreg_l2e_0p8>; + vdda12-supply = <&vreg_l3e_1p2>; + + phys = <&eusb5_repeater>; + + status = "okay"; +}; + &usb_mp { status = "okay"; };