2021-02-18 22:59:51

by Giulio Benetti

[permalink] [raw]
Subject: [PATCH 4/9] dt-bindings: display/panel: add Jenson JT60245-01

From: Giulio Benetti <[email protected]>

Add DT binding for "jenson,jt60245-01".

Signed-off-by: Giulio Benetti <[email protected]>
Signed-off-by: Giulio Benetti <[email protected]>
---
.../devicetree/bindings/display/panel/panel-simple.yaml | 2 ++
1 file changed, 2 insertions(+)

diff --git a/Documentation/devicetree/bindings/display/panel/panel-simple.yaml b/Documentation/devicetree/bindings/display/panel/panel-simple.yaml
index 08afd6501094..fd0d2a573350 100644
--- a/Documentation/devicetree/bindings/display/panel/panel-simple.yaml
+++ b/Documentation/devicetree/bindings/display/panel/panel-simple.yaml
@@ -169,6 +169,8 @@ properties:
- jenson,jt60248-01
# Jenson Display JT60249-01 5" (800x480) TFT LCD panel
- jenson,jt60249-01
+ # Jenson Display JT60245-01 7" (800x480) TFT LCD panel
+ - jenson,jt60245-01
# King & Display KD116N21-30NV-A010 eDP TFT LCD panel
- kingdisplay,kd116n21-30nv-a010
# Kaohsiung Opto-Electronics Inc. 5.7" QVGA (320 x 240) TFT LCD panel
--
2.25.1


2021-03-05 22:57:01

by Rob Herring

[permalink] [raw]
Subject: Re: [PATCH 4/9] dt-bindings: display/panel: add Jenson JT60245-01

On Thu, Feb 18, 2021 at 11:54:52PM +0100, Giulio Benetti wrote:
> From: Giulio Benetti <[email protected]>
>
> Add DT binding for "jenson,jt60245-01".
>
> Signed-off-by: Giulio Benetti <[email protected]>
> Signed-off-by: Giulio Benetti <[email protected]>
> ---
> .../devicetree/bindings/display/panel/panel-simple.yaml | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/Documentation/devicetree/bindings/display/panel/panel-simple.yaml b/Documentation/devicetree/bindings/display/panel/panel-simple.yaml
> index 08afd6501094..fd0d2a573350 100644
> --- a/Documentation/devicetree/bindings/display/panel/panel-simple.yaml
> +++ b/Documentation/devicetree/bindings/display/panel/panel-simple.yaml
> @@ -169,6 +169,8 @@ properties:
> - jenson,jt60248-01
> # Jenson Display JT60249-01 5" (800x480) TFT LCD panel
> - jenson,jt60249-01
> + # Jenson Display JT60245-01 7" (800x480) TFT LCD panel
> + - jenson,jt60245-01

It was going so well. Alpha-numeric order please.

> # King & Display KD116N21-30NV-A010 eDP TFT LCD panel
> - kingdisplay,kd116n21-30nv-a010
> # Kaohsiung Opto-Electronics Inc. 5.7" QVGA (320 x 240) TFT LCD panel
> --
> 2.25.1
>

2021-03-05 23:48:07

by Giulio Benetti

[permalink] [raw]
Subject: [PATCH v2 0/9] Add 4 Jenson simple panels

From: Giulio Benetti <[email protected]>

This patchset introduce Jenson vendor and add 4 of its panels to
panel-simple driver.

Giulio Benetti (9):
dt-bindings: Add Jenson Display vendor prefix
dt-bindings: display/panel: add Jenson JT60245-01
dt-bindings: display/panel: add Jenson JT60248-01
dt-bindings: display/panel: add Jenson JT60249-01
dt-bindings: display/panel: add Jenson JT60250-02
drm/panel: simple: add Jenson JT60245-01
drm/panel: simple: add Jenson JT60248-01
drm/panel: simple: add Jenson JT60249-01
drm/panel: simple: add Jenson JT60250-02

.../bindings/display/panel/panel-simple.yaml | 8 ++
.../devicetree/bindings/vendor-prefixes.yaml | 2 +
drivers/gpu/drm/panel/panel-simple.c | 108 ++++++++++++++++++
3 files changed, 118 insertions(+)

