Re: [PATCH v3 2/3] drm/st7571-i2c: add support for Sitronix ST7571 LCD controller

2025-04-23 Thread Javier Martinez Canillas
Marcus Folkesson writes: > Hello Javier, > > On Tue, Apr 08, 2025 at 12:44:46PM +0200, Javier Martinez Canillas wrote: >> Marcus Folkesson writes: >> >> Hello Marcus, >> >> > Sitronix ST7571 is a 4bit gray scale dot matrix LCD controller. >> > The controller has a SPI, I2C and 8bit parallel in

Re: [PATCH v3 2/3] drm/st7571-i2c: add support for Sitronix ST7571 LCD controller

2025-04-23 Thread Marcus Folkesson
Hello Javier, On Tue, Apr 08, 2025 at 12:44:46PM +0200, Javier Martinez Canillas wrote: > Marcus Folkesson writes: > > Hello Marcus, > > > Sitronix ST7571 is a 4bit gray scale dot matrix LCD controller. > > The controller has a SPI, I2C and 8bit parallel interface, this > > driver is for the I2

Re: [PATCH v3 2/3] drm/st7571-i2c: add support for Sitronix ST7571 LCD controller

2025-04-14 Thread Javier Martinez Canillas
Marcus Folkesson writes: Hello Marcus, [...] >> > >> > A comment for v4: >> > >> > I think I will go for a property in the device tree. I've implemented >> > board entries as above, but I'm not satisfied for two reasons: >> > >> > 1. All other properties like display size and resolution are alr

Re: [PATCH v3 2/3] drm/st7571-i2c: add support for Sitronix ST7571 LCD controller

