Skip to contentSkip to conversation

drm/panel: ABT Y030XX067A panel support

PATCH In review Paul Cercueil 4 participants 17 messages Nov 1, 2020 – Dec 18, 2020

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

cover drm/panel: ABT Y030XX067A panel support

Hi,

This patchset is for adding support for the Asia Better Technology (aka. ABT) Y030XX067A 3.0" 320x480 24-bit LCD IPS panel.

While being 320x480 it is actually 4:3 with non-square pixels, and requires a specific bus format, as the pixel ordering changes each line (RGB on odd lines, GRB on even lines).

Patch #1 adds the abt,* vendor prefix.
Patch #2 adds the abt,y030xx067a panel binding documentation. Patch #3 adds the MEDIA_BUS_FMT_RGB888_3X8_DELTA media bus format. Patch #4 adds the driver itself.

Cheers,
-Paul

Paul Cercueil (4):
dt-bindings: vendor-prefixes: Add abt vendor prefix
dt-bindings: display: Add ABT Y030XX067A panel bindings
media: uapi: Add MEDIA_BUS_FMT_RGB888_3X8_DELTA media bus format drm/panel: Add ABT Y030XX067A 3.0" 320x480 panel

 .../display/panel/abt,y030xx067a.yaml         |  54 +++
 .../devicetree/bindings/vendor-prefixes.yaml  |   2 +
 drivers/gpu/drm/panel/Kconfig                 |   9 +
 drivers/gpu/drm/panel/Makefile                |   1 +
 drivers/gpu/drm/panel/panel-abt-y030xx067a.c  | 363 ++++++++++++++++++
 include/uapi/linux/media-bus-format.h         |   3 +-
 6 files changed, 431 insertions(+), 1 deletion(-)
 create mode 100644 Documentation/devicetree/bindings/display/panel/abt,y030xx067a.yaml
 create mode 100644 drivers/gpu/drm/panel/panel-abt-y030xx067a.c
Signature · 1 line
2.28.0
#1 lore raw

PATCH 1/4 dt-bindings: vendor-prefixes: Add abt vendor prefix

Add prefix for ShenZhen Asia Better Technology Ltd.

---
 Documentation/devicetree/bindings/vendor-prefixes.yaml | 2 ++
 1 file changed, 2 insertions(+)
Documentation/devicetree/bindings/vendor-prefixes.yaml +2 -0
index 0e384959e870..2040f46396de 100644
@@ -29,6 +29,8 @@ patternProperties:
     description: Abilis Systems
   "^abracon,.*":
     description: Abracon Corporation
+  "^abt,.*":
+    description: ShenZhen Asia Better Technology Ltd.
   "^acer,.*":
     description: Acer Inc.
   "^acme,.*":
Signature · 1 line
2.28.0
#3 lore raw

PATCH 2/4 dt-bindings: display: Add ABT Y030XX067A panel bindings

In reply to Paul Cercueil

The Asia Better Technology (ABT) Y030XX067A panel is a 3.0" 320x480 24-bit IPS LCD panel. Its particularity is that it has non-square pixels (as it is 4:3 for a resolution of 320x480), and that it requires odd lines to be sent as RGB and even lines to be sent as GRB on its 8-bit bus.

---
 .../display/panel/abt,y030xx067a.yaml         | 54 +++++++++++++++++++
 1 file changed, 54 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/display/panel/abt,y030xx067a.yaml
Documentation/devicetree/bindings/display/panel/abt,y030xx067a.yaml new file +54 -0
new file mode 100644
index 000000000000..6407e8bf45fa
@@ -0,0 +1,54 @@
+# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/display/panel/abt,y030xx067a.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Asia Better Technology 3.0" (320x480 pixels) 24-bit IPS LCD panel
+
+description: |
+  The panel must obey the rules for a SPI slave device as specified in
+  spi/spi-controller.yaml
+
+maintainers:
+  - Paul Cercueil <[email protected]>
+
+allOf:
+  - $ref: panel-common.yaml#
+
+properties:
+  compatible:
+    const: abt,y030xx067a
+
+  backlight: true
+  port: true
+  power-supply: true
+  reg: true
+  reset-gpios: true
+
+examples:
+  - |
+    #include <dt-bindings/gpio/gpio.h>
+
+    spi {
+        #address-cells = <1>;
+        #size-cells = <0>;
+
+        panel@0 {
+            compatible = "abt,y030xx067a";
+            reg = <0>;
+
+            spi-max-frequency = <3125000>;
+
+            reset-gpios = <&gpe 2 GPIO_ACTIVE_LOW>;
+
+            backlight = <&backlight>;
+            power-supply = <&vcc>;
+
+            port {
+                panel_input: endpoint {
+                    remote-endpoint = <&panel_output>;
+                };
+            };
+        };
+    };
Signature · 1 line
2.28.0
#4 lore raw

