Lines Matching refs:dvs
322 struct lp872x_dvs *dvs = lp->pdata ? lp->pdata->dvs : NULL; in lp872x_buck_set_voltage_sel() local
324 if (dvs && gpio_is_valid(dvs->gpio)) in lp872x_buck_set_voltage_sel()
325 lp872x_set_dvs(lp, dvs->vsel, dvs->gpio); in lp872x_buck_set_voltage_sel()
679 struct lp872x_dvs *dvs = lp->pdata ? lp->pdata->dvs : NULL; in lp872x_init_dvs() local
684 if (!dvs) in lp872x_init_dvs()
687 gpio = dvs->gpio; in lp872x_init_dvs()
691 pinstate = dvs->init_state; in lp872x_init_dvs()
843 pdata->dvs = devm_kzalloc(dev, sizeof(struct lp872x_dvs), GFP_KERNEL); in lp872x_populate_pdata_from_dt()
844 if (!pdata->dvs) in lp872x_populate_pdata_from_dt()
847 pdata->dvs->gpio = of_get_named_gpio(np, "ti,dvs-gpio", 0); in lp872x_populate_pdata_from_dt()
848 of_property_read_u8(np, "ti,dvs-vsel", (u8 *)&pdata->dvs->vsel); in lp872x_populate_pdata_from_dt()
850 pdata->dvs->init_state = dvs_state ? DVS_HIGH : DVS_LOW; in lp872x_populate_pdata_from_dt()