2025-04-12 Thread Marcus Folkesson
On Fri, Apr 11, 2025 at 10:26:47AM +0200, Javier Martinez Canillas wrote: > Marcus Folkesson writes: > > Hello Marcus, > > [...] > > >> static const struct of_device_id st7571_of_match[] = { > >>/* monochrome displays */ > >>{ > >>.compatible = "sinocrystal,sc128128012-v01",

Re: [PATCH v3 2/3] drm/st7571-i2c: add support for Sitronix ST7571 LCD controller

2025-04-11 Thread Javier Martinez Canillas
Marcus Folkesson writes: Hello Marcus, [...] >> static const struct of_device_id st7571_of_match[] = { >> /* monochrome displays */ >> { >> .compatible = "sinocrystal,sc128128012-v01", >> .data = monochrome_formats, >> }, >> ... >> /* grayscale d

Re: [PATCH v3 2/3] drm/st7571-i2c: add support for Sitronix ST7571 LCD controller

2025-04-10 Thread Geert Uytterhoeven
On Wed, 9 Apr 2025 at 16:16, Javier Martinez Canillas wrote: > Marcus Folkesson writes: > > On Wed, Apr 09, 2025 at 11:43:54AM +0200, Javier Martinez Canillas wrote: > > [...] > > >> > >> Likely you will need to define more stuff to be specific for each entry, > >> maybe > >> you will need diffe

Re: [PATCH v3 2/3] drm/st7571-i2c: add support for Sitronix ST7571 LCD controller

2025-04-10 Thread Marcus Folkesson
Hello, On Wed, Apr 09, 2025 at 11:43:54AM +0200, Javier Martinez Canillas wrote: > Marcus Folkesson writes: > > Hello Marcus, > > [...] > > >> > >> That's a god question, I don't really know... > >> > >> But fbdev does support XRGB, which may be another good reason to add > >> it and mak

Re: [PATCH v3 2/3] drm/st7571-i2c: add support for Sitronix ST7571 LCD controller

2025-04-10 Thread Javier Martinez Canillas
Marcus Folkesson writes: > Hello Javier, > > Thank you for your review and suggestions. > > On Tue, Apr 08, 2025 at 12:44:46PM +0200, Javier Martinez Canillas wrote: >> Marcus Folkesson writes: >> >> Hello Marcus, >> >> > Sitronix ST7571 is a 4bit gray scale dot matrix LCD controller. >> > The

Re: [PATCH v3 2/3] drm/st7571-i2c: add support for Sitronix ST7571 LCD controller

2025-04-09 Thread Javier Martinez Canillas
Marcus Folkesson writes: > Hello Javier, > > On Wed, Apr 09, 2025 at 11:43:54AM +0200, Javier Martinez Canillas wrote: [...] >> >> Likely you will need to define more stuff to be specific for each entry, >> maybe >> you will need different primary plane update handlers too. Similar to how I

Re: [PATCH v3 2/3] drm/st7571-i2c: add support for Sitronix ST7571 LCD controller

2025-04-09 Thread Javier Martinez Canillas
Marcus Folkesson writes: Hello Marcus, [...] >> >> That's a god question, I don't really know... >> >> But fbdev does support XRGB, which may be another good reason to add >> it and make it the default format. Yes, it will cause an unnecessary pixel >> format conversion but the I2C transp

Re: [PATCH v3 2/3] drm/st7571-i2c: add support for Sitronix ST7571 LCD controller

2025-04-09 Thread Marcus Folkesson
Hello Javier, On Wed, Apr 09, 2025 at 11:43:54AM +0200, Javier Martinez Canillas wrote: > Marcus Folkesson writes: > > Hello Marcus, > > [...] > > >> > >> That's a god question, I don't really know... > >> > >> But fbdev does support XRGB, which may be another good reason to add > >> it

Re: [PATCH v3 2/3] drm/st7571-i2c: add support for Sitronix ST7571 LCD controller

2025-04-09 Thread Thomas Zimmermann
Hi Am 08.04.25 um 16:58 schrieb Marcus Folkesson: Hi, On Tue, Apr 08, 2025 at 03:57:22PM +0200, Thomas Zimmermann wrote: Hi Am 08.04.25 um 15:20 schrieb Marcus Folkesson: [...] +static int st7571_set_pixel_format(struct st7571_device *st7571, + u32 pixel_form

Re: [PATCH v3 2/3] drm/st7571-i2c: add support for Sitronix ST7571 LCD controller

2025-04-08 Thread Marcus Folkesson
Hello Javier, On Wed, Apr 09, 2025 at 08:11:23AM +0200, Javier Martinez Canillas wrote: [...] > >> > +static int st7571_set_pixel_format(struct st7571_device *st7571, > >> > + u32 pixel_format) > >> > +{ > >> > +switch (pixel_format) { > >> > +cas

Re: [PATCH v3 2/3] drm/st7571-i2c: add support for Sitronix ST7571 LCD controller

2025-04-08 Thread Marcus Folkesson
Hi, On Tue, Apr 08, 2025 at 03:57:22PM +0200, Thomas Zimmermann wrote: > Hi > > Am 08.04.25 um 15:20 schrieb Marcus Folkesson: > [...] > > > > > > > +static int st7571_set_pixel_format(struct st7571_device *st7571, > > > > + u32 pixel_format) > > > > +{ > > > > +

Re: [PATCH v3 2/3] drm/st7571-i2c: add support for Sitronix ST7571 LCD controller

2025-04-08 Thread Thomas Zimmermann
Hi Am 08.04.25 um 15:20 schrieb Marcus Folkesson: [...] +static int st7571_set_pixel_format(struct st7571_device *st7571, + u32 pixel_format) +{ + switch (pixel_format) { + case DRM_FORMAT_C1: + return st7571_set_color_mode(st7571, ST

Re: [PATCH v3 2/3] drm/st7571-i2c: add support for Sitronix ST7571 LCD controller

2025-04-08 Thread Marcus Folkesson
Hello Javier, Thank you for your review and suggestions. On Tue, Apr 08, 2025 at 12:44:46PM +0200, Javier Martinez Canillas wrote: > Marcus Folkesson writes: > > Hello Marcus, > > > Sitronix ST7571 is a 4bit gray scale dot matrix LCD controller. > > The controller has a SPI, I2C and 8bit paral

Re: [PATCH v3 2/3] drm/st7571-i2c: add support for Sitronix ST7571 LCD controller

2025-04-08 Thread Javier Martinez Canillas
Thomas Zimmermann writes: > Hi, > > lots of good points in the review. > > Am 08.04.25 um 12:44 schrieb Javier Martinez Canillas: > [...] >>> Reviewed-by: Thomas Zimmermann >>> Signed-off-by: Marcus Folkesson >>> --- >>> drivers/gpu/drm/tiny/Kconfig | 11 + >>> drivers/gpu/drm/tiny/Mak

Re: [PATCH v3 2/3] drm/st7571-i2c: add support for Sitronix ST7571 LCD controller

2025-04-08 Thread Thomas Zimmermann
Hi, lots of good points in the review. Am 08.04.25 um 12:44 schrieb Javier Martinez Canillas: [...] Reviewed-by: Thomas Zimmermann Signed-off-by: Marcus Folkesson --- drivers/gpu/drm/tiny/Kconfig | 11 + drivers/gpu/drm/tiny/Makefile | 1 + drivers/gpu/drm/tiny/st7571-i2c.c |

Re: [PATCH v3 2/3] drm/st7571-i2c: add support for Sitronix ST7571 LCD controller

2025-04-08 Thread Javier Martinez Canillas
Marcus Folkesson writes: Hello Marcus, > Sitronix ST7571 is a 4bit gray scale dot matrix LCD controller. > The controller has a SPI, I2C and 8bit parallel interface, this > driver is for the I2C interface only. > I would structure the driver differently. For example, what was done for the Solom

[PATCH v3 2/3] drm/st7571-i2c: add support for Sitronix ST7571 LCD controller

2025-04-08 Thread Marcus Folkesson
Sitronix ST7571 is a 4bit gray scale dot matrix LCD controller. The controller has a SPI, I2C and 8bit parallel interface, this driver is for the I2C interface only. Reviewed-by: Thomas Zimmermann Signed-off-by: Marcus Folkesson --- drivers/gpu/drm/tiny/Kconfig | 11 + drivers/gpu/drm/tin