ARM: dts: msm: Add QUPv3 UART console node for tuna

Enable console support on tuna.

Change-Id: I0ece6ae1ba50d94f90404522403c24176c3770e0
Signed-off-by: Prasanna S <quic_prass@quicinc.com>
This commit is contained in:
Prasanna S
2024-04-10 11:46:23 +05:30
parent 22def36761
commit f57588b209
4 changed files with 85 additions and 1 deletions

View File

@@ -4,4 +4,44 @@
*/ */
&tlmm { &tlmm {
qupv3_se7_2uart_pins: qupv3_se7_2uart_pins {
qupv3_se7_2uart_tx_active: qupv3_se7_2uart_tx_active {
mux {
pins = "gpio30";
function = "qup1_se7_l2";
};
config {
pins = "gpio30";
drive-strength = <2>;
bias-disable;
};
};
qupv3_se7_2uart_rx_active: qupv3_se7_2uart_rx_active {
mux {
pins = "gpio31";
function = "qup1_se7_l3";
};
config {
pins = "gpio31";
drive-strength = <2>;
bias-disable;
};
};
qupv3_se7_2uart_sleep: qupv3_se7_2uart_sleep {
mux {
pins = "gpio30", "gpio31";
function = "gpio";
};
config {
pins = "gpio30", "gpio31";
drive-strength = <2>;
bias-pull-down;
};
};
};
}; };

33
qcom/tuna-qupv3.dtsi Normal file
View File

@@ -0,0 +1,33 @@
// SPDX-License-Identifier: BSD-3-Clause
/*
* Copyright (c) 2024 Qualcomm Innovation Center, Inc. All rights reserved.
*/
&soc {
/* QUPv3_1 Wrapper Instance */
qupv3_1: qcom,qupv3_1_geni_se@ac0000 {
compatible = "qcom,geni-se-qup";
reg = <0xac0000 0x2000>;
#address-cells = <1>;
#size-cells = <1>;
clock-names = "m-ahb", "s-ahb";
clocks = <&gcc GCC_QUPV3_WRAP_1_M_AHB_CLK>,
<&gcc GCC_QUPV3_WRAP_1_S_AHB_CLK>;
ranges;
status = "ok";
/* Debug UART Instance */
qupv3_se7_2uart: qcom,qup_uart@a9c000 {
compatible = "qcom,geni-debug-uart";
reg = <0xA9C000 0x4000>;
reg-names = "se_phys";
interrupts = <GIC_SPI 579 IRQ_TYPE_LEVEL_HIGH>;
clock-names = "se";
clocks = <&gcc GCC_QUPV3_WRAP1_S7_CLK>;
pinctrl-names = "default", "sleep";
pinctrl-0 = <&qupv3_se7_2uart_tx_active>, <&qupv3_se7_2uart_rx_active>;
pinctrl-1 = <&qupv3_se7_2uart_sleep>;
status = "disabled";
};
};
};

View File

@@ -46,3 +46,7 @@
&disp_rsc { &disp_rsc {
status = "disabled"; status = "disabled";
}; };
&qupv3_se7_2uart {
qcom,rumi_platform;
};

View File

@@ -38,7 +38,9 @@
firmware: firmware {}; firmware: firmware {};
aliases {}; aliases {
serial0 = &qupv3_se7_2uart;
};
cpus { cpus {
#address-cells = <2>; #address-cells = <2>;
@@ -695,3 +697,8 @@
#include "tuna-pinctrl.dtsi" #include "tuna-pinctrl.dtsi"
#include "tuna-stub-regulators.dtsi" #include "tuna-stub-regulators.dtsi"
#include "tuna-usb.dtsi" #include "tuna-usb.dtsi"
#include "tuna-qupv3.dtsi"
&qupv3_se7_2uart {
status = "ok";
};