linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v1 0/6] drm/panel: mantix and st7703 fixes and additions
@ 2020-11-17 17:49 Guido Günther
  2020-11-17 17:49 ` [PATCH v1 1/6] drm/panel: st7703: Use dev_err_probe Guido Günther
                   ` (5 more replies)
  0 siblings, 6 replies; 14+ messages in thread
From: Guido Günther @ 2020-11-17 17:49 UTC (permalink / raw)
  To: Thierry Reding, Sam Ravnborg, David Airlie, Daniel Vetter,
	Rob Herring, Ondrej Jirman, Linus Walleij, Arnd Bergmann,
	Krzysztof Kozlowski, Lubomir Rintel, Mark Brown,
	Geert Uytterhoeven, allen, Kuninori Morimoto, dri-devel,
	devicetree, linux-kernel

This adds new panel type to the mantix driver as found on the Librem 5 and
fixes a glitch in the init sequence (affecting both panels). The fix is at the
start of the series to make backporting simpler.
It also adds a patch to make st7703 use dev_err_probe().

Guido Günther (6):
  drm/panel: st7703: Use dev_err_probe
  drm/panel: mantix: Tweak init sequence
  drm/panel: mantix: Allow to specify default mode for different panels
  drm/panel: mantix: Support panel from Shenzhen Yashi Changhua
    Intelligent Technology Co
  dt-bindings: vendor-prefixes: Add ys vendor prefix
  dt-binding: display: mantix: Add compatible for panel from YS

 .../display/panel/mantix,mlaf057we51-x.yaml   |  1 +
 .../devicetree/bindings/vendor-prefixes.yaml  |  2 +
 .../gpu/drm/panel/panel-mantix-mlaf057we51.c  | 39 +++++++++++++++----
 drivers/gpu/drm/panel/panel-sitronix-st7703.c | 24 ++++--------
 4 files changed, 43 insertions(+), 23 deletions(-)

-- 
2.29.2


^ permalink raw reply	[flat|nested] 14+ messages in thread

* [PATCH v1 1/6] drm/panel: st7703: Use dev_err_probe
  2020-11-17 17:49 [PATCH v1 0/6] drm/panel: mantix and st7703 fixes and additions Guido Günther
@ 2020-11-17 17:49 ` Guido Günther
  2020-11-17 20:35   ` Linus Walleij
  2020-11-17 17:49 ` [PATCH v1 2/6] drm/panel: mantix: Tweak init sequence Guido Günther
                   ` (4 subsequent siblings)
  5 siblings, 1 reply; 14+ messages in thread
From: Guido Günther @ 2020-11-17 17:49 UTC (permalink / raw)
  To: Thierry Reding, Sam Ravnborg, David Airlie, Daniel Vetter,
	Rob Herring, Ondrej Jirman, Linus Walleij, Arnd Bergmann,
	Krzysztof Kozlowski, Lubomir Rintel, Mark Brown,
	Geert Uytterhoeven, allen, Kuninori Morimoto, dri-devel,
	devicetree, linux-kernel

Less code and easier probe deferral debugging.

Signed-off-by: Guido Günther <agx@sigxcpu.org>
---
 drivers/gpu/drm/panel/panel-sitronix-st7703.c | 24 +++++++------------
 1 file changed, 8 insertions(+), 16 deletions(-)

diff --git a/drivers/gpu/drm/panel/panel-sitronix-st7703.c b/drivers/gpu/drm/panel/panel-sitronix-st7703.c
index b30510b1696a..a2c303e5732c 100644
--- a/drivers/gpu/drm/panel/panel-sitronix-st7703.c
+++ b/drivers/gpu/drm/panel/panel-sitronix-st7703.c
@@ -530,10 +530,8 @@ static int st7703_probe(struct mipi_dsi_device *dsi)
 		return -ENOMEM;
 
 	ctx->reset_gpio = devm_gpiod_get(dev, "reset", GPIOD_OUT_LOW);
-	if (IS_ERR(ctx->reset_gpio)) {
-		dev_err(dev, "cannot get reset gpio\n");
-		return PTR_ERR(ctx->reset_gpio);
-	}
+	if (IS_ERR(ctx->reset_gpio))
+		return dev_err_probe(dev, PTR_ERR(ctx->reset_gpio), "Failed to get reset gpio\n");
 
 	mipi_dsi_set_drvdata(dsi, ctx);
 