--
2.25.1

2021-03-05 23:48:38

by Giulio Benetti

[permalink] [raw]
Subject: [PATCH v2 2/9] dt-bindings: display/panel: add Jenson JT60245-01

From: Giulio Benetti <[email protected]>

Add DT binding for "jenson,jt60245-01".

Signed-off-by: Giulio Benetti <[email protected]>
---
.../devicetree/bindings/display/panel/panel-simple.yaml | 2 ++
1 file changed, 2 insertions(+)

diff --git a/Documentation/devicetree/bindings/display/panel/panel-simple.yaml b/Documentation/devicetree/bindings/display/panel/panel-simple.yaml
index 62b0d54d87b7..ce41a589a3f4 100644
--- a/Documentation/devicetree/bindings/display/panel/panel-simple.yaml
+++ b/Documentation/devicetree/bindings/display/panel/panel-simple.yaml
@@ -168,6 +168,8 @@ properties:
- innolux,n156bge-l21
# Innolux Corporation 7.0" WSVGA (1024x600) TFT LCD panel
- innolux,zj070na-01p
+ # Jenson Display JT60245-01 7" (800x480) TFT LCD panel
+ - jenson,jt60245-01
# King & Display KD116N21-30NV-A010 eDP TFT LCD panel
- kingdisplay,kd116n21-30nv-a010
# Kaohsiung Opto-Electronics Inc. 5.7" QVGA (320 x 240) TFT LCD panel
--
2.25.1

2021-03-05 23:49:32

by Giulio Benetti

[permalink] [raw]
Subject: [PATCH v2 1/9] dt-bindings: Add Jenson Display vendor prefix

From: Giulio Benetti <[email protected]>

Update Documentation/devicetree/bindings/vendor-prefixes.yaml to
include "jenson" as a vendor prefix for "Jenson Display".
Company website: http://www.jensondisplay.com/

Signed-off-by: Giulio Benetti <[email protected]>
---
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 f6064d84a424..a1312637d6ff 100644
--- a/Documentation/devicetree/bindings/vendor-prefixes.yaml
+++ b/Documentation/devicetree/bindings/vendor-prefixes.yaml
@@ -553,6 +553,8 @@ patternProperties:
description: Japan Display Inc.
"^jedec,.*":
description: JEDEC Solid State Technology Association
+ "^jenson,.*":
+ description: Jenson Display
"^jesurun,.*":
description: Shenzhen Jesurun Electronics Business Dept.
"^jianda,.*":
--
2.25.1

2021-03-05 23:49:46

by Giulio Benetti

[permalink] [raw]
Subject: [PATCH v2 4/9] dt-bindings: display/panel: add Jenson JT60249-01

From: Giulio Benetti <[email protected]>

Add DT binding for "jenson,jt60249-01".

Signed-off-by: Giulio Benetti <[email protected]>
---
.../devicetree/bindings/display/panel/panel-simple.yaml | 2 ++
1 file changed, 2 insertions(+)

diff --git a/Documentation/devicetree/bindings/display/panel/panel-simple.yaml b/Documentation/devicetree/bindings/display/panel/panel-simple.yaml
index 35c335aa085e..68eaa353be0d 100644
--- a/Documentation/devicetree/bindings/display/panel/panel-simple.yaml
+++ b/Documentation/devicetree/bindings/display/panel/panel-simple.yaml
@@ -172,6 +172,8 @@ properties:
- jenson,jt60245-01
# Jenson Display JT60248-01 4,3" (480x272) TFT LCD panel
- jenson,jt60248-01
+ # Jenson Display JT60249-01 5" (800x480) TFT LCD panel
+ - jenson,jt60249-01
# King & Display KD116N21-30NV-A010 eDP TFT LCD panel
- kingdisplay,kd116n21-30nv-a010
# Kaohsiung Opto-Electronics Inc. 5.7" QVGA (320 x 240) TFT LCD panel
--
2.25.1

2021-03-05 23:49:51

by Giulio Benetti

[permalink] [raw]
Subject: [PATCH v2 3/9] dt-bindings: display/panel: add Jenson JT60248-01