Re: [PATCH 2/4] dt-bindings: display: Add ABT Y030XX067A panel bindings

Quoted 35 lines · Paul Cercueil

The Asia Better Technology (ABT) Y030XX067A panel is a 3.0" 320x480 24-bit IPS LCD panel. Its particularity is that it has non-square pixels (as it is 4:3 for a resolution of 320x480), and that it requires odd lines to be sent as RGB and even lines to be sent as GRB on its 8-bit bus.

---
 .../display/panel/abt,y030xx067a.yaml         | 54 +++++++++++++++++++
 1 file changed, 54 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/display/panel/abt,y030xx067a.yaml
Documentation/devicetree/bindings/display/panel/abt,y030xx067a.yaml new file +17 -0
new file mode 100644
index 000000000000..6407e8bf45fa
@@ -0,0 +1,54 @@
+# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/display/panel/abt,y030xx067a.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Asia Better Technology 3.0" (320x480 pixels) 24-bit IPS LCD panel
+
+description: |
+  The panel must obey the rules for a SPI slave device as specified in
+  spi/spi-controller.yaml
+
+maintainers:
+  - Paul Cercueil <[email protected]>
+
+allOf:
+  - $ref: panel-common.yaml#

Documentation/devicetree/bindings/display/panel/abt,y030xx067a.yaml line 27

Quoted 10 lines
Documentation/devicetree/bindings/display/panel/abt,y030xx067a.yaml new file +10 -0
+
+properties:
+  compatible:
+    const: abt,y030xx067a
+
+  backlight: true
+  port: true
+  power-supply: true
+  reg: true
+  reset-gpios: true

The binding is missing:
required:
- compatible
- reg
- power-supply
- reset-gpios
- ...

additionalProperties: false

So r-b only with these added.

Sam

Quoted 29 lines
Documentation/devicetree/bindings/display/panel/abt,y030xx067a.yaml new file +27 -0
+
+examples:
+  - |
+    #include <dt-bindings/gpio/gpio.h>
+
+    spi {
+        #address-cells = <1>;
+        #size-cells = <0>;
+
+        panel@0 {
+            compatible = "abt,y030xx067a";
+            reg = <0>;
+
+            spi-max-frequency = <3125000>;
+
+            reset-gpios = <&gpe 2 GPIO_ACTIVE_LOW>;
+
+            backlight = <&backlight>;
+            power-supply = <&vcc>;
+
+            port {
+                panel_input: endpoint {
+                    remote-endpoint = <&panel_output>;
+                };
+            };
+        };
+    };
Signature · 1 line
2.28.0

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#5 lore raw

Re: [PATCH 2/4] dt-bindings: display: Add ABT Y030XX067A panel bindings

Quoted 64 lines · Sam Ravnborg
Quoted 49 lines · Paul Cercueil

The Asia Better Technology (ABT) Y030XX067A panel is a 3.0" 320x480 24-bit IPS LCD panel. Its particularity is that it has non-square
pixels
(as it is 4:3 for a resolution of 320x480), and that it requires odd lines to be sent as RGB and even lines to be sent as GRB on its
8-bit
bus.

---

  .../display/panel/abt,y030xx067a.yaml         | 54 
+++++++++++++++++++
  1 file changed, 54 insertions(+)

create mode 100644
Documentation/devicetree/bindings/display/panel/abt,y030xx067a.yaml

