drm/tiny: Add MAYQUEEN PIXPAPER e-ink panel support
LiangCheng Wang
maintainercover drm/tiny: Add MAYQUEEN PIXPAPER e-ink panel support
This series adds support for the MAYQUEEN PIXPAPER e-ink panel (122x250 pixels, SPI-controlled) to the tiny drm subsystem.
Patches (must be applied in order due to dependencies):
Patch 1/3: Adds 'mayqueen' vendor prefix. Patch 2/3: Implements PIXPAPER tiny drm driver. Patch 3/3: Adds PIXPAPER device tree bindings.
Tested on PIXPAPER hardware with linux-5.10.y-cip, verifying display initialization and refresh. All patches pass checkpatch.pl.
--
LiangCheng Wang (2):
drm: tiny: Add support for PIXPAPER e-ink panel
dt-bindings: display: Add MAYQUEEN PIXPAPER e-ink panel
Wig Cheng (1):
dt-bindings: vendor-prefixes: Add Mayqueen name
.../bindings/display/mayqueen,pixpaper.yaml | 67 ++ .../devicetree/bindings/vendor-prefixes.yaml | 2 + MAINTAINERS | 6 + drivers/gpu/drm/tiny/Kconfig | 11 + drivers/gpu/drm/tiny/Makefile | 1 + drivers/gpu/drm/tiny/pixpaper.c | 716 ++++++++++++++++++ 6 files changed, 803 insertions(+) create mode 100644 Documentation/devicetree/bindings/display/mayqueen,pixpaper.yaml create mode 100644 drivers/gpu/drm/tiny/pixpaper.c
Signature · 1 line
2.34.1
LiangCheng Wang
maintainerPATCH 1/3 dt-bindings: vendor-prefixes: Add Mayqueen name
From: Wig Cheng <[email protected]>
Mayqueen is a Taiwan-based company primarily focused on the development of arm64 development boards and e-paper displays.
--- Documentation/devicetree/bindings/vendor-prefixes.yaml | 2 ++ 1 file changed, 2 insertions(+)
Documentation/devicetree/bindings/vendor-prefixes.yaml +2 -0
@@ -631,6 +631,8 @@ patternProperties: description: MaxBotix Inc. "^maxim,.*": description: Maxim Integrated Products + "^mayqueen,.*": + description: Mayqueen Technologies Ltd. "^mbvl,.*": description: Mobiveil Inc. "^mcube,.*":
Signature · 1 line
2.34.1
LiangCheng Wang
maintainerPATCH 2/3 drm: tiny: Add support for PIXPAPER e-ink panel
In reply to LiangCheng WangIntroduce a DRM driver for the PIXPAPER e-ink display panel, which is controlled via SPI. The driver supports a 122x250 resolution display with XRGB8888 format, using the DRM simple KMS helper framework.
--- MAINTAINERS | 6 + drivers/gpu/drm/tiny/Kconfig | 11 + drivers/gpu/drm/tiny/Makefile | 1 + drivers/gpu/drm/tiny/pixpaper.c | 716 ++++++++++++++++++++++++++++++++ 4 files changed, 734 insertions(+) create mode 100644 drivers/gpu/drm/tiny/pixpaper.c
MAINTAINERS +6 -0
@@ -5534,6 +5534,12 @@ S: Orphan / Obsolete F: drivers/gpu/drm/i810/ F: include/uapi/drm/i810_drm.h +DRM DRIVER FOR PIXPAPER E-INK PANEL +M: LiangCheng Wang <[email protected]> +S: Maintained +F: Documentation/devicetree/bindings/display/mayqueen,pixpaper.yaml +F: drivers/gpu/drm/tiny/pixpaper.c + DRM DRIVER FOR LVDS PANELS M: Laurent Pinchart <[email protected]> L: [email protected]
drivers/gpu/drm/tiny/Kconfig +11 -0
@@ -131,3 +131,14 @@ config TINYDRM_ST7735R * Okaya RH128128T 1.44" 128x128 TFT If M is selected the module will be called st7735r. + +config DRM_PIXPAPER + tristate "DRM support for PIXPAPER display panels" + depends on DRM && SPI + select DRM_KMS_HELPER + select DRM_KMS_CMA_HELPER + help + DRM driver for the following PIXPAPER panels + + If M is selected the module will be called pixpaper . +
drivers/gpu/drm/tiny/Makefile +1 -0
@@ -10,3 +10,4 @@ obj-$(CONFIG_TINYDRM_MI0283QT) += mi0283qt.o obj-$(CONFIG_TINYDRM_REPAPER) += repaper.o obj-$(CONFIG_TINYDRM_ST7586) += st7586.o obj-$(CONFIG_TINYDRM_ST7735R) += st7735r.o +obj-$(CONFIG_DRM_PIXPAPER) += pixpaper.o
drivers/gpu/drm/tiny/pixpaper.c new file +716 -0
716 lines not on this page · raw message
Signature · 1 line
2.34.1
LiangCheng Wang
maintainerPATCH 3/3 dt-bindings: display: Add MAYQUEEN PIXPAPER e-ink panel
In reply to LiangCheng WangThe binding is for the MAYQUEEN PIXPAPER e-ink display panel, controlled via an SPI interface.
--- .../bindings/display/mayqueen,pixpaper.yaml | 67 +++++++++++++++++++ 1 file changed, 67 insertions(+) create mode 100644 Documentation/devicetree/bindings/display/mayqueen,pixpaper.yaml
Documentation/devicetree/bindings/display/mayqueen,pixpaper.yaml new file +67 -0
@@ -0,0 +1,67 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/display/mayqueen,pixpaper.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: MAYQUEEN PIXPAPER e-ink display panel + +maintainers: + - LC Wang <[email protected]> + +description: | + The PIXPAPER is an e-ink display panel controlled via an SPI interface. + The panel has a resolution of 122x250 pixels and requires GPIO pins for + reset, busy, and data/command control. + +allOf: + - $ref: /schemas/spi/spi-peripheral-props.yaml# + +properties: + compatible: + const: mayqueen,pixpaper + + reg: + maxItems: 1 + description: SPI chip select number for the device. + + spi-max-frequency: + default: 1000000 + description: Maximum SPI clock frequency in Hz. + + reset-gpios: + maxItems: 1 + description: GPIO for the panel reset pin. + + busy-gpios: + maxItems: 1 + description: GPIO for the panel busy pin. + + dc-gpios: + maxItems: 1 + description: GPIO for the data/command pin. + +required: + - compatible + - reg + - reset-gpios + - busy-gpios + - dc-gpios + +additionalProperties: false + +examples: + - | + #include <dt-bindings/gpio/gpio.h> + spi { + #address-cells = <1>; + #size-cells = <0>; + display@0 { + compatible = "mayqueen,pixpaper"; + reg = <0>; + spi-max-frequency = <1000000>; + reset-gpios = <&gpio1 17 GPIO_ACTIVE_HIGH>; + busy-gpios = <&gpio1 18 GPIO_ACTIVE_HIGH>; + dc-gpios = <&gpio1 19 GPIO_ACTIVE_HIGH>; + }; + };
Signature · 1 line
2.34.1
Re: [PATCH 3/3] dt-bindings: display: Add MAYQUEEN PIXPAPER e-ink panel
Quoted 6 lines · LiangCheng Wang
The binding is for the MAYQUEEN PIXPAPER e-ink display panel, controlled via an SPI interface.
Signed-off-by LiangCheng Wang <[email protected]>--- .../bindings/display/mayqueen,pixpaper.yaml | 67 +++++++++++++++++++
Don't send multiple patches but version them correctly.
Quoted 9 lines
1 file changed, 67 insertions(+) create mode 100644 Documentation/devicetree/bindings/display/mayqueen,pixpaper.yamlDocumentation/devicetree/bindings/display/mayqueen,pixpaper.yaml new file +0
-0
Documentation/devicetree/bindings/display/mayqueen,pixpaper.yaml line 7
Quoted 7 lines
Documentation/devicetree/bindings/display/mayqueen,pixpaper.yaml new file +7
-0@@ -0,0 +1,67 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/display/mayqueen,pixpaper.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: MAYQUEEN PIXPAPER e-ink display panel
Don't capitalize all letters. Mayqueen Pixpaper or whatever it is really called.
Documentation/devicetree/bindings/display/mayqueen,pixpaper.yaml line 12
Quoted 5 lines
Documentation/devicetree/bindings/display/mayqueen,pixpaper.yaml new file +5
-0+ +maintainers: + - LC Wang <[email protected]> + +description: |
Do not need '|' unless you need to preserve formatting.
Quoted 4 lines
Documentation/devicetree/bindings/display/mayqueen,pixpaper.yaml new file +4
-0+ The PIXPAPER is an e-ink display panel controlled via an SPI interface. + The panel has a resolution of 122x250 pixels and requires GPIO pins for + reset, busy, and data/command control. +
Documentation/devicetree/bindings/display/mayqueen,pixpaper.yaml line 26
Quoted 10 lines
Documentation/devicetree/bindings/display/mayqueen,pixpaper.yaml new file +10
-0+allOf: + - $ref: /schemas/spi/spi-peripheral-props.yaml# + +properties: + compatible: + const: mayqueen,pixpaper + + reg: + maxItems: 1 + description: SPI chip select number for the device.
Drop description
Documentation/devicetree/bindings/display/mayqueen,pixpaper.yaml line 30
Quoted 4 lines
Documentation/devicetree/bindings/display/mayqueen,pixpaper.yaml new file +4
-0+ + spi-max-frequency: + default: 1000000 + description: Maximum SPI clock frequency in Hz.
Drop description
Documentation/devicetree/bindings/display/mayqueen,pixpaper.yaml line 34
Quoted 4 lines
Documentation/devicetree/bindings/display/mayqueen,pixpaper.yaml new file +4
-0+ + reset-gpios: + maxItems: 1 + description: GPIO for the panel reset pin.
Drop description
Quoted 7 lines
Documentation/devicetree/bindings/display/mayqueen,pixpaper.yaml new file +7
-0+ + busy-gpios: + maxItems: 1 + description: GPIO for the panel busy pin. + + dc-gpios: + maxItems: 1
Documentation/devicetree/bindings/display/mayqueen,pixpaper.yaml line 51
Quoted 10 lines
Documentation/devicetree/bindings/display/mayqueen,pixpaper.yaml new file +10
-0+ description: GPIO for the data/command pin. + +required: + - compatible + - reg + - reset-gpios + - busy-gpios + - dc-gpios + +additionalProperties: false
unevaluatedProperties instead
Best regards,
Krzysztof
Quoted 8 lines · LiangCheng Wang
This series adds support for the MAYQUEEN PIXPAPER e-ink panel (122x250 pixels, SPI-controlled) to the tiny drm subsystem.
Patches (must be applied in order due to dependencies):
Patch 1/3: Adds 'mayqueen' vendor prefix. Patch 2/3: Implements PIXPAPER tiny drm driver. Patch 3/3: Adds PIXPAPER device tree bindings.
Quoted 7 lines
Tested on PIXPAPER hardware with linux-5.10.y-cip, verifying display initialization and refresh. All patches pass checkpatch.pl.
Signed-off-by Wig Cheng <[email protected]>Signed-off-by LiangCheng Wang <[email protected]>
I don't understand this CC list. Cip is for sure incorrect... unless you target CIP, but such patches must not be sent to upstream because that would be waste of our time.
<form letter>
Please use scripts/get_maintainers.pl to get a list of necessary people and lists to CC (and consider --no-git-fallback argument, so you will not CC people just because they made one commit years ago). It might happen, that command when run on an older kernel, gives you outdated entries. Therefore please be sure you base your patches on recent Linux kernel.
Tools like b4 or scripts/get_maintainer.pl provide you proper list of people, so fix your workflow. Tools might also fail if you work on some ancient tree (don't, instead use mainline) or work on fork of kernel (don't, instead use mainline). Just use b4 and everything should be fine, although remember about b4 prep --auto-to-cc if you added new patches to the patchset.
</form letter>
Best regards,
Krzysztof