]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
arm64: dts: qcom: sm4450: add uart console support
authorTengfei Fan <quic_tengfan@quicinc.com>
Wed, 29 Nov 2023 10:33:22 +0000 (18:33 +0800)
committerBjorn Andersson <andersson@kernel.org>
Sun, 3 Dec 2023 01:33:22 +0000 (17:33 -0800)
Add base description of UART and TLMM nodes which helps SM4450
boot to shell with console on boards with this SoC.

Reviewed-by: Konrad Dybcio <konrad.dybcio@linaro.org>
Signed-off-by: Tengfei Fan <quic_tengfan@quicinc.com>
Link: https://lore.kernel.org/r/20231129103325.24854-4-quic_tengfan@quicinc.com
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
arch/arm64/boot/dts/qcom/sm4450.dtsi

index 5a8a54b0f6c15ca0993a94c75b84e3dbc86ad93c..3e7ae3bebbe081d992ebffec7edb9f6fb113bd5f 100644 (file)
                                 <0>;
                };
 
+               qupv3_id_0: geniqup@ac0000 {
+                       compatible = "qcom,geni-se-qup";
+                       reg = <0x0 0x00ac0000 0x0 0x2000>;
+                       ranges;
+                       clocks = <&gcc GCC_QUPV3_WRAP_0_M_AHB_CLK>,
+                                <&gcc GCC_QUPV3_WRAP_0_S_AHB_CLK>;
+                       clock-names = "m-ahb", "s-ahb";
+                       #address-cells = <2>;
+                       #size-cells = <2>;
+                       status = "disabled";
+
+                       uart7: serial@a88000 {
+                               compatible = "qcom,geni-debug-uart";
+                               reg = <0x0 0x00a88000 0x0 0x4000>;
+                               clocks = <&gcc GCC_QUPV3_WRAP1_S2_CLK>;
+                               clock-names = "se";
+                               interrupts = <GIC_SPI 355 IRQ_TYPE_LEVEL_HIGH>;
+                               pinctrl-0 = <&qup_uart7_tx>, <&qup_uart7_rx>;
+                               pinctrl-names = "default";
+                               status = "disabled";
+                       };
+               };
+
                tcsr_mutex: hwlock@1f40000 {
                        compatible = "qcom,tcsr-mutex";
                        reg = <0x0 0x01f40000 0x0 0x40000>;
                        interrupt-controller;
                };
 
+               tlmm: pinctrl@f100000 {
+                       compatible = "qcom,sm4450-tlmm";
+                       reg = <0x0 0x0f100000 0x0 0x300000>;
+                       interrupts = <GIC_SPI 208 IRQ_TYPE_LEVEL_HIGH>;
+                       gpio-controller;
+                       #gpio-cells = <2>;
+                       interrupt-controller;
+                       #interrupt-cells = <2>;
+                       gpio-ranges = <&tlmm 0 0 137>;
+                       wakeup-parent = <&pdc>;
+
+                       qup_uart7_rx: qup-uart7-rx-state {
+                               pins = "gpio23";
+                               function = "qup1_se2_l2";
+                               drive-strength = <2>;
+                               bias-disable;
+                       };
+
+                       qup_uart7_tx: qup-uart7-tx-state {
+                               pins = "gpio22";
+                               function = "qup1_se2_l2";
+                               drive-strength = <2>;
+                               bias-disable;
+                       };
+               };
+
                intc: interrupt-controller@17200000 {
                        compatible = "arm,gic-v3";
                        reg = <0x0 0x17200000 0x0 0x10000>,     /* GICD */