Re: [PATCH v1 16/36] dt-bindings: display: convert lg,lg4573 to DT Schema
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
- Subject: Re: [PATCH v1 16/36] dt-bindings: display: convert lg,lg4573 to DT Schema
- From: Rob Herring <robh@xxxxxxxxxx>
- Date: Wed, 18 Mar 2020 20:56:01 -0600
- Cc: dri-devel@xxxxxxxxxxxxxxxxxxxxx, Thierry Reding <thierry.reding@xxxxxxxxx>, devicetree@xxxxxxxxxxxxxxx, 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>, Tomi Valkeinen <tomi.valkeinen@xxxxxx>, Tony Lindgren <tony@xxxxxxxxxxx>, Vinay Simha BN <simhavcs@xxxxxxxxx>, Werner Johansson <werner.johansson@xxxxxxxxxxxxxx>
- In-reply-to: <20200315134416.16527-17-sam@ravnborg.org>
- References: <20200315134416.16527-1-sam@ravnborg.org> <20200315134416.16527-17-sam@ravnborg.org>
- User-agent: Mutt/1.10.1 (2018-07-13)
On Sun, Mar 15, 2020 at 02:43:56PM +0100, Sam Ravnborg wrote:
> Signed-off-by: Sam Ravnborg <sam@xxxxxxxxxxxx>
> Cc: Heiko Schocher <hs@xxxxxxx>
> Cc: Thierry Reding <thierry.reding@xxxxxxxxx>
> Cc: Sam Ravnborg <sam@xxxxxxxxxxxx>
> ---
> .../bindings/display/panel/lg,lg4573.txt | 19 ---------
> .../bindings/display/panel/lg,lg4573.yaml | 41 +++++++++++++++++++
> 2 files changed, 41 insertions(+), 19 deletions(-)
> delete mode 100644 Documentation/devicetree/bindings/display/panel/lg,lg4573.txt
> create mode 100644 Documentation/devicetree/bindings/display/panel/lg,lg4573.yaml
>
> diff --git a/Documentation/devicetree/bindings/display/panel/lg,lg4573.txt b/Documentation/devicetree/bindings/display/panel/lg,lg4573.txt
> deleted file mode 100644
> index 824441f4e95a..000000000000
> --- a/Documentation/devicetree/bindings/display/panel/lg,lg4573.txt
> +++ /dev/null
> @@ -1,19 +0,0 @@
> -LG LG4573 TFT Liquid Crystal Display with SPI control bus
> -
> -Required properties:
> - - compatible: "lg,lg4573"
> - - reg: address of the panel on the SPI bus
> -
> -The panel must obey rules for SPI slave device specified in document [1].
> -
> -[1]: Documentation/devicetree/bindings/spi/spi-bus.txt
> -
> -Example:
> -
> - lcd_panel: display@0 {
> - #address-cells = <1>;
> - #size-cells = <1>;
> - compatible = "lg,lg4573";
> - spi-max-frequency = <10000000>;
> - reg = <0>;
> - };
> diff --git a/Documentation/devicetree/bindings/display/panel/lg,lg4573.yaml b/Documentation/devicetree/bindings/display/panel/lg,lg4573.yaml
> new file mode 100644
> index 000000000000..b5b475cf8406
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/display/panel/lg,lg4573.yaml
> @@ -0,0 +1,41 @@
> +# SPDX-License-Identifier: GPL-2.0
> +%YAML 1.2
> +---
> +$id: http://devicetree.org/schemas/display/panel/lg,lg4573.yaml#
> +$schema: http://devicetree.org/meta-schemas/core.yaml#
> +
> +title: LG LG4573 TFT Liquid Crystal Display with SPI control bus
> +
> +maintainers:
> + - Heiko Schocher <hs@xxxxxxx>
> +
> +allOf:
> + - $ref: ../../spi/spi-slave.yaml#
> + - $ref: panel-common.yaml#
> +
> +properties:
> + compatible:
> + const: lg,lg4573
> +
> + reg: true
> + spi-max-frequency: true
> +
> +required:
> + - compatible
> + - reg
> +
> +examples:
> + - |
> + spi {
> + compatible = "fsl,imx6q-ecspi", "fsl,imx51-ecspi";
Better to drop this or it's going to fail when there's a schema for this
spi controller.
> + #address-cells = <1>;
> + #size-cells = <0>;
> +
> + lcd_panel: display@0 {
> + compatible = "lg,lg4573";
> + spi-max-frequency = <10000000>;
> + reg = <0>;
> + };
> + };
> +
> +...
> --
> 2.20.1
>
[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]
|