mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/chenhuacai/linux-loongson
synced 2025-09-05 03:45:16 +00:00
dt-bindings: display: Add SSD132x OLED controllers
Add a Device Tree binding schema for the OLED panels based on the Solomon SSD132x family of controllers. Signed-off-by: Javier Martinez Canillas <javierm@redhat.com> Reviewed-by: Rob Herring <robh@kernel.org> Acked-by: Thomas Zimmermann <tzimmermann@suse.de> Link: https://patchwork.freedesktop.org/patch/msgid/20231014071520.1342189-7-javierm@redhat.com
This commit is contained in:
parent
7618b86594
commit
2d23e7d6ba
@ -0,0 +1,89 @@
|
|||||||
|
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
|
||||||
|
%YAML 1.2
|
||||||
|
---
|
||||||
|
$id: http://devicetree.org/schemas/display/solomon,ssd132x.yaml#
|
||||||
|
$schema: http://devicetree.org/meta-schemas/core.yaml#
|
||||||
|
|
||||||
|
title: Solomon SSD132x OLED Display Controllers
|
||||||
|
|
||||||
|
maintainers:
|
||||||
|
- Javier Martinez Canillas <javierm@redhat.com>
|
||||||
|
|
||||||
|
properties:
|
||||||
|
compatible:
|
||||||
|
- enum:
|
||||||
|
- solomon,ssd1322
|
||||||
|
- solomon,ssd1325
|
||||||
|
- solomon,ssd1327
|
||||||
|
|
||||||
|
required:
|
||||||
|
- compatible
|
||||||
|
- reg
|
||||||
|
|
||||||
|
allOf:
|
||||||
|
- $ref: solomon,ssd-common.yaml#
|
||||||
|
|
||||||
|
- if:
|
||||||
|
properties:
|
||||||
|
compatible:
|
||||||
|
contains:
|
||||||
|
const: solomon,ssd1322
|
||||||
|
then:
|
||||||
|
properties:
|
||||||
|
width:
|
||||||
|
default: 480
|
||||||
|
height:
|
||||||
|
default: 128
|
||||||
|
|
||||||
|
- if:
|
||||||
|
properties:
|
||||||
|
compatible:
|
||||||
|
contains:
|
||||||
|
const: solomon,ssd1325
|
||||||
|
then:
|
||||||
|
properties:
|
||||||
|
width:
|
||||||
|
default: 128
|
||||||
|
height:
|
||||||
|
default: 80
|
||||||
|
|
||||||
|
- if:
|
||||||
|
properties:
|
||||||
|
compatible:
|
||||||
|
contains:
|
||||||
|
const: solomon,ssd1327
|
||||||
|
then:
|
||||||
|
properties:
|
||||||
|
width:
|
||||||
|
default: 128
|
||||||
|
height:
|
||||||
|
default: 128
|
||||||
|
|
||||||
|
unevaluatedProperties: false
|
||||||
|
|
||||||
|
examples:
|
||||||
|
- |
|
||||||
|
i2c {
|
||||||
|
#address-cells = <1>;
|
||||||
|
#size-cells = <0>;
|
||||||
|
|
||||||
|
oled@3c {
|
||||||
|
compatible = "solomon,ssd1327";
|
||||||
|
reg = <0x3c>;
|
||||||
|
reset-gpios = <&gpio2 7>;
|
||||||
|
};
|
||||||
|
|
||||||
|
};
|
||||||
|
- |
|
||||||
|
spi {
|
||||||
|
#address-cells = <1>;
|
||||||
|
#size-cells = <0>;
|
||||||
|
|
||||||
|
oled@0 {
|
||||||
|
compatible = "solomon,ssd1327";
|
||||||
|
reg = <0x0>;
|
||||||
|
reset-gpios = <&gpio2 7>;
|
||||||
|
dc-gpios = <&gpio2 8>;
|
||||||
|
spi-max-frequency = <10000000>;
|
||||||
|
};
|
||||||
|
};
|
@ -6766,7 +6766,7 @@ M: Javier Martinez Canillas <javierm@redhat.com>
|
|||||||
S: Maintained
|
S: Maintained
|
||||||
T: git git://anongit.freedesktop.org/drm/drm-misc
|
T: git git://anongit.freedesktop.org/drm/drm-misc
|
||||||
F: Documentation/devicetree/bindings/display/solomon,ssd-common.yaml
|
F: Documentation/devicetree/bindings/display/solomon,ssd-common.yaml
|
||||||
F: Documentation/devicetree/bindings/display/solomon,ssd1307fb.yaml
|
F: Documentation/devicetree/bindings/display/solomon,ssd13*.yaml
|
||||||
F: drivers/gpu/drm/solomon/ssd130x*
|
F: drivers/gpu/drm/solomon/ssd130x*
|
||||||
|
|
||||||
DRM DRIVER FOR ST-ERICSSON MCDE
|
DRM DRIVER FOR ST-ERICSSON MCDE
|
||||||
|
Loading…
Reference in New Issue
Block a user