diff mbox series

[2/7] arm64: dts: qcom: sdm845-cheza: commonize uart6 pinconf

Message ID 20221016143300.1738550-3-caleb@connolly.tech (mailing list archive)
State Changes Requested
Headers show
Series arm64: dts: qcom: sdm845: commonize bluetooth pinconf | expand

Commit Message

Caleb Connolly Oct. 16, 2022, 2:33 p.m. UTC
Use the new qup_uart6_4pin configuration in sd845.dtsi and fix alias
name.

Signed-off-by: Caleb Connolly <caleb@connolly.tech>
---
 arch/arm64/boot/dts/qcom/sdm845-cheza.dtsi | 39 ++--------------------
 1 file changed, 3 insertions(+), 36 deletions(-)

--
2.38.0

Comments

Bjorn Andersson Oct. 17, 2022, 11:04 p.m. UTC | #1
On Sun, Oct 16, 2022 at 02:33:53PM +0000, Caleb Connolly wrote:
> -----BEGIN PGP MESSAGE-----
> Version: ProtonMail
> 
> wcFMA4ktbss2xKXfAQ/7Bk2KbfGuwIpyiq5398IVuMDT4UNEOivVgsH/jG5M
> qk6QZmFNWAZ1AF4p6kMn6L6ivKbbzB2zCSDl+ZAcsL7xUn8dmRJ34bhJ5qTh
> fbysmQVA7MJAJL1bGuiQZJH1DcDtybNPg2bYo32qULz5eEKuU5EmOKi8/Vic
> 468ieMS2W67oD9ShOjOnMhTYogzXfJcyoYnGCG0EdDbpLkQz3a3pWQMDWLDg
> T+iZ8iAnYrgnLKlwKjK1QdcCtoihHyEsxx9EQJN1oMrfEmOwUmFGuTHxBjOW
> J3PLxxD7fB3/AzMTP0KmzboFw9mLzMR6QHToqW3QuI7M9FWDnR0YsKxUFuEQ
> yTX6Atr72T519NHUSZua7MYlO/+yWR1bjp/4EtePd0TaEUwKqGTtQRm32ele
> HP2msQXtTqQEv+kqxmWcqK5X58mhjKa8uybFha2ME2CmIPgkgJnYqhcDfHVB
> GIb9C8DV927CJYALRJ48tqVU9yxyXB/pXS4buuvV1tBLAg7Oa+8Pvib9OwdU
> G/faaD6KFpnuueAdemCcQHbqodTMjsJfnvPo82mT6fKaGaZdJa2Z9wua2i7o
> vohR7RlX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h0kRfDZkufwGDjAHXp/x6UvFkHUCf7TqeBAhNrGk8fFRD8jnVFKUz2wyWx
> DKivP6qKhG/x6YS+llgVDanUXVjOV/41V8xLjt/xnL5WUTTica59mb6kdFyC
> CWbZo4aPrNZXkkp+RLAONn71uDHKXH0qqOr4h2CYz1eoOQFK5P95TSQRkwrc
> 5pxFFDUKLufmYjvOD/WcpUgMD4BoTj8oNVuvSlOnt3UDb1Y/
> =lHx9
> -----END PGP MESSAGE-----

Can you please resubmit this in a way that I can read it, with
cover-letter and proper threading?

(Or let me know what I'm doing wrong when trying to look at these
patches?)

Thanks,
Bjorn
diff mbox series

Patch

diff --git a/arch/arm64/boot/dts/qcom/sdm845-cheza.dtsi b/arch/arm64/boot/dts/qcom/sdm845-cheza.dtsi
index b5eb8f7eca1d..a8ae6de51af4 100644
--- a/arch/arm64/boot/dts/qcom/sdm845-cheza.dtsi
+++ b/arch/arm64/boot/dts/qcom/sdm845-cheza.dtsi
@@ -16,7 +16,7 @@ 
 / {
 	aliases {
 		bluetooth0 = &bluetooth;
-		hsuart0 = &uart6;
+		serial1 = &uart6;
 		serial0 = &uart9;
 		wifi0 = &wifi;
 	};
@@ -860,6 +860,8 @@  i2c_tunnel: i2c-tunnel {
 &uart6 {
 	status = "okay";

+	pinctrl-0 = <&qup_uart6_4pin>;
+
 	bluetooth: wcn3990-bt {
 		compatible = "qcom,wcn3990-bt";
 		vddio-supply = <&src_pp1800_s4a>;
@@ -1079,41 +1081,6 @@  pinconf {
 	};
 };

-&qup_uart6_default {
-	/* Change pinmux to all 4 pins since CTS and RTS are connected */
-	pinmux {
-		pins = "gpio45", "gpio46",
-		       "gpio47", "gpio48";
-	};
-
-	pinconf-cts {
-		/*
-		 * Configure a pull-down on 45 (CTS) to match the pull of
-		 * the Bluetooth module.
-		 */
-		pins = "gpio45";
-		bias-pull-down;
-	};
-
-	pinconf-rts-tx {
-		/* We'll drive 46 (RTS) and 47 (TX), so no pull */
-		pins = "gpio46", "gpio47";
-		drive-strength = <2>;
-		bias-disable;
-	};
-
-	pinconf-rx {
-		/*
-		 * Configure a pull-up on 48 (RX). This is needed to avoid
-		 * garbage data when the TX pin of the Bluetooth module is
-		 * in tri-state (module powered off or not driving the
-		 * signal yet).
-		 */
-		pins = "gpio48";
-		bias-pull-up;
-	};
-};
-
 &qup_uart9_default {
 	pinconf-tx {
 		pins = "gpio4";