From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.6 required=3.0 tests=DKIM_INVALID,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0C907C18E5B for ; Tue, 17 Mar 2020 14:18:03 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id D0EAE2051A for ; Tue, 17 Mar 2020 14:18:02 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (1024-bit key) header.d=crapouillou.net header.i=@crapouillou.net header.b="AePaoEOI" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org D0EAE2051A Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=crapouillou.net Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 8B3F16E5C5; Tue, 17 Mar 2020 14:16:50 +0000 (UTC) Received: from crapouillou.net (outils.crapouillou.net [89.234.176.41]) by gabe.freedesktop.org (Postfix) with ESMTPS id 9A53889467 for ; Tue, 17 Mar 2020 11:32:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=crapouillou.net; s=mail; t=1584444745; h=from:from:sender:reply-to:subject:subject:date:date:message-id:to:to: cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=+7dh6imzzMej5xNbU5tRJ/IfCuo2k2gsb2Hk62Jwlyw=; b=AePaoEOIXqnBOx/pD8eDrfVeXUiViZiYFAVy0hg5IoOJpvQ60yB/s8L5I17dOSlG0htFAu R++lgDvz3OS11hgfOND0Z9HOh5vwNdE/ZApcNeq5KtQQmS9MmPqtygmOqI9OuYx//+rDnj zEAJ/C9vw0m5GgjW9bky6UmXIh8Nbcw= Date: Tue, 17 Mar 2020 12:32:07 +0100 From: Paul Cercueil Subject: Re: [PATCH v1 13/36] dt-bindings: display: convert kingdisplay,kd035g6-54nt to DT Schema To: Sam Ravnborg In-Reply-To: <20200315134416.16527-14-sam@ravnborg.org> References: <20200315134416.16527-1-sam@ravnborg.org> <20200315134416.16527-14-sam@ravnborg.org> MIME-Version: 1.0 X-Mailman-Approved-At: Tue, 17 Mar 2020 14:16:40 +0000 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Maxime Ripard , Nikolaus Schaller , Jonathan Bakker , Sandeep Panda , dri-devel@lists.freedesktop.org, Peter Ujfalusi , Andrzej Hajda , Thierry Reding , Laurent Pinchart , Chris Zhong , Marco Franchi , Stefan Mavrodiev , Jerry Han , Hoegeun Kwon , Tony Lindgren , Nickey Yang , Tomi Valkeinen , Jagan Teki , Robert Chiras , Vinay Simha BN , Marek Belisko , Heiko Schocher , Brian Masney , devicetree@vger.kernel.org, Guido Gunther , Mark Brown , Alexandre Courbot , Werner Johansson , Purism Kernel Team , Lin Huang , Douglas Anderson , linux-spi@vger.kernel.org, Peter Rosin Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="iso-8859-1"; Format="flowed" Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Message-Id: <20200317141650.8B3F16E5C5@gabe.freedesktop.org> Hi Sam, Le dim. 15 mars 2020 =E0 14:43, Sam Ravnborg a =E9crit = : > Signed-off-by: Sam Ravnborg Reviewed-by: Paul Cercueil Cheers, -Paul > Cc: Paul Cercueil > Cc: Thierry Reding > Cc: Sam Ravnborg > --- > .../panel/kingdisplay,kd035g6-54nt.txt | 42 ------------- > .../panel/kingdisplay,kd035g6-54nt.yaml | 60 = > +++++++++++++++++++ > 2 files changed, 60 insertions(+), 42 deletions(-) > delete mode 100644 = > Documentation/devicetree/bindings/display/panel/kingdisplay,kd035g6-54nt.= txt > create mode 100644 = > Documentation/devicetree/bindings/display/panel/kingdisplay,kd035g6-54nt.= yaml > = > diff --git = > a/Documentation/devicetree/bindings/display/panel/kingdisplay,kd035g6-54n= t.txt = > b/Documentation/devicetree/bindings/display/panel/kingdisplay,kd035g6-54n= t.txt > deleted file mode 100644 > index fa9596082e44..000000000000 > --- = > a/Documentation/devicetree/bindings/display/panel/kingdisplay,kd035g6-54n= t.txt > +++ /dev/null > @@ -1,42 +0,0 @@ > -King Display KD035G6-54NT 3.5" (320x240 pixels) 24-bit TFT LCD panel > - > -Required properties: > -- compatible: should be "kingdisplay,kd035g6-54nt" > -- power-supply: See panel-common.txt > -- reset-gpios: See panel-common.txt > - > -Optional properties: > -- backlight: see panel-common.txt > - > -The generic bindings for the SPI slaves documented in [1] also apply. > - > -The device node can contain one 'port' child node with one child > -'endpoint' node, according to the bindings defined in [2]. This > -node should describe panel's video bus. > - > -[1]: Documentation/devicetree/bindings/spi/spi-bus.txt > -[2]: Documentation/devicetree/bindings/graph.txt > - > -Example: > - > -&spi { > - panel@0 { > - compatible =3D "kingdisplay,kd035g6-54nt"; > - reg =3D <0>; > - > - spi-max-frequency =3D <3125000>; > - spi-3wire; > - spi-cs-high; > - > - reset-gpios =3D <&gpe 2 GPIO_ACTIVE_LOW>; > - > - backlight =3D <&backlight>; > - power-supply =3D <&ldo6>; > - > - port { > - panel_input: endpoint { > - remote-endpoint =3D <&panel_output>; > - }; > - }; > - }; > -}; > diff --git = > a/Documentation/devicetree/bindings/display/panel/kingdisplay,kd035g6-54n= t.yaml = > b/Documentation/devicetree/bindings/display/panel/kingdisplay,kd035g6-54n= t.yaml > new file mode 100644 > index 000000000000..31fc63294a9f > --- /dev/null > +++ = > b/Documentation/devicetree/bindings/display/panel/kingdisplay,kd035g6-54n= t.yaml > @@ -0,0 +1,60 @@ > +# SPDX-License-Identifier: GPL-2.0 > +%YAML 1.2 > +--- > +$id: = > http://devicetree.org/schemas/display/panel/kingdisplay,kd035g6-54nt.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: King Display KD035G6-54NT 3.5" (320x240 pixels) 24-bit TFT = > LCD panel > + > +maintainers: > + - Paul Cercueil > + > +allOf: > + - $ref: ../../spi/spi-slave.yaml# > + - $ref: panel-common.yaml# > + > +properties: > + compatible: > + const: kingdisplay,kd035g6-54nt > + > + backlight: true > + port: true > + power-supply: true > + reg: true > + reset-gpios: true > + > +required: > + - compatible > + - power-supply > + - reset-gpios > + > +examples: > + - | > + #include > + > + spi { > + #address-cells =3D <1>; > + #size-cells =3D <0>; > + > + panel@0 { > + compatible =3D "kingdisplay,kd035g6-54nt"; > + reg =3D <0>; > + > + spi-max-frequency =3D <3125000>; > + spi-3wire; > + spi-cs-high; > + > + reset-gpios =3D <&gpe 2 GPIO_ACTIVE_LOW>; > + > + backlight =3D <&backlight>; > + power-supply =3D <&ldo6>; > + > + port { > + panel_input: endpoint { > + remote-endpoint =3D <&panel_output>; > + }; > + }; > + }; > + }; > + > +... > -- > 2.20.1 > = _______________________________________________ dri-devel mailing list dri-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/dri-devel