Re: [PATCH v2 3/3] DRM: Add KMS driver for the Ingenic JZ47xx SoCs

2019-04-03 Thread Paul Cercueil
to replace the aging jz4740-fb driver. Signed-off-by: Paul Cercueil Tested-by: Artur Rojek +struct ingenic_drm { + struct device *dev; + void __iomem *base; + struct regmap *map; + struct clk *lcd_clk, *pix_clk; + + u32 lcd_mode; + + struct

[PATCH 3/3] DRM: Add KMS driver for the Ingenic JZ47xx SoCs

2019-03-01 Thread Paul Cercueil
Add a KMS driver for the Ingenic JZ47xx family of SoCs. This driver is meant to replace the aging jz4740-fb driver. Signed-off-by: Paul Cercueil Tested-by: Artur Rojek --- drivers/gpu/drm/Kconfig | 2 + drivers/gpu/drm/Makefile | 1 + drivers/gpu/drm/ingenic

[PATCH 2/2] drm/panel: simple: Add GiantPlus GPM940B0 panel support

2019-03-01 Thread Paul Cercueil
The GiantPlus GPM940B0 is a simple 3.0" 320x240 24-bit TFT panel. Signed-off-by: Paul Cercueil Tested-by: Artur Rojek --- drivers/gpu/drm/panel/panel-simple.c | 28 1 file changed, 28 insertions(+) diff --git a/drivers/gpu/drm/panel/panel-simple.c b/driver

[PATCH 1/2] drm/panel: simple: Add Sharp LS020B1DD01D panel support

2019-03-01 Thread Paul Cercueil
The Sharp LS020B1DD01D is a simple 2.0" 240x160 16-bit TFT panel. Signed-off-by: Paul Cercueil Tested-by: Artur Rojek --- drivers/gpu/drm/panel/panel-simple.c | 28 1 file changed, 28 insertions(+) diff --git a/drivers/gpu/drm/panel/panel-simple.c b/driver

[PATCH 1/3] dt-bindings: Add doc for the ingenic-drm driver

2019-03-01 Thread Paul Cercueil
Add documentation for the devicetree bindings of the DRM driver for the JZ47xx family of SoCs from Ingenic. Signed-off-by: Paul Cercueil Tested-by: Artur Rojek --- .../devicetree/bindings/display/ingenic,drm.txt| 30 ++ 1 file changed, 30 insertions(+) create mode

[PATCH 2/3] dt-bindings: Add header for the ingenic-drm driver bindings

2019-03-01 Thread Paul Cercueil
Add macros that can be used with the ingenic,lcd-mode property in the devicetree node that corresponds to the ingenic-drm driver. Signed-off-by: Paul Cercueil Tested-by: Artur Rojek --- include/dt-bindings/display/ingenic,drm.h | 28 1 file changed, 28 insertions

[PATCH 2/2] drm/panel: Add GiantPlus GPM940B0 panel support

2019-03-01 Thread Paul Cercueil
The GiantPlus GPM940B0 is a simple 3.0" 320x240 24-bit TFT panel. Signed-off-by: Paul Cercueil Tested-by: Artur Rojek --- drivers/gpu/drm/panel/panel-simple.c | 28 1 file changed, 28 insertions(+) diff --git a/drivers/gpu/drm/panel/panel-simple.c b/driver

[5.2][PATCH 0/3] Ingenic JZ47xx KMS driver

2019-03-01 Thread Paul Cercueil
Hi, This is a first attempt at a KMS driver for the JZ47xx MIPS SoCs by Ingenic. It is aimed to replace the aging jz4740-fb driver. The driver will later be updated with new features (overlays, TV-out etc.), that's why I didn't go with the simple/tiny DRM driver. The driver has been tested on

Re: [PATCH 1/2] drm/panel: simple: Add Sharp LS020B1DD01D panel support

2019-03-03 Thread Paul Cercueil
Hi, Le ven. 1 mars 2019 à 19:24, Sam Ravnborg a écrit : Hi Paul. On Thu, Feb 28, 2019 at 03:58:52PM -0300, Paul Cercueil wrote: The Sharp LS020B1DD01D is a simple 2.0" 240x160 16-bit TFT panel. Signed-off-by: Paul Cercueil Tested-by: Artur Rojek --- drivers/gpu/drm/panel/

Re: [PATCH 3/3] DRM: Add KMS driver for the Ingenic JZ47xx SoCs

2019-03-03 Thread Paul Cercueil
Hi, Le ven. 1 mars 2019 à 18:00, Sam Ravnborg a écrit : Hi Paul. Driver looks good and is a very nice piece of work. In the following a number of minor issues. One area that jumped at me was framedesc and the use of dma_alloc_coherent() I hope someone that knows the memory handling better

Re: [PATCH 3/3] DRM: Add KMS driver for the Ingenic JZ47xx SoCs

2019-03-03 Thread Paul Cercueil
Hi Daniel, Le ven. 1 mars 2019 à 5:26, Daniel Vetter a écrit : On Thu, Feb 28, 2019 at 07:07:56PM -0300, Paul Cercueil wrote: Add a KMS driver for the Ingenic JZ47xx family of SoCs. This driver is meant to replace the aging jz4740-fb driver. Signed-off-by: Paul Cercueil Tested-by: Artur

Re: [PATCH 1/3] dt-bindings: Add doc for the ingenic-drm driver

2019-03-03 Thread Paul Cercueil
, Paul Cercueil wrote: Add documentation for the devicetree bindings of the DRM driver for the JZ47xx family of SoCs from Ingenic. Signed-off-by: Paul Cercueil Tested-by: Artur Rojek --- .../devicetree/bindings/display/ingenic,drm.txt| 30 ++ 1 file changed, 30 inse

[PATCH v2 1/3] dt-bindings: Add doc for the ingenic-drm driver

2019-03-16 Thread Paul Cercueil
Add documentation for the devicetree bindings of the DRM driver for the JZ47xx family of SoCs from Ingenic. Signed-off-by: Paul Cercueil Tested-by: Artur Rojek --- Notes: v2: Remove ingenic,panel property. .../devicetree/bindings/display/ingenic,drm.txt| 29 ++ 1

Re: [PATCH v2 1/3] dt-bindings: Add doc for the ingenic-drm driver

2019-03-16 Thread Paul Cercueil
Le ven. 15 mars 2019 à 18:06, Paul Cercueil a écrit : Add documentation for the devicetree bindings of the DRM driver for the JZ47xx family of SoCs from Ingenic. Signed-off-by: Paul Cercueil Tested-by: Artur Rojek --- Notes: v2: Remove ingenic,panel property. .../devicetree

[PATCH v2 3/3] DRM: Add KMS driver for the Ingenic JZ47xx SoCs

2019-03-16 Thread Paul Cercueil
Add a KMS driver for the Ingenic JZ47xx family of SoCs. This driver is meant to replace the aging jz4740-fb driver. Signed-off-by: Paul Cercueil Tested-by: Artur Rojek --- Notes: v2: - Remove custom handling of panel. The panel is now discovered using the standard API

[PATCH v2 2/3] dt-bindings: Add header for the ingenic-drm driver bindings

2019-03-16 Thread Paul Cercueil
Add macros that can be used with the ingenic,lcd-mode property in the devicetree node that corresponds to the ingenic-drm driver. Signed-off-by: Paul Cercueil Tested-by: Artur Rojek --- Notes: v2: No change include/dt-bindings/display/ingenic,drm.h | 28 1

Re: [PATCH 1/3] dt-bindings: Add doc for the ingenic-drm driver

2019-03-11 Thread Paul Cercueil
Hi Linus, On Fri, Mar 8, 2019 at 11:23 PM, Linus Walleij wrote: On Fri, Mar 1, 2019 at 11:41 PM Paul Cercueil <mailto:p...@crapouillou.net>> wrote: I also have a board with a "smart" panel (ili9331) that needs a special configuration in the IP. There is nothing in the

Re: [PATCH v2 3/3] DRM: Add KMS driver for the Ingenic JZ47xx SoCs

2019-03-18 Thread Paul Cercueil
. Signed-off-by: Paul Cercueil Tested-by: Artur Rojek +struct ingenic_drm { + struct device *dev; + void __iomem *base; + struct regmap *map; + struct clk *lcd_clk, *pix_clk; + + u32 lcd_mode; + + struct ingenic_dma_hwdesc *framedesc; Consider the name

Re: [PATCH v2 1/3] dt-bindings: Add doc for the ingenic-drm driver

2019-03-18 Thread Paul Cercueil
Hi Sam, Le sam. 16 mars 2019 à 21:59, Sam Ravnborg a écrit : Hi Paul. On Fri, Mar 15, 2019 at 06:06:59PM +0100, Paul Cercueil wrote: Add documentation for the devicetree bindings of the DRM driver for the JZ47xx family of SoCs from Ingenic. Signed-off-by: Paul Cercueil Tested

Re: [5.2][PATCH 0/3] Ingenic JZ47xx KMS driver

2019-03-12 Thread Paul Cercueil
Hi Ezequiel, On Mon, Mar 11, 2019 at 1:02 AM, Ezequiel Garcia wrote: On Thu, 2019-02-28 at 19:07 -0300, Paul Cercueil wrote: Hi, This is a first attempt at a KMS driver for the JZ47xx MIPS SoCs by Ingenic. It is aimed to replace the aging jz4740-fb driver. The driver will later

Re: [PATCH 3/3] DRM: Add KMS driver for the Ingenic JZ47xx SoCs

2019-03-15 Thread Paul Cercueil
Hi Daniel, Le ven. 1 mars 2019 à 9:26, Daniel Vetter a écrit : On Thu, Feb 28, 2019 at 07:07:56PM -0300, Paul Cercueil wrote: Add a KMS driver for the Ingenic JZ47xx family of SoCs. This driver is meant to replace the aging jz4740-fb driver. Signed-off-by: Paul Cercueil Tested-by: Artur

[PATCH v2 1/5] dt-bindings: display: Add Sharp LS020B1DD01D panel documentation

2019-03-15 Thread Paul Cercueil
The LS020B1DD01D is a 2.0" 240x160 16-bit TFT LCD panel. Signed-off-by: Paul Cercueil --- Notes: v2: New patch .../devicetree/bindings/display/panel/sharp,ls020b1dd01d.txt | 12 1 file changed, 12 insertions(+) create mode 100644 Documentation/devicetree/bindings/di

[PATCH v2 4/5] drm/panel: simple: Add Sharp LS020B1DD01D panel support

2019-03-15 Thread Paul Cercueil
The Sharp LS020B1DD01D is a simple 2.0" 240x160 16-bit TFT panel. Signed-off-by: Paul Cercueil Tested-by: Artur Rojek --- Notes: v2: No change drivers/gpu/drm/panel/panel-simple.c | 28 1 file changed, 28 insertions(+) diff --git a/drivers/gpu/drm/

[PATCH v2 3/5] media: uapi: Add RGB bus formats for the GiantPlus GPM940B0 panel

2019-03-15 Thread Paul Cercueil
The GiantPlus GPM940B0 is a 24-bit TFT panel where the RGB components are transferred sequentially on a 8-bit bus. Signed-off-by: Paul Cercueil --- Notes: v2: New patch include/uapi/linux/media-bus-format.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/include

[PATCH v2 5/5] drm/panel: simple: Add GiantPlus GPM940B0 panel support

2019-03-15 Thread Paul Cercueil
The GiantPlus GPM940B0 is a simple 3.0" 320x240 24-bit TFT panel. Signed-off-by: Paul Cercueil Tested-by: Artur Rojek --- Notes: v2: Change bus format to MEDIA_BUS_FMT_RGB888_3X8_BE drivers/gpu/drm/panel/panel-simple.c | 28 1 file changed, 28 inser

[PATCH v2 2/5] dt-bindings: display: Add GiantPlus GPM940B0 panel documentation

2019-03-15 Thread Paul Cercueil
The GPM940B0 is a 3.0" 320x240 24-bit TFT LCD panel. Signed-off-by: Paul Cercueil --- Notes: v2: New patch .../devicetree/bindings/display/panel/giantplus,gpm940b0.txt | 12 1 file changed, 12 insertions(+) create mode 100644 Documentation/devicetree/bindings/display/

Re: [PATCH v2 3/5] media: uapi: Add RGB bus formats for the GiantPlus GPM940B0 panel

2019-04-09 Thread Paul Cercueil
Hi Thierry, Le mer. 3 avril 2019 à 18:32, Thierry Reding a écrit : On Thu, Mar 14, 2019 at 01:26:20PM +0100, Paul Cercueil wrote: The GiantPlus GPM940B0 is a 24-bit TFT panel where the RGB components are transferred sequentially on a 8-bit bus. Signed-off-by: Paul Cercueil --- Notes

[PATCH v3 2/3] dt-bindings: Add header for the ingenic-drm driver bindings

2019-04-15 Thread Paul Cercueil
Add macros that can be used with the ingenic,lcd-mode property in the devicetree node that corresponds to the ingenic-drm driver. Signed-off-by: Paul Cercueil Tested-by: Artur Rojek --- Notes: v2: No change v3: s/_DRM// include/dt-bindings/display/ingenic,drm.h | 28

[PATCH v3 3/3] DRM: Add KMS driver for the Ingenic JZ47xx SoCs

2019-04-15 Thread Paul Cercueil
Add a KMS driver for the Ingenic JZ47xx family of SoCs. This driver is meant to replace the aging jz4740-fb driver. Signed-off-by: Paul Cercueil Tested-by: Artur Rojek --- Notes: v2: - Remove custom handling of panel. The panel is now discovered using the standard API

[PATCH v3 1/3] dt-bindings: Add doc for the ingenic-drm driver

2019-04-15 Thread Paul Cercueil
Add documentation for the devicetree bindings of the DRM driver for the JZ47xx family of SoCs from Ingenic. Signed-off-by: Paul Cercueil Tested-by: Artur Rojek --- Notes: v2: Remove ingenic,panel property. v3: - Rename compatible strings from ingenic,jz47XX-drm to ingenic,jz47XX

[PATCH v2 2/2] drm/panel: Add Novatek NT39016 panel support

2019-06-03 Thread Paul Cercueil
Add support for display panels built around the Novatek NT39016 display controller, as found on e.g. the King Display KD035G6-54NT 24-bit 320x240 3.5" LCD panel which equips the GCW Zero open-source handheld gaming console. Signed-off-by: Paul Cercueil Signed-off-by: Maarten ter H

[PATCH v2 1/2] dt-bindings: display: Add King Display KD035G6-54NT panel documentation

2019-06-03 Thread Paul Cercueil
The KD035G6-54NT is a 3.5" 320x240 24-bit TFT LCD panel. Signed-off-by: Paul Cercueil --- Notes: v2: - Add an address to the panel node - Add information about SPI properties - Add information about the 'port' sub-node .../panel/kingdisplay,kd035g6-54nt.txt

[PATCH v5 2/2] DRM: Add KMS driver for the Ingenic JZ47xx SoCs

2019-06-03 Thread Paul Cercueil
for colorspace conversion and up/down scaling, support for DSI displays, and TV-out and HDMI outputs. Signed-off-by: Paul Cercueil Tested-by: Artur Rojek --- Notes: v2: - Remove custom handling of panel. The panel is now discovered using the standard API. - Lots of small tweaks

[PATCH v5 1/2] dt-bindings: Add doc for the Ingenic JZ47xx LCD controller driver

2019-06-03 Thread Paul Cercueil
Add documentation for the devicetree bindings of the LCD controller present in the JZ47xx family of SoCs from Ingenic. Signed-off-by: Paul Cercueil Tested-by: Artur Rojek --- Notes: v2: Remove ingenic,panel property. v3: - Rename compatible strings from ingenic,jz47XX-drm

[PATCH v4 1/3] dt-bindings: display: Add Sharp LS020B1DD01D panel documentation

2019-06-03 Thread Paul Cercueil
The LS020B1DD01D is a 2.0" 240x160 16-bit TFT LCD panel. Signed-off-by: Paul Cercueil Reviewed-by: Rob Herring --- Notes: v2: New patch v3: Add Rob's Reviewed-by v4: Rebase on drm-misc-next (b232d4ed92ea) .../bindings/display/panel/sharp,ls020b1dd01d.txt

[PATCH v4 3/3] drm/panel: simple: Add Sharp LS020B1DD01D panel support

2019-06-03 Thread Paul Cercueil
The Sharp LS020B1DD01D is a simple 2.0" 240x160 16-bit TFT panel. Signed-off-by: Paul Cercueil Tested-by: Artur Rojek --- Notes: v2: No change v3: Add DRM_BUS_FLAG_SHARP_SIGNALS to the bus flags v4: Rebase on drm-misc-next (b232d4ed92ea) drivers/gpu/drm/panel/

[PATCH v4 2/3] drm: Add bus flag for Sharp-specific signals

2019-06-03 Thread Paul Cercueil
Add the DRM_BUS_FLAG_SHARP_SIGNALS to the drm_bus_flags enum. This flags can be used when the display must be driven with the Sharp-specific signals SPL, CLS, REV, PS. Signed-off-by: Paul Cercueil --- Notes: v3: New patch v4: Rebase on drm-misc-next (b232d4ed92ea) include/drm

[PATCH v4 3/3] drm/panel: simple: Add GiantPlus GPM940B0 panel support

2019-06-03 Thread Paul Cercueil
The GiantPlus GPM940B0 is a simple 3.0" 320x240 24-bit TFT panel. Signed-off-by: Paul Cercueil Tested-by: Artur Rojek --- Notes: v2: Change bus format to MEDIA_BUS_FMT_RGB888_3X8_BE v3: No change v4: Change bus format to MEDIA_BUS_FMT_RGB888_3X8 drivers/gpu/drm/

[PATCH v4 1/3] dt-bindings: display: Add GiantPlus GPM940B0 panel documentation

2019-06-03 Thread Paul Cercueil
The GPM940B0 is a 3.0" 320x240 24-bit TFT LCD panel. Signed-off-by: Paul Cercueil Reviewed-by: Rob Herring --- Notes: v2: New patch v3: Add Rob's ack v4: No change .../bindings/display/panel/giantplus,gpm940b0.txt| 12 1 file changed, 12 inser

[PATCH v4 2/3] media: uapi: Add RGB bus format for the GiantPlus GPM940B0 panel

2019-06-03 Thread Paul Cercueil
The GiantPlus GPM940B0 is a 24-bit TFT panel where the RGB components are transferred sequentially on a 8-bit bus. Signed-off-by: Paul Cercueil --- Notes: v2: New patch v3: No change v4: Add only MEDIA_BUS_FMT_RGB888_3X8, as we don't have to care about endianness

Re: [PATCH v4 2/3] media: uapi: Add RGB bus format for the GiantPlus GPM940B0 panel

2019-06-05 Thread Paul Cercueil
Le mer. 5 juin 2019 à 16:26, Mauro Carvalho Chehab a écrit : Em Mon, 3 Jun 2019 17:35:10 +0200 Paul Cercueil escreveu: The GiantPlus GPM940B0 is a 24-bit TFT panel where the RGB components are transferred sequentially on a 8-bit bus. Signed-off-by: Paul Cercueil --- Notes

[PATCH v5 3/3] drm/panel: simple: Add GiantPlus GPM940B0 panel support

2019-06-05 Thread Paul Cercueil
The GiantPlus GPM940B0 is a simple 3.0" 320x240 24-bit TFT panel. Signed-off-by: Paul Cercueil Tested-by: Artur Rojek --- Notes: v2: Change bus format to MEDIA_BUS_FMT_RGB888_3X8_BE v3: No change v4: Change bus format to MEDIA_BUS_FMT_RGB888_3X8 v5: No c

[PATCH v5 2/3] media: uapi: Add MEDIA_BUS_FMT_RGB888_3X8 media bus format

2019-06-05 Thread Paul Cercueil
This patch adds MEDIA_BUS_FMT_RGB888_3X8, used for the GiantPlus GPM940B0 24-bit TFT panel, where the RGB components are transferred sequentially on a 8-bit bus. Signed-off-by: Paul Cercueil --- Notes: v2: New patch v3: No change v4: Add only MEDIA_BUS_FMT_RGB888_3X8

[PATCH v5 1/3] dt-bindings: display: Add GiantPlus GPM940B0 panel documentation

2019-06-05 Thread Paul Cercueil
The GPM940B0 is a 3.0" 320x240 24-bit TFT LCD panel. Signed-off-by: Paul Cercueil Reviewed-by: Rob Herring --- Notes: v2: New patch v3: Add Rob's ack v4-v5: No change .../bindings/display/panel/giantplus,gpm940b0.txt| 12 1 file changed, 12 inser

[PATCH 1/2] dt-bindings: display: Add King Display KD035G6-54NT panel documentation

2019-06-02 Thread Paul Cercueil
The KD035G6-54NT is a 3.5" 320x240 24-bit TFT LCD panel. Signed-off-by: Paul Cercueil --- .../panel/kingdisplay,kd035g6-54nt.txt| 27 +++ 1 file changed, 27 insertions(+) create mode 100644 Documentation/devicetree/bindings/display/panel/kingdisplay,kd035g6-54n

[PATCH 2/2] drm/panel: Add Novatek NT39016 panel support

2019-06-02 Thread Paul Cercueil
Add support for display panels built around the Novatek NT39016 display controller, as found on e.g. the King Display KD035G6-54NT 24-bit 320x240 3.5" LCD panel which equips the GCW Zero open-source handheld gaming console. Signed-off-by: Paul Cercueil --- drivers/gpu/drm/panel/Kc

Re: [PATCH v5 1/2] dt-bindings: Add doc for the Ingenic JZ47xx LCD controller driver

2019-06-13 Thread Paul Cercueil
Le mar. 11 juin 2019 à 23:55, Rob Herring a écrit : On Mon, 3 Jun 2019 17:23:30 +0200, Paul Cercueil wrote: Add documentation for the devicetree bindings of the LCD controller present in the JZ47xx family of SoCs from Ingenic. Signed-off-by: Paul Cercueil Tested-by: Artur Rojek

Re: [PATCH v5 2/2] DRM: Add KMS driver for the Ingenic JZ47xx SoCs

2019-06-21 Thread Paul Cercueil
Le ven. 21 juin 2019 à 11:04, Daniel Vetter a écrit : On Thu, Jun 20, 2019 at 04:15:59PM +0200, Paul Cercueil wrote: Le mer. 19 juin 2019 à 14:26, Sam Ravnborg a écrit : > Hi Paul. > > On Mon, Jun 03, 2019 at 05:23:31PM +0200, Paul Cercueil wrote: > > A

Re: [PATCH v5 2/2] DRM: Add KMS driver for the Ingenic JZ47xx SoCs

2019-06-20 Thread Paul Cercueil
Le mer. 19 juin 2019 à 14:26, Sam Ravnborg a écrit : Hi Paul. On Mon, Jun 03, 2019 at 05:23:31PM +0200, Paul Cercueil wrote: Add a KMS driver for the Ingenic JZ47xx family of SoCs. This driver is meant to replace the aging jz4740-fb driver. This driver does not make use of the simple

Re: [PATCH v5 2/2] DRM: Add KMS driver for the Ingenic JZ47xx SoCs

2019-06-23 Thread Paul Cercueil
Le ven. 21 juin 2019 à 11:13, Daniel Vetter a écrit : On Fri, Jun 21, 2019 at 11:07:30AM +0200, Paul Cercueil wrote: Le ven. 21 juin 2019 à 11:04, Daniel Vetter a écrit : > On Thu, Jun 20, 2019 at 04:15:59PM +0200, Paul Cercueil wrote: > > > > > > Le mer.

Re: [PATCH] backlight: pwm_bl: Set pin to sleep state when powered down

2019-06-24 Thread Paul Cercueil
Le lun. 24 juin 2019 à 17:46, Daniel Thompson a écrit : On Mon, Jun 24, 2019 at 04:31:57PM +0200, Paul Cercueil wrote: Le lun. 24 juin 2019 à 13:28, Daniel Thompson a écrit : > On Fri, Jun 21, 2019 at 03:56:08PM +0200, Thierry Reding wrote: > > On Fri, Jun 21, 2019 at 0

Re: [PATCH] backlight: pwm_bl: Set pin to sleep state when powered down

2019-06-24 Thread Paul Cercueil
Le lun. 24 juin 2019 à 13:28, Daniel Thompson a écrit : On Fri, Jun 21, 2019 at 03:56:08PM +0200, Thierry Reding wrote: On Fri, Jun 21, 2019 at 01:41:45PM +0100, Daniel Thompson wrote: > On 22/05/2019 17:34, Paul Cercueil wrote: > > When the driver probes, the PWM pin is auto

Re: [PATCH] backlight: pwm_bl: Set pin to sleep state when powered down

2019-06-24 Thread Paul Cercueil
Le ven. 21 juin 2019 à 15:56, Thierry Reding a écrit : On Fri, Jun 21, 2019 at 01:41:45PM +0100, Daniel Thompson wrote: On 22/05/2019 17:34, Paul Cercueil wrote: > When the driver probes, the PWM pin is automatically configured to its > default state, which should be th

[PATCH] backlight: pwm_bl: Set pin to sleep state when powered down

2019-05-22 Thread Paul Cercueil
d, the pin is reset to its sleep state. Signed-off-by: Paul Cercueil --- drivers/video/backlight/pwm_bl.c | 9 + 1 file changed, 9 insertions(+) diff --git a/drivers/video/backlight/pwm_bl.c b/drivers/video/backlight/pwm_bl.c index fb45f866b923..422f7903b382 100644 --- a/drivers/video/backligh

[PATCH 2/3] DRM: ingenic: Add support for Sharp panels

2019-06-27 Thread Paul Cercueil
Add support for the LCD panels that must be driven with the Sharp-specific signals SPL, CLS, REV, PS. An example of such panel is the LS020B1DD01D supported by the panel-simple DRM panel driver. Signed-off-by: Paul Cercueil --- drivers/gpu/drm/ingenic/ingenic-drm.c | 64

[PATCH 1/3] DRM: ingenic: Use devm_platform_ioremap_resource

2019-06-27 Thread Paul Cercueil
Simplify a bit the probe function by using the newly introduced devm_platform_ioremap_resource(), instead of having to call platform_get_resource() followed by devm_ioremap_resource(). Signed-off-by: Paul Cercueil --- drivers/gpu/drm/ingenic/ingenic-drm.c | 4 +--- 1 file changed, 1 insertion

[PATCH 3/3] DRM: ingenic: Add support for panels with 8-bit serial bus

2019-06-27 Thread Paul Cercueil
Add support for the LCD panels with a serial 8-bit bus, where the color components of each 24-bit pixel are sent sequentially. Signed-off-by: Paul Cercueil --- drivers/gpu/drm/ingenic/ingenic-drm.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/gpu/drm/ingenic/ingenic-drm.c b

Re: [PATCH 1/3] DRM: ingenic: Use devm_platform_ioremap_resource

2019-06-30 Thread Paul Cercueil
Le dim. 30 juin 2019 à 10:18, Sam Ravnborg a écrit : Hi Paul. On Thu, Jun 27, 2019 at 08:21:12PM +0200, Paul Cercueil wrote: Simplify a bit the probe function by using the newly introduced devm_platform_ioremap_resource(), instead of having to call platform_get_resource() followed

[PATCH v3 1/3] dt-bindings: display: Add GiantPlus GPM940B0 panel documentation

2019-04-22 Thread Paul Cercueil
The GPM940B0 is a 3.0" 320x240 24-bit TFT LCD panel. Signed-off-by: Paul Cercueil Reviewed-by: Rob Herring --- Notes: v2: New patch v3: Add Rob's ack .../bindings/display/panel/giantplus,gpm940b0.txt| 12 1 file changed, 12 insertions(+) create mode 1

Re: [PATCH v3 2/3] dt-bindings: Add header for the ingenic-drm driver bindings

2019-04-22 Thread Paul Cercueil
Hi, Le sam. 20 avril 2019 à 14:23, Ezequiel Garcia a écrit : On Wed, 17 Apr 2019 at 10:48, Rob Herring wrote: On Sun, Apr 14, 2019 at 3:08 PM Paul Cercueil wrote: > > Add macros that can be used with the ingenic,lcd-mode property in the > devicetree node that co

[PATCH v3 2/3] media: uapi: Add RGB bus formats for the GiantPlus GPM940B0 panel

2019-04-22 Thread Paul Cercueil
The GiantPlus GPM940B0 is a 24-bit TFT panel where the RGB components are transferred sequentially on a 8-bit bus. Signed-off-by: Paul Cercueil --- Notes: v2: New patch v3: No change include/uapi/linux/media-bus-format.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion

[PATCH v3 3/3] drm/panel: simple: Add GiantPlus GPM940B0 panel support

2019-04-22 Thread Paul Cercueil
The GiantPlus GPM940B0 is a simple 3.0" 320x240 24-bit TFT panel. Signed-off-by: Paul Cercueil Tested-by: Artur Rojek --- Notes: v2: Change bus format to MEDIA_BUS_FMT_RGB888_3X8_BE v3: No change drivers/gpu/drm/panel/panel-simple.c | 28 1

[PATCH v3 1/3] dt-bindings: display: Add Sharp LS020B1DD01D panel documentation

2019-04-26 Thread Paul Cercueil
The LS020B1DD01D is a 2.0" 240x160 16-bit TFT LCD panel. Signed-off-by: Paul Cercueil Reviewed-by: Rob Herring --- Notes: v2: New patch v3: Add Rob's Reviewed-by .../bindings/display/panel/sharp,ls020b1dd01d.txt| 12 1 file changed, 12 insertions(+) create

[PATCH v3 2/3] drm: Add bus flag for Sharp-specific signals

2019-04-26 Thread Paul Cercueil
Add the DRM_BUS_FLAG_SHARP_SIGNALS to the drm_bus_flags enum. This flags can be used when the display must be driven with the Sharp-specific signals SPL, CLS, REV, PS. Signed-off-by: Paul Cercueil --- Notes: v3: New patch include/drm/drm_connector.h | 3 +++ 1 file changed, 3 insertions

[PATCH v4 1/2] dt-bindings: Add doc for the Ingenic JZ47xx LCD controller driver

2019-04-26 Thread Paul Cercueil
Add documentation for the devicetree bindings of the LCD controller present in the JZ47xx family of SoCs from Ingenic. Signed-off-by: Paul Cercueil Tested-by: Artur Rojek --- Notes: v2: Remove ingenic,panel property. v3: - Rename compatible strings from ingenic,jz47XX-drm

[PATCH v4 2/2] DRM: Add KMS driver for the Ingenic JZ47xx SoCs

2019-04-26 Thread Paul Cercueil
for colorspace conversion and up/down scaling, support for DSI displays, and TV-out and HDMI outputs. Signed-off-by: Paul Cercueil Tested-by: Artur Rojek --- Notes: v2: - Remove custom handling of panel. The panel is now discovered using the standard API. - Lots of small tweaks

[PATCH v3 3/3] drm/panel: simple: Add Sharp LS020B1DD01D panel support

2019-04-26 Thread Paul Cercueil
The Sharp LS020B1DD01D is a simple 2.0" 240x160 16-bit TFT panel. Signed-off-by: Paul Cercueil Tested-by: Artur Rojek --- Notes: v2: No change v3: Add DRM_BUS_FLAG_SHARP_SIGNALS to the bus flags drivers/gpu/drm/panel/panel-simple.c | 30 1

Re: [PATCH 10/11] mfd: Drop obsolete JZ4740 driver

2019-08-13 Thread Paul Cercueil
Hi Philippe, Le mar. 13 août 2019 à 10:44, Philippe =?iso-8859-1?q?Mathieu-Daud=E9?= a écrit : Hi Lee, On 8/12/19 10:16 AM, Lee Jones wrote: On Thu, 25 Jul 2019, Paul Cercueil wrote: It has been replaced with the ingenic-iio driver for the ADC. Signed-off-by: Paul Cercueil Tested

Re: [PATCH] drm/ingenic: Hardcode panel type to DPI

2019-08-30 Thread Paul Cercueil
Hi Sam, Laurent, Le mar. 27 août 2019 à 7:00, Sam Ravnborg a écrit : On Fri, Aug 23, 2019 at 11:30:09PM +0200, Paul Cercueil wrote: Hi Laurent, Le ven. 23 août 2019 à 23:23, Laurent Pinchart a écrit : > The ingenic driver supports DPI panels only at the moment, so hardc

Re: [PATCH] drm/ingenic: Hardcode panel type to DPI

2019-08-25 Thread Paul Cercueil
for a v5.3 fix. Keeping the connector type as unknown could cause a userspace dependency on it, preventing it from being changed later. Makes sense. Reviewed-by: Paul Cercueil diff --git a/drivers/gpu/drm/ingenic/ingenic-drm.c b/drivers/gpu/drm/ingenic/ingenic-drm.c index ce1fae3a78a9

Re: [PATCH] drm/ingenic: Hardcode panel type to DPI

2019-09-02 Thread Paul Cercueil
Le jeu. 29 août 2019 à 16:46, Laurent Pinchart a écrit : Hi Paul, On Thu, Aug 29, 2019 at 12:03:32PM +0200, Paul Cercueil wrote: Le mar. 27 août 2019 à 7:00, Sam Ravnborg a écrit : > On Fri, Aug 23, 2019 at 11:30:09PM +0200, Paul Cercueil wrote: >> Le ven. 23 août 2019 à 23:23

Re: [PATCH 00/11] JZ4740 SoC cleanup

2019-07-26 Thread Paul Cercueil
Le ven. 26 juil. 2019 à 14:46, Sam Ravnborg a écrit : Hi Paul. On Thu, Jul 25, 2019 at 06:02:04PM -0400, Paul Cercueil wrote: Hi, This patchset converts the Qi LB60 MIPS board to devicetree and makes it use all the shiny new drivers that have been developed or updated recently

Re: [PATCH 00/11] JZ4740 SoC cleanup

2019-07-29 Thread Paul Cercueil
Hi Richard, Le lun. 29 juil. 2019 à 7:23, Richard Weinberger a écrit : On Fri, Jul 26, 2019 at 12:02 AM Paul Cercueil wrote: Hi, This patchset converts the Qi LB60 MIPS board to devicetree and makes it use all the shiny new drivers that have been developed or updated recently

[PATCH 10/11] mfd: Drop obsolete JZ4740 driver

2019-07-25 Thread Paul Cercueil
It has been replaced with the ingenic-iio driver for the ADC. Signed-off-by: Paul Cercueil Tested-by: Artur Rojek --- drivers/mfd/Kconfig | 9 -- drivers/mfd/Makefile | 1 - drivers/mfd/jz4740-adc.c | 324 --- 3 files changed, 334 deletions

[PATCH 11/11] MIPS: jz4740: Drop dead code

2019-07-25 Thread Paul Cercueil
Remove all the source files that are not used anywhere anymore. Signed-off-by: Paul Cercueil Tested-by: Artur Rojek --- arch/mips/include/asm/mach-jz4740/gpio.h | 15 -- arch/mips/include/asm/mach-jz4740/jz4740_fb.h | 58 .../mips/include/asm/mach-jz4740/jz4740_mmc.h | 12 - arch

[PATCH 00/11] JZ4740 SoC cleanup

2019-07-25 Thread Paul Cercueil
Hi, This patchset converts the Qi LB60 MIPS board to devicetree and makes it use all the shiny new drivers that have been developed or updated recently. All the crappy old drivers and custom code can be dropped since they have been replaced by better alternatives. Some of these alternatives are

[PATCH 01/11] MIPS: DTS: jz4740: Add missing nodes

2019-07-25 Thread Paul Cercueil
Add nodes for the MMC, AIC, ADC, CODEC, MUSB, LCD, memory, and BCH controllers. Signed-off-by: Paul Cercueil Tested-by: Artur Rojek --- arch/mips/boot/dts/ingenic/jz4740.dtsi | 84 ++ 1 file changed, 84 insertions(+) diff --git a/arch/mips/boot/dts/ingenic/jz4740.dtsi

[PATCH 02/11] MIPS: qi_lb60: Migrate to devicetree

2019-07-25 Thread Paul Cercueil
ic-battery instead of jz4740-battery; - We use iio-hwmon instead of jz4740-hwmon; - We use ingenic-iio instead of the old jz4740-adc MFD driver. Signed-off-by: Paul Cercueil Tested-by: Artur Rojek --- arch/mips/boot/dts/ingenic/qi_lb60.dts | 295 ++- arch/mips/jz4740/Makefile

[PATCH 06/11] dma: Drop JZ4740 driver

2019-07-25 Thread Paul Cercueil
The newer and better JZ4780 driver is now used to provide DMA functionality on the JZ4740. Signed-off-by: Paul Cercueil Tested-by: Artur Rojek --- drivers/dma/Kconfig | 6 - drivers/dma/Makefile | 1 - drivers/dma/dma-jz4740.c | 623 --- 3 files

[PATCH 08/11] power/supply: Drop obsolete JZ4740 driver

2019-07-25 Thread Paul Cercueil
It has been replaced with the more mature ingenic-battery driver. Signed-off-by: Paul Cercueil Tested-by: Artur Rojek --- drivers/power/supply/Kconfig | 11 - drivers/power/supply/Makefile | 1 - drivers/power/supply/jz4740-battery.c | 421 -- 3

[PATCH 03/11] MIPS: configs: LB60: update defconfig

2019-07-25 Thread Paul Cercueil
Update the defconfig to select the new drivers instead of the old ones. Signed-off-by: Paul Cercueil Tested-by: Artur Rojek --- arch/mips/configs/qi_lb60_defconfig | 44 ++--- 1 file changed, 22 insertions(+), 22 deletions(-) diff --git a/arch/mips/configs

[PATCH 04/11] ASoC: jz4740: Drop lb60 board code

2019-07-25 Thread Paul Cercueil
The board now uses the simple-audio-card driver. Signed-off-by: Paul Cercueil Tested-by: Artur Rojek --- sound/soc/jz4740/Kconfig | 25 + sound/soc/jz4740/Makefile | 5 -- sound/soc/jz4740/qi_lb60.c | 106 - 3 files changed, 2 insertions

[PATCH 05/11] video/fbdev: Drop JZ4740 driver

2019-07-25 Thread Paul Cercueil
The JZ4740 fbdev driver has been replaced with the ingenic-drm driver. Signed-off-by: Paul Cercueil Tested-by: Artur Rojek --- drivers/video/fbdev/Kconfig | 9 - drivers/video/fbdev/Makefile| 1 - drivers/video/fbdev/jz4740_fb.c | 690 3 files

[PATCH 09/11] hwmon: Drop obsolete JZ4740 driver

2019-07-25 Thread Paul Cercueil
The JZ4740 boards now use the iio-hwmon driver. Signed-off-by: Paul Cercueil Tested-by: Artur Rojek --- drivers/hwmon/Kconfig| 10 --- drivers/hwmon/Makefile | 1 - drivers/hwmon/jz4740-hwmon.c | 135 --- 3 files changed, 146 deletions

[PATCH 07/11] mtd: rawnand: Drop obsolete JZ4740 NAND driver

2019-07-25 Thread Paul Cercueil
It has been replaced with the newer Ingenic NAND driver. Signed-off-by: Paul Cercueil Tested-by: Artur Rojek --- drivers/mtd/nand/raw/ingenic/Kconfig | 7 - drivers/mtd/nand/raw/ingenic/Makefile | 1 - drivers/mtd/nand/raw/ingenic/jz4740_nand.c | 536 - 3

Re: [PATCH 02/11] MIPS: qi_lb60: Migrate to devicetree

2019-07-25 Thread Paul Cercueil
Le jeu. 25 juil. 2019 à 19:47, Paul Burton a écrit : Hi Paul, On Thu, Jul 25, 2019 at 06:02:06PM -0400, Paul Cercueil wrote: Move all the platform data to devicetree. Nice! :) The only bit dropped is the PWM beeper, which requires the PWM driver to be updated. I figured it's okay

Re: [PATCH] backlight: pwm_bl: Set pin to sleep state when powered down

2019-07-06 Thread Paul Cercueil
Le mar. 25 juin 2019 à 5:47, Thierry Reding a écrit : On Mon, Jun 24, 2019 at 04:31:57PM +0200, Paul Cercueil wrote: Le lun. 24 juin 2019 à 13:28, Daniel Thompson a écrit : > On Fri, Jun 21, 2019 at 03:56:08PM +0200, Thierry Reding wrote: > > On Fri, Jun 21, 2019 at 0

[PATCH 1/3] dt-bindings: vendor-prefixes: Add Shenzhen Frida LCD Co., Ltd.

2019-11-21 Thread Paul Cercueil
Add an entry for Shenzhen Frida LCD Co., Ltd. Signed-off-by: Paul Cercueil --- Documentation/devicetree/bindings/vendor-prefixes.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/vendor-prefixes.yaml b/Documentation/devicetree/bindings/vendor

[PATCH 3/3] drm/panel: simple: Add support for the Frida FRD350H54004 panel

2019-11-20 Thread Paul Cercueil
The FRD350H54004 is a simple 3.5" 320x240 24-bit TFT panel, found for instance inside the Anbernic RG-350 handheld gaming console. Signed-off-by: Paul Cercueil --- drivers/gpu/drm/panel/panel-simple.c | 29 1 file changed, 29 insertions(+) diff --git a/driver

[PATCH 2/3] dt-bindings: panel: Document Frida FRD350H54004 LCD panel

2019-11-20 Thread Paul Cercueil
Add bindings documentation for the Frida 3.5" (320x240 pixels) 24-bit TFT LCD panel. Signed-off-by: Paul Cercueil --- .../bindings/display/panel/frida,frd350h54004.txt| 12 1 file changed, 12 insertions(+) create mode 100644 Documentation/devicetree/bindings/display/

[PATCH v2 3/3] drm/panel: simple: Add support for the Frida FRD350H54004 panel

2019-12-03 Thread Paul Cercueil
The FRD350H54004 is a simple 3.5" 320x240 24-bit TFT panel, found for instance inside the Anbernic RG-350 handheld gaming console. v2: Order alphabetically Signed-off-by: Paul Cercueil --- drivers/gpu/drm/panel/panel-simple.c | 29 1 file changed, 29 inser

[PATCH v2 1/3] dt-bindings: vendor-prefixes: Add Shenzhen Frida LCD Co., Ltd.

2019-12-03 Thread Paul Cercueil
Add an entry for Shenzhen Frida LCD Co., Ltd. v2: No change Signed-off-by: Paul Cercueil Acked-by: Sam Ravnborg --- Documentation/devicetree/bindings/vendor-prefixes.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/vendor-prefixes.yaml b

[PATCH v2 2/3] dt-bindings: panel: Document Frida FRD350H54004 LCD panel

2019-12-03 Thread Paul Cercueil
Add bindings documentation for the Frida 3.5" (320x240 pixels) 24-bit TFT LCD panel. v2: Switch documentation from plain text to YAML Signed-off-by: Paul Cercueil --- .../display/panel/frida,frd350h54004.yaml | 31 +++ 1 file changed, 31 insertions(+) create mode 1

[PATCH v2 6/6] gpu/drm: ingenic: Add support for the JZ4770

2019-12-11 Thread Paul Cercueil
The LCD controller in the JZ4770 supports up to 720p. While there has been many new features added since the old JZ4740, which are not yet handled here, this driver still works fine. v2: No change Signed-off-by: Paul Cercueil --- drivers/gpu/drm/ingenic/ingenic-drm.c | 7 +++ 1 file

[PATCH v2 4/6] gpu/drm: ingenic: Set max FB height to 4095

2019-12-11 Thread Paul Cercueil
While the LCD controller can effectively only support a maximum resolution of 800x600, the framebuffer's height can be much higher, since we can change the Y start offset. v2: No change Signed-off-by: Paul Cercueil --- drivers/gpu/drm/ingenic/ingenic-drm.c | 2 +- 1 file changed, 1 insertion

[PATCH v2 1/6] dt-bindings: display/ingenic: Add compatible string for JZ4770

2019-12-11 Thread Paul Cercueil
Add a compatible string for the LCD controller found in the JZ4770 SoC. v2: No change Signed-off-by: Paul Cercueil Acked-by: Rob Herring --- Documentation/devicetree/bindings/display/ingenic,lcd.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/display

[PATCH v2 2/6] gpu/drm: ingenic: Avoid null pointer deference in plane atomic update

2019-12-11 Thread Paul Cercueil
It is possible that there is no drm_framebuffer associated with a given plane state. v2: Handle drm_plane->state which can be NULL too Signed-off-by: Paul Cercueil --- drivers/gpu/drm/ingenic/ingenic-drm.c | 16 ++-- 1 file changed, 10 insertions(+), 6 deletions(-) diff --

[PATCH v2 3/6] gpu/drm: ingenic: Use the plane's src_[x, y] to configure DMA length

2019-12-11 Thread Paul Cercueil
Instead of obtaining the width/height of the framebuffer from the CRTC state, obtain it from the current plane state. v2: No change Signed-off-by: Paul Cercueil --- drivers/gpu/drm/ingenic/ingenic-drm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm

[PATCH v2 5/6] gpu/drm: ingenic: Check for display size in CRTC atomic check

2019-12-11 Thread Paul Cercueil
Check that the requested display size isn't above the limits supported by the CRTC. - JZ4750 and older support up to 800x600; - JZ4755 supports up to 1024x576; - JZ4760 and JZ4770 support up to 720p; - JZ4780 supports up to 2k. v2: No change Signed-off-by: Paul Cercueil --- drivers/gpu/drm

Re: [PATCH v2 1/6] dt-bindings: display/ingenic: Add compatible string for JZ4770

2019-12-17 Thread Paul Cercueil
Hi Ville, Le lun., déc. 16, 2019 at 15:15, Ville Syrjälä a écrit : On Sat, Dec 14, 2019 at 11:54:18AM +0100, Sam Ravnborg wrote: Hi Paul. On Tue, Dec 10, 2019 at 03:41:37PM +0100, Paul Cercueil wrote: > Add a compatible string for the LCD controller found in the JZ4770 SoC. >

  1   2   3   >