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=-8.5 required=3.0 tests=INCLUDES_PATCH, MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=ham 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 A08A5C4332D for ; Thu, 19 Mar 2020 02:47:18 +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 7E85A20768 for ; Thu, 19 Mar 2020 02:47:18 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 7E85A20768 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org 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 B4A326E0C8; Thu, 19 Mar 2020 02:47:17 +0000 (UTC) Received: from mail-il1-f193.google.com (mail-il1-f193.google.com [209.85.166.193]) by gabe.freedesktop.org (Postfix) with ESMTPS id 537876E0C8 for ; Thu, 19 Mar 2020 02:47:16 +0000 (UTC) Received: by mail-il1-f193.google.com with SMTP id p1so856755ils.5 for ; Wed, 18 Mar 2020 19:47:16 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=LFJUbgPmZnM/0vjLHNR92Cihn1D16v1W4tMgoyRC/8Y=; b=YBUOzDU+48BccSdRrfOHF5aTQTe392xkG/LiuEInJLel8E0V1uKjEGFH5QhMgZTY7L PzpcadEZEOCjsgDdwbcr56fRAgDRZL6agqOPeG9i/1l5BEEvpBNPsMBBw4Zuvf6Kv6kx k602X/ZSZ6Vxa+6tCz3uJeMyds37ZGfpPGvy+BEoiG+6ppj7xoUf7mQ/dX3m0OdgK/vW xZQ0PXONhjunJ/bWo8YFxB9265BoR4v4WUi5TOAlcZ6ALooYZXFCzyWbZOPbSUHqUiES Gre1LkXFSxaBfq9SeJF/x3bg52aC3RkmL3ahl9NvL6fFYZ8arMF9NBmDIgDPfCq4iFG0 oHUA== X-Gm-Message-State: ANhLgQ3PIWjv+mnQBkJYsJVfyCzmFId636p8qPw0vDxhSzFjweIbdzlA EHt5m2508U9yFIIgGrhpMA== X-Google-Smtp-Source: ADFU+vvB25aqqRFdEbb7Rs8BlZEuCb7ybdlBskdooN3izD0G2f/Xld2e6bLFF84uTsuI9uz6YIKIDQ== X-Received: by 2002:a92:2910:: with SMTP id l16mr1072231ilg.155.1584586035604; Wed, 18 Mar 2020 19:47:15 -0700 (PDT) Received: from rob-hp-laptop ([64.188.179.250]) by smtp.gmail.com with ESMTPSA id p70sm309238ilk.53.2020.03.18.19.47.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Mar 2020 19:47:14 -0700 (PDT) Received: (nullmailer pid 10673 invoked by uid 1000); Thu, 19 Mar 2020 02:47:11 -0000 Date: Wed, 18 Mar 2020 20:47:11 -0600 From: Rob Herring To: Sam Ravnborg Subject: Re: [PATCH v1 03/36] dt-bindings: display: convert samsung,s6e63m0 to DT Schema Message-ID: <20200319024711.GA29911@bogus> References: <20200315134416.16527-1-sam@ravnborg.org> <20200315134416.16527-4-sam@ravnborg.org> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20200315134416.16527-4-sam@ravnborg.org> User-Agent: Mutt/1.10.1 (2018-07-13) 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, Paul Cercueil , 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 , Peter Ujfalusi , Lin Huang , Douglas Anderson , linux-spi@vger.kernel.org, Peter Rosin Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" On Sun, Mar 15, 2020 at 02:43:43PM +0100, Sam Ravnborg wrote: > The binding for this panel is a SPI slave. > Reference spi-slave.yaml > to avoid duplicating all properties. > > Signed-off-by: Sam Ravnborg > Cc: Jonathan Bakker > Cc: Thierry Reding > Cc: Sam Ravnborg > --- > .../display/panel/samsung,s6e63m0.txt | 33 ----------- > .../display/panel/samsung,s6e63m0.yaml | 58 +++++++++++++++++++ > 2 files changed, 58 insertions(+), 33 deletions(-) > delete mode 100644 Documentation/devicetree/bindings/display/panel/samsung,s6e63m0.txt > create mode 100644 Documentation/devicetree/bindings/display/panel/samsung,s6e63m0.yaml > > diff --git a/Documentation/devicetree/bindings/display/panel/samsung,s6e63m0.txt b/Documentation/devicetree/bindings/display/panel/samsung,s6e63m0.txt > deleted file mode 100644 > index 9fb9ebeef8e4..000000000000 > --- a/Documentation/devicetree/bindings/display/panel/samsung,s6e63m0.txt > +++ /dev/null > @@ -1,33 +0,0 @@ > -Samsung s6e63m0 AMOLED LCD panel > - > -Required properties: > - - compatible: "samsung,s6e63m0" > - - reset-gpios: GPIO spec for reset pin > - - vdd3-supply: VDD regulator > - - vci-supply: VCI regulator > - > -The panel must obey rules for SPI slave device specified in document [1]. > - > -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/media/video-interfaces.txt > - > -Example: > - > - s6e63m0: display@0 { > - compatible = "samsung,s6e63m0"; > - reg = <0>; > - reset-gpio = <&mp05 5 1>; > - vdd3-supply = <&ldo12_reg>; > - vci-supply = <&ldo11_reg>; > - spi-max-frequency = <1200000>; > - > - port { > - lcd_ep: endpoint { > - remote-endpoint = <&fimd_ep>; > - }; > - }; > - }; > diff --git a/Documentation/devicetree/bindings/display/panel/samsung,s6e63m0.yaml b/Documentation/devicetree/bindings/display/panel/samsung,s6e63m0.yaml > new file mode 100644 > index 000000000000..204ed76da84d > --- /dev/null > +++ b/Documentation/devicetree/bindings/display/panel/samsung,s6e63m0.yaml > @@ -0,0 +1,58 @@ > +# SPDX-License-Identifier: GPL-2.0 > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/display/panel/samsung,s6e63m0.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Samsung s6e63m0 AMOLED LCD panel > + > +maintainers: > + - Jonathan Bakker > + > +allOf: > + - $ref: ../../spi/spi-slave.yaml# > + - $ref: panel-common.yaml# > + > +properties: > + compatible: > + const: samsung,s6e63m0 > + > + reg: true > + reset-gpios: true > + port: true > + > + vdd3-supply: > + description: VDD regulator > + > + vci-supply: > + description: VCI regulator > + > +required: > + - compatible > + - reset-gpios > + - vdd3-supply > + - vci-supply Shouldn't port be required? Not really clear in the binding doc, but in the driver it doesn't look like display data goes over spi. Rob > + > +examples: > + - | > + spi { > + reg = <0xf00 0x20>; Drop this or do 'spi@f00'. If it doesn't warn with W=1, it's only a matter of time. > + #address-cells = <1>; > + #size-cells = <0>; > + display@0 { > + compatible = "samsung,s6e63m0"; > + reg = <0>; > + reset-gpios = <&mp05 5 1>; > + vdd3-supply = <&ldo12_reg>; > + vci-supply = <&ldo11_reg>; > + spi-max-frequency = <1200000>; > + > + port { > + lcd_ep: endpoint { > + remote-endpoint = <&fimd_ep>; > + }; > + }; > + }; > + }; > + > +... > -- > 2.20.1 > _______________________________________________ dri-devel mailing list dri-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/dri-devel