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

Commit 4fc489cb authored by Sujeev Dias's avatar Sujeev Dias Committed by Gerrit - the friendly Code Review server
Browse files

mhi: controller: qcom: remove mhi platform driver



MHI no longer needs to have a platform driver since PCI
bus framework supports devicetree binding.

CRs-Fixed: 2253996
Change-Id: I2ab5c05f6a4bf51fbd6960fefa8fc39f8002d28b
Signed-off-by: default avatarSujeev Dias <sdias@codeaurora.org>
parent b8900bc7
Loading
Loading
Loading
Loading
+24 −37
Original line number Diff line number Diff line
@@ -9,31 +9,11 @@ Node Structure

Main node properties:

- compatible
- reg
  Usage: required
  Value type: <string>
  Definition: "qcom,mhi"

- qcom,pci-dev-id
  Usage: optional
  Value type: <u32>
  Definition: PCIe device id of external modem to bind. If not set, any
	device is compatible with this node.

- qcom,pci-domain
  Usage: required
  Value type: <u32>
  Definition: PCIe root complex external modem connected to

- qcom,pci-bus
  Usage: required
  Value type: <u32>
  Definition: PCIe bus external modem connected to

- qcom,pci-slot
  Usage: required
  Value type: <u32>
  Definition: PCIe slot as assigned by pci framework to external modem
  Value type: Array (5-cell PCI resource) of <u32>
  Definition: First cell is devfn, which is determined by pci bus topology.
	Assign the other cells 0 since they are not used.

- qcom,smmu-cfg
  Usage: required
@@ -94,11 +74,15 @@ Main node properties:
========
Example:
========

/* pcie domain (root complex) modem connected to */
&pcie1 {
	/* pcie bus modem connected to */
	pci,bus@1 {
		reg = <0 0 0 0 0>;

		qcom,mhi {
	compatible = "qcom,mhi";
	qcom,pci-domain = <0>;
	qcom,pci-bus = <1>;
	qcom,pci-slot = <0>;
			reg = <0 0 0 0 0>;
			qcom,smmu-cfg = <0x3d>;
			qcom,addr-win = <0x0 0x20000000 0x0 0x3fffffff>;
			qcom,msm-bus,name = "mhi";
@@ -106,5 +90,8 @@ qcom,mhi {
			qcom,msm-bus,num-paths = <1>;
			qcom,msm-bus,vectors-KBps = <45 512 0 0>,
				<45 512 1200000000 650000000>;

			<mhi bus configurations>
		};
	};
};
+0 −1
Original line number Diff line number Diff line
@@ -454,7 +454,6 @@

&mhi_0 {
	mhi,fw-name = "debug.mbn";
	status = "okay";
};

&pm8150b_adc_tm {
+403 −402
Original line number Diff line number Diff line
@@ -11,13 +11,14 @@
 * GNU General Public License for more details.
 */

&soc {
	mhi_0: qcom,mhi {
&pcie1 {
	pci,bus@1 {
		reg = <0 0 0 0 0>;

		mhi_0: qcom,mhi@0 {
			reg = <0 0 0 0 0 >;

			/* controller specific configuration */
		compatible = "qcom,mhi";
		qcom,pci-domain = <1>;
		qcom,pci-bus = <1>;
		qcom,pci-slot = <0>;
			qcom,smmu-cfg = <0x3>;
			qcom,msm-bus,name = "mhi";
			qcom,msm-bus,num-cases = <2>;
@@ -29,7 +30,6 @@
			/* mhi bus specific settings */
			mhi,max-channels = <106>;
			mhi,timeout = <2000>;
		status = "disabled";

			#address-cells = <1>;
			#size-cells = <0>;
@@ -416,3 +416,4 @@
			};
		};
	};
};
+0 −1
Original line number Diff line number Diff line
@@ -455,7 +455,6 @@

&mhi_0 {
	mhi,fw-name = "debug.mbn";
	status = "okay";
};

&pm8150b_adc_tm {
+0 −1
Original line number Diff line number Diff line
@@ -48,7 +48,6 @@
	qcom,smmu-cfg = <0x1d>;
	qcom,addr-win = <0x0 0x20000000 0x0 0x3fffffff>;
	mhi,fw-name = "sdx50m/sbl1.mbn";
	status = "okay";
};

&tlmm {
Loading