]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
arm64: dts: qcom: sm6125: Add debug UART node
authorBiswapriyo Nath <nathbappai@gmail.com>
Wed, 21 Jan 2026 13:26:19 +0000 (13:26 +0000)
committerBjorn Andersson <andersson@kernel.org>
Thu, 26 Mar 2026 14:40:34 +0000 (09:40 -0500)
qup0 on sm6125 has 6 SEs and SE4 is used as debug uart. The uart node
and the associated pinctrl are added here.

Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
Signed-off-by: Biswapriyo Nath <nathbappai@gmail.com>
Link: https://lore.kernel.org/r/20260121-xiaomi-ginkgo-features-v2-3-fb3ee94922d0@gmail.com
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
arch/arm64/boot/dts/qcom/sm6125.dtsi

index 16a65b3c87eb32e3ec60934050e284a0587d6a7b..c84911a98fce9bca3e77261eb7e45674e2d011f8 100644 (file)
                                drive-strength = <6>;
                                bias-disable;
                        };
+
+                       qup_uart4_default: qup-uart4-default-state {
+                               pins = "gpio16", "gpio17";
+                               function = "qup04";
+                               drive-strength = <2>;
+                               bias-disable;
+                       };
                };
 
                gcc: clock-controller@1400000 {
                                #size-cells = <0>;
                                status = "disabled";
                        };
+
+                       uart4: serial@4a90000 {
+                               compatible = "qcom,geni-debug-uart";
+                               reg = <0x04a90000 0x4000>;
+                               clocks = <&gcc GCC_QUPV3_WRAP0_S4_CLK>;
+                               clock-names = "se";
+                               interrupts = <GIC_SPI 331 IRQ_TYPE_LEVEL_HIGH>;
+                               pinctrl-0 = <&qup_uart4_default>;
+                               pinctrl-names = "default";
+                               status = "disabled";
+                       };
                };
 
                gpi_dma1: dma-controller@4c00000 {