@@ -545,19 +543,13 @@ static int st7703_probe(struct mipi_dsi_device *dsi)
 	dsi->lanes = ctx->desc->lanes;
 
 	ctx->vcc = devm_regulator_get(dev, "vcc");
-	if (IS_ERR(ctx->vcc)) {
-		ret = PTR_ERR(ctx->vcc);
-		if (ret != -EPROBE_DEFER)
-			dev_err(dev, "Failed to request vcc regulator: %d\n", ret);
-		return ret;
-	}
+	if (IS_ERR(ctx->vcc))
+		return dev_err_probe(dev, PTR_ERR(ctx->vcc), "Failed to request vcc regulator\n");
+
 	ctx->iovcc = devm_regulator_get(dev, "iovcc");
-	if (IS_ERR(ctx->iovcc)) {
-		ret = PTR_ERR(ctx->iovcc);
-		if (ret != -EPROBE_DEFER)
-			dev_err(dev, "Failed to request iovcc regulator: %d\n", ret);
-		return ret;
-	}
+	if (IS_ERR(ctx->iovcc))
+		return dev_err_probe(dev, PTR_ERR(ctx->iovcc),
+				     "Failed to request iovcc regulator\n");
 
 	drm_panel_init(&ctx->panel, dev, &st7703_drm_funcs,
 		       DRM_MODE_CONNECTOR_DSI);
-- 
2.29.2


^ permalink raw reply related	[flat|nested] 14+ messages in thread

