Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4dfa6a80 authored by Mukesh Kumar Savaliya's avatar Mukesh Kumar Savaliya Committed by Gerrit - the friendly Code Review server
Browse files

ARM: dts: msm: Add QUPV3 SE dt node for uart on sdm640



Add initial device tree nodes for QUPV3 uart
instance to support serial console.

Change-Id: If5c128da74f16c77dcb507ad5c8e243ea678353e
Signed-off-by: default avatarMukesh Kumar Savaliya <msavaliy@codeaurora.org>
Signed-off-by: default avatarShrey Vijay <shreyv@codeaurora.org>
Signed-off-by: default avatarSrinivas Ramana <sramana@codeaurora.org>
parent cb57e6b4
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -12,3 +12,7 @@

&soc {
};

&qupv3_se0_2uart {
	status = "ok";
};
+4 −0
Original line number Diff line number Diff line
@@ -12,3 +12,7 @@

&soc {
};

&qupv3_se0_2uart {
	status = "ok";
};
+28 −0
Original line number Diff line number Diff line
@@ -19,5 +19,33 @@
		#gpio-cells = <2>;
		interrupt-controller;
		#interrupt-cells = <2>;

		qupv3_se0_2uart_pins: qupv3_se0_2uart_pins {
			qupv3_se0_2uart_active: qupv3_se0_2uart_active {
				mux {
					pins = "gpio16", "gpio17";
					function = "qup00";
				};

				config {
					pins = "gpio16", "gpio17";
					drive-strength = <2>;
					bias-disable;
				};
			};

			qupv3_se0_2uart_sleep: qupv3_se0_2uart_sleep {
				mux {
					pins = "gpio16", "gpio17";
					function = "gpio";
				};

				config {
					pins = "gpio16", "gpio17";
					drive-strength = <2>;
					bias-disable;
				};
			};
		};
	};
};
+40 −0
Original line number Diff line number Diff line
/* Copyright (c) 2017-2018, The Linux Foundation. All rights reserved.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 and
 * only version 2 as published by the Free Software Foundation.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 */

#include <dt-bindings/msm/msm-bus-ids.h>

&soc {
	/* QUPv3 North Instances */
	qupv3_0: qcom,qupv3_0_geni_se@8c0000 {
		compatible = "qcom,qupv3-geni-se";
		reg = <0x8c0000 0x6000>;
		qcom,bus-mas-id = <MSM_BUS_MASTER_BLSP_1>;
		qcom,bus-slv-id = <MSM_BUS_SLAVE_EBI_CH0>;
	};

	/* Debug UART Instance for CDP/MTP platform */
	qupv3_se0_2uart: qcom,qup_uart@0x880000 {
		compatible = "qcom,msm-geni-console";
		reg = <0x880000 0x4000>;
		reg-names = "se_phys";
		clock-names = "se-clk", "m-ahb", "s-ahb";
		clocks = <&clock_gcc GCC_QUPV3_WRAP0_S0_CLK>,
			<&clock_gcc GCC_QUPV3_WRAP_0_M_AHB_CLK>,
			<&clock_gcc GCC_QUPV3_WRAP_0_S_AHB_CLK>;
		pinctrl-names = "default", "sleep";
		pinctrl-0 = <&qupv3_se0_2uart_active>;
		pinctrl-1 = <&qupv3_se0_2uart_sleep>;
		interrupts = <GIC_SPI 601 0>;
		qcom,wrapper-core = <&qupv3_0>;
		status = "disabled";
	};
};
+4 −0
Original line number Diff line number Diff line
@@ -23,3 +23,7 @@
		status = "disabled";
	};
};

&qupv3_se0_2uart {
	status = "ok";
};
Loading