Messages in this thread Patch in this message | | | Date | Tue, 20 Nov 2018 14:47:00 +0000 | From | Charles Keepax <> | Subject | Re: Applied "regulator: wm8994: Pass descriptor instead of GPIO number" to the regulator tree |
| |
On Tue, Nov 20, 2018 at 02:43:32PM +0100, Marek Szyprowski wrote: > On 2018-05-17 18:41, Mark Brown wrote: > > Subject: [PATCH] regulator: wm8994: Pass descriptor instead of GPIO number > > This patch causes following kernel warning on Samsung Exynos4412 based > Trats2 board: > > wm8994 4-001a: Failed to get supply 'DBVDD1': -517 > wm8994 4-001a: Failed to get supplies: -517
How is the wm8994 being registered on this board? I am having difficulty finding a device tree or a board file that relates to the board and includes the wm8994.
> > @@ -203,6 +203,18 @@ static const struct i2c_board_info wm1277_devs[] = { > > { I2C_BOARD_INFO("wm8958", 0x1a), /* WM8958 is the superset */ > > .platform_data = &wm8994_pdata, > > .irq = GLENFARCLAS_PMIC_IRQ_BASE + WM831X_IRQ_GPIO_2, > > + .dev_name = "wm8958", > > + }, > > +}; > > + > > +static struct gpiod_lookup_table wm8994_gpiod_table = { > > + .dev_id = "i2c-wm8958", /* I2C device name */ > > + .table = { > > + GPIO_LOOKUP("GPION", 6, > > + "wlf,ldo1ena", GPIO_ACTIVE_HIGH), > > + GPIO_LOOKUP("GPION", 4, > > + "wlf,ldo2ena", GPIO_ACTIVE_HIGH), > > + { }, > > }, > > };
If its being done through a board file I guess you will need the equivalent of this.
Thanks, Charles
| |