* [PATCH v1 2/6] drm/panel: mantix: Tweak init sequence
  2020-11-17 17:49 [PATCH v1 0/6] drm/panel: mantix and st7703 fixes and additions Guido Günther
  2020-11-17 17:49 ` [PATCH v1 1/6] drm/panel: st7703: Use dev_err_probe Guido Günther
@ 2020-11-17 17:49 ` Guido Günther
  2020-11-17 20:36   ` Linus Walleij
  2020-11-17 17:49 ` [PATCH v1 3/6] drm/panel: mantix: Allow to specify default mode for different panels Guido Günther
                   ` (3 subsequent siblings)
  5 siblings, 1 reply; 14+ messages in thread
From: Guido Günther @ 2020-11-17 17:49 UTC (permalink / raw)
  To: Thierry Reding, Sam Ravnborg, David Airlie, Daniel Vetter,
	Rob Herring, Ondrej Jirman, Linus Walleij, Arnd Bergmann,
	Krzysztof Kozlowski, Lubomir Rintel, Mark Brown,
	Geert Uytterhoeven, allen, Kuninori Morimoto, dri-devel,
	devicetree, linux-kernel

We've seen some (non permanent) burn in and bad white balance
on some of the panels. Adding this bit from a vendor supplied
sequence fixes it.

Fixes: 72967d5616d3 ("drm/panel: Add panel driver for the Mantix MLAF057WE51-X DSI panel")
Signed-off-by: Guido Günther <agx@sigxcpu.org>
---
 drivers/gpu/drm/panel/panel-mantix-mlaf057we51.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/drivers/gpu/drm/panel/panel-mantix-mlaf057we51.c b/drivers/gpu/drm/panel/panel-mantix-mlaf057we51.c
index 0c5f22e95c2d..624d17b96a69 100644
--- a/drivers/gpu/drm/panel/panel-mantix-mlaf057we51.c
+++ b/drivers/gpu/drm/panel/panel-mantix-mlaf057we51.c
@@ -22,6 +22,7 @@
 /* Manufacturer specific Commands send via DSI */
 #define MANTIX_CMD_OTP_STOP_RELOAD_MIPI 0x41
 #define MANTIX_CMD_INT_CANCEL           0x4C
+#define MANTIX_CMD_SPI_FINISH           0x90
 
 struct mantix {
 	struct device *dev;
@@ -66,6 +67,10 @@ static int mantix_init_sequence(struct mantix *ctx)
 	dsi_generic_write_seq(dsi, 0x80, 0x64, 0x00, 0x64, 0x00, 0x00);
 	msleep(20);
 
+	dsi_generic_write_seq(dsi, MANTIX_CMD_SPI_FINISH, 0xA5);
+	dsi_generic_write_seq(dsi, MANTIX_CMD_OTP_STOP_RELOAD_MIPI, 0x00, 0x2F);
+	msleep(20);
+
 	dev_dbg(dev, "Panel init sequence done\n");
 	return 0;
 }
-- 
2.29.2


^ permalink raw reply related	[flat|nested] 14+ messages in thread

* [PATCH v1 3/6] drm/panel: mantix: Allow to specify default mode for different panels
  2020-11-17 17:49 [PATCH v1 0/6] drm/panel: mantix and st7703 fixes and additions Guido Günther
  2020-11-17 17:49 ` [PATCH v1 1/6] drm/panel: st7703: Use dev_err_probe Guido Günther
  2020-11-17 17:49 ` [PATCH v1 2/6] drm/panel: mantix: Tweak init sequence Guido Günther
@ 2020-11-17 17:49 ` Guido Günther
  2020-11-17 20:39   ` Linus Walleij
  2020-11-17 17:49 ` [PATCH v1 4/6] drm/panel: mantix: Support panel from Shenzhen Yashi Changhua Intelligent Technology Co Guido Günther
                   ` (2 subsequent siblings)
  5 siblings, 1 reply; 14+ messages in thread
From: Guido Günther @ 2020-11-17 17:49 UTC (permalink / raw)
  To: Thierry Reding, Sam Ravnborg, David Airlie, Daniel Vetter,
	Rob Herring, Ondrej Jirman, Linus Walleij, Arnd Bergmann,
	Krzysztof Kozlowski, Lubomir Rintel, Mark Brown,
	Geert Uytterhoeven, allen, Kuninori Morimoto, dri-devel,
	devicetree, linux-kernel

This can be used to use different modes for differnt panels via OF
device match.

Signed-off-by: Guido Günther <agx@sigxcpu.org>
---
 .../gpu/drm/panel/panel-mantix-mlaf057we51.c   | 18 +++++++++++-------
 1 file changed, 11 insertions(+), 7 deletions(-)

diff --git a/drivers/gpu/drm/panel/panel-mantix-mlaf057we51.c b/drivers/gpu/drm/panel/panel-mantix-mlaf057we51.c
index 624d17b96a69..b057857165b0 100644
--- a/drivers/gpu/drm/panel/panel-mantix-mlaf057we51.c
+++ b/drivers/gpu/drm/panel/panel-mantix-mlaf057we51.c
@@ -9,6 +9,7 @@
 #include <linux/delay.h>
 #include <linux/gpio/consumer.h>
 #include <linux/module.h>
+#include <linux/of_device.h>
 #include <linux/regulator/consumer.h>
 
 #include <video/mipi_display.h>
@@ -34,6 +35,8 @@ struct mantix {
 	struct regulator *avdd;
 	struct regulator *avee;
 	struct regulator *vddi;
+
+	const struct drm_display_mode *default_mode;
 };
 
 static inline struct mantix *panel_to_mantix(struct drm_panel *panel)
@@ -187,7 +190,7 @@ static int mantix_prepare(struct drm_panel *panel)
 	return 0;
 }
 
-static const struct drm_display_mode default_mode = {
+static const struct drm_display_mode default_mode_mantix = {
 	.hdisplay    = 720,
 	.hsync_start = 720 + 45,
 	.hsync_end   = 720 + 45 + 14,
@@ -208,11 +211,11 @@ static int mantix_get_modes(struct drm_panel *panel,
 	struct mantix *ctx = panel_to_mantix(panel);
 	struct drm_display_mode *mode;
 
-	mode = drm_mode_duplicate(connector->dev, &default_mode);
+	mode = drm_mode_duplicate(connector->dev, ctx->default_mode);
 	if (!mode) {
 		dev_err(ctx->dev, "Failed to add mode %ux%u@%u\n",
-			default_mode.hdisplay, default_mode.vdisplay,
-			drm_mode_vrefresh(&default_mode));
+			ctx->default_mode->hdisplay, ctx->default_mode->vdisplay,
+			drm_mode_vrefresh(ctx->default_mode));
 		return -ENOMEM;
 	}
 
@@ -243,6 +246,7 @@ static int mantix_probe(struct mipi_dsi_device *dsi)
 	ctx = devm_kzalloc(dev, sizeof(*ctx), GFP_KERNEL);
 	if (!ctx)
 		return -ENOMEM;
+	ctx->default_mode = of_device_get_match_data(dev);
 
 	ctx->reset_gpio = devm_gpiod_get(dev, "reset", GPIOD_OUT_HIGH);
 	if (IS_ERR(ctx->reset_gpio)) {
@@ -293,8 +297,8 @@ static int mantix_probe(struct mipi_dsi_device *dsi)
 	}
 
 	dev_info(dev, "%ux%u@%u %ubpp dsi %udl - ready\n",
-		 default_mode.hdisplay, default_mode.vdisplay,
-		 drm_mode_vrefresh(&default_mode),
+		 ctx->default_mode->hdisplay, ctx->default_mode->vdisplay,
+		 drm_mode_vrefresh(ctx->default_mode),
 		 mipi_dsi_pixel_format_to_bpp(dsi->format), dsi->lanes);
 
 	return 0;
@@ -321,7 +325,7 @@ static int mantix_remove(struct mipi_dsi_device *dsi)
 }
 
 static const struct of_device_id mantix_of_match[] = {
-	{ .compatible = "mantix,mlaf057we51-x" },
+	{ .compatible = "mantix,mlaf057we51-x", .data = &default_mode_mantix },
 	{ /* sentinel */ }
 };
 MODULE_DEVICE_TABLE(of, mantix_of_match);
-- 
2.29.2


^ permalink raw reply related	[flat|nested] 14+ messages in thread

* [PATCH v1 4/6] drm/panel: mantix: Support panel from Shenzhen Yashi Changhua Intelligent Technology Co
  2020-11-17 17:49 [PATCH v1 0/6] drm/panel: mantix and st7703 fixes and additions Guido Günther
                   ` (2 preceding siblings ...)
  2020-11-17 17:49 ` [PATCH v1 3/6] drm/panel: mantix: Allow to specify default mode for different panels Guido Günther
@ 2020-11-17 17:49 ` Guido Günther
  2020-11-17 20:40   ` Linus Walleij
  2020-11-17 17:49 ` [PATCH v1 5/6] dt-bindings: vendor-prefixes: Add ys vendor prefix Guido Günther
  2020-11-17 17:49 ` [PATCH v1 6/6] dt-binding: display: mantix: Add compatible for panel from YS Guido Günther
  5 siblings, 1 reply; 14+ messages in thread
From: Guido Günther @ 2020-11-17 17:49 UTC (permalink / raw)
  To: Thierry Reding, Sam Ravnborg, David Airlie, Daniel Vetter,
	Rob Herring, Ondrej Jirman, Linus Walleij, Arnd Bergmann,
	Krzysztof Kozlowski, Lubomir Rintel, Mark Brown,
	Geert Uytterhoeven, allen, Kuninori Morimoto, dri-devel,
	devicetree, linux-kernel

The panel uses the same driver IC and has the same resolution but a
slightly different default mode. It seems it can work with the same
init sequence.

Signed-off-by: Guido Günther <agx@sigxcpu.org>
---
 drivers/gpu/drm/panel/panel-mantix-mlaf057we51.c | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)

diff --git a/drivers/gpu/drm/panel/panel-mantix-mlaf057we51.c b/drivers/gpu/drm/panel/panel-mantix-mlaf057we51.c
index b057857165b0..30f28ad4df6b 100644
--- a/drivers/gpu/drm/panel/panel-mantix-mlaf057we51.c
+++ b/drivers/gpu/drm/panel/panel-mantix-mlaf057we51.c
@@ -205,6 +205,21 @@ static const struct drm_display_mode default_mode_mantix = {
 	.height_mm   = 130,
 };
 
+static const struct drm_display_mode default_mode_ys = {
+	.hdisplay    = 720,
+	.hsync_start = 720 + 45,
+	.hsync_end   = 720 + 45 + 14,
+	.htotal	     = 720 + 45 + 14 + 25,
+	.vdisplay    = 1440,
+	.vsync_start = 1440 + 175,
+	.vsync_end   = 1440 + 175 + 8,
+	.vtotal	     = 1440 + 175 + 8 + 50,
+	.clock	     = 85298,
+	.flags	     = DRM_MODE_FLAG_NHSYNC | DRM_MODE_FLAG_NVSYNC,
+	.width_mm    = 65,
+	.height_mm   = 130,
+};
+
 static int mantix_get_modes(struct drm_panel *panel,
 			    struct drm_connector *connector)
 {
@@ -326,6 +341,7 @@ static int mantix_remove(struct mipi_dsi_device *dsi)
 
 static const struct of_device_id mantix_of_match[] = {
 	{ .compatible = "mantix,mlaf057we51-x", .data = &default_mode_mantix },
+	{ .compatible = "ys,ys57pss36bh5gq", .data = &default_mode_ys },
 	{ /* sentinel */ }
 };
 MODULE_DEVICE_TABLE(of, mantix_of_match);
-- 
2.29.2


^ permalink raw reply related	[flat|nested] 14+ messages in thread

* [PATCH v1 5/6] dt-bindings: vendor-prefixes: Add ys vendor prefix
  2020-11-17 17:49 [PATCH v1 0/6] drm/panel: mantix and st7703 fixes and additions Guido Günther
                   ` (3 preceding siblings ...)
  2020-11-17 17:49 ` [PATCH v1 4/6] drm/panel: mantix: Support panel from Shenzhen Yashi Changhua Intelligent Technology Co Guido Günther
@ 2020-11-17 17:49 ` Guido Günther
  2020-11-17 20:42   ` Linus Walleij
  2020-11-17 17:49 ` [PATCH v1 6/6] dt-binding: display: mantix: Add compatible for panel from YS Guido Günther
  5 siblings, 1 reply; 14+ messages in thread
