mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-11-01 09:13:37 +00:00
dt-bindings: display: convert sharp,lq150x1lg11 to DT Schema
Signed-off-by: Sam Ravnborg <sam@ravnborg.org> Reviewed-by: Rob Herring <robh@kernel.org> Cc: Peter Rosin <peda@axentia.se> Cc: Thierry Reding <thierry.reding@gmail.com> Cc: Sam Ravnborg <sam@ravnborg.org> Link: https://patchwork.freedesktop.org/patch/msgid/20200408195109.32692-33-sam@ravnborg.org
This commit is contained in:
parent
e437b61b21
commit
236623c09c
2 changed files with 58 additions and 36 deletions
|
|
@ -1,36 +0,0 @@
|
||||||
Sharp 15" LQ150X1LG11 XGA TFT LCD panel
|
|
||||||
|
|
||||||
Required properties:
|
|
||||||
- compatible: should be "sharp,lq150x1lg11"
|
|
||||||
- power-supply: regulator to provide the VCC supply voltage (3.3 volts)
|
|
||||||
|
|
||||||
Optional properties:
|
|
||||||
- backlight: phandle of the backlight device
|
|
||||||
- rlud-gpios: a single GPIO for the RL/UD (rotate 180 degrees) pin.
|
|
||||||
- sellvds-gpios: a single GPIO for the SELLVDS pin.
|
|
||||||
|
|
||||||
If rlud-gpios and/or sellvds-gpios are not specified, the RL/UD and/or SELLVDS
|
|
||||||
pins are assumed to be handled appropriately by the hardware.
|
|
||||||
|
|
||||||
Example:
|
|
||||||
|
|
||||||
backlight: backlight {
|
|
||||||
compatible = "pwm-backlight";
|
|
||||||
pwms = <&pwm 0 100000>; /* VBR */
|
|
||||||
|
|
||||||
brightness-levels = <0 20 40 60 80 100>;
|
|
||||||
default-brightness-level = <2>;
|
|
||||||
|
|
||||||
power-supply = <&vdd_12v_reg>; /* VDD */
|
|
||||||
enable-gpios = <&gpio 42 GPIO_ACTIVE_HIGH>; /* XSTABY */
|
|
||||||
};
|
|
||||||
|
|
||||||
panel {
|
|
||||||
compatible = "sharp,lq150x1lg11";
|
|
||||||
|
|
||||||
power-supply = <&vcc_3v3_reg>; /* VCC */
|
|
||||||
|
|
||||||
backlight = <&backlight>;
|
|
||||||
rlud-gpios = <&gpio 17 GPIO_ACTIVE_HIGH>; /* RL/UD */
|
|
||||||
sellvds-gpios = <&gpio 18 GPIO_ACTIVE_HIGH>; /* SELLVDS */
|
|
||||||
};
|
|
||||||
|
|
@ -0,0 +1,58 @@
|
||||||
|
# SPDX-License-Identifier: GPL-2.0
|
||||||
|
%YAML 1.2
|
||||||
|
---
|
||||||
|
$id: http://devicetree.org/schemas/display/panel/sharp,lq150x1lg11.yaml#
|
||||||
|
$schema: http://devicetree.org/meta-schemas/core.yaml#
|
||||||
|
|
||||||
|
title: Sharp 15" LQ150X1LG11 XGA TFT LCD panel
|
||||||
|
|
||||||
|
maintainers:
|
||||||
|
- Peter Rosin <peda@axentia.se>
|
||||||
|
|
||||||
|
allOf:
|
||||||
|
- $ref: panel-common.yaml#
|
||||||
|
|
||||||
|
properties:
|
||||||
|
compatible:
|
||||||
|
const: sharp,lq150x1lg11
|
||||||
|
|
||||||
|
power-supply: true
|
||||||
|
backlight: true
|
||||||
|
|
||||||
|
rlud-gpios:
|
||||||
|
maxItems: 1
|
||||||
|
description: |
|
||||||
|
GPIO for the RL/UD (rotate 180 degrees) pin.
|
||||||
|
If rlud-gpios and/or sellvds-gpios are not specified,
|
||||||
|
the RL/UD and/or SELLVDS pins are assumed to be handled
|
||||||
|
appropriately by the hardware.
|
||||||
|
|
||||||
|
sellvds-gpios:
|
||||||
|
maxItems: 1
|
||||||
|
description: |
|
||||||
|
GPIO for the SELLVDS pin.
|
||||||
|
If rlud-gpios and/or sellvds-gpios are not specified,
|
||||||
|
the RL/UD and/or SELLVDS pins are assumed to be handled
|
||||||
|
appropriately by the hardware.
|
||||||
|
|
||||||
|
required:
|
||||||
|
- compatible
|
||||||
|
- power-supply
|
||||||
|
|
||||||
|
additionalProperties: false
|
||||||
|
|
||||||
|
examples:
|
||||||
|
- |
|
||||||
|
#include <dt-bindings/gpio/gpio.h>
|
||||||
|
|
||||||
|
panel {
|
||||||
|
compatible = "sharp,lq150x1lg11";
|
||||||
|
|
||||||
|
power-supply = <&vcc_3v3_reg>; /* VCC */
|
||||||
|
|
||||||
|
backlight = <&backlight>;
|
||||||
|
rlud-gpios = <&gpio 17 GPIO_ACTIVE_HIGH>; /* RL/UD */
|
||||||
|
sellvds-gpios = <&gpio 18 GPIO_ACTIVE_HIGH>; /* SELLVDS */
|
||||||
|
};
|
||||||
|
|
||||||
|
...
|
||||||
Loading…
Add table
Reference in a new issue