diff --git
a/Documentation/devicetree/bindings/display/panel/abt,y030xx067a.yaml b/Documentation/devicetree/bindings/display/panel/abt,y030xx067a.yaml
new file mode 100644
index 000000000000..6407e8bf45fa
--- /dev/null
+++
b/Documentation/devicetree/bindings/display/panel/abt,y030xx067a.yaml
@@ -0,0 +1,54 @@
+# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
+%YAML 1.2
+---
+$id:
http://devicetree.org/schemas/display/panel/abt,y030xx067a.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Asia Better Technology 3.0" (320x480 pixels) 24-bit IPS LCD
panel
+
+description: |
+ The panel must obey the rules for a SPI slave device as
specified in
+ spi/spi-controller.yaml
+
+maintainers:
+ - Paul Cercueil <[email protected]>
+
+allOf:
+ - $ref: panel-common.yaml#
+
+properties:
+ compatible:
+ const: abt,y030xx067a
+

Quoted 5 lines
 +  backlight: true
 +  port: true
 +  power-supply: true
 +  reg: true
 +  reset-gpios: true

The binding is missing:
required:
- compatible
- reg
- power-supply
- reset-gpios
- ...

Quoted 3 lines

additionalProperties: false

So r-b only with these added.

Stupid mistake, sorry about that.

I'll V2.

-Paul

Quoted 32 lines

Sam

Quoted 29 lines

+
+examples:
+ - |
+ #include <dt-bindings/gpio/gpio.h>
+
+ spi {
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ panel@0 {
+ compatible = "abt,y030xx067a";
+ reg = <0>;
+
+ spi-max-frequency = <3125000>;
+
+ reset-gpios = <&gpe 2 GPIO_ACTIVE_LOW>;
+
+ backlight = <&backlight>;
+ power-supply = <&vcc>;
+
+ port {
+ panel_input: endpoint {
+ remote-endpoint = <&panel_output>;
+ };
+ };
+ };
+ };
--
2.28.0

#6 lore raw

Re: [PATCH 2/4] dt-bindings: display: Add ABT Y030XX067A panel bindings

Quoted 69 lines · Paul Cercueil
Quoted 65 lines · Sam Ravnborg
Quoted 50 lines · Paul Cercueil

The Asia Better Technology (ABT) Y030XX067A panel is a 3.0" 320x480 24-bit IPS LCD panel. Its particularity is that it has non-square
pixels
(as it is 4:3 for a resolution of 320x480), and that it requires odd lines to be sent as RGB and even lines to be sent as GRB on its
8-bit
bus.

---

  .../display/panel/abt,y030xx067a.yaml         | 54
+++++++++++++++++++
  1 file changed, 54 insertions(+)

create mode 100644
Documentation/devicetree/bindings/display/panel/abt,y030xx067a.yaml

diff --git
a/Documentation/devicetree/bindings/display/panel/abt,y030xx067a.yaml b/Documentation/devicetree/bindings/display/panel/abt,y030xx067a.yaml
new file mode 100644
index 000000000000..6407e8bf45fa
--- /dev/null
+++
b/Documentation/devicetree/bindings/display/panel/abt,y030xx067a.yaml
@@ -0,0 +1,54 @@
+# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2
+---
+$id:
http://devicetree.org/schemas/display/panel/abt,y030xx067a.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Asia Better Technology 3.0" (320x480 pixels) 24-bit IPS LCD
panel
+
+description: |
+ The panel must obey the rules for a SPI slave device as
specified in
+ spi/spi-controller.yaml
+
+maintainers:
+ - Paul Cercueil <[email protected]>
+
+allOf:
+ - $ref: panel-common.yaml#
+
+properties:
+ compatible:
+ const: abt,y030xx067a
+

Quoted 5 lines
 +  backlight: true
 +  port: true
 +  power-supply: true
 +  reg: true
 +  reset-gpios: true

The binding is missing:
required:
- compatible
- reg
- power-supply
- reset-gpios
- ...

Quoted 7 lines
Quoted 3 lines

additionalProperties: false

So r-b only with these added.

Stupid mistake, sorry about that.

I'll V2.

I don't have any V2 in my inbox, but looks like it is in linux-next now:

/builds/robherring/linux-dt-bindings/Documentation/devicetree/bindings/display/panel/abt,y030xx067a.example.dt.yaml:
panel@0: 'spi-max-frequency' does not match any of the regexes:
'pinctrl-[0-9]+'
From schema: /builds/robherring/linux-dt-bindings/Documentation/devicetree/bindings/display/panel/abt,y030xx067a.yaml
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#7 lore raw

Re: [PATCH 2/4] dt-bindings: display: Add ABT Y030XX067A panel bindings

