From patchwork Wed Jun 19 21:51:54 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Rob Herring \(Arm\)" X-Patchwork-Id: 167277 Delivered-To: patch@linaro.org Received: by 2002:a92:4782:0:0:0:0:0 with SMTP id e2csp1236607ilk; Wed, 19 Jun 2019 14:52:10 -0700 (PDT) X-Google-Smtp-Source: APXvYqz6snZyqmQ/eRgvxl9MS4bTPySyI0UoEcRpfyGS71Px5d0v/B03/ZW4xKPPs1pHmZlS7FhU X-Received: by 2002:a17:902:24d:: with SMTP id 71mr125024814plc.166.1560981130684; Wed, 19 Jun 2019 14:52:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560981130; cv=none; d=google.com; s=arc-20160816; b=CJNic7jMoVQatJnhmzsqnw9Q1JrkmnZNbCFcaDPWwR/pFpvXzgZTkcaE5Brt4+jMq2 d1ffJMWMo2Q699l2RZzygpKStecTkIo6qzZ6IbyXRxqoEWBOKtAiaStSmOYFgX1e9nby CT0gjUDXJ24NPqxRtoIqdQ3/iDsUMhcujmPTGFkgu3VUZlpyO0ylHXri1XmGrl6wKaT9 h43lkOLp4dzCQGviW6QFPyXi/HwYJKudopAC7D3PTFwU5s36a7T4WMs5C7yThHEO66SE oUTYXLoGMXI/VbRvzfCKPtN061m3BW5Av5b+qo23ub8r+jMUkQC1K6nYai6skJ3/pkNz jp2Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:cc:list-subscribe :list-help:list-post:list-archive:list-unsubscribe:list-id :precedence:mime-version:references:in-reply-to:message-id:date :subject:to:from:delivered-to; bh=Mcfiriqk2GXaZ+QreKzQh4/LdLS115EXGtqdXV9x44c=; b=YTIbG2LNnE6nMh0o8NuJSpl/K1einFQWoRjDaYiwyKJlNCjhfOhw4uzGx23W0Iv+CH S708fDL179bFfBsnCCt+aGf8BuwzFNWpNf00TqHEO4+AqnzecBecwGb0MyQGVcDprn0o PJwvFwcgWnbp37tFKEww2Qpujcfd7iDQ3nd4okrJhWW0f+CNxGbfNXLuvyg+KtBxRmA2 QpSJJjmQ0flla+yYLGb1PT7f+2k6m8Aso3UZKtk+Ayl8RkqiF+T+KQrxVHlCiMvOXcjR eTrirJKjAXripeOWZAJniCytAczPuEWnsimNZQMOZ23O1tkfvHcvAS75f8WyilD5m+yc I7JQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from gabe.freedesktop.org (gabe.freedesktop.org. [131.252.210.177]) by mx.google.com with ESMTPS id j5si102160pgi.181.2019.06.19.14.52.10 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 19 Jun 2019 14:52:10 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) client-ip=131.252.210.177; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id B67966E47F; Wed, 19 Jun 2019 21:52:06 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-io1-f66.google.com (mail-io1-f66.google.com [209.85.166.66]) by gabe.freedesktop.org (Postfix) with ESMTPS id 891156E47B for ; Wed, 19 Jun 2019 21:52:02 +0000 (UTC) Received: by mail-io1-f66.google.com with SMTP id j6so226029ioa.5 for ; Wed, 19 Jun 2019 14:52:02 -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=/7RNl0V1WoARVRD/RxLj0SbJgldmEVIr2syT8aiqqBI=; b=sAuIYzhrwQDWmKd0SXl5dJTCqLVwsoLAcXjpPcPWSBdKdXgf6yNqd+Ib4PsuSjMqvT Q3jcggjRe0mujOinybSLRh+yvd2R8HwTMldZl8E7aoU0WqGToc0WNsdvCywJZwm1bUgD VAKkWEBf+Hs0hskRKP0mRbyUmNcKMhExsG6qFKRKZqdB6zruavTJrVH/jvnDzSn3YXd/ oGsuVSJggKfYLYjJMlq8MpaP0hFCORZOOMHIWTGKMQcPkRjrXA9fh0CytNUnMUz2dic9 z2N0BwJfGTXeTQGtWICzpIEZfSzf3jXPlaErg4Dcst69beMR1GWhDb0Xl38cHHoZW48I R87g== X-Gm-Message-State: APjAAAUfWuuiYpZEuUYrm7s153d4fJxoGjwes89HkxBMITcy8jL8IcGc /N4jyuqIeLGdVD0mqRYsC4/T+v0= X-Received: by 2002:a5d:94d0:: with SMTP id y16mr42777142ior.123.1560981121583; Wed, 19 Jun 2019 14:52:01 -0700 (PDT) Received: from localhost.localdomain ([64.188.179.247]) by smtp.googlemail.com with ESMTPSA id e84sm37754698iof.39.2019.06.19.14.52.00 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Wed, 19 Jun 2019 14:52:01 -0700 (PDT) From: Rob Herring To: dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org Subject: [RFC PATCH 2/4] dt-bindings: display: Convert ampire, am-480272h3tmqw-t01h panel to DT schema Date: Wed, 19 Jun 2019 15:51:54 -0600 Message-Id: <20190619215156.27795-2-robh@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190619215156.27795-1-robh@kernel.org> References: <20190619215156.27795-1-robh@kernel.org> MIME-Version: 1.0 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Maxime Ripard , Thierry Reding , Sam Ravnborg , linux-kernel@vger.kernel.org, Laurent Pinchart Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Convert the ampire,am-480272h3tmqw-t01h panel binding to DT schema. Cc: Thierry Reding Cc: Sam Ravnborg Cc: Maxime Ripard Cc: Laurent Pinchart Cc: dri-devel@lists.freedesktop.org Signed-off-by: Rob Herring --- .../panel/ampire,am-480272h3tmqw-t01h.txt | 26 ------------ .../panel/ampire,am-480272h3tmqw-t01h.yaml | 41 +++++++++++++++++++ 2 files changed, 41 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 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..cc2f6ec6ebf6 --- /dev/null +++ b/Documentation/devicetree/bindings/display/panel/ampire,am-480272h3tmqw-t01h.yaml @@ -0,0 +1,41 @@ +# 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: + - 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>; + }; + }; + }; + +...