mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/chenhuacai/linux-loongson
synced 2025-09-01 06:39:05 +00:00

Commit2d23e7d6ba
("dt-bindings: display: Add SSD132x OLED controllers") used the wrong properties for width and height, instead of the correct "solomon,width" and "solomon,height" properties. Fix this by adding the vendor prefix to the width and height properties. Fixes:2d23e7d6ba
("dt-bindings: display: Add SSD132x OLED controllers") Reported-by: Conor Dooley <conor@kernel.org> Closes: https://lore.kernel.org/dri-devel/20231218-example-envision-b41ca8efa251@spud/ Signed-off-by: Javier Martinez Canillas <javierm@redhat.com> Acked-by: Rob Herring <robh@kernel.org> Link: https://patchwork.freedesktop.org/patch/msgid/20231229112026.2797483-3-javierm@redhat.com
90 lines
1.8 KiB
YAML
90 lines
1.8 KiB
YAML
# 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:
|
|
solomon,width:
|
|
default: 480
|
|
solomon,height:
|
|
default: 128
|
|
|
|
- if:
|
|
properties:
|
|
compatible:
|
|
contains:
|
|
const: solomon,ssd1325
|
|
then:
|
|
properties:
|
|
solomon,width:
|
|
default: 128
|
|
solomon,height:
|
|
default: 80
|
|
|
|
- if:
|
|
properties:
|
|
compatible:
|
|
contains:
|
|
const: solomon,ssd1327
|
|
then:
|
|
properties:
|
|
solomon,width:
|
|
default: 128
|
|
solomon,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>;
|
|
};
|
|
};
|