diff options
author | Pali Rohár <pali@kernel.org> | 2020-08-19 15:57:06 +0200 |
---|---|---|
committer | Stefan Roese <sr@denx.de> | 2020-08-31 14:45:53 +0200 |
commit | 563b85bd88772c8949d10f7fa8e39a20280b1aac (patch) | |
tree | 21d0f78170e2fc3b9d2094aaa36b223e4c086491 /drivers/pci | |
parent | 545591132aa701ff1262bb309fbcd0c3ff0acd75 (diff) | |
download | u-boot-563b85bd88772c8949d10f7fa8e39a20280b1aac.zip u-boot-563b85bd88772c8949d10f7fa8e39a20280b1aac.tar.gz u-boot-563b85bd88772c8949d10f7fa8e39a20280b1aac.tar.bz2 |
arm64: a37xx: pci: Make PCIe Reset GPIO DT compatible with Linux kernel DT
Change active-high to active-low and change DT property name from
reset-gpio to reset-gpios. This format of gpio reset is used by
pci-aardvark driver in Linux kernel.
Signed-off-by: Pali Rohár <pali@kernel.org>
Reviewed-by: Stefan Roese <sr@denx.de>
Reviewed-by: Konstantin Porotchkin <kostap@marvell.com>
Tested-by: Andre Heider <a.heider@gmail.com>
Diffstat (limited to 'drivers/pci')
-rw-r--r-- | drivers/pci/pci-aardvark.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/pci/pci-aardvark.c b/drivers/pci/pci-aardvark.c index 711b930..5b3f23c 100644 --- a/drivers/pci/pci-aardvark.c +++ b/drivers/pci/pci-aardvark.c @@ -616,7 +616,7 @@ static int pcie_advk_probe(struct udevice *dev) #if CONFIG_IS_ENABLED(DM_GPIO) struct gpio_desc reset_gpio; - gpio_request_by_name(dev, "reset-gpio", 0, &reset_gpio, + gpio_request_by_name(dev, "reset-gpios", 0, &reset_gpio, GPIOD_IS_OUT); /* * Issue reset to add-in card through the dedicated GPIO. @@ -633,9 +633,9 @@ static int pcie_advk_probe(struct udevice *dev) */ if (dm_gpio_is_valid(&reset_gpio)) { dev_dbg(pcie->dev, "Toggle PCIE Reset GPIO ...\n"); - dm_gpio_set_value(&reset_gpio, 0); - mdelay(200); dm_gpio_set_value(&reset_gpio, 1); + mdelay(200); + dm_gpio_set_value(&reset_gpio, 0); } #else dev_dbg(pcie->dev, "PCIE Reset on GPIO support is missing\n"); |