From patchwork Mon Sep 2 14:50:33 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 13787380 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 901F81A263C; Mon, 2 Sep 2024 14:50:43 +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=1725288643; cv=none; b=qGZVf9MC/Gg/SKJlpdJ2k/6ONtvUoweSHkhTpl+or2NTklh0YVW4nZ+bxuX1R0KENjh5qe2GmCRN4cjxLRbeHck8YYg58pjLG6M3gVpAprWR5qgTcEUs+LEi/zi/11HhSNhPfRVmVVBzftxgzwn0pZdAt99vDsXkUeqJUYmHo/w= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1725288643; c=relaxed/simple; bh=yR60XCfURw0FQLF6V0+FubP9qr/PcgxiSYB0KGpj5E0=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=duFuPKgKH/wlt9W9o6/IwmEjSbJaTGuJXQxIElEBZHkrrOH1LHN6l9O0bQbmrKiCd9bWl1QM8xY6qOqIuQUIAMKJUfiwnm/nDyMLpxUj1HR8i3CTTpvj8+n3qRIZkmfHgUHJkhzMtmAjU8gnU5mTWV4yHSx3Gr3tSoSMPkM0OU4= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=GaW5Oo1W; 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="GaW5Oo1W" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 03D5EC4CEC7; Mon, 2 Sep 2024 14:50:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1725288643; bh=yR60XCfURw0FQLF6V0+FubP9qr/PcgxiSYB0KGpj5E0=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=GaW5Oo1WM1esTC2XBkRAlYSITWMFhWUJGC8qP4ay+96jA0X+9/TZjaQCWolG8yMNx jJ1tGFnPQ0cjPy+Tf1nind7kZlBGnxHInyFGghSTfbJx/7+uGIx3FCdfEPvyghPWbr DAFolQofHLYoLnUHnwetvsouYEtH5NWVszpYC+8iRuI3cQwc9b8QiPzm3m3MQzJebO XCwZQ40GsRPWfCqwHaVq/v9d+XZh7JOCUM/Ui+2zThWzUfuh5lQC3MzWz1omC6TKzy 7qwRjWQ5NS9vQBZ2klC+TwkReaImec3TKWJrY3obsZ5Sdwd0Q+nut9wcopGTHwGFJ8 yTwjVxSQx2y6w== From: Konrad Dybcio Date: Mon, 02 Sep 2024 16:50:33 +0200 Subject: [PATCH 1/2] arm64: dts: qcom: x1e80100-romulus: Add lid switch Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240902-topic-sl7_updates-v1-1-3ee667e6652d@quicinc.com> References: <20240902-topic-sl7_updates-v1-0-3ee667e6652d@quicinc.com> In-Reply-To: <20240902-topic-sl7_updates-v1-0-3ee667e6652d@quicinc.com> To: Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: Marijn Suijten , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Konrad Dybcio , 20240830-nxp-ptn3222-v2-0-4c6d8535cf6c@linaro.org X-Mailer: b4 0.14.1 X-Developer-Signature: v=1; a=ed25519-sha256; t=1725288635; l=1648; i=quic_kdybcio@quicinc.com; s=20230215; h=from:subject:message-id; bh=MoIcFxZunJ/Z8E+MV8efnfiVLgeaK70xCs+sNGq6SSI=; b=k+qptwrRl+40IUsWAaXjn2r4oNMBK2cuBMO+QqD+OTAXzoF8ylV8EL2YD1Exw9t9eMHd327zx oyHoPVEImqcBTPDJTONwqgl2B/C3dDSoIeAhW6EDUq4+fj4PKKsUKQD X-Developer-Key: i=quic_kdybcio@quicinc.com; a=ed25519; pk=iclgkYvtl2w05SSXO5EjjSYlhFKsJ+5OSZBjOkQuEms= From: Konrad Dybcio One of the best parts of having a laptop is being able to close the lid and go on with your day. Enable this feature by defining the lid switch. Signed-off-by: Konrad Dybcio Reviewed-by: Dmitry Baryshkov --- .../boot/dts/qcom/x1e80100-microsoft-romulus.dtsi | 23 ++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/x1e80100-microsoft-romulus.dtsi b/arch/arm64/boot/dts/qcom/x1e80100-microsoft-romulus.dtsi index 42e02ad6a9c3..5419d0b02785 100644 --- a/arch/arm64/boot/dts/qcom/x1e80100-microsoft-romulus.dtsi +++ b/arch/arm64/boot/dts/qcom/x1e80100-microsoft-romulus.dtsi @@ -4,6 +4,8 @@ */ #include +#include +#include #include #include @@ -30,6 +32,21 @@ backlight: backlight { pinctrl-names = "default"; }; + gpio-keys { + compatible = "gpio-keys"; + + pinctrl-0 = <&hall_int_n_default>; + pinctrl-names = "default"; + + switch-lid { + gpios = <&tlmm 2 GPIO_ACTIVE_LOW>; + linux,input-type = ; + linux,code = ; + wakeup-source; + wakeup-event-action = ; + }; + }; + leds { compatible = "gpio-leds"; @@ -704,6 +721,12 @@ &tlmm { gpio-reserved-ranges = <44 4>, /* SPI (TPM) */ <238 1>; /* UFS Reset */ + hall_int_n_default: hall-int-n-state { + pins = "gpio2"; + function = "gpio"; + bias-disable; + }; + nvme_reg_en: nvme-reg-en-state { pins = "gpio18"; function = "gpio"; From patchwork Mon Sep 2 14:50:34 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 13787381 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 D5EB11A263C; Mon, 2 Sep 2024 14:50:46 +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=1725288647; cv=none; b=JWU8CCvH4xSaGYpAmmZbJd2fOBCkZOBAH6wxugzK0iBD5wjIlaevnLQPHsBKXTyxZwRWUU6t8sX7AyQA331tsE+0fc7CoznVZ79fhI00518MP/GOB9ZafpeEmieMitl3B8EEhU2ld9ixPHU6tMPFjxGJmtyS75368Fc7F2Zz6QY= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1725288647; c=relaxed/simple; bh=3PbIDbYxO9K6PuPo6xzWP3ATC90/zS9q5o6YWlTOa3s=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=FAOkEw/sa0HQHFQW4PbFCCYILZyuE4fvzgGYLFvAqWUSp8isRXHj/Y2NQvcoAYJxYNFLnY0M5WkitcGXdv+8lmgu3SNSV2nQ/jlETDSpr6j9l6cO1Pv7JFs/fS9uMt442vZH8g16wku+jdO/cLhdtZriJlD7PH/Vkd6Zr0TWhsI= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=t9HcNADd; 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="t9HcNADd" Received: by smtp.kernel.org (Postfix) with ESMTPSA id A1D8AC4CEC8; Mon, 2 Sep 2024 14:50:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1725288646; bh=3PbIDbYxO9K6PuPo6xzWP3ATC90/zS9q5o6YWlTOa3s=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=t9HcNADdZRENX9wPInf/RR7TIFxc4tYHqAhEz3bLpl4a9VqgLAh/OEOaqmjc2WKbU 93r3LKCeijBUtipmINbeBw5cjB9ChpTlHs0zv1HEj3BZVAE3tZQ2I/JtyEgYGuqF3P QYH74+J/5QNHsV6E6KfSsqFdZLCOaiyQvCnFa2D9lfldpkbMMCoxZYwvGdqNdCXt4p 4eqRSAPQjQtKOa1qT0vi0/GJEVZ74+s8BFX+veDW2/cpuGs7Z12WorP6jqP4eSNTCm uN7NX2lLT/I3jTMJgYyIBfnhR/TA+O6ji7Lw6oInjA8+9r61fr2C5Uq7iY0Hq9O/IQ 0XZik5vexdpow== From: Konrad Dybcio Date: Mon, 02 Sep 2024 16:50:34 +0200 Subject: [PATCH 2/2] arm64: dts: qcom: x1e80100-romulus: Set up USB Multiport controller Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240902-topic-sl7_updates-v1-2-3ee667e6652d@quicinc.com> References: <20240902-topic-sl7_updates-v1-0-3ee667e6652d@quicinc.com> In-Reply-To: <20240902-topic-sl7_updates-v1-0-3ee667e6652d@quicinc.com> To: Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: Marijn Suijten , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Konrad Dybcio , 20240830-nxp-ptn3222-v2-0-4c6d8535cf6c@linaro.org X-Mailer: b4 0.14.1 X-Developer-Signature: v=1; a=ed25519-sha256; t=1725288635; l=2200; i=quic_kdybcio@quicinc.com; s=20230215; h=from:subject:message-id; bh=+2FgctR0c+GxQ6JKbJJVixux86lxHv6P5NiKLaCF4eo=; b=kJQnnjk6F4VWqJKMGMb4DQVCq6CoBC+U9Z6ocVK2Pl0G+yMQBvH94sPcvFTC+cpDsC4CUGO/r HQqFu2YSKrTCxFWFXOfRhYjr3LHCozNxcNOxWeimO4UprFl8Kh2bPgp X-Developer-Key: i=quic_kdybcio@quicinc.com; a=ed25519; pk=iclgkYvtl2w05SSXO5EjjSYlhFKsJ+5OSZBjOkQuEms= From: Konrad Dybcio The USB MP controller is wired up to the USB-A port on the left side and to the Surface Connector on the right side. Configure it. While at it, remove a stray double \n. Signed-off-by: Konrad Dybcio Reviewed-by: Dmitry Baryshkov --- .../boot/dts/qcom/x1e80100-microsoft-romulus.dtsi | 59 +++++++++++++++++++++- 1 file changed, 57 insertions(+), 2 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/x1e80100-microsoft-romulus.dtsi b/arch/arm64/boot/dts/qcom/x1e80100-microsoft-romulus.dtsi index 5419d0b02785..ac2acf949b70 100644 --- a/arch/arm64/boot/dts/qcom/x1e80100-microsoft-romulus.dtsi +++ b/arch/arm64/boot/dts/qcom/x1e80100-microsoft-romulus.dtsi @@ -572,7 +572,17 @@ &i2c5 { status = "okay"; - /* Something @4f */ + ptn3222: redriver@4f { + compatible = "nxp,ptn3222"; + reg = <0x4f>; + + reset-gpios = <&tlmm 7 GPIO_ACTIVE_LOW>; + + vdd3v3-supply = <&vreg_l13b>; + vdd1v8-supply = <&vreg_l4b>; + + #phy-cells = <0>; + }; }; &i2c7 { @@ -583,7 +593,6 @@ &i2c7 { /* PS8830 USB retimer @8 */ }; - &mdss { status = "okay"; }; @@ -717,6 +726,15 @@ &smb2360_1_eusb2_repeater { vdd3-supply = <&vreg_l14b>; }; +&smb2360_2 { + status = "okay"; +}; + +&smb2360_2_eusb2_repeater { + vdd18-supply = <&vreg_l3d>; + vdd3-supply = <&vreg_l8b>; +}; + &tlmm { gpio-reserved-ranges = <44 4>, /* SPI (TPM) */ <238 1>; /* UFS Reset */ @@ -856,3 +874,40 @@ &usb_1_ss1_dwc3_hs { &usb_1_ss1_qmpphy_out { remote-endpoint = <&pmic_glink_ss1_ss_in>; }; + +/* MP0 goes to the Surface Connector, MP1 goes to the USB-A port */ +&usb_mp { + status = "okay"; +}; + +&usb_mp_hsphy0 { + vdd-supply = <&vreg_l2e>; + vdda12-supply = <&vreg_l2j>; + + phys = <&smb2360_2_eusb2_repeater>; + + status = "okay"; +}; + +&usb_mp_hsphy1 { + vdd-supply = <&vreg_l2e>; + vdda12-supply = <&vreg_l2j>; + + phys = <&ptn3222>; + + status = "okay"; +}; + +&usb_mp_qmpphy0 { + vdda-phy-supply = <&vreg_l3e>; + vdda-pll-supply = <&vreg_l3c>; + + status = "okay"; +}; + +&usb_mp_qmpphy1 { + vdda-phy-supply = <&vreg_l3e>; + vdda-pll-supply = <&vreg_l3c>; + + status = "okay"; +};