Re: [PATCH v3 3/7] drm: Add driver for Solomon SSD130X OLED displays

2022-02-11 Thread Javier Martinez Canillas
On 2/9/22 17:26, Javier Martinez Canillas wrote: > On 2/9/22 17:08, Andy Shevchenko wrote: > > [snip] > >>> Agreed, as mentioned I'll give it a try to sending all the data as a >>> bulk write with regmap. >> >> Ah, it might be that it should be noinc bulk op. Need to be checked anyway. >> > >

Re: [PATCH v3 3/7] drm: Add driver for Solomon SSD130X OLED displays

2022-02-09 Thread Andy Shevchenko
On Wed, Feb 09, 2022 at 05:26:00PM +0100, Javier Martinez Canillas wrote: > On 2/9/22 17:08, Andy Shevchenko wrote: ... > On that topic, I even typed a SPI driver because of your feedback :) Much appreciated, makes me much easier to test. Thank you for doing all this! -- With Best Regards,

Re: [PATCH v3 3/7] drm: Add driver for Solomon SSD130X OLED displays

2022-02-09 Thread Javier Martinez Canillas
On 2/9/22 17:08, Andy Shevchenko wrote: [snip] >> Agreed, as mentioned I'll give it a try to sending all the data as a >> bulk write with regmap. > > Ah, it might be that it should be noinc bulk op. Need to be checked anyway. > Yeah, I'll give it a try for v4. Let's see how it goes. [snip]

Re: [PATCH v3 3/7] drm: Add driver for Solomon SSD130X OLED displays

2022-02-09 Thread Andy Shevchenko
On Wed, Feb 09, 2022 at 04:54:01PM +0100, Javier Martinez Canillas wrote: > On 2/9/22 16:12, Andy Shevchenko wrote: > > On Wed, Feb 09, 2022 at 10:03:10AM +0100, Javier Martinez Canillas wrote: ... > >> + do { > >> + value = va_arg(ap, int); > >> + ret =

Re: [PATCH v3 3/7] drm: Add driver for Solomon SSD130X OLED displays

2022-02-09 Thread Javier Martinez Canillas
Hello Andy, Thanks for your feedback. On 2/9/22 16:12, Andy Shevchenko wrote: > On Wed, Feb 09, 2022 at 10:03:10AM +0100, Javier Martinez Canillas wrote: >> This adds a DRM driver for SSD1305, SSD1306, SSD1307 and SSD1309 Solomon >> OLED display controllers. >> >> It's only the core part of the

Re: [PATCH v3 3/7] drm: Add driver for Solomon SSD130X OLED displays

2022-02-09 Thread Javier Martinez Canillas
On 2/9/22 16:03, Mark Brown wrote: > On Wed, Feb 09, 2022 at 03:50:13PM +0100, Javier Martinez Canillas wrote: [snip] > >> But I understand why the Device Tree binding and fbdev driver used VBAT >> since that's what the documentation mentions. > > What is "the documentation" in this context

Re: [PATCH v3 3/7] drm: Add driver for Solomon SSD130X OLED displays

2022-02-09 Thread Andy Shevchenko
On Wed, Feb 09, 2022 at 10:03:10AM +0100, Javier Martinez Canillas wrote: > This adds a DRM driver for SSD1305, SSD1306, SSD1307 and SSD1309 Solomon > OLED display controllers. > > It's only the core part of the driver and a bus specific driver is needed > for each transport interface supported

Re: [PATCH v3 3/7] drm: Add driver for Solomon SSD130X OLED displays

2022-02-09 Thread Mark Brown
On Wed, Feb 09, 2022 at 03:50:13PM +0100, Javier Martinez Canillas wrote: > On 2/9/22 15:22, Mark Brown wrote: > > On Wed, Feb 09, 2022 at 03:17:06PM +0100, Javier Martinez Canillas wrote: > >> I guess in that case what we should do then is to just have a regulator > >> fixed as the vbat-supply

Re: [PATCH v3 3/7] drm: Add driver for Solomon SSD130X OLED displays

2022-02-09 Thread Javier Martinez Canillas
On 2/9/22 15:22, Mark Brown wrote: > On Wed, Feb 09, 2022 at 03:17:06PM +0100, Javier Martinez Canillas wrote: >> On 2/9/22 14:43, Mark Brown wrote: > >>> Unless the device supports power being physically omitted regulator >>> usage should not be optional, it's just more code and a recipie for

Re: [PATCH v3 3/7] drm: Add driver for Solomon SSD130X OLED displays

2022-02-09 Thread Mark Brown
On Wed, Feb 09, 2022 at 03:17:06PM +0100, Javier Martinez Canillas wrote: > On 2/9/22 14:43, Mark Brown wrote: > > Unless the device supports power being physically omitted regulator > > usage should not be optional, it's just more code and a recipie for poor > > error handling. > The device has

Re: [PATCH v3 3/7] drm: Add driver for Solomon SSD130X OLED displays

2022-02-09 Thread Javier Martinez Canillas
Hello Mark, Thanks for your feedback. On 2/9/22 14:43, Mark Brown wrote: > On Wed, Feb 09, 2022 at 10:03:10AM +0100, Javier Martinez Canillas wrote: > >> +if (ssd130x->vbat_reg) { >> +ret = regulator_enable(ssd130x->vbat_reg); >> +if (ret) { >> +

Re: [PATCH v3 3/7] drm: Add driver for Solomon SSD130X OLED displays

2022-02-09 Thread Mark Brown
On Wed, Feb 09, 2022 at 10:03:10AM +0100, Javier Martinez Canillas wrote: > + if (ssd130x->vbat_reg) { > + ret = regulator_enable(ssd130x->vbat_reg); > + if (ret) { > + dev_err(dev, "Failed to enable VBAT: %d\n", ret); > + return

[PATCH v3 3/7] drm: Add driver for Solomon SSD130X OLED displays

2022-02-09 Thread Javier Martinez Canillas
This adds a DRM driver for SSD1305, SSD1306, SSD1307 and SSD1309 Solomon OLED display controllers. It's only the core part of the driver and a bus specific driver is needed for each transport interface supported by the display controllers. Signed-off-by: Javier Martinez Canillas --- Changes in