From: Giulio Benetti <[email protected]>

Add DT binding for "jenson,jt60248-01".

Signed-off-by: Giulio Benetti <[email protected]>
---
.../devicetree/bindings/display/panel/panel-simple.yaml | 2 ++
1 file changed, 2 insertions(+)

diff --git a/Documentation/devicetree/bindings/display/panel/panel-simple.yaml b/Documentation/devicetree/bindings/display/panel/panel-simple.yaml
index ce41a589a3f4..35c335aa085e 100644
--- a/Documentation/devicetree/bindings/display/panel/panel-simple.yaml
+++ b/Documentation/devicetree/bindings/display/panel/panel-simple.yaml
@@ -170,6 +170,8 @@ properties:
- innolux,zj070na-01p
# Jenson Display JT60245-01 7" (800x480) TFT LCD panel
- jenson,jt60245-01
+ # Jenson Display JT60248-01 4,3" (480x272) TFT LCD panel
+ - jenson,jt60248-01
# King & Display KD116N21-30NV-A010 eDP TFT LCD panel
- kingdisplay,kd116n21-30nv-a010
# Kaohsiung Opto-Electronics Inc. 5.7" QVGA (320 x 240) TFT LCD panel
--
2.25.1

2021-03-05 23:50:18

by Giulio Benetti

[permalink] [raw]
Subject: [PATCH v2 6/9] drm/panel: simple: add Jenson JT60245-01

From: Giulio Benetti <[email protected]>

This patch adds support for Jenson JT60245-01 800x480 7" panel to DRM
simple panel driver.

Signed-off-by: Giulio Benetti <[email protected]>
---
drivers/gpu/drm/panel/panel-simple.c | 27 +++++++++++++++++++++++++++
1 file changed, 27 insertions(+)

diff --git a/drivers/gpu/drm/panel/panel-simple.c b/drivers/gpu/drm/panel/panel-simple.c
index 4e2dad314c79..f63fa75ae4ef 100644
--- a/drivers/gpu/drm/panel/panel-simple.c
+++ b/drivers/gpu/drm/panel/panel-simple.c
@@ -2532,6 +2532,30 @@ static const struct panel_desc ivo_m133nwf4_r0 = {
.connector_type = DRM_MODE_CONNECTOR_eDP,
};

