Lines Matching full:dvs
88 /* Default DVS Mode */
321 struct lp872x_dvs *dvs = lp->pdata ? lp->pdata->dvs : NULL; in lp872x_buck_set_voltage_sel() local
323 if (dvs && dvs->gpio) in lp872x_buck_set_voltage_sel()
324 lp872x_set_dvs(lp, dvs->vsel, dvs->gpio); in lp872x_buck_set_voltage_sel()
677 struct lp872x_dvs *dvs = lp->pdata ? lp->pdata->dvs : NULL; in lp872x_init_dvs() local
682 if (!dvs) in lp872x_init_dvs()
685 if (!dvs->gpio) in lp872x_init_dvs()
688 pinstate = dvs->init_state; in lp872x_init_dvs()
689 dvs->gpio = devm_gpiod_get_optional(lp->dev, "ti,dvs", pinstate); in lp872x_init_dvs()
691 if (IS_ERR(dvs->gpio)) { in lp872x_init_dvs()
692 dev_err(lp->dev, "gpio request err: %ld\n", PTR_ERR(dvs->gpio)); in lp872x_init_dvs()
693 return PTR_ERR(dvs->gpio); in lp872x_init_dvs()
837 pdata->dvs = devm_kzalloc(dev, sizeof(struct lp872x_dvs), GFP_KERNEL); in lp872x_populate_pdata_from_dt()
838 if (!pdata->dvs) in lp872x_populate_pdata_from_dt()
841 of_property_read_u8(np, "ti,dvs-vsel", (u8 *)&pdata->dvs->vsel); in lp872x_populate_pdata_from_dt()
842 of_property_read_u8(np, "ti,dvs-state", &dvs_state); in lp872x_populate_pdata_from_dt()
843 pdata->dvs->init_state = dvs_state ? GPIOD_OUT_HIGH : GPIOD_OUT_LOW; in lp872x_populate_pdata_from_dt()