diff --git a/qcom/tuna-pinctrl.dtsi b/qcom/tuna-pinctrl.dtsi index f0567b81..83a10696 100644 --- a/qcom/tuna-pinctrl.dtsi +++ b/qcom/tuna-pinctrl.dtsi @@ -4,4 +4,44 @@ */ &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; + }; + }; + }; }; diff --git a/qcom/tuna-qupv3.dtsi b/qcom/tuna-qupv3.dtsi new file mode 100644 index 00000000..f7100943 --- /dev/null +++ b/qcom/tuna-qupv3.dtsi @@ -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 = ; + 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"; + }; + }; +}; diff --git a/qcom/tuna-rumi.dtsi b/qcom/tuna-rumi.dtsi index d378dc43..7ece493c 100644 --- a/qcom/tuna-rumi.dtsi +++ b/qcom/tuna-rumi.dtsi @@ -46,3 +46,7 @@ &disp_rsc { status = "disabled"; }; + +&qupv3_se7_2uart { + qcom,rumi_platform; +}; diff --git a/qcom/tuna.dtsi b/qcom/tuna.dtsi index 23941f21..b049e46f 100644 --- a/qcom/tuna.dtsi +++ b/qcom/tuna.dtsi @@ -38,7 +38,9 @@ firmware: firmware {}; - aliases {}; + aliases { + serial0 = &qupv3_se7_2uart; + }; cpus { #address-cells = <2>; @@ -695,3 +697,8 @@ #include "tuna-pinctrl.dtsi" #include "tuna-stub-regulators.dtsi" #include "tuna-usb.dtsi" +#include "tuna-qupv3.dtsi" + +&qupv3_se7_2uart { + status = "ok"; +};