+static const struct drm_display_mode jenson_jt60245_01_mode = {
+ .clock = 35000,
+ .hdisplay = 800,
+ .hsync_start = 800 + 210,
+ .hsync_end = 800 + 210 + 20,
+ .htotal = 800 + 210 + 20 + 46,
+ .vdisplay = 480,
+ .vsync_start = 480 + 22,
+ .vsync_end = 480 + 22 + 10,
+ .vtotal = 480 + 22 + 10 + 23,
+ .flags = DRM_MODE_FLAG_NHSYNC | DRM_MODE_FLAG_NVSYNC,
+};
+
+static const struct panel_desc jenson_jt60245_01 = {
+ .modes = &jenson_jt60245_01_mode,
+ .num_modes = 1,
+ .bpc = 8,
+ .size = {
+ .width = 154,
+ .height = 86,
+ },
+ .bus_flags = DRM_BUS_FLAG_PIXDATA_SAMPLE_POSEDGE,
+};
+
static const struct drm_display_mode kingdisplay_kd116n21_30nv_a010_mode = {
.clock = 81000,
.hdisplay = 1366,
@@ -4301,6 +4325,9 @@ static const struct of_device_id platform_of_match[] = {
}, {
.compatible = "ivo,m133nwf4-r0",
.data = &ivo_m133nwf4_r0,
+ }, {
+ .compatible = "jenson,jt60245-01",
+ .data = &jenson_jt60245_01,
}, {
.compatible = "kingdisplay,kd116n21-30nv-a010",
.data = &kingdisplay_kd116n21_30nv_a010,
--
2.25.1

2021-03-05 23:50:58

by Giulio Benetti

[permalink] [raw]
Subject: [PATCH v2 5/9] dt-bindings: display/panel: add Jenson JT60250-02

From: Giulio Benetti <[email protected]>

Add DT binding for "jenson,jt60250-02".

Signed-off-by: Giulio Benetti <[email protected]>
---
.../devicetree/bindings/display/panel/panel-simple.yaml | 2 ++
1 file changed, 2 insertions(+)

diff --git a/Documentation/devicetree/bindings/display/panel/panel-simple.yaml b/Documentation/devicetree/bindings/display/panel/panel-simple.yaml
index 68eaa353be0d..cd2f4421de7e 100644
--- a/Documentation/devicetree/bindings/display/panel/panel-simple.yaml
+++ b/Documentation/devicetree/bindings/display/panel/panel-simple.yaml
@@ -174,6 +174,8 @@ properties:
- jenson,jt60248-01
# Jenson Display JT60249-01 5" (800x480) TFT LCD panel
- jenson,jt60249-01
+ # Jenson Display JT60250-02 10.1" (1024x600) TFT LCD panel
+ - jenson,jt60250-02
# King & Display KD116N21-30NV-A010 eDP TFT LCD panel
- kingdisplay,kd116n21-30nv-a010
# Kaohsiung Opto-Electronics Inc. 5.7" QVGA (320 x 240) TFT LCD panel
--
2.25.1

2021-03-05 23:53:26

by Giulio Benetti

[permalink] [raw]
Subject: [PATCH v2 9/9] drm/panel: simple: add Jenson JT60250-02

From: Giulio Benetti <[email protected]>

This patch adds support for Jenson JT60250-02 1024x600 10.1" panel to DRM
simple panel driver.

Signed-off-by: Giulio Benetti <[email protected]>
---
drivers/gpu/drm/panel/panel-simple.c | 27 +++++++++++++++++++++++++++
1 file changed, 27 insertions(+)

diff --git a/drivers/gpu/drm/panel/panel-simple.c b/drivers/gpu/drm/panel/panel-simple.c
index 1966ace764c3..2ebfe529e0c7 100644
--- a/drivers/gpu/drm/panel/panel-simple.c
+++ b/drivers/gpu/drm/panel/panel-simple.c
@@ -2604,6 +2604,30 @@ static const struct panel_desc jenson_jt60249_01 = {
.bus_flags = DRM_BUS_FLAG_PIXDATA_SAMPLE_NEGEDGE,
};

+static const struct drm_display_mode jenson_jt60250_02_mode = {
+ .clock = 51000,
+ .hdisplay = 1024,
+ .hsync_start = 1024 + 160,
+ .hsync_end = 1204 + 160 + 10,
+ .htotal = 1024 + 160 + 10 + 160,
+ .vdisplay = 600,
+ .vsync_start = 600 + 12,
+ .vsync_end = 600 + 12 + 70,
+ .vtotal = 600 + 12 + 70 + 23,
+ .flags = DRM_MODE_FLAG_NHSYNC | DRM_MODE_FLAG_NVSYNC,
+};
+
+static const struct panel_desc jenson_jt60250_02 = {
+ .modes = &jenson_jt60250_02_mode,
+ .num_modes = 1,
+ .bpc = 8,
+ .size = {
+ .width = 223,
+ .height = 125,
+ },
+ .bus_flags = DRM_BUS_FLAG_PIXDATA_SAMPLE_NEGEDGE,
+};
+
static const struct drm_display_mode kingdisplay_kd116n21_30nv_a010_mode = {
.clock = 81000,
.hdisplay = 1366,
@@ -4382,6 +4406,9 @@ static const struct of_device_id platform_of_match[] = {
}, {
.compatible = "jenson,jt60249-01",
.data = &jenson_jt60249_01,
+ }, {
+ .compatible = "jenson,jt60250-02",
+ .data = &jenson_jt60250_02,
}, {
.compatible = "kingdisplay,kd116n21-30nv-a010",
.data = &kingdisplay_kd116n21_30nv_a010,
--
2.25.1

2021-03-05 23:53:28

by Giulio Benetti

[permalink] [raw]
Subject: [PATCH v2 8/9] drm/panel: simple: add Jenson JT60249-01

From: Giulio Benetti <[email protected]>

This patch adds support for Jenson JT60249-01 800x480 5" panel to DRM
simple panel driver.

Signed-off-by: Giulio Benetti <[email protected]>
---
drivers/gpu/drm/panel/panel-simple.c | 27 +++++++++++++++++++++++++++
1 file changed, 27 insertions(+)

diff --git a/drivers/gpu/drm/panel/panel-simple.c b/drivers/gpu/drm/panel/panel-simple.c
index f96f820a890b..1966ace764c3 100644
--- a/drivers/gpu/drm/panel/panel-simple.c
+++ b/drivers/gpu/drm/panel/panel-simple.c
@@ -2580,6 +2580,30 @@ static const struct panel_desc jenson_jt60248_01 = {
.bus_flags = DRM_BUS_FLAG_PIXDATA_SAMPLE_NEGEDGE,
};

+static const struct drm_display_mode jenson_jt60249_01_mode = {
+ .clock = 25000,
+ .hdisplay = 800,
+ .hsync_start = 800 + 8,
+ .hsync_end = 800 + 8 + 4,
+ .htotal = 800 + 8 + 4 + 8,
+ .vdisplay = 480,
+ .vsync_start = 480 + 8,
+ .vsync_end = 480 + 8 + 4,
+ .vtotal = 480 + 8 + 4 + 8,
+ .flags = DRM_MODE_FLAG_NHSYNC | DRM_MODE_FLAG_NVSYNC,
+};
+
+static const struct panel_desc jenson_jt60249_01 = {
+ .modes = &jenson_jt60249_01_mode,
+ .num_modes = 1,
+ .bpc = 8,
+ .size = {
+ .width = 108,
+ .height = 65,
+ },
+ .bus_flags = DRM_BUS_FLAG_PIXDATA_SAMPLE_NEGEDGE,
+};
+
static const struct drm_display_mode kingdisplay_kd116n21_30nv_a010_mode = {
.clock = 81000,
.hdisplay = 1366,
@@ -4355,6 +4379,9 @@ static const struct of_device_id platform_of_match[] = {
}, {
.compatible = "jenson,jt60248-01",
.data = &jenson_jt60248_01,
+ }, {
+ .compatible = "jenson,jt60249-01",
+ .data = &jenson_jt60249_01,
}, {
.compatible = "kingdisplay,kd116n21-30nv-a010",
.data = &kingdisplay_kd116n21_30nv_a010,
--
2.25.1

2021-03-05 23:54:26

by Giulio Benetti

[permalink] [raw]
Subject: [PATCH v2 7/9] drm/panel: simple: add Jenson JT60248-01

From: Giulio Benetti <[email protected]>

This patch adds support for Jenson JT60248-01 480x272 4.3" panel to DRM
simple panel driver.

Signed-off-by: Giulio Benetti <[email protected]>
---
drivers/gpu/drm/panel/panel-simple.c | 27 +++++++++++++++++++++++++++
1 file changed, 27 insertions(+)

diff --git a/drivers/gpu/drm/panel/panel-simple.c b/drivers/gpu/drm/panel/panel-simple.c
index f63fa75ae4ef..f96f820a890b 100644
--- a/drivers/gpu/drm/panel/panel-simple.c
+++ b/drivers/gpu/drm/panel/panel-simple.c
@@ -2556,6 +2556,30 @@ static const struct panel_desc jenson_jt60245_01 = {
.bus_flags = DRM_BUS_FLAG_PIXDATA_SAMPLE_POSEDGE,
};

+static const struct drm_display_mode jenson_jt60248_01_mode = {
+ .clock = 9000,
+ .hdisplay = 480,
+ .hsync_start = 480 + 8,
+ .hsync_end = 480 + 8 + 4,
+ .htotal = 480 + 8 + 4 + 43,
+ .vdisplay = 272,
+ .vsync_start = 272 + 8,
+ .vsync_end = 272 + 8 + 4,
+ .vtotal = 272 + 8 + 4 + 12,
+ .flags = DRM_MODE_FLAG_NHSYNC | DRM_MODE_FLAG_NVSYNC,
+};
+
+static const struct panel_desc jenson_jt60248_01 = {
+ .modes = &jenson_jt60248_01_mode,
+ .num_modes = 1,
+ .bpc = 8,
+ .size = {
+ .width = 95,
+ .height = 54,
+ },
+ .bus_flags = DRM_BUS_FLAG_PIXDATA_SAMPLE_NEGEDGE,
+};
+
static const struct drm_display_mode kingdisplay_kd116n21_30nv_a010_mode = {
.clock = 81000,
.hdisplay = 1366,
@@ -4328,6 +4352,9 @@ static const struct of_device_id platform_of_match[] = {
}, {
.compatible = "jenson,jt60245-01",
.data = &jenson_jt60245_01,
+ }, {
+ .compatible = "jenson,jt60248-01",
+ .data = &jenson_jt60248_01,
}, {
.compatible = "kingdisplay,kd116n21-30nv-a010",
.data = &kingdisplay_kd116n21_30nv_a010,
--
2.25.1

2021-03-05 23:55:32

by Giulio Benetti

[permalink] [raw]
Subject: Re: [PATCH 4/9] dt-bindings: display/panel: add Jenson JT60245-01

Hi Rob,

Il 05/03/2021 23:54, Rob Herring ha scritto:
> On Thu, Feb 18, 2021 at 11:54:52PM +0100, Giulio Benetti wrote:
>> From: Giulio Benetti <[email protected]>
>>
>> Add DT binding for "jenson,jt60245-01".
>>
>> Signed-off-by: Giulio Benetti <[email protected]>
>> Signed-off-by: Giulio Benetti <[email protected]>
>> ---
>> .../devicetree/bindings/display/panel/panel-simple.yaml | 2 ++
>> 1 file changed, 2 insertions(+)
>>
>> diff --git a/Documentation/devicetree/bindings/display/panel/panel-simple.yaml b/Documentation/devicetree/bindings/display/panel/panel-simple.yaml
>> index 08afd6501094..fd0d2a573350 100644
>> --- a/Documentation/devicetree/bindings/display/panel/panel-simple.yaml
>> +++ b/Documentation/devicetree/bindings/display/panel/panel-simple.yaml
>> @@ -169,6 +169,8 @@ properties:
>> - jenson,jt60248-01
>> # Jenson Display JT60249-01 5" (800x480) TFT LCD panel
>> - jenson,jt60249-01
>> + # Jenson Display JT60245-01 7" (800x480) TFT LCD panel
>> + - jenson,jt60245-01
>
> It was going so well. Alpha-numeric order please.

I've sent v2 patchset, but I didn't add your "Acked-by:" since
alphabetical order was wrong.

Best regards
--
Giulio Benetti
CTO

MICRONOVA SRL
Sede: Via A. Niedda 3 - 35010 Vigonza (PD)
Tel. 049/8931563 - Fax 049/8931346
Cod.Fiscale - P.IVA 02663420285
Capitale Sociale ? 26.000 i.v.
Iscritta al Reg. Imprese di Padova N. 02663420285
Numero R.E.A. 258642

>> # King & Display KD116N21-30NV-A010 eDP TFT LCD panel
>> - kingdisplay,kd116n21-30nv-a010
>> # Kaohsiung Opto-Electronics Inc. 5.7" QVGA (320 x 240) TFT LCD panel
>> --
>> 2.25.1
>>

2021-03-06 19:48:17

by Rob Herring

[permalink] [raw]
Subject: Re: [PATCH v2 1/9] dt-bindings: Add Jenson Display vendor prefix

On Sat, 06 Mar 2021 00:44:18 +0100, Giulio Benetti wrote:
> From: Giulio Benetti <[email protected]>
>
> Update Documentation/devicetree/bindings/vendor-prefixes.yaml to
> include "jenson" as a vendor prefix for "Jenson Display".
> Company website: http://www.jensondisplay.com/
>
> Signed-off-by: Giulio Benetti <[email protected]>
> ---
> Documentation/devicetree/bindings/vendor-prefixes.yaml | 2 ++
> 1 file changed, 2 insertions(+)
>


Please add Acked-by/Reviewed-by tags when posting new versions. However,
there's no need to repost patches *only* to add the tags. The upstream
maintainer will do that for acks received on the version they apply.

If a tag was not added on purpose, please state why and what changed.