Merge "ARM: dts: msm: Add QUPv3 UART console node for sun"

This commit is contained in:
qctecmdr
2023-05-29 02:29:54 -07:00
committed by Gerrit - the friendly Code Review server
4 changed files with 84 additions and 1 deletions

View File

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

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

@@ -0,0 +1,33 @@
// SPDX-License-Identifier: BSD-3-Clause
/*
* Copyright (c) 2023 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

@@ -17,3 +17,7 @@
&memtimer {
clock-frequency = <192000>;
};
&qupv3_se7_2uart {
qcom,rumi_platform;
};

View File

@@ -30,7 +30,9 @@
bootargs = "nokaslr kpti=0 log_buf_len=256K swiotlb=0 loop.max_part=7";
};
aliases { };
aliases {
serial0 = &qupv3_se7_2uart;
};
firmware: firmware { };
@@ -847,3 +849,8 @@
#include "msm-arm-smmu-sun.dtsi"
#include "sun-pinctrl.dtsi"
#include "sun-regulators.dtsi"
#include "sun-qupv3.dtsi"
&qupv3_se7_2uart {
status = "ok";
};