ARM: tegra: trimslice: Initialize PCIe from DT
authorThierry Reding <thierry.reding@avionic-design.de>
Fri, 9 Aug 2013 14:49:23 +0000 (16:49 +0200)
committerStephen Warren <swarren@nvidia.com>
Mon, 12 Aug 2013 20:19:24 +0000 (14:19 -0600)
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 <thierry.reding@avionic-design.de>
Signed-off-by: Thierry Reding <treding@nvidia.com>
Signed-off-by: Stephen Warren <swarren@nvidia.com>
arch/arm/boot/dts/tegra20-trimslice.dts

index d8bc976f01206ace0fc8607508bf4d706cfee1a6..22e227f87e4c19fd3dd9499c45ec25b2a7d7f6d1 100644 (file)
                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";
                nvidia,vbus-gpio = <&gpio TEGRA_GPIO(V, 2) GPIO_ACTIVE_HIGH>;
                        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 {