From patchwork Mon Jun 24 21:56:37 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: 167654 Delivered-To: patch@linaro.org Received: by 2002:a92:4782:0:0:0:0:0 with SMTP id e2csp4733318ilk; Mon, 24 Jun 2019 14:59:04 -0700 (PDT) X-Google-Smtp-Source: APXvYqxSQDqZsuDVuDmtUoFWCH3NA6zbW/G3H5cBCxvGojtl6A9+ifIyVrOxEtpmUCPT8LiSACkm X-Received: by 2002:a17:90a:22c6:: with SMTP id s64mr27842943pjc.5.1561413544129; Mon, 24 Jun 2019 14:59:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561413544; cv=none; d=google.com; s=arc-20160816; b=arM2bQu3tm7sGh1xW4MAlS4ZFvIFviW+Wq89wTBqgAcUBkUzgBuHL26hHiT4j9ik2p xdhGiGXhTHuq+6eG7wMPc6oiIZfjl5HOTadR/FdsJygwUPdyK9+SXbdLl2lwqrhkHH/b aq6RfmDtXIwcAjZTItch3uIieKSpjJXw6gs/I+Zz1JZJJu+3847wCE/5p3Pk7dEZU1nH WT+im4VclTceAlyCIgKRjy47DiKafiVw5EBlGIVWwKVYYytnoYOYwPkcmc0AaA8St8kl qdjUkHyvPdUlAN1s7MZ21VtzpZ+7WQhNKMIe8n8ICSW5N5mE87de7J2WgdAnYHurhAdk EMUw== 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=joAP+b/TzHs0fxnA6c1yFNzTuUOqsagJEhpW/Cc5THY=; b=qrhjBibUecTWJVd5lIfOYsoQXJGVl/Mx4yAZYh5a3/AAQ4Bhn23Fdj7Jjp0UD0IlWD zGJ/hssW4plyBGP3Dhab7rdfs3v0OhoCs8+GVf9+J1iOxQOa7WrTcUMAQQ5/1wBq8zgU 6EcIkF6nZszT7suZ6wza+yJsOYVekA+EVLwhzqw/rNJbG83WKraOkNoVmp5C6VOGWzn7 sxPgJbDb+eJGQUNWUJjBEV/nj0qhdNIrJMdTHLZMLbNNiJnBgZWFNHIayazNG52eXGL6 sjRVMSUkwV9zh1tayzhn3acEjSuSkaWpoJuzppmhpgiExt3/0s3xYQxfxjvGQfSzziwv EIyQ== 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 u1si649869pjv.86.2019.06.24.14.59.03 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 24 Jun 2019 14:59:04 -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 E2ECE89E0C; Mon, 24 Jun 2019 21:59:00 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-io1-f68.google.com (mail-io1-f68.google.com [209.85.166.68]) by gabe.freedesktop.org (Postfix) with ESMTPS id 108EC89E05 for ; Mon, 24 Jun 2019 21:58:58 +0000 (UTC) Received: by mail-io1-f68.google.com with SMTP id k8so2469698iot.1 for ; Mon, 24 Jun 2019 14:58:58 -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=nEv0+8xQn2q12KmQY6hX9JsRklQdRSEg/iQzdO9Zz4uIGrJCWY+Kp6s1ru1c6mJH1E 59a5pBVyOqSP+JhrPwm7daakXw+ILacZ93bpvYGcNH44Ft+og7DknuVLedkBJZgq4GAf nPsvDgDsg3fUH3ERv84xCyvNXfjtM9PwIzt1NnLdeyku6NtUSM252jTXI7tLTOQirFG8 OTSFYAMPyoOvSyKQqZQU3s7+EQQjFqOS+9KFi2tqShV2uezxQoXVO+YwLUR5vrM6rMd6 F57bGQlwtrchzoe9l3mMooADoV4zWYPpbsHLEyiEzCzgc2tsq+iqVpiq/teUj7GOOUfL 3bsQ== X-Gm-Message-State: APjAAAWOZ5Lcd0PGH4DGWJdfOdAkwdec88Ub4nfakTlltqCfiLryWpid 2vif6eX/FDGfEAqOd2SD5RQzJQU= X-Received: by 2002:a6b:f00c:: with SMTP id w12mr4134606ioc.280.1561413536983; Mon, 24 Jun 2019 14:58:56 -0700 (PDT) Received: from localhost.localdomain ([64.188.179.247]) by smtp.googlemail.com with ESMTPSA id l5sm14717301ioq.83.2019.06.24.14.58.55 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Mon, 24 Jun 2019 14:58:56 -0700 (PDT) From: Rob Herring To: dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org Subject: [PATCH v2 03/15] dt-bindings: display: Convert ampire, am-480272h3tmqw-t01h panel to DT schema Date: Mon, 24 Jun 2019 15:56:37 -0600 Message-Id: <20190624215649.8939-4-robh@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190624215649.8939-1-robh@kernel.org> References: <20190624215649.8939-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 , linux-kernel@vger.kernel.org, Yannick Fertre , Thierry Reding , Laurent Pinchart , Thierry Reding , Sam Ravnborg Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" 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 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>; + }; + }; + }; + +...