]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
arm64: dts: qcom: agatti: add uart2 node
authorRiccardo Mereu <r.mereu@arduino.cc>
Thu, 20 Nov 2025 15:58:24 +0000 (16:58 +0100)
committerBjorn Andersson <andersson@kernel.org>
Sat, 3 Jan 2026 18:42:36 +0000 (12:42 -0600)
uart2 is used in Arduino UnoQ as an interface between microprocessor and
microcontroller.

Signed-off-by: Riccardo Mereu <r.mereu@arduino.cc>
Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
Link: https://lore.kernel.org/r/20251120155825.121483-6-r.mereu.kernel@arduino.cc
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
arch/arm64/boot/dts/qcom/agatti.dtsi

index 8bf5c5583fc22ea95792adf061880cd2aeeb67fc..992a157c571fc44cbcdc3fa8459ef0ba2a9ff8f6 100644 (file)
                                bias-disable;
                        };
 
+                       qup_uart2_default: qup-uart2-default-state {
+                               pins = "gpio6", "gpio7", "gpio71", "gpio80";
+                               function = "qup2";
+                               drive-strength = <2>;
+                               bias-disable;
+                       };
+
                        qup_uart3_default: qup-uart3-default-state {
                                pins = "gpio8", "gpio9", "gpio10", "gpio11";
                                function = "qup3";
                                status = "disabled";
                        };
 
+                       uart2: serial@4a88000 {
+                               compatible = "qcom,geni-uart";
+                               reg = <0x0 0x04a88000 0x0 0x4000>;
+                               interrupts = <GIC_SPI 329 IRQ_TYPE_LEVEL_HIGH>;
+                               clocks = <&gcc GCC_QUPV3_WRAP0_S2_CLK>;
+                               clock-names = "se";
+                               pinctrl-0 = <&qup_uart2_default>;
+                               pinctrl-names = "default";
+                               interconnects = <&qup_virt MASTER_QUP_CORE_0 RPM_ALWAYS_TAG
+                                                &qup_virt SLAVE_QUP_CORE_0 RPM_ALWAYS_TAG>,
+                                               <&bimc MASTER_APPSS_PROC RPM_ALWAYS_TAG
+                                                &config_noc MASTER_APPSS_PROC RPM_ALWAYS_TAG>;
+                               interconnect-names = "qup-core",
+                                                    "qup-config";
+                               status = "disabled";
+                       };
+
                        i2c3: i2c@4a8c000 {
                                compatible = "qcom,geni-i2c";
                                reg = <0x0 0x04a8c000 0x0 0x4000>;