From patchwork Tue Jun 10 17:25:39 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jens Glathe via B4 Relay X-Patchwork-Id: 896751 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 752F82459E5; Tue, 10 Jun 2025 17:25:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1749576341; cv=none; b=D1bGXy9ZwIz3MEOXQPYpesgQn4EBH9TfFOA+S6a9ab7VCVTf96tr3OA/iJmIKaYovxY2At2UH2xKpG5CnN9DBu7UwhYs5Q6AXu3vZ0zFBmUd44BPUAdjJQ419a0YlfkbWIs8lwdGFqyWn/on2zupWqv17KM5Jl8P2OhdbPZrEaA= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1749576341; c=relaxed/simple; bh=XZFYqAPTRxfAWf0CxR75Fb1Pa04VLzko/GDyREltleA=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=DtrlxpDO8VBC0zvJDn48/WR3PyZoE2rrusGgffJAqJRF711W16j7nIwrqYuFBBNAUSkljuMX48AMoS9HyMRPQ0D8SEFp5myLSPVfIOgQo2dgSBOukW7sOfJWO/T92ZbXA7BQVZ1kAxuB6vwaOZ1djtn6PjOnKJbmpSa1ETsP0NA= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=QJrhop6h; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="QJrhop6h" Received: by smtp.kernel.org (Postfix) with ESMTPS id 1E538C4CEF2; Tue, 10 Jun 2025 17:25:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1749576341; bh=XZFYqAPTRxfAWf0CxR75Fb1Pa04VLzko/GDyREltleA=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=QJrhop6hUf9fXUFqwSXN3AZIPgsps/eetL2cMY4NYhbC5jSNveGti/AUq5WOZWD7A SHNgxzccQGD60+Fil3GsQUGC+gZIFaVTbJJ9mswIlTLg7AzL5i/lsvyx/ke24Qh5Hq wGpl+BWDroGf2cpeBL9XP6bZ0MxxbYc3eHwkVctLM9mO0X9PFxuHwW8NYFiObp6qsW 2ihxa/MRKKk9Ac5j+yJP2OIUfzyJuqYpwoQgT0q49ZHp6DnZFpTtIwBTsINTsBs9oA m0Cgi6b/z/abXeIfPR2jFz9IRJqB3u7W1INjb6EI3niu8al/9Bnx1HARP/4cn2eJ4V vMcL0diZglslg== 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 0B295C5B552; Tue, 10 Jun 2025 17:25:41 +0000 (UTC) From: Jens Glathe via B4 Relay Date: Tue, 10 Jun 2025 19:25:39 +0200 Subject: [PATCH v3 1/3] arm64: dts: qcom: x1e80100-hp-x14: add usb-1-ss1-sbu-mux Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20250610-hp-x14-v3-1-35d5b50efae0@oldschoolsolutions.biz> References: <20250610-hp-x14-v3-0-35d5b50efae0@oldschoolsolutions.biz> In-Reply-To: <20250610-hp-x14-v3-0-35d5b50efae0@oldschoolsolutions.biz> To: Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Jens Glathe X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1749576339; l=2235; i=jens.glathe@oldschoolsolutions.biz; s=20240919; h=from:subject:message-id; bh=pdc20blDG5sUNrX0k/W0MY3lWOGShqm7G0oOTPuDTlQ=; b=jFRoBvVxHb8WCW7Vdes4glmGKlfiYVtfg51/ZogsIo00p8cDbJoQkZ53GNxTV+Qo8iyM1Y5OK ZUg7MyenvwtBxWjJHmoLmz+A+TUEUpgSn/cwKkE0ExneICuUwlFzpR6 X-Developer-Key: i=jens.glathe@oldschoolsolutions.biz; a=ed25519; pk=JcRJqJc/y8LsxOlPakALD3juGfOKmFBWtO+GfELMJVg= X-Endpoint-Received: by B4 Relay for jens.glathe@oldschoolsolutions.biz/20240919 with auth_id=216 X-Original-From: Jens Glathe Reply-To: jens.glathe@oldschoolsolutions.biz From: Jens Glathe The usb_1_1 port doesn't have the PS8830 repeater, but apparently some MUX for DP altmode control. After a suggestion from sgerhold on '#aarch64-laptops' I added gpio-sbu-mux nodes from the x1e80100-QCP tree, and this appears to work well. It is still guesswork, but working guesswork. Added and rewired for usb_1_1 Signed-off-by: Jens Glathe --- .../boot/dts/qcom/x1e80100-hp-omnibook-x14.dts | 51 ++++++++++++++++++++++ 1 file changed, 51 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/x1e80100-hp-omnibook-x14.dts b/arch/arm64/boot/dts/qcom/x1e80100-hp-omnibook-x14.dts index 10b3af5e79fb6493cd6b6c661de6a801e40092f7..315987f2b62b818059cd1b5dbba28f908c58f00a 100644 --- a/arch/arm64/boot/dts/qcom/x1e80100-hp-omnibook-x14.dts +++ b/arch/arm64/boot/dts/qcom/x1e80100-hp-omnibook-x14.dts @@ -153,6 +153,14 @@ pmic_glink_ss1_ss_in: endpoint { remote-endpoint = <&usb_1_ss1_qmpphy_out>; }; }; + + port@2 { + reg = <2>; + + pmic_glink_ss1_sbu: endpoint { + remote-endpoint = <&usb_1_ss1_sbu_mux>; + }; + }; }; }; }; @@ -477,6 +485,25 @@ vreg_pmu_rfa_1p7: ldo9 { }; }; }; + + usb-1-ss1-sbu-mux { + compatible = "onnn,fsusb42", "gpio-sbu-mux"; + + enable-gpios = <&tlmm 179 GPIO_ACTIVE_LOW>; + select-gpios = <&tlmm 178 GPIO_ACTIVE_HIGH>; + + pinctrl-0 = <&usb_1_ss1_sbu_default>; + pinctrl-names = "default"; + + mode-switch; + orientation-switch; + + port { + usb_1_ss1_sbu_mux: endpoint { + remote-endpoint = <&pmic_glink_ss1_sbu>; + }; + }; + }; }; &apps_rsc { @@ -1419,6 +1446,30 @@ reset-n-pins { }; }; + usb_1_ss1_sbu_default: usb-1-ss1-sbu-state { + mode-pins { + pins = "gpio177"; + function = "gpio"; + bias-disable; + drive-strength = <2>; + output-high; + }; + + oe-n-pins { + pins = "gpio179"; + function = "gpio"; + bias-disable; + drive-strength = <2>; + }; + + sel-pins { + pins = "gpio178"; + function = "gpio"; + bias-disable; + drive-strength = <2>; + }; + }; + wcd_default: wcd-reset-n-active-state { pins = "gpio191"; function = "gpio";