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

Commit 179bfa2a authored by Ramesh Kodam's avatar Ramesh Kodam Committed by Gerrit - the friendly Code Review server
Browse files

ARM: dts: msm: Add QUPv3 entries for 2-wire UART



Add the QUPv3 and pinctrl definitions for se10_2uart
and se16_2uart.

Change-Id: I9e577705c7fb1514864f73bfc367874194db967a
Signed-off-by: default avatarRamesh Kodam <rameko@codeaurora.org>
parent 3934139e
Loading
Loading
Loading
Loading
+31 −0
Original line number Diff line number Diff line
@@ -345,6 +345,21 @@
	};

	/* 2-wire UART */
	qupv3_se10_2uart: qcom,qup_uart@a88000 {
		compatible = "qcom,msm-geni-serial-hs";
		reg = <0xa88000 0x4000>;
		reg-names = "se_phys";
		clock-names = "se-clk", "m-ahb", "s-ahb";
		clocks = <&clock_virt GCC_QUPV3_WRAP1_S2_CLK>,
			<&clock_virt GCC_QUPV3_WRAP_1_M_AHB_CLK>,
			<&clock_virt GCC_QUPV3_WRAP_1_S_AHB_CLK>;
		pinctrl-names = "default", "sleep";
		pinctrl-0 = <&qupv3_se10_2uart_active>;
		pinctrl-1 = <&qupv3_se10_2uart_sleep>;
		interrupts = <GIC_SPI 355 0>;
		qcom,wrapper-core = <&qupv3_1>;
		status = "disabled";
	};

	/* Debug UART Instance for CDP/MTP platform */
	qupv3_se12_2uart: qcom,qup_uart@0xa90000 {
@@ -363,6 +378,22 @@
		status = "disabled";
	};

	qupv3_se16_2uart: qcom,qup_uart@0xa94000 {
		compatible = "qcom,msm-geni-serial-hs";
		reg = <0xa94000 0x4000>;
		reg-names = "se_phys";
		clock-names = "se-clk", "m-ahb", "s-ahb";
		clocks = <&clock_virt GCC_QUPV3_WRAP1_S5_CLK>,
			<&clock_virt GCC_QUPV3_WRAP_1_M_AHB_CLK>,
			<&clock_virt GCC_QUPV3_WRAP_1_S_AHB_CLK>;
		pinctrl-names = "default", "sleep";
		pinctrl-0 = <&qupv3_se16_2uart_active>;
		pinctrl-1 = <&qupv3_se16_2uart_sleep>;
		interrupts = <GIC_SPI 358 0>;
		qcom,wrapper-core = <&qupv3_1>;
		status = "disabled";
	};

	/* 4-wire UART */
	qupv3_se13_4uart: qcom,qup_uart@0xc8c000 {
		compatible = "qcom,msm-geni-serial-hs";
+28 −0
Original line number Diff line number Diff line
@@ -4245,6 +4245,34 @@
			};
		};

		qupv3_se16_2uart_pins: qupv3_se16_2uart_pins {
			qupv3_se16_2uart_active: qupv3_se16_2uart_active {
				mux {
					pins = "gpio83", "gpio84";
					function = "qup16";
				};

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

			qupv3_se16_2uart_sleep: qupv3_se16_2uart_sleep {
				mux {
					pins = "gpio83", "gpio84";
					function = "gpio";
				};

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

		/* SE 13 UART 4-Wire pin mappings */
		qupv3_se13_4uart_pins: qupv3_se13_4uart_pins {
			qupv3_se13_default_ctsrtsrx:
+56 −0
Original line number Diff line number Diff line
@@ -224,6 +224,34 @@
			};
		};

		qupv3_se10_2uart_pins: qupv3_se10_2uart_pins {
			qupv3_se10_2uart_active: qupv3_se10_2uart_active {
				mux {
					pins = "gpio11", "gpio12";
					function = "qup10";
				};

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

			qupv3_se10_2uart_sleep: qupv3_se10_2uart_sleep {
				mux {
					pins = "gpio11", "gpio12";
					function = "gpio";
				};

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

		qupv3_se12_2uart_pins: qupv3_se12_2uart_pins {
			qupv3_se12_2uart_active: qupv3_se12_2uart_active {
				mux {
@@ -252,6 +280,34 @@
			};
		};

		qupv3_se16_2uart_pins: qupv3_se16_2uart_pins {
			qupv3_se16_2uart_active: qupv3_se16_2uart_active {
				mux {
					pins = "gpio83", "gpio84";
					function = "qup16";
				};

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

			qupv3_se16_2uart_sleep: qupv3_se16_2uart_sleep {
				mux {
					pins = "gpio83", "gpio84";
					function = "gpio";
				};

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

		qupv3_se13_4uart_pins: qupv3_se13_4uart_pins {
			qupv3_se13_default_ctsrtsrx:
				qupv3_se13_default_ctsrtsrx {