Skip to content

Commit 3cfa556

Browse files
okiasandersson
authored andcommitted
ARM: dts: qcom: apq8064: add support to gsbi4 uart
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>
1 parent f636d6c commit 3cfa556

File tree

2 files changed

+28
-0
lines changed

2 files changed

+28
-0
lines changed

arch/arm/boot/dts/qcom/qcom-apq8064-pins.dtsi

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -233,6 +233,22 @@
233233
};
234234
};
235235

236+
gsbi4_uart_pin_a: gsbi4-uart-pin-active-state {
237+
rx-pins {
238+
pins = "gpio11";
239+
function = "gsbi4";
240+
drive-strength = <2>;
241+
bias-disable;
242+
};
243+
244+
tx-pins {
245+
pins = "gpio10";
246+
function = "gsbi4";
247+
drive-strength = <4>;
248+
bias-disable;
249+
};
250+
};
251+
236252
gsbi6_uart_2pins: gsbi6_uart_2pins {
237253
mux {
238254
pins = "gpio14", "gpio15";

arch/arm/boot/dts/qcom/qcom-apq8064.dtsi

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -515,6 +515,18 @@
515515
#size-cells = <1>;
516516
ranges;
517517

518+
gsbi4_serial: serial@16340000 {
519+
compatible = "qcom,msm-uartdm-v1.3", "qcom,msm-uartdm";
520+
reg = <0x16340000 0x100>,
521+
<0x16300000 0x3>;
522+
interrupts = <GIC_SPI 152 IRQ_TYPE_LEVEL_HIGH>;
523+
pinctrl-0 = <&gsbi4_uart_pin_a>;
524+
pinctrl-names = "default";
525+
clocks = <&gcc GSBI4_UART_CLK>, <&gcc GSBI4_H_CLK>;
526+
clock-names = "core", "iface";
527+
status = "disabled";
528+
};
529+
518530
gsbi4_i2c: i2c@16380000 {
519531
compatible = "qcom,i2c-qup-v1.1.1";
520532
pinctrl-0 = <&i2c4_pins>;

0 commit comments

Comments
 (0)