From: Thierry Reding Subject: [PATCH v6 05/14] ARM: tegra: trimslice: Initialize PCIe from DT Date: Fri, 9 Aug 2013 16:49:23 +0200 Message-ID: <1376059772-16669-6-git-send-email-treding@nvidia.com> References: <1376059772-16669-1-git-send-email-treding@nvidia.com> Return-path: In-Reply-To: <1376059772-16669-1-git-send-email-treding@nvidia.com> Sender: linux-pci-owner@vger.kernel.org To: Stephen Warren Cc: Bjorn Helgaas , Jason Cooper , linux-tegra@vger.kernel.org, linux-pci@vger.kernel.org List-Id: linux-tegra@vger.kernel.org From: Thierry Reding 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: Thierry Reding Signed-off-by: Thierry Reding --- Changes in v2: - add missing dummy regulator nodes by Stephen Warren - rename port 0 DT node and disable unused port 1 arch/arm/boot/dts/tegra20-trimslice.dts | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/arch/arm/boot/dts/tegra20-trimslice.dts b/arch/arm/boot/dts/tegra20-trimslice.dts index 906e07f..cc3e742 100644 --- a/arch/arm/boot/dts/tegra20-trimslice.dts +++ b/arch/arm/boot/dts/tegra20-trimslice.dts @@ -310,6 +310,16 @@ 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 { status = "okay"; }; @@ -412,6 +422,24 @@ enable-active-high; 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 { -- 1.8.3.4