From: Guido Günther @ 2020-11-17 17:49 UTC (permalink / raw)
  To: Thierry Reding, Sam Ravnborg, David Airlie, Daniel Vetter,
	Rob Herring, Ondrej Jirman, Linus Walleij, Arnd Bergmann,
	Krzysztof Kozlowski, Lubomir Rintel, Mark Brown,
	Geert Uytterhoeven, allen, Kuninori Morimoto, dri-devel,
	devicetree, linux-kernel

Add prefix for Shenzhen Yashi Changhua Intelligent Technology Co., Ltd.

Signed-off-by: Guido Günther <agx@sigxcpu.org>
---
 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-prefixes.yaml
index e40ee369f808..d0f3abf2f12c 100644
--- a/Documentation/devicetree/bindings/vendor-prefixes.yaml
+++ b/Documentation/devicetree/bindings/vendor-prefixes.yaml
@@ -1220,6 +1220,8 @@ patternProperties:
     description: Shenzhen Yangliming Electronic Technology Co., Ltd.
   "^yna,.*":
     description: YSH & ATIL
+  "^ys,.*":
+    description: Shenzhen Yashi Changhua Intelligent Technology Co., Ltd.
   "^yones-toptech,.*":
     description: Yones Toptech Co., Ltd.
   "^ysoft,.*":
