PD#156734: pcie: fix pcie reset gpio failed
1. config 1M spaces for I/O
Change-Id: I0ec9a6e920c5fd2fbf922e3f1338a19dbc373aa6
Signed-off-by: Zan Peng <zan.peng@amlogic.com>
#address-cells = <3>;
#size-cells = <2>;
device_type = "pci";
- ranges = <0x82000000 0 0 0x0 0xfc600000 0 0x1a00000>;
- /* non-prefetchable memory */
+ ranges = <0x81000000 0 0 0 0xfc600000 0x0 0x100000
+ /* downstream I/O */
+ 0x82000000 0 0xfa510000 0x0 0xfc700000 0 0x1900000>;
+ /* non-prefetchable memory */
num-lanes = <1>;
pcie-num = <1>;
if (amlogic_pcie->reset_gpio >= 0)
devm_gpio_request(dev,
amlogic_pcie->reset_gpio, "RESET");
-
+ gpio_direction_output(
+ amlogic_pcie->reset_gpio, 0);
if (gpio_is_valid(amlogic_pcie->reset_gpio)) {
dev_info(amlogic_pcie->pp.dev,
"GPIO normal: amlogic_pcie_assert_reset\n");