Re: [PATCH v1 22/36] dt-bindings: display: convert samsung,ld9040 to DT Schema
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
- Subject: Re: [PATCH v1 22/36] dt-bindings: display: convert samsung,ld9040 to DT Schema
- From: Rob Herring <robh@xxxxxxxxxx>
- Date: Wed, 18 Mar 2020 21:01:24 -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-23-sam@ravnborg.org>
- References: <20200315134416.16527-1-sam@ravnborg.org> <20200315134416.16527-23-sam@ravnborg.org>
- User-agent: Mutt/1.10.1 (2018-07-13)
On Sun, Mar 15, 2020 at 02:44:02PM +0100, Sam Ravnborg wrote:
> Signed-off-by: Sam Ravnborg <sam@xxxxxxxxxxxx>
> Cc: Andrzej Hajda <a.hajda@xxxxxxxxxxx>
> Cc: Thierry Reding <thierry.reding@xxxxxxxxx>
> Cc: Sam Ravnborg <sam@xxxxxxxxxxxx>
> ---
> .../bindings/display/panel/samsung,ld9040.txt | 66 ------------
> .../display/panel/samsung,ld9040.yaml | 100 ++++++++++++++++++
> 2 files changed, 100 insertions(+), 66 deletions(-)
> delete mode 100644 Documentation/devicetree/bindings/display/panel/samsung,ld9040.txt
> create mode 100644 Documentation/devicetree/bindings/display/panel/samsung,ld9040.yaml
>
> diff --git a/Documentation/devicetree/bindings/display/panel/samsung,ld9040.txt b/Documentation/devicetree/bindings/display/panel/samsung,ld9040.txt
> deleted file mode 100644
> index 354d4d1df4ff..000000000000
> --- a/Documentation/devicetree/bindings/display/panel/samsung,ld9040.txt
> +++ /dev/null
> @@ -1,66 +0,0 @@
> -Samsung LD9040 AMOLED LCD parallel RGB panel with SPI control bus
> -
> -Required properties:
> - - compatible: "samsung,ld9040"
> - - reg: address of the panel on SPI bus
> - - vdd3-supply: core voltage supply
> - - vci-supply: voltage supply for analog circuits
> - - reset-gpios: a GPIO spec for the reset pin
> - - display-timings: timings for the connected panel according to [1]
> -
> -The panel must obey rules for SPI slave device specified in document [2].
> -
> -Optional properties:
> - - power-on-delay: delay after turning regulators on [ms]
> - - reset-delay: delay after reset sequence [ms]
> - - panel-width-mm: physical panel width [mm]
> - - panel-height-mm: physical panel height [mm]
> -
> -The device node can contain one 'port' child node with one child
> -'endpoint' node, according to the bindings defined in [3]. This
> -node should describe panel's video bus.
> -
> -[1]: Documentation/devicetree/bindings/display/panel/display-timing.txt
> -[2]: Documentation/devicetree/bindings/spi/spi-bus.txt
> -[3]: Documentation/devicetree/bindings/media/video-interfaces.txt
> -
> -Example:
> -
> - lcd@0 {
> - compatible = "samsung,ld9040";
> - reg = <0>;
> - vdd3-supply = <&ldo7_reg>;
> - vci-supply = <&ldo17_reg>;
> - reset-gpios = <&gpy4 5 0>;
> - spi-max-frequency = <1200000>;
> - spi-cpol;
> - spi-cpha;
> - power-on-delay = <10>;
> - reset-delay = <10>;
> - panel-width-mm = <90>;
> - panel-height-mm = <154>;
> -
> - display-timings {
> - timing {
> - clock-frequency = <23492370>;
> - hactive = <480>;
> - vactive = <800>;
> - hback-porch = <16>;
> - hfront-porch = <16>;
> - vback-porch = <2>;
> - vfront-porch = <28>;
> - hsync-len = <2>;
> - vsync-len = <1>;
> - hsync-active = <0>;
> - vsync-active = <0>;
> - de-active = <0>;
> - pixelclk-active = <0>;
> - };
> - };
> -
> - port {
> - lcd_ep: endpoint {
> - remote-endpoint = <&fimd_dpi_ep>;
> - };
> - };
> - };
> diff --git a/Documentation/devicetree/bindings/display/panel/samsung,ld9040.yaml b/Documentation/devicetree/bindings/display/panel/samsung,ld9040.yaml
> new file mode 100644
> index 000000000000..b6e7e87411e8
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/display/panel/samsung,ld9040.yaml
> @@ -0,0 +1,100 @@
> +# SPDX-License-Identifier: GPL-2.0
> +%YAML 1.2
> +---
> +$id: http://devicetree.org/schemas/display/panel/samsung,ld9040.yaml#
> +$schema: http://devicetree.org/meta-schemas/core.yaml#
> +
> +title: Samsung LD9040 AMOLED LCD parallel RGB panel with SPI control bus
> +
> +maintainers:
> + - Andrzej Hajda <a.hajda@xxxxxxxxxxx>
> +
> +allOf:
> + - $ref: ../../spi/spi-slave.yaml#
> + - $ref: panel-common.yaml#
> +
> +properties:
> + compatible:
> + const: samsung,ld9040
> +
> + display-timings: true
> + port: true
> + reg: true
> + reset-gpios: true
> +
> + vdd3-supply:
> + description: core voltage supply
> +
> + vci-supply:
> + description: voltage supply for analog circuits
> +
> + power-on-delay:
> + description: delay after turning regulators on [ms]
This shouldn't really be needed with a specific compatible...
It needs a type reference.
> +
> + reset-delay:
> + description: delay after reset sequence [ms]
So does this.
> +
> + panel-width-mm:
> + description: physical panel width [mm]
And this.
> +
> + panel-height-mm:
> + description: physical panel height [mm]
> +
> +required:
> + - compatible
> + - reg
> + - vdd3-supply
> + - vci-supply
> + - reset-gpios
> + - display-timings
> +
> +examples:
> + - |
> + spi {
> + #address-cells = <1>;
> + #size-cells = <0>;
> +
> + lcd@0 {
> + compatible = "samsung,ld9040";
> + #address-cells = <1>;
> + #size-cells = <0>;
> +
> + reg = <0>;
> + vdd3-supply = <&ldo7_reg>;
> + vci-supply = <&ldo17_reg>;
> + reset-gpios = <&gpy4 5 0>;
> + spi-max-frequency = <1200000>;
> + spi-cpol;
> + spi-cpha;
> + power-on-delay = <10>;
> + reset-delay = <10>;
> + panel-width-mm = <90>;
> + panel-height-mm = <154>;
> +
> + display-timings {
> + timing {
> + clock-frequency = <23492370>;
> + hactive = <480>;
> + vactive = <800>;
> + hback-porch = <16>;
> + hfront-porch = <16>;
> + vback-porch = <2>;
> + vfront-porch = <28>;
> + hsync-len = <2>;
> + vsync-len = <1>;
> + hsync-active = <0>;
> + vsync-active = <0>;
> + de-active = <0>;
> + pixelclk-active = <0>;
> + };
> + };
> +
> + port {
> + lcd_ep: endpoint {
> + remote-endpoint = <&fimd_dpi_ep>;
> + };
> + };
> + };
> + };
> +
> +...
> --
> 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]
|