Hi Rob,

Quoted 81 lines · Rob Herring
Quoted 80 lines · Paul Cercueil

Le dim. 1 nov. 2020 à 13:29, Sam Ravnborg <[email protected]> a
écrit :

Quoted 2 lines · Paul Cercueil
Quoted 1 line

The Asia Better Technology (ABT) Y030XX067A panel is a 3.0"

320x480

Quoted 1 line
Quoted 1 line

24-bit IPS LCD panel. Its particularity is that it has

non-square

Quoted 2 lines
Quoted 2 lines

pixels
(as it is 4:3 for a resolution of 320x480), and that it

requires odd

Quoted 11 lines
Quoted 11 lines

lines to be sent as RGB and even lines to be sent as GRB on its
8-bit
bus.

---

  .../display/panel/abt,y030xx067a.yaml         | 54
+++++++++++++++++++
  1 file changed, 54 insertions(+)

create mode 100644

Documentation/devicetree/bindings/display/panel/abt,y030xx067a.yaml

Quoted 3 lines
Quoted 3 lines

diff --git

a/Documentation/devicetree/bindings/display/panel/abt,y030xx067a.yaml

Quoted 1 line
Quoted 1 line

b/Documentation/devicetree/bindings/display/panel/abt,y030xx067a.yaml

Quoted 5 lines
Quoted 5 lines

new file mode 100644
index 000000000000..6407e8bf45fa
--- /dev/null
+++

b/Documentation/devicetree/bindings/display/panel/abt,y030xx067a.yaml

Quoted 9 lines
Quoted 9 lines

@@ -0,0 +1,54 @@
+# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2
+---
+$id:
http://devicetree.org/schemas/display/panel/abt,y030xx067a.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Asia Better Technology 3.0" (320x480 pixels) 24-bit IPS

LCD

Quoted 33 lines
Quoted 17 lines

panel
+
+description: |
+ The panel must obey the rules for a SPI slave device as
specified in
+ spi/spi-controller.yaml
+
+maintainers:
+ - Paul Cercueil <[email protected]>
+
+allOf:
+ - $ref: panel-common.yaml#
+
+properties:
+ compatible:
+ const: abt,y030xx067a
+

Quoted 5 lines
 +  backlight: true
 +  port: true
 +  power-supply: true
 +  reg: true
 +  reset-gpios: true

The binding is missing:
required:
- compatible
- reg
- power-supply
- reset-gpios
- ...

additionalProperties: false

Quoted 7 lines
Quoted 5 lines
Quoted 1 line

So r-b only with these added.

Stupid mistake, sorry about that.

I'll V2.

I don't have any V2 in my inbox, but looks like it is in linux-next now:

Yes, Sam told me on IRC I could fix it while applying and avoid the V2.

Quoted 5 lines

/builds/robherring/linux-dt-bindings/Documentation/devicetree/bindings/display/panel/abt,y030xx067a.example.dt.yaml:
panel@0: 'spi-max-frequency' does not match any of the regexes:
'pinctrl-[0-9]+'
From schema:
/builds/robherring/linux-dt-bindings/Documentation/devicetree/bindings/display/panel/abt,y030xx067a.yaml

"make dt_binding_check DT_SCHEMA_FILES=Documentation/devicetree/bindings/display/panel/abt,y030xx067a.yaml" doesn't complain here :(

-Paul

#8 lore raw

Re: [PATCH 2/4] dt-bindings: display: Add ABT Y030XX067A panel bindings

Quoted 104 lines · Paul Cercueil

Hi Rob,

Le lun. 30 nov. 2020 à 7:32, Rob Herring <[email protected]> a écrit :

Quoted 82 lines
Quoted 80 lines · Paul Cercueil

Le dim. 1 nov. 2020 à 13:29, Sam Ravnborg <[email protected]> a
écrit :

Quoted 2 lines · Paul Cercueil
Quoted 1 line

The Asia Better Technology (ABT) Y030XX067A panel is a 3.0"

320x480

Quoted 1 line
Quoted 1 line

24-bit IPS LCD panel. Its particularity is that it has

non-square

Quoted 2 lines
Quoted 2 lines

pixels
(as it is 4:3 for a resolution of 320x480), and that it

requires odd

Quoted 11 lines
Quoted 11 lines

