Lines Matching full:lpm
38 * controlled via GPIO lines called LPM and HPM.
43 * state by setting the GPIO lpm pin high/low.
147 * @lpm: LPM GPIO descriptor
150 struct gpio_desc *lpm; member
162 gpiod_set_value(mcp->lpm, 0); in mcp16502_gpio_set_mode()
166 gpiod_set_value(mcp->lpm, 1); in mcp16502_gpio_set_mode()
185 return MCP16502_REG_BASE(rdev_get_id(rdev), LPM); in mcp16502_get_state_reg()
531 mcp->lpm = devm_gpiod_get_optional(dev, "lpm", GPIOD_OUT_LOW); in mcp16502_probe()
532 if (IS_ERR(mcp->lpm)) { in mcp16502_probe()
533 dev_err(dev, "failed to get lpm pin: %ld\n", PTR_ERR(mcp->lpm)); in mcp16502_probe()
534 return PTR_ERR(mcp->lpm); in mcp16502_probe()