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

Enable console support on cinder

Change-Id: I5428597e0e8db87b4efa5bc9312e9b29de166dcf
This commit is contained in:
Yatish Kumar Singh
2021-11-30 17:30:51 +05:30
parent 9fa8275f57
commit b3a2cac038
4 changed files with 64 additions and 1 deletions

View File

@@ -1,3 +1,29 @@
&tlmm {
qupv3_se7_2uart_pins: qupv3_se7_2uart_pins {
qupv3_se7_2uart_active: qupv3_se7_2uart_active {
mux {
pins = "gpio134", "gpio135";
function = "qup07";
};
config {
pins = "gpio134", "gpio135";
drive-strength= <2>;
bias-disable;
};
};
qupv3_se7_2uart_sleep: qupv3_se7_2uart_sleep {
mux {
pins = "gpio134", "gpio135";
function = "gpio";
};
config {
pins = "gpio134", "gpio135";
drive-strength = <2>;
bias-pull-down;
};
};
};
};

27
qcom/cinder-qupv3.dtsi Normal file
View File

@@ -0,0 +1,27 @@
&soc {
/* QUPv3_0 wrapper instance */
qupv3_0: qcom,qupv3_0_geni_se@9c0000 {
compatible = "qcom,geni-se-qup";
reg = <0x9c0000 0x2000>;
clock-names = "m-ahb", "s-ahb";
clocks = <&gcc GCC_QUPV3_WRAP_0_M_AHB_CLK>,
<&gcc GCC_QUPV3_WRAP_0_S_AHB_CLK>;
#address-cells = <1>;
#size-cells = <1>;
ranges;
status = "ok";
/*PORed Debug UART Instance */
qupv3_se7_2uart: qcom,qup_uart@99c000 {
compatible = "qcom,geni-debug-uart";
reg = <0x99c000 0x4000>;
reg-names = "se_phys";
interrupts = <GIC_SPI 608 IRQ_TYPE_LEVEL_HIGH>;
clock-names = "se";
clocks = <&gcc GCC_QUPV3_WRAP1_S7_CLK>;
pinctrl-names = "default", "sleep";
pinctrl-0 = <&qupv3_se7_2uart_active>;
pinctrl-1 = <&qupv3_se7_2uart_sleep>;
};
};
};

View File

@@ -13,3 +13,7 @@
&soc {
};
&qupv3_se7_2uart {
qcom,rumi_platform;
};

View File

@@ -13,7 +13,9 @@
chosen: chosen { };
aliases { };
aliases {
serial0 = &qupv3_se7_2uart;
};
firmware: firmware { };
@@ -389,4 +391,8 @@
};
#include "cinder-pinctrl.dtsi"
#include "cinder-qupv3.dtsi"
&qupv3_se7_2uart {
status = "ok";
};