lines to be sent as RGB and even lines to be sent as GRB on its
8-bit
bus.

---

  .../display/panel/abt,y030xx067a.yaml         | 54
+++++++++++++++++++
  1 file changed, 54 insertions(+)

create mode 100644

Documentation/devicetree/bindings/display/panel/abt,y030xx067a.yaml

Quoted 3 lines
Quoted 3 lines

diff --git

a/Documentation/devicetree/bindings/display/panel/abt,y030xx067a.yaml

Quoted 1 line
Quoted 1 line

b/Documentation/devicetree/bindings/display/panel/abt,y030xx067a.yaml

Quoted 5 lines
Quoted 5 lines

new file mode 100644
index 000000000000..6407e8bf45fa
--- /dev/null
+++

b/Documentation/devicetree/bindings/display/panel/abt,y030xx067a.yaml

Quoted 9 lines
Quoted 9 lines

@@ -0,0 +1,54 @@
+# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2
+---
+$id:
http://devicetree.org/schemas/display/panel/abt,y030xx067a.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Asia Better Technology 3.0" (320x480 pixels) 24-bit IPS

LCD

Quoted 33 lines
Quoted 17 lines

panel
+
+description: |
+ The panel must obey the rules for a SPI slave device as
specified in
+ spi/spi-controller.yaml
+
+maintainers:
+ - Paul Cercueil <[email protected]>
+
+allOf:
+ - $ref: panel-common.yaml#
+
+properties:
+ compatible:
+ const: abt,y030xx067a
+

Quoted 5 lines
 +  backlight: true
 +  port: true
 +  power-supply: true
 +  reg: true
 +  reset-gpios: true

The binding is missing:
required:
- compatible
- reg
- power-supply
- reset-gpios
- ...

additionalProperties: false

Quoted 8 lines
Quoted 5 lines
Quoted 1 line

So r-b only with these added.

Stupid mistake, sorry about that.

I'll V2.

I don't have any V2 in my inbox, but looks like it is in linux-next now:

Yes, Sam told me on IRC I could fix it while applying and avoid the V2.

Quoted 5 lines

/builds/robherring/linux-dt-bindings/Documentation/devicetree/bindings/display/panel/abt,y030xx067a.example.dt.yaml:
panel@0: 'spi-max-frequency' does not match any of the regexes:
'pinctrl-[0-9]+'
From schema:
/builds/robherring/linux-dt-bindings/Documentation/devicetree/bindings/display/panel/abt,y030xx067a.yaml

Quoted 3 lines

"make dt_binding_check DT_SCHEMA_FILES=Documentation/devicetree/bindings/display/panel/abt,y030xx067a.yaml" doesn't complain here :(

Even if you do 'touch Documentation/devicetree/bindings/display/panel/abt,y030xx067a.yaml' or do a clean build?

I can't think of any kernel or dt-schema changes which would explain the difference. This is purely related to 'additionalProperties:
false'.

Rob
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#9 lore raw

Re: [PATCH 2/4] dt-bindings: display: Add ABT Y030XX067A panel bindings

Quoted 123 lines · Rob Herring
Quoted 115 lines · Paul Cercueil

Hi Rob,

Le lun. 30 nov. 2020 à 7:32, Rob Herring <[email protected]> a
écrit
:

Quoted 1 line

On Mon, Nov 2, 2020 at 3:19 AM Paul Cercueil

<[email protected]>

Quoted 4 lines
Quoted 3 lines · wrote:
Quoted 11 lines
Quoted 11 lines

Le dim. 1 nov. 2020 à 13:29, Sam Ravnborg <[email protected]> a
écrit :

Quoted 2 lines · Paul Cercueil
Quoted 1 line

The Asia Better Technology (ABT) Y030XX067A panel is a 3.0"

320x480

Quoted 1 line
Quoted 1 line

24-bit IPS LCD panel. Its particularity is that it has

non-square

Quoted 2 lines
Quoted 2 lines

pixels
(as it is 4:3 for a resolution of 320x480), and that it

requires odd

Quoted 1 line
Quoted 1 line

lines to be sent as RGB and even lines to be sent as GRB on

its

Quoted 11 lines
Quoted 11 lines
Quoted 10 lines
Quoted 10 lines

8-bit
bus.

---

  .../display/panel/abt,y030xx067a.yaml         | 54
