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

Enable console support on sdxbaagha.

Change-Id: Ic7ea9a049b2066100b8120d7da5c459429ee44c1
This commit is contained in:
Yatish Kumar Singh
2022-06-13 18:58:28 +05:30
committed by Visweswara Tanuku
parent ff4b12e7fd
commit 7062f308e4
4 changed files with 95 additions and 1 deletions

View File

@@ -8,5 +8,46 @@
interrupt-controller;
interrupt-parent = <&intc>;
#interrupt-cells = <2>;
qupv3_se3_2uart_pins: qupv3_se3_2uart_pins {
qupv3_se3_2uart_tx_active: qupv3_se3_2uart_tx_active {
mux {
pins = "gpio8";
function = "qup0_se3_l2_mira";
};
config {
pins = "gpio8";
drive-strength= <2>;
bias-disable;
};
};
qupv3_se3_2uart_rx_active: qupv3_se3_2uart_rx_active {
mux {
pins = "gpio9";
function = "qup0_se3_l3_mira";
};
config {
pins = "gpio9";
drive-strength= <2>;
bias-disable;
};
};
qupv3_se3_2uart_sleep: qupv3_se3_2uart_sleep {
mux {
pins = "gpio8", "gpio9";
function = "gpio";
};
config {
pins = "gpio8", "gpio9";
drive-strength = <2>;
bias-pull-down;
};
};
};
};
};

42
qcom/sdxbaagha-qupv3.dtsi Normal file
View File

@@ -0,0 +1,42 @@
&soc {
/* QUPv3_0 wrapper instance */
qupv3_0: qcom,qupv3_0_geni_se@9c0000 {
compatible = "qcom,geni-se-qup";
reg = <0x9c0000 0x2000>;
#address-cells = <1>;
#size-cells = <1>;
clock-names = "m-ahb", "s-ahb";
clocks = <&gcc GCC_QUPV3_WRAP_0_M_AHB_CLK>,
<&gcc GCC_QUPV3_WRAP_0_S_AHB_CLK>;
/*
* iommus = <&apps_smmu 0xa3 0x0>;
* qcom,iommu-dma-addr-pool = <0x40000000 0x10000000>;
* qcom,iommu-geometry = <0x40000000 0x10000000>;
* qcom,iommu-dma = "fastmap";
* dma-coherent;
*/
ranges;
status = "ok";
/*PORed Debug UART Instance */
qupv3_se3_2uart: qcom,qup_uart@98c000 {
compatible = "qcom,geni-debug-uart";
reg = <0x98c000 0x4000>;
reg-names = "se_phys";
interrupts = <GIC_SPI 58 IRQ_TYPE_LEVEL_HIGH>;
clock-names = "se";
clocks = <&gcc GCC_QUPV3_WRAP0_S3_CLK>;
/*
* interconnect-names = "qup-core", "qup-config", "qup-memory";
* interconnects =
* <&clk_virt MASTER_QUP_CORE_1 &clk_virt SLAVE_QUP_CORE_1>,
* <&gem_noc MASTER_APPSS_PROC &config_noc SLAVE_QUP_1>,
* <&aggre1_noc MASTER_QUP_1 &mc_virt SLAVE_EBI1>;
*/
pinctrl-names = "default", "sleep";
pinctrl-0 = <&qupv3_se3_2uart_tx_active>, <&qupv3_se3_2uart_rx_active>;
pinctrl-1 = <&qupv3_se3_2uart_sleep>;
status = "disabled";
};
};
};

View File

@@ -1,2 +1,6 @@
&soc {
};
&qupv3_se3_2uart {
qcom,rumi_platform;
};

View File

@@ -11,7 +11,9 @@
qcom,msm-id = <570 0x10000>, <571 0x10000>;
interrupt-parent = <&intc>;
aliases { };
aliases {
serial0 = &qupv3_se3_2uart;
};
chosen { };
@@ -295,3 +297,8 @@
#include "sdxbaagha-pinctrl.dtsi"
#include "sdxbaagha-dma-heaps.dtsi"
#include "msm-arm-smmu-sdxbaagha.dtsi"
#include "sdxbaagha-qupv3.dtsi"
&qupv3_se3_2uart {
status = "ok";
};