From patchwork Sun Mar 15 13:43:59 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Sam Ravnborg X-Patchwork-Id: 1255031 Return-Path: X-Original-To: incoming-dt@patchwork.ozlabs.org Delivered-To: patchwork-incoming-dt@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (no SPF record) smtp.mailfrom=vger.kernel.org (client-ip=209.132.180.67; helo=vger.kernel.org; envelope-from=devicetree-owner@vger.kernel.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=ravnborg.org Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20161025 header.b=aGT9u9Lw; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 48gLKN3b6Fz9sP7 for ; Mon, 16 Mar 2020 00:45:12 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728684AbgCONpM (ORCPT ); Sun, 15 Mar 2020 09:45:12 -0400 Received: from mail-lj1-f193.google.com ([209.85.208.193]:40927 "EHLO mail-lj1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728678AbgCONpL (ORCPT ); Sun, 15 Mar 2020 09:45:11 -0400 Received: by mail-lj1-f193.google.com with SMTP id 19so15583876ljj.7; Sun, 15 Mar 2020 06:45:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=XpTic8bHFV4I2QRBLLyv5Etu38BCHVfgf52KExnVTHY=; b=aGT9u9LwB7v2ZdTjUHmtOiQvrzOKN/N+YS1NEIbrIkZaK0KGfiNf4mE6vi6QL0JJQr lo4NjwMwCGnECd7symMBrYLtOjJN4+TiFLiW0Ipc3yfs/M2uiDsB2S+eACosjcMsp4XL wUUYjD6G+Bla06Q0QgOJlT+yibhJQlNO6yvOI81gn/uUtgzf/xk80DjO+GHNhsxOL67i eIMQLhvl+KbncWjiraiRQO9RKWdmJ3ihVq/qsSt0AxQeYIYqCNKNcSLLAGYK1kR6pWNa VjMUkMECbtqobX22JvYR9FDCypmp27L0+m3ARx/93vSntX6rJsq1H4TXReDdLiPBAGKS FP+w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=XpTic8bHFV4I2QRBLLyv5Etu38BCHVfgf52KExnVTHY=; b=o+AkDrPUW64cBruXup1N9RIFcbk3fiXTuY2uX175FiDeF9Dt2/Mxuf2KNE8wFHR6gi vmE4itpitgrE1Lc9MaB4I5VLOnhwMZInu2cr01W3biY1AriSwOXVtOFBpX7QrM1pTwlN EPIrBAsxkTrUB9AvWnIu7i6UE3EaaBmDBTxO+4Lap+7cuZUIJwLtiGCALB0SNcojORTk PHUvXFwNWZUXvLpn9+FTXHEPaLIJIpqbWWkMZjuPfEtUN/jWjEpMEInYjeoXDLBkhWu3 wgrwfcR0dpxdfYfW+MnXzFVVpVPXgBlheZ0DvS0rDwFnvYYTZbV7uX4qnAnkebhYDNOB sD3Q== X-Gm-Message-State: ANhLgQ34/E7OVJMza01FHFKPDlejxan2hvUNsN0aE/orwK2+5/6i/2xC MuzDV8kEaDB4zi6jEvzhN5g= X-Google-Smtp-Source: ADFU+vs7RfZvDNQqHBt03aZvYEYM1TFpw6pNdW4Vncu222rT0CwpTUFR2i865Gq0liUDqaX3wFXI4Q== X-Received: by 2002:a05:651c:288:: with SMTP id b8mr1882259ljo.98.1584279908314; Sun, 15 Mar 2020 06:45:08 -0700 (PDT) Received: from saturn.lan (18.158-248-194.customer.lyse.net. [158.248.194.18]) by smtp.gmail.com with ESMTPSA id a9sm23025212lfb.21.2020.03.15.06.45.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 15 Mar 2020 06:45:07 -0700 (PDT) From: Sam Ravnborg To: dri-devel@lists.freedesktop.org, Thierry Reding , Rob Herring , devicetree@vger.kernel.org Cc: Alexandre Courbot , Andrzej Hajda , Brian Masney , Chris Zhong , Douglas Anderson , Guido Gunther , Heiko Schocher , Nikolaus Schaller , Hoegeun Kwon , Jagan Teki , Jerry Han , Jonathan Bakker , Laurent Pinchart , Lin Huang , Linus Walleij , linux-spi@vger.kernel.org, Marco Franchi , Marek Belisko , Mark Brown , Maxime Ripard , Maxime Ripard , Nickey Yang , Paul Cercueil , Peter Rosin , Peter Ujfalusi , Purism Kernel Team , Robert Chiras , Sam Ravnborg , Sandeep Panda , Stefan Mavrodiev , Tomi Valkeinen , Tony Lindgren , Vinay Simha BN , Werner Johansson Subject: [PATCH v1 19/36] dt-bindings: display: convert rocktech, jh057n00900 to DT Schema Date: Sun, 15 Mar 2020 14:43:59 +0100 Message-Id: <20200315134416.16527-20-sam@ravnborg.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200315134416.16527-1-sam@ravnborg.org> References: <20200315134416.16527-1-sam@ravnborg.org> MIME-Version: 1.0 Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Signed-off-by: Sam Ravnborg Cc: "Guido Günther" Cc: Purism Kernel Team Cc: Thierry Reding Cc: Sam Ravnborg Reviewed-by: Guido Günther --- .../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>; + }; + }; + +...