+++++++++++++++++++
  1 file changed, 54 insertions(+)

create mode 100644

Documentation/devicetree/bindings/display/panel/abt,y030xx067a.yaml

Quoted 4 lines
Quoted 4 lines
Quoted 3 lines
Quoted 3 lines

diff --git

a/Documentation/devicetree/bindings/display/panel/abt,y030xx067a.yaml

Quoted 2 lines
Quoted 2 lines
Quoted 1 line
Quoted 1 line

b/Documentation/devicetree/bindings/display/panel/abt,y030xx067a.yaml

Quoted 6 lines
Quoted 6 lines
Quoted 5 lines
Quoted 5 lines

new file mode 100644
index 000000000000..6407e8bf45fa
--- /dev/null
+++

b/Documentation/devicetree/bindings/display/panel/abt,y030xx067a.yaml

Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines

@@ -0,0 +1,54 @@
+# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2
+---
+$id:

http://devicetree.org/schemas/display/panel/abt,y030xx067a.yaml#

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Asia Better Technology 3.0" (320x480 pixels) 24-bit

IPS

Quoted 34 lines
Quoted 34 lines

LCD

Quoted 33 lines
Quoted 17 lines

panel
+
+description: |
+ The panel must obey the rules for a SPI slave device as
specified in
+ spi/spi-controller.yaml
+
+maintainers:
+ - Paul Cercueil <[email protected]>
+
+allOf:
+ - $ref: panel-common.yaml#
+
+properties:
+ compatible:
+ const: abt,y030xx067a
+

Quoted 5 lines
 +  backlight: true
 +  port: true
 +  power-supply: true
 +  reg: true
 +  reset-gpios: true

The binding is missing:
required:
- compatible
- reg
- power-supply
- reset-gpios
- ...

additionalProperties: false

Quoted 7 lines
Quoted 5 lines
Quoted 1 line

So r-b only with these added.

Stupid mistake, sorry about that.

I'll V2.

I don't have any V2 in my inbox, but looks like it is in

linux-next

Quoted 1 line

now:

Yes, Sam told me on IRC I could fix it while applying and avoid the
V2.

Quoted 1 line

/builds/robherring/linux-dt-bindings/Documentation/devicetree/bindings/display/panel/abt,y030xx067a.example.dt.yaml:

Quoted 4 lines

panel@0: 'spi-max-frequency' does not match any of the regexes:
'pinctrl-[0-9]+'
From schema:

Quoted 6 lines

/builds/robherring/linux-dt-bindings/Documentation/devicetree/bindings/display/panel/abt,y030xx067a.yaml

"make dt_binding_check

DT_SCHEMA_FILES=Documentation/devicetree/bindings/display/panel/abt,y030xx067a.yaml"
doesn't complain here :(

Quoted 7 lines

Even if you do 'touch Documentation/devicetree/bindings/display/panel/abt,y030xx067a.yaml' or do a clean build?

I can't think of any kernel or dt-schema changes which would explain the difference. This is purely related to 'additionalProperties:
false'.

Ok, I see it now.
Should I use 'unevaluatedProperties: false' instead?

-Paul

#10 lore raw

Re: [PATCH 2/4] dt-bindings: display: Add ABT Y030XX067A panel bindings

Hi Paul

Quoted 54 lines
Quoted 54 lines
Quoted 46 lines
Quoted 27 lines
Quoted 27 lines
Quoted 27 lines
Quoted 11 lines

+
+maintainers:
+ - Paul Cercueil <[email protected]>
+
+allOf:
+ - $ref: panel-common.yaml#
+
+properties:
+ compatible:
+ const: abt,y030xx067a
+

Quoted 5 lines
 +  backlight: true
 +  port: true
 +  power-supply: true
 +  reg: true
 +  reset-gpios: true

The binding is missing:
required:
- compatible
- reg
- power-supply
- reset-gpios
- ...

additionalProperties: false

Quoted 7 lines
Quoted 5 lines
Quoted 1 line

So r-b only with these added.

Stupid mistake, sorry about that.

I'll V2.

I don't have any V2 in my inbox, but looks like it is in

linux-next

Quoted 1 line

now:

Yes, Sam told me on IRC I could fix it while applying and avoid the
V2.

Quoted 5 lines

