Home
last modified time | relevance | path

Searched refs:rst_gpio (Results 1 – 25 of 32) sorted by relevance

12

/OK3568_Linux_fs/kernel/drivers/input/touchscreen/cyttsp5/
H A Dcyttsp5_platform.c173 int rst_gpio = pdata->rst_gpio; in cyttsp5_xres() local
176 gpio_set_value(rst_gpio, 1); in cyttsp5_xres()
178 gpio_set_value(rst_gpio, 0); in cyttsp5_xres()
180 gpio_set_value(rst_gpio, 1); in cyttsp5_xres()
184 pdata->rst_gpio, rc); in cyttsp5_xres()
191 int rst_gpio = pdata->rst_gpio; in cyttsp5_init() local
196 rc = gpio_request(rst_gpio, NULL); in cyttsp5_init()
198 gpio_free(rst_gpio); in cyttsp5_init()
199 rc = gpio_request(rst_gpio, NULL); in cyttsp5_init()
204 rst_gpio); in cyttsp5_init()
[all …]
H A Dcyttsp5_core.h117 int rst_gpio; member
/OK3568_Linux_fs/u-boot/board/ti/evm/
H A Devm.c275 int rst_gpio; in reset_net_chip() local
278 rst_gpio = OMAP3EVM_GPIO_ETH_RST_GEN1; in reset_net_chip()
280 rst_gpio = OMAP3EVM_GPIO_ETH_RST_GEN2; in reset_net_chip()
283 ret = gpio_request(rst_gpio, ""); in reset_net_chip()
285 printf("Unable to get GPIO %d\n", rst_gpio); in reset_net_chip()
290 gpio_direction_output(rst_gpio, 0); in reset_net_chip()
293 gpio_set_value(rst_gpio, 1); in reset_net_chip()
295 gpio_set_value(rst_gpio, 0); in reset_net_chip()
297 gpio_set_value(rst_gpio, 1); in reset_net_chip()
/OK3568_Linux_fs/kernel/drivers/usb/isp1760/
H A Disp1760-core.c32 if (isp->rst_gpio) { in isp1760_init_core()
33 gpiod_set_value_cansleep(isp->rst_gpio, 1); in isp1760_init_core()
35 gpiod_set_value_cansleep(isp->rst_gpio, 0); in isp1760_init_core()
130 isp->rst_gpio = devm_gpiod_get_optional(dev, NULL, GPIOD_OUT_HIGH); in isp1760_register()
131 if (IS_ERR(isp->rst_gpio)) in isp1760_register()
132 return PTR_ERR(isp->rst_gpio); in isp1760_register()
H A Disp1760-core.h43 struct gpio_desc *rst_gpio; member
/OK3568_Linux_fs/kernel/drivers/media/i2c/
H A Dpreisp-dummy.c69 struct gpio_desc *rst_gpio; member
152 if (!IS_ERR(pisp_dmy->rst_gpio)) { in __pisp_dmy_power_on()
153 gpiod_direction_output(pisp_dmy->rst_gpio, 0); in __pisp_dmy_power_on()
155 gpiod_direction_output(pisp_dmy->rst_gpio, 1); in __pisp_dmy_power_on()
187 if (!IS_ERR(pisp_dmy->rst_gpio)) in __pisp_dmy_power_off()
188 gpiod_direction_output(pisp_dmy->rst_gpio, 0); in __pisp_dmy_power_off()
453 pisp_dmy->rst_gpio = devm_gpiod_get(dev, "rst", GPIOD_OUT_LOW); in pisp_dmy_analyze_dts()
454 if (IS_ERR(pisp_dmy->rst_gpio)) in pisp_dmy_analyze_dts()
456 PTR_ERR(pisp_dmy->rst_gpio)); in pisp_dmy_analyze_dts()
H A Dimx290.c78 struct gpio_desc *rst_gpio; member
864 gpiod_set_value_cansleep(imx290->rst_gpio, 0); in imx290_power_on()
880 gpiod_set_value_cansleep(imx290->rst_gpio, 1); in imx290_power_off()
1032 imx290->rst_gpio = devm_gpiod_get_optional(dev, "reset", in imx290_probe()
1034 if (IS_ERR(imx290->rst_gpio)) { in imx290_probe()
1036 ret = PTR_ERR(imx290->rst_gpio); in imx290_probe()
H A Dov5645.c117 struct gpio_desc *rst_gpio; member
700 gpiod_set_value_cansleep(ov5645->rst_gpio, 0); in ov5645_set_power_on()
709 gpiod_set_value_cansleep(ov5645->rst_gpio, 1); in ov5645_set_power_off()
1344 ov5645->rst_gpio = devm_gpiod_get(dev, "reset", GPIOD_OUT_HIGH); in ov5645_probe()
1345 if (IS_ERR(ov5645->rst_gpio)) { in ov5645_probe()
1347 return PTR_ERR(ov5645->rst_gpio); in ov5645_probe()
H A Dov2718.c148 struct gpio_desc *rst_gpio; member
8448 if (!IS_ERR(ov2718->rst_gpio)) { in __ov2718_power_on()
8449 gpiod_direction_output(ov2718->rst_gpio, 1); in __ov2718_power_on()
8451 gpiod_direction_output(ov2718->rst_gpio, 0); in __ov2718_power_on()
8475 if (!IS_ERR(ov2718->rst_gpio)) in __ov2718_power_off()
8476 gpiod_direction_output(ov2718->rst_gpio, 0); in __ov2718_power_off()
8891 ov2718->rst_gpio = devm_gpiod_get(dev, "reset", GPIOD_OUT_LOW); in ov2718_analyze_dts()
8892 if (IS_ERR(ov2718->rst_gpio)) in ov2718_analyze_dts()
8894 PTR_ERR(ov2718->rst_gpio)); in ov2718_analyze_dts()
H A Dov2775.c135 struct gpio_desc *rst_gpio; member
4656 if (!IS_ERR(ov2775->rst_gpio)) { in __ov2775_power_on()
4657 gpiod_direction_output(ov2775->rst_gpio, 1); in __ov2775_power_on()
4659 gpiod_direction_output(ov2775->rst_gpio, 0); in __ov2775_power_on()
4683 if (!IS_ERR(ov2775->rst_gpio)) in __ov2775_power_off()
4684 gpiod_direction_output(ov2775->rst_gpio, 1); in __ov2775_power_off()
5104 ov2775->rst_gpio = devm_gpiod_get(dev, "reset", GPIOD_OUT_LOW); in ov2775_analyze_dts()
5105 if (IS_ERR(ov2775->rst_gpio)) in ov2775_analyze_dts()
5107 PTR_ERR(ov2775->rst_gpio)); in ov2775_analyze_dts()
/OK3568_Linux_fs/u-boot/board/compulab/common/
H A Domap3_smc911x.c76 int (*reset)(int), int rst_gpio) in cl_omap3_smc911x_init() argument
83 reset(rst_gpio); in cl_omap3_smc911x_init()
85 cl_omap3_smc911x_reset_net_chip(rst_gpio); in cl_omap3_smc911x_init()
H A Dcommon.h29 int (*reset)(int), int rst_gpio);
32 int (*reset)(int), int rst_gpio) in cl_omap3_smc911x_init() argument
/OK3568_Linux_fs/kernel/drivers/media/platform/xilinx/
H A Dxilinx-csi2rxss.c244 struct gpio_desc *rst_gpio; member
357 if (!state->rst_gpio) in xcsi2rxss_hard_reset()
361 gpiod_set_value_cansleep(state->rst_gpio, 1); in xcsi2rxss_hard_reset()
363 gpiod_set_value_cansleep(state->rst_gpio, 0); in xcsi2rxss_hard_reset()
990 xcsi2rxss->rst_gpio = devm_gpiod_get_optional(dev, "video-reset", in xcsi2rxss_probe()
992 if (IS_ERR(xcsi2rxss->rst_gpio)) { in xcsi2rxss_probe()
993 if (PTR_ERR(xcsi2rxss->rst_gpio) != -EPROBE_DEFER) in xcsi2rxss_probe()
995 return PTR_ERR(xcsi2rxss->rst_gpio); in xcsi2rxss_probe()
/OK3568_Linux_fs/u-boot/drivers/net/
H A Dpic32_eth.c35 struct gpio_desc rst_gpio; member
42 if (!dm_gpio_is_valid(&priv->rst_gpio)) in board_netphy_reset()
46 dm_gpio_set_value(&priv->rst_gpio, 0); in board_netphy_reset()
48 dm_gpio_set_value(&priv->rst_gpio, 1); in board_netphy_reset()
565 &priv->rst_gpio, GPIOD_IS_OUT); in pic32_eth_probe()
582 dm_gpio_free(dev, &priv->rst_gpio); in pic32_eth_remove()
/OK3568_Linux_fs/kernel/drivers/media/i2c/jaguar1_drv/
H A Djaguar1_v4l2.c110 struct gpio_desc *rst_gpio; member
273 if (!IS_ERR(jaguar1->rst_gpio)) { in __jaguar1_power_on()
274 gpiod_direction_output(jaguar1->rst_gpio, 0); in __jaguar1_power_on()
276 gpiod_direction_output(jaguar1->rst_gpio, 1); in __jaguar1_power_on()
308 if (!IS_ERR(jaguar1->rst_gpio)) in __jaguar1_power_off()
309 gpiod_direction_output(jaguar1->rst_gpio, 0); in __jaguar1_power_off()
912 jaguar1->rst_gpio = devm_gpiod_get(dev, "rst", GPIOD_OUT_LOW); in jaguar1_analyze_dts()
913 if (IS_ERR(jaguar1->rst_gpio)) in jaguar1_analyze_dts()
915 PTR_ERR(jaguar1->rst_gpio)); in jaguar1_analyze_dts()
/OK3568_Linux_fs/kernel/drivers/input/touchscreen/elan/
H A Delan_ts.c53 gpio_set_value(hw_info->rst_gpio, 1); in elan_ts_hw_reset()
55 gpio_set_value(hw_info->rst_gpio, 0); in elan_ts_hw_reset()
57 gpio_set_value(hw_info->rst_gpio, 1); in elan_ts_hw_reset()
1688 ret = gpio_request(hw_info->rst_gpio, "tp_reset"); in elan_ts_gpio_initial()
1694 gpio_direction_output(hw_info->rst_gpio, 1); in elan_ts_gpio_initial()
1715 if (gpio_is_valid(hw_info->rst_gpio)) in elan_ts_gpio_initial()
1716 gpio_free(hw_info->rst_gpio); in elan_ts_gpio_initial()
1758 chip_hw_info->rst_gpio = of_get_named_gpio_flags(np, in elan_parse_dt()
1760 if (!gpio_is_valid(chip_hw_info->rst_gpio)) { in elan_parse_dt()
1804 if (gpio_is_valid(chip_hw_info->rst_gpio)) in elan_parse_dt()
[all …]
/OK3568_Linux_fs/u-boot/drivers/pci/
H A Dpcie_dw_rockchip.c68 struct gpio_desc rst_gpio; member
558 if (dm_gpio_is_valid(&priv->rst_gpio)) { in rk_pcie_link_up()
565 dm_gpio_set_value(&priv->rst_gpio, 1); in rk_pcie_link_up()
608 if (dm_gpio_is_valid(&priv->rst_gpio)) in rockchip_pcie_init_port()
609 dm_gpio_set_value(&priv->rst_gpio, 0); in rockchip_pcie_init_port()
697 &priv->rst_gpio, GPIOD_IS_OUT); in rockchip_pcie_parse_dt()
/OK3568_Linux_fs/kernel/drivers/media/i2c/nvp6158_drv/
H A Dnvp6158_v4l2.c137 struct gpio_desc *rst_gpio; member
417 if (!IS_ERR(nvp6158->rst_gpio)) { in __nvp6158_power_on()
418 gpiod_direction_output(nvp6158->rst_gpio, 0); in __nvp6158_power_on()
420 gpiod_direction_output(nvp6158->rst_gpio, 1); in __nvp6158_power_on()
449 if (!IS_ERR(nvp6158->rst_gpio)) in __nvp6158_power_off()
450 gpiod_direction_output(nvp6158->rst_gpio, 0); in __nvp6158_power_off()
1381 nvp6158->rst_gpio = devm_gpiod_get(dev, "rst", GPIOD_OUT_LOW); in nvp6158_parse_dts()
1382 if (IS_ERR(nvp6158->rst_gpio)) in nvp6158_parse_dts()
1384 PTR_ERR(nvp6158->rst_gpio)); in nvp6158_parse_dts()
/OK3568_Linux_fs/kernel/sound/soc/codecs/aw87xxx/
H A Daw_device.c231 if (gpio_is_valid(aw_dev->rst_gpio)) in aw_dev_gpio_is_valid()
245 gpio_set_value_cansleep(aw_dev->rst_gpio, AW_GPIO_LOW_LEVEL); in aw_dev_hw_pwr_ctrl()
247 gpio_set_value_cansleep(aw_dev->rst_gpio, AW_GPIO_HIGHT_LEVEL); in aw_dev_hw_pwr_ctrl()
256 gpio_set_value_cansleep(aw_dev->rst_gpio, AW_GPIO_LOW_LEVEL); in aw_dev_hw_pwr_ctrl()
H A Daw_device.h113 int rst_gpio; member
H A Daw87xxx.c1196 aw87xxx->aw_dev.rst_gpio = AW_NO_RESET_GPIO; in aw87xxx_dtsi_parse()
1199 aw87xxx->aw_dev.rst_gpio = ret; in aw87xxx_dtsi_parse()
1202 if (gpio_is_valid(aw87xxx->aw_dev.rst_gpio)) { in aw87xxx_dtsi_parse()
1204 aw87xxx->aw_dev.rst_gpio, in aw87xxx_dtsi_parse()
/OK3568_Linux_fs/kernel/drivers/media/platform/sti/c8sectpfe/
H A Dc8sectpfe-core.c822 tsin->rst_gpio = of_get_named_gpio(child, "reset-gpios", 0); in c8sectpfe_probe()
824 ret = gpio_is_valid(tsin->rst_gpio); in c8sectpfe_probe()
828 tsin->tsin_id, tsin->rst_gpio); in c8sectpfe_probe()
832 ret = devm_gpio_request_one(dev, tsin->rst_gpio, in c8sectpfe_probe()
842 gpio_direction_output(tsin->rst_gpio, 0); in c8sectpfe_probe()
844 gpio_direction_output(tsin->rst_gpio, 1); in c8sectpfe_probe()
/OK3568_Linux_fs/kernel/include/linux/platform_data/
H A Dcyttsp4.h44 int rst_gpio; member
/OK3568_Linux_fs/kernel/drivers/pci/controller/dwc/
H A Dpcie-dw-ep-rockchip.c122 struct gpio_desc *rst_gpio; member
233 rockchip->rst_gpio = devm_gpiod_get_optional(dev, "reset", in rockchip_pcie_resource_get()
235 if (IS_ERR(rockchip->rst_gpio)) in rockchip_pcie_resource_get()
236 return PTR_ERR(rockchip->rst_gpio); in rockchip_pcie_resource_get()
343 gpiod_set_value_cansleep(rockchip->rst_gpio, 0); in rockchip_pcie_start_link()
345 gpiod_set_value_cansleep(rockchip->rst_gpio, 1); in rockchip_pcie_start_link()
H A Dpcie-dw-rockchip.c171 struct gpio_desc *rst_gpio; member
771 gpiod_set_value_cansleep(rk_pcie->rst_gpio, 0); in rk_pcie_establish_link()
793 gpiod_set_value_cansleep(rk_pcie->rst_gpio, 1); in rk_pcie_establish_link()
807 gpiod_set_value_cansleep(rk_pcie->rst_gpio, 1); in rk_pcie_establish_link()
1283 rk_pcie->rst_gpio = devm_gpiod_get_optional(&pdev->dev, "reset", in rk_pcie_resource_get()
1285 if (IS_ERR(rk_pcie->rst_gpio)) { in rk_pcie_resource_get()
1287 return PTR_ERR(rk_pcie->rst_gpio); in rk_pcie_resource_get()
2351 gpiod_set_value_cansleep(rk_pcie->rst_gpio, 0); in rockchip_dw_pcie_suspend()

12