lantiq: Configure the PCIe reset GPIO using OF
authorFelix Fietkau <nbd@openwrt.org>
Sun, 17 Jan 2016 19:55:10 +0000 (19:55 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Sun, 17 Jan 2016 19:55:10 +0000 (19:55 +0000)
commit942fee907e7d1d601f692c5e8f73e771dfbf4ed3
tree9b8ad769beddc7c87b0349aea8986c28654cff84
parent78beb38f046b9b3e9b641bda5486cbea57d56938
lantiq: Configure the PCIe reset GPIO using OF

After the latest pinctrl backports there are only 50 (instead of 56 as
before) GPIOs/pins exported (thus the first GPIO on VRX200 SoCs is now
462, before it was 456). This means that any hardcoded GPIOs have to be
adjusted.
This broke the PCIe driver (which seems to be the only driver which uses
hardcoded GPIO numbers), it only reports:
ifx_pcie_wait_phy_link_up timeout
ifx_pcie_wait_phy_link_up timeout
ifx_pcie_wait_phy_link_up timeout
ifx_pcie_wait_phy_link_up timeout
ifx_pcie_wait_phy_link_up timeout
pcie_rc_initialize link up failed!!!!!

To prevent more of these issues in the future we remove the hardcoded
PCIe reset GPIO definition and simply pass it via device-tree (like the
PCI driver does).

Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
SVN-Revision: 48285
target/linux/lantiq/dts/vr9.dtsi
target/linux/lantiq/patches-4.1/0151-lantiq-ifxmips_pcie-use-of.patch