[PATCH v2] drm/sitronix: move tiny Sitronix drivers to their own subdir

2025-05-03 Thread Marcus Folkesson
We start to have support many Sitronix displays in the tiny directory, and we expect more to come. Move them to their own subdirectory. Reviewed-by: Javier Martinez Canillas Suggested-by: Javier Martinez Canillas Signed-off-by: Marcus Folkesson --- Changes in v2: - Rebase on drm-misc-next

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

2025-04-28 Thread Marcus Folkesson
1 1 = White 1 0 = Light gray 0 1 = Dark gray 0 0 = Black instead. So I will probably add support for D1 and D2 formats and invert the pixels for the R1, R2 and XRGB formats. Could that work or are there any side effects that I should be aware of? Best regards, Marcus Folkesson signature.asc Description: PGP signature

Re: [PATCH] drm/st7571-i2c: select CONFIG_DRM_CLIENT_SELECTION

2025-04-28 Thread Marcus Folkesson
9): undefined reference to `drm_client_setup' > > Select the appropriate Kconfig symbol. > > Fixes: 4b35f0f41ee2 ("drm/st7571-i2c: add support for Sitronix ST7571 LCD > controller") > Signed-off-by: Arnd Bergmann Reviewed-by: Marcus Folkesson signature.asc Description: PGP signature

Re: [PATCH] drm/sitronix: move tiny Sitronix drivers to their own subdir

2025-04-28 Thread Marcus Folkesson
Hello Javier, On Mon, Apr 28, 2025 at 09:16:32AM +0200, Javier Martinez Canillas wrote: > Marcus Folkesson writes: > > Hello Marcus, > > > We start to have support many Sitronix displays in the tiny directory, > > and we expect more to come. > > > >

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

2025-04-28 Thread Marcus Folkesson
' ') > /* [7:0] D0:D1:D2:D3 2:2:2:2 four pixels/byte */ > > So the driver actually supports D1 and D2, and XRGB should be > inverted while converting to monochrome (and grayscale, which is not > yet implemented). Hrm, that seems right. I'm up to some rework of the driver, so I will put it into my pipeline. Thank you for noticing this! Best regards, Marcus Folkesson signature.asc Description: PGP signature

[PATCH] drm/sitronix: move tiny Sitronix drivers to their own subdir

2025-04-27 Thread Marcus Folkesson
We start to have support many Sitronix displays in the tiny directory, and we expect more to come. Move them to their own subdirectory. Signed-off-by: Marcus Folkesson --- MAINTAINERS | 6 ++-- drivers/gpu/drm/Kconfig | 2

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, th

[PATCH v6 0/3] Add support for Sitronix ST7571 LCD controller

2025-04-23 Thread Marcus Folkesson
common parts could easily be put into a common file to be used with other interfaces. I only have I2C to test with. The device is a little defiant, it tends to NAK some commands, but all commands takes effect, hence the I2C_M_IGNORE_NAK flag. Signed-off-by: Marcus Folkesson --- Changes in v6

[PATCH v6 3/3] MAINTAINERS: add entry for Sitronix ST7571 LCD Controller

2025-04-23 Thread Marcus Folkesson
Add MAINTAINERS entry for the Sitronix ST7571 dot matrix LCD controller. Reviewed-by: Thomas Zimmermann Reviewed-by: Javier Martinez Canillas Signed-off-by: Marcus Folkesson --- MAINTAINERS | 6 ++ 1 file changed, 6 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index

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

2025-04-23 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 Reviewed-by: Javier Martinez Canillas Signed-off-by: Marcus Folkesson --- drivers/gpu/drm/tiny

[PATCH v6 1/3] dt-bindings: display: Add Sitronix ST7571 LCD Controller

2025-04-23 Thread Marcus Folkesson
Sitronix ST7571 is a dot matrix LCD controller supporting both 4bit grayscale and monochrome LCDs. Reviewed-by: Conor Dooley Reviewed-by: Javier Martinez Canillas Reviewed-by: Krzysztof Kozlowski Signed-off-by: Marcus Folkesson --- .../bindings/display/sitronix,st7571.yaml | 73

[PATCH v5 3/3] MAINTAINERS: add entry for Sitronix ST7571 LCD Controller

2025-04-23 Thread Marcus Folkesson
Add MAINTAINERS entry for the Sitronix ST7571 dot matrix LCD controller. Reviewed-by: Thomas Zimmermann Reviewed-by: Javier Martinez Canillas Signed-off-by: Marcus Folkesson --- MAINTAINERS | 6 ++ 1 file changed, 6 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index

[PATCH v5 0/3] Add support for Sitronix ST7571 LCD controller

2025-04-23 Thread Marcus Folkesson
common parts could easily be put into a common file to be used with other interfaces. I only have I2C to test with. The device is a little defiant, it tends to NAK some commands, but all commands takes effect, hence the I2C_M_IGNORE_NAK flag. Signed-off-by: Marcus Folkesson --- Changes in v5

[PATCH v5 1/3] dt-bindings: display: Add Sitronix ST7571 LCD Controller

2025-04-23 Thread Marcus Folkesson
Sitronix ST7571 is a dot matrix LCD controller supporting both 4bit grayscale and monochrome LCDs. Reviewed-by: Conor Dooley Reviewed-by: Javier Martinez Canillas Reviewed-by: Krzysztof Kozlowski Signed-off-by: Marcus Folkesson --- .../bindings/display/sitronix,st7571.yaml | 73

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

2025-04-23 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 Reviewed-by: Javier Martinez Canillas Signed-off-by: Marcus Folkesson --- drivers/gpu/drm/tiny

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

2025-04-22 Thread Marcus Folkesson
Hello Javier, On Wed, Apr 23, 2025 at 01:08:11AM +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, th

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

2025-04-15 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

Re: [PATCH v4 1/3] dt-bindings: display: Add Sitronix ST7571 LCD Controller

2025-04-15 Thread Marcus Folkesson
Hi Krzysztof, On Tue, Apr 15, 2025 at 09:22:30AM +0200, Krzysztof Kozlowski wrote: > On 15/04/2025 07:58, Marcus Folkesson wrote: > > +title: Sitronix ST7571 Display Controller > > + > > +maintainers: > > + - Marcus Folkesson > > + > > +description:

[PATCH v4 3/3] MAINTAINERS: add entry for Sitronix ST7571 LCD Controller

2025-04-14 Thread Marcus Folkesson
Add MAINTAINERS entry for the Sitronix ST7571 dot matrix LCD controller. Reviewed-by: Thomas Zimmermann Signed-off-by: Marcus Folkesson --- MAINTAINERS | 6 ++ 1 file changed, 6 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 889bd4a59551c9bc125f94944a6e1c7e3ef2de83

[PATCH v4 0/3] Add support for Sitronix ST7571 LCD controller

2025-04-14 Thread Marcus Folkesson
common parts could easily be put into a common file to be used with other interfaces. I only have I2C to test with. The device is a little defiant, it tends to NAK some commands, but all commands takes effect, hence the I2C_M_IGNORE_NAK flag. Signed-off-by: Marcus Folkesson --- Changes in v4

[PATCH v4 1/3] dt-bindings: display: Add Sitronix ST7571 LCD Controller

2025-04-14 Thread Marcus Folkesson
Sitronix ST7571 is a dot matrix LCD controller supporting both 4bit grayscale and monochrome LCDs. Signed-off-by: Marcus Folkesson --- .../bindings/display/sitronix,st7571.yaml | 73 ++ 1 file changed, 73 insertions(+) diff --git a/Documentation/devicetree/bindings

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 */ > >>{ > >>

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 suppo

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

2025-04-10 Thread Marcus Folkesson
Hi Thomas, Thank you for your review and feedback! On Mon, Apr 07, 2025 at 10:30:28AM +0200, Thomas Zimmermann wrote: > Hi > > Am 04.04.25 um 15:50 schrieb Marcus Folkesson: > > Sitronix ST7571 is a 4bit gray scale dot matrix LCD controller. > > The controller has a SPI,

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 s

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

2025-04-08 Thread Marcus Folkesson
t the I2C transport is so slow anyways that compute is > not the bottleneck when using these small displays. Hrm, I now realised that I have another issue. Not all LCDs that will be attached to the ST7571 controller will be grayscale. The display I've attached to the ST7571 is a monochrom

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, > > > > +

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

[PATCH v3 3/3] MAINTAINERS: add entry for Sitronix ST7571 LCD Controller

2025-04-08 Thread Marcus Folkesson
Add MAINTAINERS entry for the Sitronix ST7571 dot matrix LCD controller. Reviewed-by: Thomas Zimmermann Signed-off-by: Marcus Folkesson --- MAINTAINERS | 6 ++ 1 file changed, 6 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 889bd4a59551c9bc125f94944a6e1c7e3ef2de83

[PATCH v3 0/3] Add support for Sitronix ST7571 LCD controller

2025-04-08 Thread Marcus Folkesson
with other interfaces. I only have I2C to test with. The device is a little defiant, it tends to NAK some commands, but all commands takes effect, hence the I2C_M_IGNORE_NAK flag. Signed-off-by: Marcus Folkesson --- Changes in v3: - (dt-binding) Use 'Controller' rather than 'Panel&

[PATCH v3 1/3] dt-bindings: display: Add Sitronix ST7571 LCD Controller

2025-04-08 Thread Marcus Folkesson
Sitronix ST7571 is a 4bit gray scale dot matrix LCD controller. Signed-off-by: Marcus Folkesson --- .../bindings/display/sitronix,st7571.yaml | 70 ++ 1 file changed, 70 insertions(+) diff --git a/Documentation/devicetree/bindings/display/sitronix,st7571.yaml b

[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

[PATCH 0/3] Add support for Sitronix ST7571 LCD controller

2025-04-05 Thread Marcus Folkesson
with other interfaces. I only have I2C to test with. The device is a little defiant, it tends to NAK some commands, but all commands takes effect, hence the I2C_M_IGNORE_NAK flag. Signed-off-by: Marcus Folkesson --- Marcus Folkesson (3): dt-bindings: st7571-i2c: Add Sitronix ST7571 panel

Re: [PATCH 1/3] dt-bindings: st7571-i2c: Add Sitronix ST7571 panel bindings

2025-04-05 Thread Marcus Folkesson
Thank you Krzysztof, I will fix the issues you pointed out, just a few comments below. On Wed, Apr 02, 2025 at 10:27:53AM +0200, Krzysztof Kozlowski wrote: > On Wed, Apr 02, 2025 at 08:12:10AM +0200, Marcus Folkesson wrote: > > Sitronix ST7571 is a 4bit gray scale dot matrix LCD c

Re: [PATCH v2 1/3] dt-bindings: display: Add Sitronix ST7571 panel

2025-04-04 Thread Marcus Folkesson
ion of the patch: description: Sitronix ST7571 is a driver and controller for up to 4-level gray scale dot-matrix LCD panels. It drives 128 segment outputs and 128+1 common outputs. It provides several system interfaces like SPI, I2C and 8-bit parallel bus. But still, it is not obvious if I should move it to panel or not. > > Best regards, > Krzysztof Best regards, Marcus Folkesson signature.asc Description: PGP signature

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

2025-04-04 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. Signed-off-by: Marcus Folkesson --- drivers/gpu/drm/tiny/Kconfig | 12 + drivers/gpu/drm/tiny/Makefile | 1 + drivers

[PATCH v2 3/3] MAINTAINERS: add antry for Sitronix ST7571 LCD controller

2025-04-04 Thread Marcus Folkesson
Add MAINTAINERS entry for the Sitronix ST7571 dot matrix LCD controller. Signed-off-by: Marcus Folkesson --- MAINTAINERS | 6 ++ 1 file changed, 6 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 889bd4a59551c9bc125f94944a6e1c7e3ef2de83..eeae24fda846b9f63400ebb08c3fa7f02f3f4b19

[PATCH v2 1/3] dt-bindings: display: Add Sitronix ST7571 panel

2025-04-04 Thread Marcus Folkesson
Sitronix ST7571 is a 4bit gray scale dot matrix LCD controller. Signed-off-by: Marcus Folkesson --- .../bindings/display/sitronix,st7571.yaml | 73 ++ 1 file changed, 73 insertions(+) diff --git a/Documentation/devicetree/bindings/display/sitronix,st7571.yaml b

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

2025-04-04 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. Signed-off-by: Marcus Folkesson --- drivers/gpu/drm/tiny/Kconfig | 11 + drivers/gpu/drm/tiny/Makefile | 1 + drivers

[PATCH v2 0/3] Add support for Sitronix ST7571 LCD controller

2025-04-04 Thread Marcus Folkesson
with other interfaces. I only have I2C to test with. The device is a little defiant, it tends to NAK some commands, but all commands takes effect, hence the I2C_M_IGNORE_NAK flag. Signed-off-by: Marcus Folkesson --- Changes in v2: - Reworked pretty much the whole driver to not use obsolete code

Re: [PATCH 1/3] dt-bindings: st7571-i2c: Add Sitronix ST7571 panel bindings

2025-04-03 Thread Marcus Folkesson
On Thu, Apr 03, 2025 at 04:28:22PM +0200, Krzysztof Kozlowski wrote: > On 03/04/2025 12:31, Marcus Folkesson wrote: > >>> +i2c { > >>> +#address-cells = <1>; > >>> +#size-cells = <0>; > >>> + > >>> +

[PATCH 1/3] dt-bindings: st7571-i2c: Add Sitronix ST7571 panel bindings

2025-04-02 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 is for the I2C interface only. Signed-off-by: Marcus Folkesson --- .../bindings/display/sitronix,st7571-i2c.yaml | 71 ++ 1 file changed, 71

[PATCH 3/3] MAINTAINERS: add antry for Sitronix ST7571 LCD controller

2025-04-02 Thread Marcus Folkesson
Add MAINTAINERS entry for the Sitronix ST7571 dot matrix LCD controller. Signed-off-by: Marcus Folkesson --- MAINTAINERS | 7 +++ 1 file changed, 7 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 889bd4a59551c9bc125f94944a6e1c7e3ef2de83..00d19d45679f6d18a7e9c9e619b7642176b7ef95