From patchwork Fri Jul 5 16:42:10 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rob Herring X-Patchwork-Id: 168572 Delivered-To: patch@linaro.org Received: by 2002:a92:4782:0:0:0:0:0 with SMTP id e2csp3791527ilk; Fri, 5 Jul 2019 09:42:30 -0700 (PDT) X-Google-Smtp-Source: APXvYqzrK2Rf3SVLZSmgL6WL4fBcOasdl/a3REbBWn0XJftVvi1CEN0tE7sV/pdusOtM8U0XJbIw X-Received: by 2002:a63:1657:: with SMTP id 23mr6158376pgw.98.1562344949848; Fri, 05 Jul 2019 09:42:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562344949; cv=none; d=google.com; s=arc-20160816; b=qwchbIHda+kQ8Jjkg6q4tcJJJyQYGrZzdySRnQSwOVOksMA4m7SiDVNUp4OS4udYBJ Pb0uCEqJpc6dlPAQsFtMcrNQousAHygROg/JKXXD1KWoMecPdcVS9hSsSo6/KvNHWora V9Y0WCXWxh/aAVTdo38pHaooq5O3KGMJ76QGC/vSPguBnQ3oULa9CTmNGfugCEL/e5lP zh1EzVXXeu0e6C4m0TSbXdKw07Hgr9kYO3fZ+0p/Iwbv8X9R7tF2pkM0D1q8a48aoqu9 5mbxKQYdoRQwndbtMAcqezw7pRObMWmbsQNyF9h5YidaZVALNvyss5J7yJmxi6+tkZYe DMBw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=EsofIvvvlgyPGjRrCqOhd2B5EfQ76NdrYwJSPILmUYU=; b=UQXCLyivpgo0sxmshl0T1S5tYauCPd6QuYQ4P9o7HIm1TCaD1YH7VpZZt73QkfmqCe Ciu1chZH68WgJmaMnhhDhfXWqho6AAam2No/q2tMc0tf+mLUebq/umYSHO0TXbvQSEf0 bhyv02XrMW8NQrNtoZVaF4s9kZ5cAI1VXmPUoT8N+rH1+jg16p/vxFfc60y4cEKM+08r UnKdkwzd21UY5eeOa822GoIHVGb0NldX1tbv0dDyd7The9H5dm6R4m+Fv/TATWB49jPQ a3nY84BvA82Yq/3BLKbs/c9KqBFb9XSg87+WSgG9mW6jDBt3vIBqhcAr5tUnW55EIOn9 u2Pg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w2si9806821pgr.396.2019.07.05.09.42.29; Fri, 05 Jul 2019 09:42:29 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728610AbfGEQm3 (ORCPT + 8 others); Fri, 5 Jul 2019 12:42:29 -0400 Received: from mail-io1-f65.google.com ([209.85.166.65]:32880 "EHLO mail-io1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728606AbfGEQm1 (ORCPT ); Fri, 5 Jul 2019 12:42:27 -0400 Received: by mail-io1-f65.google.com with SMTP id z3so5402460iog.0; Fri, 05 Jul 2019 09:42:27 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=EsofIvvvlgyPGjRrCqOhd2B5EfQ76NdrYwJSPILmUYU=; b=l68kmPE5f51uPNzoC7MuOOjl8L1Y4fLjN+zPtU54en2+iejrlN//P3yf1E0FKqXPmO LL3A7cHFGkw8I5290Kf35fF4rLzhYg67CbOuuJAkV3IQUWRQUhQXjjJjL/xiIVwpStb9 zaRav6uflKrztshxiG2PTwV7M6x0x6YiMazZ3UjJPoVzhTFJl9oS/XvwirqI6rVYm9Mp /49hoRge4K9rx42hzeh+ZjGx3Trxxj+h/sDuoYwy/W49EklLrlEsd58KRw5vGzIOBikR gjZLLisKtsGGAkxlR2nV7iMFCtJG+wPt/pHVB5sO3nR6QxZ4KRrz/T79x3r2MJxem6LK kvFw== X-Gm-Message-State: APjAAAV33psm96twaWPoVhuBq9KI6blfEpFypVhP44V/JCB++H+0v/rb 3BU9BQt0zfB8OuS/ZmqRXA== X-Received: by 2002:a6b:dd18:: with SMTP id f24mr3652278ioc.97.1562344946800; Fri, 05 Jul 2019 09:42:26 -0700 (PDT) Received: from xps15.herring.priv ([64.188.179.252]) by smtp.googlemail.com with ESMTPSA id b8sm6878104ioj.16.2019.07.05.09.42.25 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Fri, 05 Jul 2019 09:42:25 -0700 (PDT) From: Rob Herring To: dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org Cc: linux-kernel@vger.kernel.org, Thierry Reding , Sam Ravnborg , Maxime Ripard , Laurent Pinchart , Yannick Fertre , Thierry Reding Subject: [PATCH v3 02/13] dt-bindings: display: Convert ampire, am-480272h3tmqw-t01h panel to DT schema Date: Fri, 5 Jul 2019 10:42:10 -0600 Message-Id: <20190705164221.4462-3-robh@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190705164221.4462-1-robh@kernel.org> References: <20190705164221.4462-1-robh@kernel.org> MIME-Version: 1.0 Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Convert the ampire,am-480272h3tmqw-t01h panel binding to DT schema. Cc: Yannick Fertre Cc: Thierry Reding Cc: Sam Ravnborg Cc: Laurent Pinchart Cc: dri-devel@lists.freedesktop.org Reviewed-by: Maxime Ripard Acked-by: Thierry Reding Signed-off-by: Rob Herring --- .../panel/ampire,am-480272h3tmqw-t01h.txt | 26 ------------ .../panel/ampire,am-480272h3tmqw-t01h.yaml | 42 +++++++++++++++++++ 2 files changed, 42 insertions(+), 26 deletions(-) delete mode 100644 Documentation/devicetree/bindings/display/panel/ampire,am-480272h3tmqw-t01h.txt create mode 100644 Documentation/devicetree/bindings/display/panel/ampire,am-480272h3tmqw-t01h.yaml -- 2.20.1 diff --git a/Documentation/devicetree/bindings/display/panel/ampire,am-480272h3tmqw-t01h.txt b/Documentation/devicetree/bindings/display/panel/ampire,am-480272h3tmqw-t01h.txt deleted file mode 100644 index 6812280cb109..000000000000 --- a/Documentation/devicetree/bindings/display/panel/ampire,am-480272h3tmqw-t01h.txt +++ /dev/null @@ -1,26 +0,0 @@ -Ampire AM-480272H3TMQW-T01H 4.3" WQVGA TFT LCD panel - -This binding is compatible with the simple-panel binding, which is specified -in simple-panel.txt in this directory. - -Required properties: -- compatible: should be "ampire,am-480272h3tmqw-t01h" - -Optional properties: -- power-supply: regulator to provide the supply voltage -- enable-gpios: GPIO pin to enable or disable the panel -- backlight: phandle of the backlight device attached to the panel - -Optional nodes: -- Video port for RGB input. - -Example: - panel_rgb: panel-rgb { - compatible = "ampire,am-480272h3tmqw-t01h"; - enable-gpios = <&gpioa 8 1>; - port { - panel_in_rgb: endpoint { - remote-endpoint = <&controller_out_rgb>; - }; - }; - }; diff --git a/Documentation/devicetree/bindings/display/panel/ampire,am-480272h3tmqw-t01h.yaml b/Documentation/devicetree/bindings/display/panel/ampire,am-480272h3tmqw-t01h.yaml new file mode 100644 index 000000000000..c6e33e7f36d0 --- /dev/null +++ b/Documentation/devicetree/bindings/display/panel/ampire,am-480272h3tmqw-t01h.yaml @@ -0,0 +1,42 @@ +# SPDX-License-Identifier: GPL-2.0 +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/display/panel/ampire,am-480272h3tmqw-t01h.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Ampire AM-480272H3TMQW-T01H 4.3" WQVGA TFT LCD panel + +maintainers: + - Yannick Fertre + - Thierry Reding + +allOf: + - $ref: panel-common.yaml# + +properties: + compatible: + const: ampire,am-480272h3tmqw-t01h + + power-supply: true + enable-gpios: true + backlight: true + port: true + +required: + - compatible + +additionalProperties: false + +examples: + - | + panel_rgb: panel { + compatible = "ampire,am-480272h3tmqw-t01h"; + enable-gpios = <&gpioa 8 1>; + port { + panel_in_rgb: endpoint { + remote-endpoint = <&controller_out_rgb>; + }; + }; + }; + +...