ARM: dts: qcom: apq8064: add support to gsbi4 uart
authorDavid Heidelberg <david@ixit.cz>
Mon, 14 Aug 2023 15:00:40 +0000 (17:00 +0200)
committerBjorn Andersson <andersson@kernel.org>
Fri, 18 Aug 2023 02:40:23 +0000 (19:40 -0700)
This patch adds support to gsbi4 uart which is used in LG Mako.

Signed-off-by: David Heidelberg <david@ixit.cz>
Link: https://lore.kernel.org/r/20230814150040.64133-1-david@ixit.cz
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
arch/arm/boot/dts/qcom/qcom-apq8064-pins.dtsi
arch/arm/boot/dts/qcom/qcom-apq8064.dtsi

index b4d286a..7c545c5 100644 (file)
                };
        };
 
+       gsbi4_uart_pin_a: gsbi4-uart-pin-active-state {
+               rx-pins {
+                       pins = "gpio11";
+                       function = "gsbi4";
+                       drive-strength = <2>;
+                       bias-disable;
+               };
+
+               tx-pins {
+                       pins = "gpio10";
+                       function = "gsbi4";
+                       drive-strength = <4>;
+                       bias-disable;
+               };
+       };
+
        gsbi6_uart_2pins: gsbi6_uart_2pins {
                mux {
                        pins = "gpio14", "gpio15";
index e0adf23..516f0d2 100644 (file)
                        #size-cells = <1>;
                        ranges;
 
+                       gsbi4_serial: serial@16340000 {
+                               compatible = "qcom,msm-uartdm-v1.3", "qcom,msm-uartdm";
+                               reg = <0x16340000 0x100>,
+                                     <0x16300000 0x3>;
+                               interrupts = <GIC_SPI 152 IRQ_TYPE_LEVEL_HIGH>;
+                               pinctrl-0 = <&gsbi4_uart_pin_a>;
+                               pinctrl-names = "default";
+                               clocks = <&gcc GSBI4_UART_CLK>, <&gcc GSBI4_H_CLK>;
+                               clock-names = "core", "iface";
+                               status = "disabled";
+                       };
+
                        gsbi4_i2c: i2c@16380000 {
                                compatible = "qcom,i2c-qup-v1.1.1";
                                pinctrl-0 = <&i2c4_pins>;