/openbmc/openbmc/meta-google/recipes-google/host-power-ctrl/gpio-host-pwr/ |
H A D | host_reset.sh | 21 rst_gpio="$HOST_GPIO_WARM_RESET" 24 rst_gpio="$HOST_GPIO_COLD_RESET" 27 gpio_build_cache 10 "$rst_gpio" || exit 32 gpio_set_value "$rst_gpio" 1 || rc=$? 34 gpio_set_value "$rst_gpio" 0 || rc=$?
|
/openbmc/u-boot/board/ti/evm/ |
H A D | evm.c | 262 int rst_gpio; in reset_net_chip() local 265 rst_gpio = OMAP3EVM_GPIO_ETH_RST_GEN1; in reset_net_chip() 267 rst_gpio = OMAP3EVM_GPIO_ETH_RST_GEN2; in reset_net_chip() 270 ret = gpio_request(rst_gpio, ""); in reset_net_chip() 272 printf("Unable to get GPIO %d\n", rst_gpio); in reset_net_chip() 277 gpio_direction_output(rst_gpio, 0); in reset_net_chip() 280 gpio_set_value(rst_gpio, 1); in reset_net_chip() 282 gpio_set_value(rst_gpio, 0); in reset_net_chip() 284 gpio_set_value(rst_gpio, 1); in reset_net_chip()
|
/openbmc/u-boot/board/compulab/common/ |
H A D | omap3_smc911x.c | 75 int (*reset)(int), int rst_gpio) in cl_omap3_smc911x_init() argument 82 reset(rst_gpio); in cl_omap3_smc911x_init() 84 cl_omap3_smc911x_reset_net_chip(rst_gpio); in cl_omap3_smc911x_init()
|
H A D | common.h | 28 int (*reset)(int), int rst_gpio); 31 int (*reset)(int), int rst_gpio) in cl_omap3_smc911x_init() argument
|
/openbmc/linux/drivers/pci/controller/dwc/ |
H A D | pcie-dw-rockchip.c | 58 struct gpio_desc *rst_gpio; member 170 gpiod_set_value_cansleep(rockchip->rst_gpio, 0); in rockchip_pcie_start_link() 184 gpiod_set_value_cansleep(rockchip->rst_gpio, 1); in rockchip_pcie_start_link() 242 rockchip->rst_gpio = devm_gpiod_get_optional(&pdev->dev, "reset", in rockchip_pcie_resource_get() 244 if (IS_ERR(rockchip->rst_gpio)) in rockchip_pcie_resource_get() 245 return PTR_ERR(rockchip->rst_gpio); in rockchip_pcie_resource_get()
|
/openbmc/u-boot/drivers/net/ |
H A D | pic32_eth.c | 34 struct gpio_desc rst_gpio; member 41 if (!dm_gpio_is_valid(&priv->rst_gpio)) in board_netphy_reset() 45 dm_gpio_set_value(&priv->rst_gpio, 0); in board_netphy_reset() 47 dm_gpio_set_value(&priv->rst_gpio, 1); in board_netphy_reset() 564 &priv->rst_gpio, GPIOD_IS_OUT); in pic32_eth_probe() 581 dm_gpio_free(dev, &priv->rst_gpio); in pic32_eth_remove()
|
H A D | mtk_eth.c | 176 struct gpio_desc rst_gpio; member 557 } else if (dm_gpio_is_valid(&priv->rst_gpio)) { in mt7530_setup() 558 dm_gpio_set_value(&priv->rst_gpio, 0); in mt7530_setup() 560 dm_gpio_set_value(&priv->rst_gpio, 1); in mt7530_setup() 1130 &priv->rst_gpio, GPIOD_IS_OUT); in mtk_eth_ofdata_to_platdata()
|
/openbmc/linux/drivers/media/i2c/ |
H A D | ov02a10.c | 109 struct gpio_desc *rst_gpio; member 409 gpiod_set_value_cansleep(ov02a10->rst_gpio, 1); in ov02a10_power_on() 429 gpiod_set_value_cansleep(ov02a10->rst_gpio, 0); in ov02a10_power_on() 453 gpiod_set_value_cansleep(ov02a10->rst_gpio, 1); in ov02a10_power_off() 910 ov02a10->rst_gpio = devm_gpiod_get(dev, "reset", GPIOD_OUT_HIGH); in ov02a10_probe() 911 if (IS_ERR(ov02a10->rst_gpio)) in ov02a10_probe() 912 return dev_err_probe(dev, PTR_ERR(ov02a10->rst_gpio), in ov02a10_probe()
|
H A D | ov5645.c | 111 struct gpio_desc *rst_gpio; member 641 gpiod_set_value_cansleep(ov5645->rst_gpio, 1); in ov5645_set_power_off() 670 gpiod_set_value_cansleep(ov5645->rst_gpio, 0); in ov5645_set_power_on() 1117 ov5645->rst_gpio = devm_gpiod_get(dev, "reset", GPIOD_OUT_HIGH); in ov5645_probe() 1118 if (IS_ERR(ov5645->rst_gpio)) { in ov5645_probe() 1120 return PTR_ERR(ov5645->rst_gpio); in ov5645_probe()
|
H A D | hi846.c | 1154 struct gpio_desc *rst_gpio; member 1653 if (hi846->rst_gpio) in hi846_power_on() 1654 gpiod_set_value_cansleep(hi846->rst_gpio, 0); in hi846_power_on() 1667 if (hi846->rst_gpio) in hi846_power_off() 1668 gpiod_set_value_cansleep(hi846->rst_gpio, 1); in hi846_power_off() 2039 hi846->rst_gpio = devm_gpiod_get_optional(dev, "reset", GPIOD_OUT_LOW); in hi846_parse_dt() 2040 if (IS_ERR(hi846->rst_gpio)) { in hi846_parse_dt() 2042 hi846->rst_gpio); in hi846_parse_dt() 2043 return PTR_ERR(hi846->rst_gpio); in hi846_parse_dt()
|
H A D | adv7180.c | 213 struct gpio_desc *rst_gpio; member 496 if (!state->rst_gpio) in adv7180_set_reset_pin() 500 gpiod_set_value_cansleep(state->rst_gpio, 1); in adv7180_set_reset_pin() 502 gpiod_set_value_cansleep(state->rst_gpio, 0); in adv7180_set_reset_pin() 1424 state->rst_gpio = devm_gpiod_get_optional(&client->dev, "reset", in adv7180_probe() 1426 if (IS_ERR(state->rst_gpio)) { in adv7180_probe() 1427 ret = PTR_ERR(state->rst_gpio); in adv7180_probe()
|
H A D | imx290.c | 242 struct gpio_desc *rst_gpio; member 1321 gpiod_set_value_cansleep(imx290->rst_gpio, 0); in imx290_power_on() 1330 gpiod_set_value_cansleep(imx290->rst_gpio, 1); in imx290_power_off() 1546 imx290->rst_gpio = devm_gpiod_get_optional(dev, "reset", in imx290_probe() 1548 if (IS_ERR(imx290->rst_gpio)) in imx290_probe() 1549 return dev_err_probe(dev, PTR_ERR(imx290->rst_gpio), in imx290_probe()
|
/openbmc/linux/drivers/media/platform/xilinx/ |
H A D | xilinx-csi2rxss.c | 229 struct gpio_desc *rst_gpio; member 342 if (!state->rst_gpio) in xcsi2rxss_hard_reset() 346 gpiod_set_value_cansleep(state->rst_gpio, 1); in xcsi2rxss_hard_reset() 348 gpiod_set_value_cansleep(state->rst_gpio, 0); in xcsi2rxss_hard_reset() 977 xcsi2rxss->rst_gpio = devm_gpiod_get_optional(dev, "video-reset", in xcsi2rxss_probe() 979 if (IS_ERR(xcsi2rxss->rst_gpio)) in xcsi2rxss_probe() 980 return dev_err_probe(dev, PTR_ERR(xcsi2rxss->rst_gpio), in xcsi2rxss_probe()
|
/openbmc/linux/drivers/usb/isp1760/ |
H A D | isp1760-core.c | 36 if (isp->rst_gpio) { in isp1760_init_core() 37 gpiod_set_value_cansleep(isp->rst_gpio, 1); in isp1760_init_core() 39 gpiod_set_value_cansleep(isp->rst_gpio, 0); in isp1760_init_core() 536 isp->rst_gpio = devm_gpiod_get_optional(dev, NULL, GPIOD_OUT_HIGH); in isp1760_register() 537 if (IS_ERR(isp->rst_gpio)) in isp1760_register() 538 return PTR_ERR(isp->rst_gpio); in isp1760_register()
|
H A D | isp1760-core.h | 47 struct gpio_desc *rst_gpio; member
|
/openbmc/linux/include/linux/platform_data/ |
H A D | cyttsp4.h | 44 int rst_gpio; member
|
/openbmc/linux/drivers/media/platform/st/sti/c8sectpfe/ |
H A D | c8sectpfe-core.h | 30 struct gpio_desc *rst_gpio; member
|
H A D | c8sectpfe-core.c | 818 tsin->rst_gpio = devm_fwnode_gpiod_get(dev, in c8sectpfe_probe() 822 ret = PTR_ERR_OR_ZERO(tsin->rst_gpio); in c8sectpfe_probe() 833 gpiod_set_value_cansleep(tsin->rst_gpio, 0); in c8sectpfe_probe()
|