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

Commit 945c12a7 authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

Merge "ARM: dts: msm: Add UART and QUPv3 geni dt nodes for lagoon"

parents d93794ec 37aa0cb8
Loading
Loading
Loading
Loading
+56 −0
Original line number Diff line number Diff line
@@ -53,5 +53,61 @@
				output-high; /* active low reset */
			};
		};

		qupv3_se7_2uart_pins: qupv3_se7_2uart_pins {
			qupv3_se7_2uart_active: qupv3_se7_2uart_active {
				mux {
					pins = "gpio28", "gpio27";
					function = "qup11";
				};

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

			qupv3_se7_2uart_sleep: qupv3_se7_2uart_sleep {
				mux {
					pins = "gpio28", "gpio27";
					function = "gpio";
				};

				config {
					pins = "gpio28", "gpio27";
					drive-strength = <2>;
					bias-pull-down;
				};
			};
		};

		qupv3_se9_2uart_pins: qupv3_se9_2uart_pins {
			qupv3_se9_2uart_active: qupv3_se9_2uart_active {
				mux {
					pins = "gpio26", "gpio25";
					function = "qup13";
				};

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

			qupv3_se9_2uart_sleep: qupv3_se9_2uart_sleep {
				mux {
					pins = "gpio26", "gpio25";
					function = "gpio";
				};

				config {
					pins = "gpio26", "gpio25";
					drive-strength = <2>;
					bias-pull-down;
				};
			};
		};
	};
};

qcom/lagoon-qupv3.dtsi

0 → 100644
+50 −0
Original line number Diff line number Diff line
#include <dt-bindings/msm/msm-bus-ids.h>

&soc {
	/* QUPv3_1  wrapper  instance */
	qupv3_1: qcom,qupv3_1_geni_se@9c0000 {
		compatible = "qcom,qupv3-geni-se";
		reg = <0x9c0000 0x2000>;
		qcom,msm-bus,num-paths = <2>;
		qcom,msm-bus,vectors-bus-ids =
			<MSM_BUS_MASTER_QUP_CORE_0 MSM_BUS_SLAVE_QUP_CORE_0>,
			<MSM_BUS_MASTER_QUP_0 MSM_BUS_SLAVE_EBI_CH0>;
		iommus = <&apps_smmu 0x0e3 0x0>;
		qcom,iommu-dma-addr-pool = <0x40000000 0xc0000000>;
		qcom,iommu-dma = "atomic";
	};

	/* RUMI Debug UART Instance */
	qupv3_se7_2uart: qcom,qup_uart@984000 {
		compatible = "qcom,msm-geni-console";
		reg = <0x984000 0x4000>;
		reg-names = "se_phys";
		clock-names = "se-clk", "m-ahb", "s-ahb";
		clocks = <&gcc GCC_QUPV3_WRAP1_S1_CLK>,
			<&gcc GCC_QUPV3_WRAP_1_M_AHB_CLK>,
			<&gcc GCC_QUPV3_WRAP_1_S_AHB_CLK>;
		pinctrl-names = "default", "sleep";
		pinctrl-0 = <&qupv3_se7_2uart_active>;
		pinctrl-1 = <&qupv3_se7_2uart_sleep>;
		interrupts = <GIC_SPI 354 IRQ_TYPE_LEVEL_HIGH>;
		qcom,wrapper-core = <&qupv3_1>;
		status = "disabled";
	};

	/* Debug UART Instance */
	qupv3_se9_2uart: qcom,qup_uart@98c000 {
		compatible = "qcom,msm-geni-console";
		reg = <0x98c000 0x4000>;
		reg-names = "se_phys";
		clock-names = "se-clk", "m-ahb", "s-ahb";
		clocks = <&gcc GCC_QUPV3_WRAP1_S3_CLK>,
			<&gcc GCC_QUPV3_WRAP_1_M_AHB_CLK>,
			<&gcc GCC_QUPV3_WRAP_1_S_AHB_CLK>;
		pinctrl-names = "default", "sleep";
		pinctrl-0 = <&qupv3_se9_2uart_active>;
		pinctrl-1 = <&qupv3_se9_2uart_sleep>;
		interrupts = <GIC_SPI 356 IRQ_TYPE_LEVEL_HIGH>;
		qcom,wrapper-core = <&qupv3_1>;
		status = "disabled";
	};
};
+7 −0
Original line number Diff line number Diff line
@@ -21,6 +21,7 @@

	aliases {
		ufshc1 = &ufshc_mem; /* Embedded UFS slot */
		serial0 = &qupv3_se9_2uart; /* Debug Console */
	};

	cpus {
@@ -1151,3 +1152,9 @@
#include "lagoon-pm.dtsi"
#include "lagoon-stub-regulator.dtsi"
#include "lagoon-ion.dtsi"
#include "lagoon-qupv3.dtsi"

/*Debug UART*/
&qupv3_se9_2uart {
	status = "ok";
};