Re: [PATCH v1 26/36] dt-bindings: display: convert sony,acx565akm to DT Schema
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
- Subject: Re: [PATCH v1 26/36] dt-bindings: display: convert sony,acx565akm to DT Schema
- From: Tomi Valkeinen <tomi.valkeinen@xxxxxx>
- Date: Tue, 17 Mar 2020 08:23:47 +0200
- Cc: Alexandre Courbot <acourbot@xxxxxxxxxx>, Andrzej Hajda <a.hajda@xxxxxxxxxxx>, Brian Masney <masneyb@xxxxxxxxxxxxx>, Chris Zhong <zyw@xxxxxxxxxxxxxx>, Douglas Anderson <dianders@xxxxxxxxxxxx>, Guido Gunther <agx@xxxxxxxxxxx>, Heiko Schocher <hs@xxxxxxx>, Nikolaus Schaller <hns@xxxxxxxxxxxxx>, Hoegeun Kwon <hoegeun.kwon@xxxxxxxxxxx>, Jagan Teki <jagan@xxxxxxxxxxxxxxxxxxxx>, Jerry Han <hanxu5@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx>, Jonathan Bakker <xc-racer2@xxxxxxx>, Laurent Pinchart <laurent.pinchart@xxxxxxxxxxxxxxxx>, Lin Huang <hl@xxxxxxxxxxxxxx>, Linus Walleij <linus.walleij@xxxxxxxxxx>, <linux-spi@xxxxxxxxxxxxxxx>, Marco Franchi <marco.franchi@xxxxxxx>, Marek Belisko <marek@xxxxxxxxxxxxx>, Mark Brown <broonie@xxxxxxxxxx>, Maxime Ripard <maxime.ripard@xxxxxxxxxxx>, Maxime Ripard <mripard@xxxxxxxxxx>, Nickey Yang <nickey.yang@xxxxxxxxxxxxxx>, Paul Cercueil <paul@xxxxxxxxxxxxxxx>, Peter Rosin <peda@xxxxxxxxxx>, Peter Ujfalusi <peter.ujfalusi@xxxxxx>, Purism Kernel Team <kernel@xxxxxxx>, Robert Chiras <robert.chiras@xxxxxxx>, Sandeep Panda <spanda@xxxxxxxxxxxxxx>, Stefan Mavrodiev <stefan@xxxxxxxxxx>, Tony Lindgren <tony@xxxxxxxxxxx>, Vinay Simha BN <simhavcs@xxxxxxxxx>, Werner Johansson <werner.johansson@xxxxxxxxxxxxxx>
- In-reply-to: <20200315134416.16527-27-sam@ravnborg.org>
- References: <20200315134416.16527-1-sam@ravnborg.org> <20200315134416.16527-27-sam@ravnborg.org>
- User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.4.1
On 15/03/2020 15:44, Sam Ravnborg wrote:
Signed-off-by: Sam Ravnborg <sam@xxxxxxxxxxxx>
Cc: Tomi Valkeinen <tomi.valkeinen@xxxxxx>
Cc: Thierry Reding <thierry.reding@xxxxxxxxx>
Cc: Sam Ravnborg <sam@xxxxxxxxxxxx>
---
.../bindings/display/panel/sony,acx565akm.txt | 30 -----------
.../display/panel/sony,acx565akm.yaml | 53 +++++++++++++++++++
2 files changed, 53 insertions(+), 30 deletions(-)
delete mode 100644 Documentation/devicetree/bindings/display/panel/sony,acx565akm.txt
create mode 100644 Documentation/devicetree/bindings/display/panel/sony,acx565akm.yaml
diff --git a/Documentation/devicetree/bindings/display/panel/sony,acx565akm.txt b/Documentation/devicetree/bindings/display/panel/sony,acx565akm.txt
deleted file mode 100644
index e12333280749..000000000000
--- a/Documentation/devicetree/bindings/display/panel/sony,acx565akm.txt
+++ /dev/null
@@ -1,30 +0,0 @@
-Sony ACX565AKM SDI Panel
-========================
-
-Required properties:
-- compatible: "sony,acx565akm"
-
-Optional properties:
-- label: a symbolic name for the panel
-- reset-gpios: panel reset gpio
-
-Required nodes:
-- Video port for SDI input
-
-Example
--------
-
-acx565akm@2 {
- compatible = "sony,acx565akm";
- spi-max-frequency = <6000000>;
- reg = <2>;
-
- label = "lcd";
- reset-gpios = <&gpio3 26 GPIO_ACTIVE_HIGH>; /* 90 */
-
- port {
- lcd_in: endpoint {
- remote-endpoint = <&sdi_out>;
- };
- };
-};
diff --git a/Documentation/devicetree/bindings/display/panel/sony,acx565akm.yaml b/Documentation/devicetree/bindings/display/panel/sony,acx565akm.yaml
new file mode 100644
index 000000000000..a0b1abb9f33d
--- /dev/null
+++ b/Documentation/devicetree/bindings/display/panel/sony,acx565akm.yaml
@@ -0,0 +1,53 @@
+# SPDX-License-Identifier: GPL-2.0
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/display/panel/sony,acx565akm.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Sony ACX565AKM SDI Panel
+
+maintainers:
+ - Tomi Valkeinen <tomi.valkeinen@xxxxxx>
+
+allOf:
+ - $ref: panel-common.yaml#
+ - $ref: ../../spi/spi-slave.yaml#
+
+properties:
+ compatible:
+ const: sony,acx565akm
+
+ label: true
+ reset-gpios: true
+ port: true
+
+required:
+ - compatible
+ - port
+
+
+examples:
+ - |
+ #include <dt-bindings/gpio/gpio.h>
+
+ spi {
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ acx565akm@2 {
+ compatible = "sony,acx565akm";
+ spi-max-frequency = <6000000>;
+ reg = <2>;
+
+ label = "lcd";
+ reset-gpios = <&gpio3 26 GPIO_ACTIVE_HIGH>; /* 90 */
+
+ port {
+ lcd_in: endpoint {
+ remote-endpoint = <&sdi_out>;
+ };
+ };
+ };
+ };
+
+...
Reviewed-by: Tomi Valkeinen <tomi.valkeinen@xxxxxx>
Tomi
--
Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki.
Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki
[Index of Archives]
[Linux Kernel]
[Linux ARM (vger)]
[Linux ARM MSM]
[Linux Omap]
[Linux Arm]
[Linux Tegra]
[Fedora ARM]
[Linux for Samsung SOC]
[eCos]
[Linux Fastboot]
[Gcc Help]
[Git]
[DCCP]
[IETF Announce]
[Security]
[Linux MIPS]
[Yosemite Campsites]
|