-- 
2.29.2


^ permalink raw reply related	[flat|nested] 14+ messages in thread

* [PATCH v1 6/6] dt-binding: display: mantix: Add compatible for panel from YS
  2020-11-17 17:49 [PATCH v1 0/6] drm/panel: mantix and st7703 fixes and additions Guido Günther
                   ` (4 preceding siblings ...)
  2020-11-17 17:49 ` [PATCH v1 5/6] dt-bindings: vendor-prefixes: Add ys vendor prefix Guido Günther
@ 2020-11-17 17:49 ` Guido Günther
  2020-11-17 20:43   ` Linus Walleij
  5 siblings, 1 reply; 14+ messages in thread
From: Guido Günther @ 2020-11-17 17:49 UTC (permalink / raw)
  To: Thierry Reding, Sam Ravnborg, David Airlie, Daniel Vetter,
	Rob Herring, Ondrej Jirman, Linus Walleij, Arnd Bergmann,
	Krzysztof Kozlowski, Lubomir Rintel, Mark Brown,
	Geert Uytterhoeven, allen, Kuninori Morimoto, dri-devel,
	devicetree, linux-kernel

This panel from Shenzhen Yashi Changhua Intelligent Technology Co
uses the same driver IC but a different LCD.

Signed-off-by: Guido Günther <agx@sigxcpu.org>
---
 .../devicetree/bindings/display/panel/mantix,mlaf057we51-x.yaml  | 1 +
 1 file changed, 1 insertion(+)

