Commit 722afc17 authored by Thierry Reding's avatar Thierry Reding Committed by Stephen Warren

ARM: tegra: harmony: 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 237bcad1
...@@ -335,7 +335,7 @@ sm2_reg: sm2 { ...@@ -335,7 +335,7 @@ sm2_reg: sm2 {
regulator-always-on; regulator-always-on;
}; };
ldo0 { pci_clk_reg: ldo0 {
regulator-name = "vdd_ldo0,vddio_pex_clk"; regulator-name = "vdd_ldo0,vddio_pex_clk";
regulator-min-microvolt = <3300000>; regulator-min-microvolt = <3300000>;
regulator-max-microvolt = <3300000>; regulator-max-microvolt = <3300000>;
...@@ -425,6 +425,20 @@ pmc { ...@@ -425,6 +425,20 @@ pmc {
nvidia,sys-clock-req-active-high; nvidia,sys-clock-req-active-high;
}; };
pcie-controller {
pex-clk-supply = <&pci_clk_reg>;
vdd-supply = <&pci_vdd_reg>;
status = "okay";
pci@1,0 {
status = "okay";
};
pci@2,0 {
status = "okay";
};
};
usb@c5000000 { usb@c5000000 {
status = "okay"; status = "okay";
}; };
...@@ -643,7 +657,7 @@ regulator@2 { ...@@ -643,7 +657,7 @@ regulator@2 {
enable-active-high; enable-active-high;
}; };
regulator@3 { pci_vdd_reg: regulator@3 {
compatible = "regulator-fixed"; compatible = "regulator-fixed";
reg = <3>; reg = <3>;
regulator-name = "vdd_1v05"; regulator-name = "vdd_1v05";
...@@ -651,8 +665,6 @@ regulator@3 { ...@@ -651,8 +665,6 @@ regulator@3 {
regulator-max-microvolt = <1050000>; regulator-max-microvolt = <1050000>;
gpio = <&pmic 2 GPIO_ACTIVE_HIGH>; gpio = <&pmic 2 GPIO_ACTIVE_HIGH>;
enable-active-high; enable-active-high;
/* Hack until board-harmony-pcie.c is removed */
status = "disabled";
}; };
regulator@4 { regulator@4 {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment