From mboxrd@z Thu Jan 1 00:00:00 1970 From: Guido =?iso-8859-1?Q?G=FCnther?= Subject: Re: [PATCH v1 19/36] dt-bindings: display: convert rocktech,jh057n00900 to DT Schema Date: Sun, 15 Mar 2020 18:58:39 +0100 Message-ID: <20200315175839.GA4953@bogon.m.sigxcpu.org> References: <20200315134416.16527-1-sam@ravnborg.org> <20200315134416.16527-20-sam@ravnborg.org> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Cc: dri-devel-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org, Thierry Reding , Rob Herring , devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, Alexandre Courbot , Andrzej Hajda , Brian Masney , Chris Zhong , Douglas Anderson , Heiko Schocher , Nikolaus Schaller , Hoegeun Kwon , Jagan Teki , Jerry Han , Jonathan Bakker , Laurent Pinchart , Lin Huang , Linus Walleij , linux-spi-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, Marco Franchi , To: Sam Ravnborg Return-path: Content-Disposition: inline In-Reply-To: <20200315134416.16527-20-sam-uyr5N9Q2VtJg9hUCZPvPmw@public.gmane.org> Sender: linux-spi-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org List-ID: Hi, On Sun, Mar 15, 2020 at 02:43:59PM +0100, Sam Ravnborg wrote: > Signed-off-by: Sam Ravnborg > Cc: "Guido Günther" > Cc: Purism Kernel Team > Cc: Thierry Reding > Cc: Sam Ravnborg Reviewed-by: Guido Günther Thanks! -- Guido > --- > .../display/panel/rocktech,jh057n00900.txt | 23 -------- > .../display/panel/rocktech,jh057n00900.yaml | 57 +++++++++++++++++++ > 2 files changed, 57 insertions(+), 23 deletions(-) > delete mode 100644 Documentation/devicetree/bindings/display/panel/rocktech,jh057n00900.txt > create mode 100644 Documentation/devicetree/bindings/display/panel/rocktech,jh057n00900.yaml > > diff --git a/Documentation/devicetree/bindings/display/panel/rocktech,jh057n00900.txt b/Documentation/devicetree/bindings/display/panel/rocktech,jh057n00900.txt > deleted file mode 100644 > index a372c5d84695..000000000000 > --- a/Documentation/devicetree/bindings/display/panel/rocktech,jh057n00900.txt > +++ /dev/null > @@ -1,23 +0,0 @@ > -Rocktech jh057n00900 5.5" 720x1440 TFT LCD panel > - > -Required properties: > -- compatible: should be "rocktech,jh057n00900" > -- reg: DSI virtual channel of the peripheral > -- reset-gpios: panel reset gpio > -- backlight: phandle of the backlight device attached to the panel > -- vcc-supply: phandle of the regulator that provides the vcc supply voltage. > -- iovcc-supply: phandle of the regulator that provides the iovcc supply > - voltage. > - > -Example: > - > - &mipi_dsi { > - panel@0 { > - compatible = "rocktech,jh057n00900"; > - reg = <0>; > - backlight = <&backlight>; > - reset-gpios = <&gpio3 13 GPIO_ACTIVE_LOW>; > - vcc-supply = <®_2v8_p>; > - iovcc-supply = <®_1v8_p>; > - }; > - }; > diff --git a/Documentation/devicetree/bindings/display/panel/rocktech,jh057n00900.yaml b/Documentation/devicetree/bindings/display/panel/rocktech,jh057n00900.yaml > new file mode 100644 > index 000000000000..827417bbff63 > --- /dev/null > +++ b/Documentation/devicetree/bindings/display/panel/rocktech,jh057n00900.yaml > @@ -0,0 +1,57 @@ > +# SPDX-License-Identifier: GPL-2.0 > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/display/panel/rocktech,jh057n00900.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Rocktech jh057n00900 5.5" 720x1440 TFT LCD panel > + > +maintainers: > + - Guido Günther > + > +allOf: > + - $ref: panel-common.yaml# > + > +properties: > + compatible: > + const: rocktech,jh057n00900 > + > + reg: true > + reset-gpios: true > + backlight: true > + > + vcc-supply: > + description: The regulator that provides the vcc supply voltage > + > + iovcc-supply: > + description: The regulator that provides the iovcc supply voltage > + > +required: > + - compatible > + - reg > + - reset-gpios > + - backlight > + - vcc-supply > + - iovcc-supply > + > +additionalProperties: false > + > +examples: > + - | > + #include > + > + dsi { > + #address-cells = <1>; > + #size-cells = <0>; > + > + panel@0 { > + compatible = "rocktech,jh057n00900"; > + reg = <0>; > + backlight = <&backlight>; > + reset-gpios = <&gpio3 13 GPIO_ACTIVE_LOW>; > + vcc-supply = <®_2v8_p>; > + iovcc-supply = <®_1v8_p>; > + }; > + }; > + > +... > -- > 2.20.1 >