diff --git a/Documentation/devicetree/bindings/display/panel/mantix,mlaf057we51-x.yaml b/Documentation/devicetree/bindings/display/panel/mantix,mlaf057we51-x.yaml
index 51f423297ec8..9e78f2e60f99 100644
--- a/Documentation/devicetree/bindings/display/panel/mantix,mlaf057we51-x.yaml
+++ b/Documentation/devicetree/bindings/display/panel/mantix,mlaf057we51-x.yaml
@@ -20,6 +20,7 @@ properties:
   compatible:
     enum:
       - mantix,mlaf057we51-x
+      - ys,ys57pss36bh5gq
 
   port: true
   reg:
-- 
2.29.2


^ permalink raw reply related	[flat|nested] 14+ messages in thread

* Re: [PATCH v1 1/6] drm/panel: st7703: Use dev_err_probe
  2020-11-17 17:49 ` [PATCH v1 1/6] drm/panel: st7703: Use dev_err_probe Guido Günther
@ 2020-11-17 20:35   ` Linus Walleij
  0 siblings, 0 replies; 14+ messages in thread
From: Linus Walleij @ 2020-11-17 20:35 UTC (permalink / raw)
  To: Guido Günther
  Cc: Thierry Reding, Sam Ravnborg, David Airlie, Daniel Vetter,
	Rob Herring, Ondrej Jirman, Arnd Bergmann, Krzysztof Kozlowski,
	Lubomir Rintel, Mark Brown, Geert Uytterhoeven, allen,
	Kuninori Morimoto, open list:DRM PANEL DRIVERS,
	open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS,
	linux-kernel

On Tue, Nov 17, 2020 at 6:49 PM Guido Günther <agx@sigxcpu.org> wrote:

> Less code and easier probe deferral debugging.
>
> Signed-off-by: Guido Günther <agx@sigxcpu.org>

Reviewed-by: Linus Walleij <linus.walleij@linaro.org>

Yours,
Linus Walleij

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [PATCH v1 2/6] drm/panel: mantix: Tweak init sequence
  2020-11-17 17:49 ` [PATCH v1 2/6] drm/panel: mantix: Tweak init sequence Guido Günther
@ 2020-11-17 20:36   ` Linus Walleij
  0 siblings, 0 replies; 14+ messages in thread
From: Linus Walleij @ 2020-11-17 20:36 UTC (permalink / raw)
  To: Guido Günther
  Cc: Thierry Reding, Sam Ravnborg, David Airlie, Daniel Vetter,
	Rob Herring, Ondrej Jirman, Arnd Bergmann, Krzysztof Kozlowski,
	Lubomir Rintel, Mark Brown, Geert Uytterhoeven, allen,
	Kuninori Morimoto, open list:DRM PANEL DRIVERS,
	open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS,
	linux-kernel

On Tue, Nov 17, 2020 at 6:49 PM Guido Günther <agx@sigxcpu.org> wrote:

> We've seen some (non permanent) burn in and bad white balance
> on some of the panels. Adding this bit from a vendor supplied
> sequence fixes it.
>
> Fixes: 72967d5616d3 ("drm/panel: Add panel driver for the Mantix MLAF057WE51-X DSI panel")
> Signed-off-by: Guido Günther <agx@sigxcpu.org>

Reviewed-by: Linus Walleij <linus.walleij@linaro.org>

Yours,
Linus Walleij

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [PATCH v1 3/6] drm/panel: mantix: Allow to specify default mode for different panels
  2020-11-17 17:49 ` [PATCH v1 3/6] drm/panel: mantix: Allow to specify default mode for different panels Guido Günther
@ 2020-11-17 20:39   ` Linus Walleij
  0 siblings, 0 replies; 14+ messages in thread
From: Linus Walleij @ 2020-11-17 20:39 UTC (permalink / raw)
  To: Guido Günther
  Cc: Thierry Reding, Sam Ravnborg, David Airlie, Daniel Vetter,
	Rob Herring, Ondrej Jirman, Arnd Bergmann, Krzysztof Kozlowski,
	Lubomir Rintel, Mark Brown, Geert Uytterhoeven, allen,
	Kuninori Morimoto, open list:DRM PANEL DRIVERS,
	open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS,
	linux-kernel