/builds/robherring/linux-dt-bindings/Documentation/devicetree/bindings/display/panel/abt,y030xx067a.example.dt.yaml:
panel@0: 'spi-max-frequency' does not match any of the regexes:
'pinctrl-[0-9]+'
From schema:
/builds/robherring/linux-dt-bindings/Documentation/devicetree/bindings/display/panel/abt,y030xx067a.yaml

Quoted 3 lines

"make dt_binding_check
DT_SCHEMA_FILES=Documentation/devicetree/bindings/display/panel/abt,y030xx067a.yaml"
doesn't complain here :(

Even if you do 'touch Documentation/devicetree/bindings/display/panel/abt,y030xx067a.yaml' or do a clean build?

Quoted 6 lines
Quoted 3 lines

I can't think of any kernel or dt-schema changes which would explain the difference. This is purely related to 'additionalProperties:
false'.

Ok, I see it now.
Should I use 'unevaluatedProperties: false' instead?

Yes, the issue here is that you add a number of spi properties to the binding. And you cannot or at least shall not, list them all in this binding.
So when evaluating the binding the spi-max-frequency should be allowed, and when a full DT file is checked the tools will catch it there is a binding that is not known - as you tell it with "unevaluatedProperties:
false" that all prperties must be known.

Sam
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#11 lore raw

PATCH 3/4 media: uapi: Add MEDIA_BUS_FMT_RGB888_3X8_DELTA media bus format

In reply to Paul Cercueil

Add media bus format for 24-bit panels that expect their pixel data to be sent serially on a 8-bit bus, in RGB ordering on odd lines, and in GBR ordering on even lines (aka delta-RGB).

---
 include/uapi/linux/media-bus-format.h | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
include/uapi/linux/media-bus-format.h +2 -1
index 84fa53ffb13f..5d905ad6dbb2 100644
@@ -34,7 +34,7 @@
 
 #define MEDIA_BUS_FMT_FIXED			0x0001
 
-/* RGB - next is	0x101d */
+/* RGB - next is	0x101e */
 #define MEDIA_BUS_FMT_RGB444_1X12		0x1016
 #define MEDIA_BUS_FMT_RGB444_2X8_PADHI_BE	0x1001
 #define MEDIA_BUS_FMT_RGB444_2X8_PADHI_LE	0x1002
@@ -56,6 +56,7 @@
 #define MEDIA_BUS_FMT_RGB888_2X12_BE		0x100b
 #define MEDIA_BUS_FMT_RGB888_2X12_LE		0x100c
 #define MEDIA_BUS_FMT_RGB888_3X8		0x101c
+#define MEDIA_BUS_FMT_RGB888_3X8_DELTA		0x101d
 #define MEDIA_BUS_FMT_RGB888_1X7X4_SPWG		0x1011
 #define MEDIA_BUS_FMT_RGB888_1X7X4_JEIDA	0x1012
 #define MEDIA_BUS_FMT_ARGB8888_1X32		0x100d
Signature · 1 line
2.28.0
#12 lore raw

PATCH 4/4 drm/panel: Add ABT Y030XX067A 3.0" 320x480 panel

In reply to Paul Cercueil

Add support for the ShenZhen Asia Better Technology Ltd. Y030XX067A 3.0" 320x480 IPS panel.

This panel can be found in the YLM RG-280M, RG-300 and RG-99 handheld gaming consoles. While being 320x480, it is actually a horizontal 4:3 panel with non-square pixels.

---
 drivers/gpu/drm/panel/Kconfig                |   9 +
 drivers/gpu/drm/panel/Makefile               |   1 +
 drivers/gpu/drm/panel/panel-abt-y030xx067a.c | 363 +++++++++++++++++++
 3 files changed, 373 insertions(+)
 create mode 100644 drivers/gpu/drm/panel/panel-abt-y030xx067a.c
drivers/gpu/drm/panel/Kconfig +9 -0
index e386524b2d77..7fe22b4c8aa2 100644
@@ -8,6 +8,15 @@ config DRM_PANEL
 menu "Display Panels"
 	depends on DRM && DRM_PANEL
 
