drm/panel: add the orisetech ota5601a
Subsystems (4)
PATCH 1/2 drm/panel: add the orisetech ota5601a
Add the orisetech ota5601a ic driver
For now it only supports the focaltech gpt3 3" 640x480 ips panel found in the ylm rg300x handheld.
--- drivers/gpu/drm/panel/Kconfig | 9 + drivers/gpu/drm/panel/Makefile | 1 + .../gpu/drm/panel/panel-orisetech-ota5601a.c | 351 ++++++++++++++++++ 3 files changed, 361 insertions(+) create mode 100644 drivers/gpu/drm/panel/panel-orisetech-ota5601a.c
drivers/gpu/drm/panel/Kconfig +9 -0
@@ -381,6 +381,15 @@ config DRM_PANEL_OLIMEX_LCD_OLINUXINO Say Y here if you want to enable support for Olimex Ltd. LCD-OLinuXino panel. +config DRM_PANEL_ORISETECH_OTA5601A + tristate "Orise Technology ota5601a RGB/SPI panel" + depends on OF && SPI + depends on BACKLIGHT_CLASS_DEVICE + select REGMAP_SPI + help + Say Y here if you want to enable support for the panels built + around the Orise Technology OTA9601A display controller. + config DRM_PANEL_ORISETECH_OTM8009A tristate "Orise Technology otm8009a 480x800 dsi 2dl panel" depends on OF
drivers/gpu/drm/panel/Makefile +1 -0
@@ -35,6 +35,7 @@ obj-$(CONFIG_DRM_PANEL_NOVATEK_NT36672A) += panel-novatek-nt36672a.o obj-$(CONFIG_DRM_PANEL_NOVATEK_NT39016) += panel-novatek-nt39016.o obj-$(CONFIG_DRM_PANEL_MANTIX_MLAF057WE51) += panel-mantix-mlaf057we51.o obj-$(CONFIG_DRM_PANEL_OLIMEX_LCD_OLINUXINO) += panel-olimex-lcd-olinuxino.o +obj-$(CONFIG_DRM_PANEL_ORISETECH_OTA5601A) += panel-orisetech-ota5601a.o obj-$(CONFIG_DRM_PANEL_ORISETECH_OTM8009A) += panel-orisetech-otm8009a.o obj-$(CONFIG_DRM_PANEL_OSD_OSD101T2587_53TS) += panel-osd-osd101t2587-53ts.o obj-$(CONFIG_DRM_PANEL_PANASONIC_VVX10F034N00) += panel-panasonic-vvx10f034n00.o
drivers/gpu/drm/panel/panel-orisetech-ota5601a.c new file +351 -0
351 lines not on this page · raw message
Signature · 1 line
2.35.1
PATCH 2/2 dt-bindings: display/panel: Add the focaltech gpt3
Add bindings for the focaltech gpt3, which is a 640x480 3.0" 4:3 IPS LCD Panel found in the YLM/Anbernic RG300X handheld.
--- .../display/panel/focaltech,gpt3.yaml | 59 +++++++++++++++++++ 1 file changed, 59 insertions(+) create mode 100644 Documentation/devicetree/bindings/display/panel/focaltech,gpt3.yaml
Documentation/devicetree/bindings/display/panel/focaltech,gpt3.yaml new file +59 -0
@@ -0,0 +1,59 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/display/panel/focaltech,gpt3.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Focaltech GPT3 3.0" (640x480 pixels) IPS LCD panel + +maintainers: + - Christophe Branchereau <cbranchereau> + +allOf: + - $ref: panel-common.yaml# + - $ref: /schemas/spi/spi-peripheral-props.yaml# + +properties: + compatible: + const: focaltech,gpt3 + + backlight: true + port: true + power-supply: true + reg: true + reset-gpios: true + +required: + - compatible + - reg + - power-supply + - reset-gpios + +unevaluatedProperties: false + +examples: + - | + #include <dt-bindings/gpio/gpio.h> + + spi { + #address-cells = <1>; + #size-cells = <0>; + + panel@0 { + compatible = "focaltech,gpt3"; + 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.35.1
Re: [PATCH 2/2] dt-bindings: display/panel: Add the focaltech gpt3
Quoted 15 lines · Christophe Branchereau
Add bindings for the focaltech gpt3, which is a 640x480 3.0" 4:3 IPS LCD Panel found in the YLM/Anbernic RG300X handheld.
Signed-off-by Christophe Branchereau <[email protected]>--- .../display/panel/focaltech,gpt3.yaml | 59 +++++++++++++++++++ 1 file changed, 59 insertions(+) create mode 100644 Documentation/devicetree/bindings/display/panel/focaltech,gpt3.yamlDocumentation/devicetree/bindings/display/panel/focaltech,gpt3.yaml new file +0
-0
Documentation/devicetree/bindings/display/panel/focaltech,gpt3.yaml line 10
Quoted 10 lines
Documentation/devicetree/bindings/display/panel/focaltech,gpt3.yaml new file +10
-0@@ -0,0 +1,59 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/display/panel/focaltech,gpt3.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Focaltech GPT3 3.0" (640x480 pixels) IPS LCD panel + +maintainers: + - Christophe Branchereau <cbranchereau>
That's not a correct email address.
Documentation/devicetree/bindings/display/panel/focaltech,gpt3.yaml line 22
Quoted 12 lines
Documentation/devicetree/bindings/display/panel/focaltech,gpt3.yaml new file +12
-0+ +allOf: + - $ref: panel-common.yaml# + - $ref: /schemas/spi/spi-peripheral-props.yaml# + +properties: + compatible: + const: focaltech,gpt3 + + backlight: true + port: true + power-supply: true
Drop all three - provided by panel-common.yaml
Documentation/devicetree/bindings/display/panel/focaltech,gpt3.yaml line 23
Quoted 1 line
Documentation/devicetree/bindings/display/panel/focaltech,gpt3.yaml new file +1
-0+ reg: true
maxItems: 1
(or from which other schema does it come?)
Documentation/devicetree/bindings/display/panel/focaltech,gpt3.yaml line 24
Quoted 1 line
Documentation/devicetree/bindings/display/panel/focaltech,gpt3.yaml new file +1
-0+ reset-gpios: true
Drop - provided by panel-common.yaml
Quoted 25 lines
Documentation/devicetree/bindings/display/panel/focaltech,gpt3.yaml new file +25
-0+ +required: + - compatible + - reg + - power-supply + - reset-gpios + +unevaluatedProperties: false + +examples: + - | + #include <dt-bindings/gpio/gpio.h> + + spi { + #address-cells = <1>; + #size-cells = <0>; + + panel@0 { + compatible = "focaltech,gpt3"; + reg = <0>; + + spi-max-frequency = <3125000>; + + reset-gpios = <&gpe 2 GPIO_ACTIVE_LOW>; +
Documentation/devicetree/bindings/display/panel/focaltech,gpt3.yaml line 59
Quoted 10 lines
Documentation/devicetree/bindings/display/panel/focaltech,gpt3.yaml new file +10
-0+ backlight = <&backlight>; + power-supply = <&vcc>; + + port { + panel_input: endpoint { + remote-endpoint = <&panel_output>; + }; + }; + }; + };
Best regards,
Krzysztof