Home
last modified time | relevance | path

Searched refs:perst_gpio (Results 1 – 4 of 4) sorted by relevance

/linux-6.15/drivers/pci/controller/
H A Dpcie-rockchip.c91 rockchip->perst_gpio = devm_gpiod_get_optional(dev, "ep", in rockchip_pcie_parse_dt()
94 rockchip->perst_gpio = devm_gpiod_get_optional(dev, "reset", in rockchip_pcie_parse_dt()
96 if (IS_ERR(rockchip->perst_gpio)) in rockchip_pcie_parse_dt()
97 return dev_err_probe(dev, PTR_ERR(rockchip->perst_gpio), in rockchip_pcie_parse_dt()
H A Dpcie-rockchip-ep.c482 if (rockchip->perst_gpio) in rockchip_pcie_ep_start()
491 if (!rockchip->perst_gpio) in rockchip_pcie_ep_start()
502 if (rockchip->perst_gpio) { in rockchip_pcie_ep_stop()
638 u32 perst = gpiod_get_value(rockchip->perst_gpio); in rockchip_pcie_ep_perst_irq_thread()
658 if (!rockchip->perst_gpio) in rockchip_pcie_ep_setup_irq()
662 ep->perst_irq = gpiod_to_irq(rockchip->perst_gpio); in rockchip_pcie_ep_setup_irq()
H A Dpcie-rockchip.h342 struct gpio_desc *perst_gpio; member
H A Dpcie-rockchip-host.c297 gpiod_set_value_cansleep(rockchip->perst_gpio, 0); in rockchip_pcie_host_init_port()
326 gpiod_set_value_cansleep(rockchip->perst_gpio, 1); in rockchip_pcie_host_init_port()