On Tue, Nov 17, 2020 at 6:49 PM Guido Günther <agx@sigxcpu.org> wrote:

> This can be used to use different modes for differnt panels via OF
> device match.
>
> Signed-off-by: Guido Günther <agx@sigxcpu.org>

Reviewed-by: Linus Walleij <linus.walleij@linaro.org>

Yours,
Linus Walleij

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [PATCH v1 4/6] drm/panel: mantix: Support panel from Shenzhen Yashi Changhua Intelligent Technology Co
  2020-11-17 17:49 ` [PATCH v1 4/6] drm/panel: mantix: Support panel from Shenzhen Yashi Changhua Intelligent Technology Co Guido Günther
@ 2020-11-17 20:40   ` Linus Walleij
  0 siblings, 0 replies; 14+ messages in thread
From: Linus Walleij @ 2020-11-17 20:40 UTC (permalink / raw)
  To: Guido Günther
  Cc: Thierry Reding, Sam Ravnborg, David Airlie, Daniel Vetter,
	Rob Herring, Ondrej Jirman, Arnd Bergmann, Krzysztof Kozlowski,
	Lubomir Rintel, Mark Brown, Geert Uytterhoeven, allen,
	Kuninori Morimoto, open list:DRM PANEL DRIVERS,
	open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS,
	linux-kernel

On Tue, Nov 17, 2020 at 6:49 PM Guido Günther <agx@sigxcpu.org> wrote:

> The panel uses the same driver IC and has the same resolution but a
> slightly different default mode. It seems it can work with the same
> init sequence.
>
> Signed-off-by: Guido Günther <agx@sigxcpu.org>

Reviewed-by: Linus Walleij <linus.walleij@linaro.org>

Yours,
Linus Walleij

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [PATCH v1 5/6] dt-bindings: vendor-prefixes: Add ys vendor prefix
  2020-11-17 17:49 ` [PATCH v1 5/6] dt-bindings: vendor-prefixes: Add ys vendor prefix Guido Günther
@ 2020-11-17 20:42   ` Linus Walleij
  2020-11-18  8:30     ` Guido Günther
  0 siblings, 1 reply; 14+ messages in thread
From: Linus Walleij @ 2020-11-17 20:42 UTC (permalink / raw)
  To: Guido Günther
  Cc: Thierry Reding, Sam Ravnborg, David Airlie, Daniel Vetter,
	Rob Herring, Ondrej Jirman, Arnd Bergmann, Krzysztof Kozlowski,
	Lubomir Rintel, Mark Brown, Geert Uytterhoeven, allen,
	Kuninori Morimoto, open list:DRM PANEL DRIVERS,
	open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS,
	linux-kernel

On Tue, Nov 17, 2020 at 6:49 PM Guido Günther <agx@sigxcpu.org> wrote:

> Add prefix for Shenzhen Yashi Changhua Intelligent Technology Co., Ltd.
>
> Signed-off-by: Guido Günther <agx@sigxcpu.org>
> ---
>  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-prefixes.yaml
> index e40ee369f808..d0f3abf2f12c 100644
> --- a/Documentation/devicetree/bindings/vendor-prefixes.yaml
> +++ b/Documentation/devicetree/bindings/vendor-prefixes.yaml
> @@ -1220,6 +1220,8 @@ patternProperties:
>      description: Shenzhen Yangliming Electronic Technology Co., Ltd.
>    "^yna,.*":
>      description: YSH & ATIL
> +  "^ys,.*":
> +    description: Shenzhen Yashi Changhua Intelligent Technology Co., Ltd.
>    "^yones-toptech,.*":
>      description: Yones Toptech Co., Ltd.
>    "^ysoft,.*":

I think this should be in alphabetical order of the compatible string, i.e.
under yones.

Yours,
Linus Walleij

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [PATCH v1 6/6] dt-binding: display: mantix: Add compatible for panel from YS
  2020-11-17 17:49 ` [PATCH v1 6/6] dt-binding: display: mantix: Add compatible for panel from YS Guido Günther
@ 2020-11-17 20:43   ` Linus Walleij
  0 siblings, 0 replies; 14+ messages in thread
From: Linus Walleij @ 2020-11-17 20:43 UTC (permalink / raw)
  To: Guido Günther
  Cc: Thierry Reding, Sam Ravnborg, David Airlie, Daniel Vetter,
	Rob Herring, Ondrej Jirman, Arnd Bergmann, Krzysztof Kozlowski,
	Lubomir Rintel, Mark Brown, Geert Uytterhoeven, allen,
	Kuninori Morimoto, open list:DRM PANEL DRIVERS,
	open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS,
	linux-kernel

On Tue, Nov 17, 2020 at 6:49 PM Guido Günther <agx@sigxcpu.org> wrote:

> This panel from Shenzhen Yashi Changhua Intelligent Technology Co
> uses the same driver IC but a different LCD.
>
> Signed-off-by: Guido Günther <agx@sigxcpu.org>

Reviewed-by: Linus Walleij <linus.walleij@linaro.org>

Yours,
Linus Walleij

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [PATCH v1 5/6] dt-bindings: vendor-prefixes: Add ys vendor prefix
  2020-11-17 20:42   ` Linus Walleij
@ 2020-11-18  8:30     ` Guido Günther
  0 siblings, 0 replies; 14+ messages in thread
From: Guido Günther @ 2020-11-18  8:30 UTC (permalink / raw)
  To: Linus Walleij
  Cc: Thierry Reding, Sam Ravnborg, David Airlie, Daniel Vetter,
	Rob Herring, Ondrej Jirman, Arnd Bergmann, Krzysztof Kozlowski,
	Lubomir Rintel, Mark Brown, Geert Uytterhoeven, allen,
	Kuninori Morimoto, open list:DRM PANEL DRIVERS,
	open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS,
	linux-kernel

Hi,
On Tue, Nov 17, 2020 at 09:42:33PM +0100, Linus Walleij wrote:
> On Tue, Nov 17, 2020 at 6:49 PM Guido Günther <agx@sigxcpu.org> wrote:
> 
> > Add prefix for Shenzhen Yashi Changhua Intelligent Technology Co., Ltd.
> >
> > Signed-off-by: Guido Günther <agx@sigxcpu.org>
> > ---
> >  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-prefixes.yaml
> > index e40ee369f808..d0f3abf2f12c 100644
> > --- a/Documentation/devicetree/bindings/vendor-prefixes.yaml
> > +++ b/Documentation/devicetree/bindings/vendor-prefixes.yaml
> > @@ -1220,6 +1220,8 @@ patternProperties:
> >      description: Shenzhen Yangliming Electronic Technology Co., Ltd.
> >    "^yna,.*":
> >      description: YSH & ATIL
> > +  "^ys,.*":
> > +    description: Shenzhen Yashi Changhua Intelligent Technology Co., Ltd.
> >    "^yones-toptech,.*":
> >      description: Yones Toptech Co., Ltd.
> >    "^ysoft,.*":
> 
> I think this should be in alphabetical order of the compatible string, i.e.
> under yones.

Messed that up during rebase. Fixed in v2.
Thanks for the review!
 -- Guido

> 
> Yours,
> Linus Walleij
> 

^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2020-11-18  8:30 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-11-17 17:49 [PATCH v1 0/6] drm/panel: mantix and st7703 fixes and additions Guido Günther
2020-11-17 17:49 ` [PATCH v1 1/6] drm/panel: st7703: Use dev_err_probe Guido Günther
2020-11-17 20:35   ` Linus Walleij
2020-11-17 17:49 ` [PATCH v1 2/6] drm/panel: mantix: Tweak init sequence Guido Günther
2020-11-17 20:36   ` Linus Walleij
2020-11-17 17:49 ` [PATCH v1 3/6] drm/panel: mantix: Allow to specify default mode for different panels Guido Günther
2020-11-17 20:39   ` Linus Walleij
2020-11-17 17:49 ` [PATCH v1 4/6] drm/panel: mantix: Support panel from Shenzhen Yashi Changhua Intelligent Technology Co Guido Günther
2020-11-17 20:40   ` Linus Walleij
2020-11-17 17:49 ` [PATCH v1 5/6] dt-bindings: vendor-prefixes: Add ys vendor prefix Guido Günther
2020-11-17 20:42   ` Linus Walleij
2020-11-18  8:30     ` Guido Günther
2020-11-17 17:49 ` [PATCH v1 6/6] dt-binding: display: mantix: Add compatible for panel from YS Guido Günther
2020-11-17 20:43   ` Linus Walleij

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).