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

Commit 1798efda authored by Thierry Reding's avatar Thierry Reding Committed by Stephen Warren
Browse files

ARM: tegra: trimslice: Initialize PCIe from DT



With the device tree support in place, probe the PCIe controller from
the device tree and remove the corresponding workaround in the board
file.

Signed-off-by: default avatarThierry Reding <thierry.reding@avionic-design.de>
Signed-off-by: default avatarThierry Reding <treding@nvidia.com>
Signed-off-by: default avatarStephen Warren <swarren@nvidia.com>
parent 722afc17
Loading
Loading
Loading
Loading
+28 −0
Original line number Original line Diff line number Diff line
@@ -310,6 +310,16 @@
		nvidia,sys-clock-req-active-high;
		nvidia,sys-clock-req-active-high;
	};
	};


	pcie-controller {
		status = "okay";
		pex-clk-supply = <&pci_clk_reg>;
		vdd-supply = <&pci_vdd_reg>;

		pci@1,0 {
			status = "okay";
		};
	};

	usb@c5000000 {
	usb@c5000000 {
		status = "okay";
		status = "okay";
		nvidia,vbus-gpio = <&gpio TEGRA_GPIO(V, 2) GPIO_ACTIVE_HIGH>;
		nvidia,vbus-gpio = <&gpio TEGRA_GPIO(V, 2) GPIO_ACTIVE_HIGH>;
@@ -413,6 +423,24 @@
			enable-active-high;
			enable-active-high;
			gpio = <&gpio TEGRA_GPIO(V, 2) 0>;
			gpio = <&gpio TEGRA_GPIO(V, 2) 0>;
		};
		};

		pci_clk_reg: regulator@3 {
			compatible = "regulator-fixed";
			reg = <3>;
			regulator-name = "pci_clk";
			regulator-min-microvolt = <3300000>;
			regulator-max-microvolt = <3300000>;
			regulator-always-on;
		};

		pci_vdd_reg: regulator@4 {
			compatible = "regulator-fixed";
			reg = <4>;
			regulator-name = "pci_vdd";
			regulator-min-microvolt = <1050000>;
			regulator-max-microvolt = <1050000>;
			regulator-always-on;
		};
	};
	};


	sound {
	sound {