From patchwork Fri Jul 5 16:42:19 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: 168581 Delivered-To: patch@linaro.org Received: by 2002:a92:4782:0:0:0:0:0 with SMTP id e2csp3791823ilk; Fri, 5 Jul 2019 09:42:47 -0700 (PDT) X-Google-Smtp-Source: APXvYqxduuMrOixp7BZMWeZmTA9TmN3J8ImjUHrkYgcDI2wrNiXMOuQ+pewfffGWX9mBany/wQN0 X-Received: by 2002:a63:4104:: with SMTP id o4mr6726449pga.345.1562344967721; Fri, 05 Jul 2019 09:42:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562344967; cv=none; d=google.com; s=arc-20160816; b=1IMtQe6CJJbw0qkZfRlCGAdVxo2IML9vjafUEE5J7MjpPriKCd80HFshchHAtY7cOs C0lIRIyRg874to11yiOPfIZrQLu7unaF6rQtbFngUMERJyvbvT2ikrvldtMxr4tqn7d3 lyB4SvdSfINOWFjklrUAIl7cm6rgYordzFMlS8dF5Hj0lY4tdTP0tIClsnSzuEyjUFQ0 vYkjitdp6louq6+ValynZ2JGGahVvfUf9evtMLLmFQUND/cRAKjJMVk2N2KrV59kfsF4 KpEsarHaVnndmLwuGiqLyjE54XNy1qu1TuzccVb+1alWE17aaqXMJER985+C0AtFlY56 SHdg== 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=ywNw7rocvMeZhbhydO+vq5CnGPRGf1hwRfxBHk7L2K8=; b=Or2l8l3AGu/crNw6/wGuQkopM6IA9lYbuO8T4ArruXn8vgMC3Pwwc7PbmDYwnkMm9L tRH7m8WfOgYUN7L5VjD+xAW5kPMJDp09MwbVmYCvbYB0jkPnRL3OqD+svRikLFFdTfuj UEjC3Yp57r31dW5Q9ZiBghLW81Qs5qMq3iZDwFqGauKlNcFO+zwuW+YN7X0jMHMRNMQB xaKrxoDvO1c+esb0FjSnOFdl0lIAJbqYdGRCWL/LyM4+CafGwF5HqwC1tKzqUMUAPkpO yCLl9KDGAz5hVL1DMOikdYrkc34IZrXMbCxv06Fzr0HyQYtPc3wbNNXu4EIhn9UFiG8X og6Q== 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 z197si9760469pgz.267.2019.07.05.09.42.47 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 05 Jul 2019 09:42:47 -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 7F7836E514; Fri, 5 Jul 2019 16:42:45 +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 083FA6E513 for ; Fri, 5 Jul 2019 16:42:44 +0000 (UTC) Received: by mail-io1-f68.google.com with SMTP id o9so4773602iom.3 for ; Fri, 05 Jul 2019 09:42:44 -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=LabiQkmC1Rr/HV25LNsfRozq8YmiX5RtewiyO4nDttY=; b=Rlm9O9DHw8nsQgragLSaYkycZXmSea6yhxzFuCw+YY31UB7JmXvY4xnKkQn2Hj7dh+ q4wyom/Y8Pt4O4JA0PVlkXQWt+V9L/Vs/m6fTdHYR7lBCinQUpUUzxhsuTAisV1gV3uu 3uRqtzAEWe08qg2RYoytaukCdKbBY18zEw6LhFhI0H3VumfC489ZCFiBKjumPL5r26wV zwU1DMQB71u9CZJBNNeiNfk5q20YnSpydYympDB905PrS9gxBkhRkmXpOF3tWe3up6Uo mAKkizwUOztltOMtNiReQu3y1YYujM+vEujxnQOqSIPszs247YMbODs/QsOFvaTS99mt 3Twg== X-Gm-Message-State: APjAAAUqdU4fZNH6LY8zKNz+42ImFynXNKUvt7owrcqroYyTD1Um9Utw hKeaDGlTG8bpTiiXMS1hGpDyYaQ= X-Received: by 2002:a6b:c98c:: with SMTP id z134mr892385iof.276.1562344962954; Fri, 05 Jul 2019 09:42:42 -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.41 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Fri, 05 Jul 2019 09:42:42 -0700 (PDT) From: Rob Herring To: dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org Subject: [PATCH v3 11/13] dt-bindings: display: Convert mitsubishi, aa104xd12 panel to DT schema Date: Fri, 5 Jul 2019 10:42:19 -0600 Message-Id: <20190705164221.4462-12-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 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 mitsubishi,aa104xd12 LVDS panel binding to DT schema. Cc: Thierry Reding Cc: Sam Ravnborg Cc: Laurent Pinchart Reviewed-by: Maxime Ripard Signed-off-by: Rob Herring --- .../display/panel/mitsubishi,aa104xd12.txt | 47 ------------ .../display/panel/mitsubishi,aa104xd12.yaml | 75 +++++++++++++++++++ 2 files changed, 75 insertions(+), 47 deletions(-) delete mode 100644 Documentation/devicetree/bindings/display/panel/mitsubishi,aa104xd12.txt create mode 100644 Documentation/devicetree/bindings/display/panel/mitsubishi,aa104xd12.yaml diff --git a/Documentation/devicetree/bindings/display/panel/mitsubishi,aa104xd12.txt b/Documentation/devicetree/bindings/display/panel/mitsubishi,aa104xd12.txt deleted file mode 100644 index ced0121aed7d..000000000000 --- a/Documentation/devicetree/bindings/display/panel/mitsubishi,aa104xd12.txt +++ /dev/null @@ -1,47 +0,0 @@ -Mitsubishi AA204XD12 LVDS Display Panel -======================================= - -The AA104XD12 is a 10.4" XGA TFT-LCD display panel. - -These DT bindings follow the LVDS panel bindings defined in panel-lvds.txt -with the following device-specific properties. - - -Required properties: - -- compatible: Shall contain "mitsubishi,aa121td01" and "panel-lvds", in that - order. -- vcc-supply: Reference to the regulator powering the panel VCC pins. - - -Example -------- - -panel { - compatible = "mitsubishi,aa104xd12", "panel-lvds"; - vcc-supply = <&vcc_3v3>; - - width-mm = <210>; - height-mm = <158>; - - data-mapping = "jeida-24"; - - panel-timing { - /* 1024x768 @65Hz */ - clock-frequency = <65000000>; - hactive = <1024>; - vactive = <768>; - hsync-len = <136>; - hfront-porch = <20>; - hback-porch = <160>; - vfront-porch = <3>; - vback-porch = <29>; - vsync-len = <6>; - }; - - port { - panel_in: endpoint { - remote-endpoint = <&lvds_encoder>; - }; - }; -}; diff --git a/Documentation/devicetree/bindings/display/panel/mitsubishi,aa104xd12.yaml b/Documentation/devicetree/bindings/display/panel/mitsubishi,aa104xd12.yaml new file mode 100644 index 000000000000..b5e7ee230fa6 --- /dev/null +++ b/Documentation/devicetree/bindings/display/panel/mitsubishi,aa104xd12.yaml @@ -0,0 +1,75 @@ +# SPDX-License-Identifier: GPL-2.0 +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/display/panel/mitsubishi,aa104xd12.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Mitsubishi AA104XD12 10.4" XGA LVDS Display Panel + +maintainers: + - Laurent Pinchart + - Thierry Reding + +allOf: + - $ref: lvds.yaml# + +properties: + compatible: + items: + - const: mitsubishi,aa104xd12 + - {} # panel-lvds, but not listed here to avoid false select + + vcc-supply: + description: Reference to the regulator powering the panel VCC pins. + + data-mapping: + const: jeida-24 + + width-mm: + const: 210 + + height-mm: + const: 158 + + panel-timing: true + port: true + +additionalProperties: false + +required: + - compatible + - vcc-supply + +examples: + - |+ + + panel { + compatible = "mitsubishi,aa104xd12", "panel-lvds"; + vcc-supply = <&vcc_3v3>; + + width-mm = <210>; + height-mm = <158>; + + data-mapping = "jeida-24"; + + panel-timing { + /* 1024x768 @65Hz */ + clock-frequency = <65000000>; + hactive = <1024>; + vactive = <768>; + hsync-len = <136>; + hfront-porch = <20>; + hback-porch = <160>; + vfront-porch = <3>; + vback-porch = <29>; + vsync-len = <6>; + }; + + port { + panel_in: endpoint { + remote-endpoint = <&lvds_encoder>; + }; + }; + }; + +...