+config DRM_PANEL_ABT_Y030XX067A
+	tristate "ABT Y030XX067A 320x480 LCD panel"
+	depends on OF && SPI
+	select REGMAP_SPI
+	help
+	  Say Y here to enable support for the Asia Better Technology Ltd.
+	  Y030XX067A 320x480 3.0" panel as found in the YLM RG-280M, RG-300
+	  and RG-99 handheld gaming consoles.
+
 config DRM_PANEL_ARM_VERSATILE
 	tristate "ARM Versatile panel driver"
 	depends on OF
drivers/gpu/drm/panel/Makefile +1 -0
index d1f8cc572f37..78b77ba4d458 100644
@@ -1,4 +1,5 @@
 # SPDX-License-Identifier: GPL-2.0
+obj-$(CONFIG_DRM_PANEL_ABT_Y030XX067A) += panel-abt-y030xx067a.o
 obj-$(CONFIG_DRM_PANEL_ARM_VERSATILE) += panel-arm-versatile.o
 obj-$(CONFIG_DRM_PANEL_ASUS_Z00T_TM5P5_NT35596) += panel-asus-z00t-tm5p5-n35596.o
 obj-$(CONFIG_DRM_PANEL_BOE_HIMAX8279D) += panel-boe-himax8279d.o
drivers/gpu/drm/panel/panel-abt-y030xx067a.c new file +363 -0

363 lines not on this page · raw message

Signature · 1 line
2.28.0
Reviewed-by on the v1 series
#13 lore raw
In reply to Paul Cercueil

Hi Paul.

Quoted 5 lines · Paul Cercueil

Hi,

This patchset is for adding support for the Asia Better Technology (aka. ABT) Y030XX067A 3.0" 320x480 24-bit LCD IPS panel.

Quoted 8 lines

While being 320x480 it is actually 4:3 with non-square pixels, and requires a specific bus format, as the pixel ordering changes each line (RGB on odd lines, GRB on even lines).

Patch #1 adds the abt,* vendor prefix.
Patch #2 adds the abt,y030xx067a panel binding documentation. Patch #3 adds the MEDIA_BUS_FMT_RGB888_3X8_DELTA media bus format. Patch #4 adds the driver itself.

Full series looks good.

I asked google - but no hits for "Asia Better Technology". But I blame that the company has no public page - in english at least. Also the part with a DELTA media bus format looks correct, but not something I know much off.

The driver itself utilises regmap_multi_reg_write() - very nice!

Full series is:

I assume you will apply yourself - but please wait a few days after it have hit dri-devel to let others have the possibility to give feedback.

Sam

#14 lore raw

PATCH 1/1 dt-bindings/display: abt,y030xx067a: Fix binding

In reply to Paul Cercueil

The binding should use "unevaluatedProperties" instead of "additionalProperties", since it is a SPI device and may have SPI-related Device Tree properties, for instance the "spi-max-frequency" property that is present in the example.

Fixes e366a644c69d ("dt-bindings: display: Add ABT Y030XX067A panel bindings")
---
 .../devicetree/bindings/display/panel/abt,y030xx067a.yaml       | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Documentation/devicetree/bindings/display/panel/abt,y030xx067a.yaml +1 -1
index 91cb4c3e0198..a108029ecfab 100644
@@ -32,7 +32,7 @@ required:
   - power-supply
   - reset-gpios
 
-additionalProperties: false
+unevaluatedProperties: false
 
 examples:
   - |
Signature · 1 line
2.29.2
Reviewed-by on v1 1/1
#15 lore raw

Re: [PATCH] dt-bindings/display: abt,y030xx067a: Fix binding

Quoted 7 lines · Paul Cercueil

The binding should use "unevaluatedProperties" instead of "additionalProperties", since it is a SPI device and may have SPI-related Device Tree properties, for instance the "spi-max-frequency" property that is present in the example.

Fixes e366a644c69d ("dt-bindings: display: Add ABT Y030XX067A panel bindings")

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

maintainer
#16 lore raw

Re: [PATCH] dt-bindings/display: abt,y030xx067a: Fix binding

In reply to Paul Cercueil
Quoted 11 lines · Paul Cercueil

The binding should use "unevaluatedProperties" instead of "additionalProperties", since it is a SPI device and may have SPI-related Device Tree properties, for instance the "spi-max-frequency" property that is present in the example.

Fixes e366a644c69d ("dt-bindings: display: Add ABT Y030XX067A panel bindings")
---
 .../devicetree/bindings/display/panel/abt,y030xx067a.yaml       | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Applied, thanks!
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel