Created
October 14, 2022 12:40
-
-
Save phhusson/341a190c7f88490d6a2d30ba458dc29f to your computer and use it in GitHub Desktop.
[Amlogic s905x2] Remuxing serial/uart port over sdcard/microsd connector
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/arch/arm64/boot/dts/amlogic/meson-g12-common.dtsi b/arch/arm64/boot/dts/amlogic/meson-g12-common.dtsi | |
index 45947c1031c4..95006ae7c33a 100644 | |
--- a/arch/arm64/boot/dts/amlogic/meson-g12-common.dtsi | |
+++ b/arch/arm64/boot/dts/amlogic/meson-g12-common.dtsi | |
@@ -1536,6 +1556,14 @@ mux { | |
bias-disable; | |
}; | |
}; | |
+ | |
+ uart_ao_a_c_pins: uart-a-ao-c { | |
+ mux { | |
+ groups = "uart_ao_a_rx_c", "uart_ao_a_tx_c"; | |
+ function = "uart_ao_a_c"; | |
+ bias-disable; | |
+ }; | |
+ }; | |
}; | |
}; | |
diff --git a/arch/arm64/boot/dts/amlogic/meson-g12a-sei510.dts b/arch/arm64/boot/dts/amlogic/meson-g12a-sei510.dts | |
index 4fb31c2ba31c..5f96c68d1123 100644 | |
--- a/arch/arm64/boot/dts/amlogic/meson-g12a-sei510.dts | |
+++ b/arch/arm64/boot/dts/amlogic/meson-g12a-sei510.dts | |
@@ -445,7 +445,7 @@ brcmf: wifi@1 { | |
}; | |
/* SD card */ | |
-&sd_emmc_b { | |
+/*&sd_emmc_b { | |
status = "okay"; | |
pinctrl-0 = <&sdcard_c_pins>; | |
pinctrl-1 = <&sdcard_clk_gate_c_pins>; | |
@@ -459,7 +459,7 @@ &sd_emmc_b { | |
cd-gpios = <&gpio GPIOC_6 GPIO_ACTIVE_LOW>; | |
vmmc-supply = <&vddao_3v3>; | |
vqmmc-supply = <&vddao_3v3>; | |
-}; | |
+};*/ | |
/* eMMC */ | |
&sd_emmc_c { | |
@@ -548,7 +548,7 @@ bluetooth { | |
&uart_AO { | |
status = "okay"; | |
- pinctrl-0 = <&uart_ao_a_pins>; | |
+ pinctrl-0 = <&uart_ao_a_c_pins>; | |
pinctrl-names = "default"; | |
}; | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment