]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
arm64: dts: qcom: sm6115: add debug UART pins
authorBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Wed, 25 Jun 2025 15:28:38 +0000 (17:28 +0200)
committerBjorn Andersson <andersson@kernel.org>
Wed, 25 Jun 2025 19:32:22 +0000 (14:32 -0500)
We should not rely on the bootloader to set up the pinmux of the debug
UART port. Let's add pin definitions for uart4 to tlmm and bind them to
the relevant device node.

Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
Link: https://lore.kernel.org/r/20250625152839.193672-1-brgl@bgdev.pl
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
arch/arm64/boot/dts/qcom/sm6115.dtsi

index c8865779173eca65f9e94535b5339f590d4b1410..91fc36b59abf96d008ddeb43f3e4b9f0cfd49901 100644 (file)
                                bias-pull-up;
                        };
 
+                       qup_uart4_default: qup-uart4-default-state {
+                               pins = "gpio12", "gpio13";
+                               function = "qup4";
+                               drive-strength = <2>;
+                               bias-disable;
+                       };
+
                        sdc1_state_on: sdc1-on-state {
                                clk-pins {
                                        pins = "sdc1_clk";
                                reg = <0x0 0x04a90000 0x0 0x4000>;
                                clock-names = "se";
                                clocks = <&gcc GCC_QUPV3_WRAP0_S4_CLK>;
+                               pinctrl-names = "default";
+                               pinctrl-0 = <&qup_uart4_default>;
                                interrupts = <GIC_SPI 331 IRQ_TYPE_LEVEL_HIGH>;
                                interconnects = <&clk_virt MASTER_QUP_CORE_0 RPM_ALWAYS_TAG
                                                 &clk_virt SLAVE_QUP_CORE_0 RPM_ALWAYS_TAG>,