From patchwork Mon Jun 24 21:56:36 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: 167652 Delivered-To: patch@linaro.org Received: by 2002:a92:4782:0:0:0:0:0 with SMTP id e2csp4733260ilk; Mon, 24 Jun 2019 14:58:59 -0700 (PDT) X-Google-Smtp-Source: APXvYqxMVGl/z3sshJQatd8f/xr4m63V66kxGWaNUGtQKzvEraDFI7m2t1w7aO/H+p/2+QOYRKhD X-Received: by 2002:a17:902:b186:: with SMTP id s6mr39687915plr.343.1561413538955; Mon, 24 Jun 2019 14:58:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561413538; cv=none; d=google.com; s=arc-20160816; b=o2fScAedwvmRx+SAYY3wruxKspx5V2QIs5Y1WmygYewUZkRk/AtKznPXlACwJUWFn5 g+QrtpWzDEDglKS0teF5/A4VQtv07tyCUZdzBaSJGprjWThB5RtBhid9bxWErtN5sqAT uHoBi9IrhV8t+ECGKfD+GgCWluX8pi/AzPqnus4pmJu809Mu3Qg23K/a3Cse3E99MeCp x/RATm0curKXKBRVpor3a3hxOLk38SNXoyRtF93WAJjihQdT6z4V6Kd3niDr5mKN4K9x vi36OHszNm7utizigO0Iask1ukbBf6kJNlEbaIaf6x9V2FU6/xnZ7wK+0NChmOEW/uSU WvEA== 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=d4VW41BoEtvnCGJnkqnDP6cTsur17FmX/SLHyxLyOkA=; b=bAuH50EPctQR8A4AlW8GZj7uNgvlTUkke67ret/BWgvRIuBAq4XFUA3k6ZlZIuzWu0 JRcNLw4PeveA9cs+54AvlxUNAB+cH7R7KXWO54YSTqFl5LzSDAU+dNJEuabSaHNujnj5 K7LlRt//wMfDoj1d33yx93H3fdj84gw1XW8Hvt8dpw1stoHUNYuF0pcUVsFDjwfh8m5I IBNKL28fom+JMS1ufBKpGN+kT31Up1bZaFb7MmA86+qC18eEPLufwIfYclkE+bM9dtW3 ydM/mz+k30nOqdC4tJvnewqGfv+2qr0aKZqEYL5tUGiEmI0rs4ucKKlWjCfGOQCBtzWT Fb4A== 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 2610:10:20:722:a800:ff:fe36:1795 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. [2610:10:20:722:a800:ff:fe36:1795]) by mx.google.com with ESMTPS id a94si630369pje.19.2019.06.24.14.58.58 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 24 Jun 2019 14:58:58 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 as permitted sender) client-ip=2610:10:20:722:a800:ff:fe36:1795; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 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 C9AFF89DD3; Mon, 24 Jun 2019 21:58:57 +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 1DE3E89DD3 for ; Mon, 24 Jun 2019 21:58:56 +0000 (UTC) Received: by mail-io1-f66.google.com with SMTP id w25so5015883ioc.8 for ; Mon, 24 Jun 2019 14:58:56 -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=ID9V3N/+8SxVffaUkEE/O3htUObL21XTrwW4Ch4Bw6U=; b=gYAlZx/Ri1aF1v2+wvd7B7LSOol3ByxX7Pqb/C/EiEyTTett53z+fMt1IX4+gmivvc IGIdcbK7ad24bU1PTlnnihigAI42HcYrDLvuo9Ko4lo4DjhpXlyuBP+mVXKYTEPRxaHi O6NEO9oNZQf47jU4wS9rM0ks0DeEEeMUJJSGlb76Et6LhQh0ZLaUQ7i5w4aFSCeIH1ye m1NDwZ5bEK78SwvzUSadsrX31Z4hmkOE8N2AuYzD7hKa8WCVeFb48nqaN4vMkxlgvTMi /XiPDAvAhq7ZRV2JBiID+dT+pu9r06DR8e5bWKwLp+0NFY2Iz6p5NAy93Tj3BUiM+GEV XTBg== X-Gm-Message-State: APjAAAXebaSMf8ldkxybKCwSnlhQJOPxMeYiV2+wa7PkFqK2S0hu2ppG jJANI4a9HZXyE1dPrv/2uYQ2yWU= X-Received: by 2002:a6b:f910:: with SMTP id j16mr17965933iog.256.1561413535021; Mon, 24 Jun 2019 14:58:55 -0700 (PDT) Received: from localhost.localdomain ([64.188.179.247]) by smtp.googlemail.com with ESMTPSA id l5sm14717301ioq.83.2019.06.24.14.58.53 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Mon, 24 Jun 2019 14:58:54 -0700 (PDT) From: Rob Herring To: dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org Subject: [PATCH v2 02/15] dt-bindings: display: Convert common panel bindings to DT schema Date: Mon, 24 Jun 2019 15:56:36 -0600 Message-Id: <20190624215649.8939-3-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, Thierry Reding , Laurent Pinchart , Thierry Reding , Sam Ravnborg Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Convert the common panel bindings to DT schema consolidating scattered definitions to a single schema file. The 'simple-panel' binding just a collection of properties and not a complete binding itself. All of the 'simple-panel' properties are covered by the panel-common.txt binding with the exception of the 'no-hpd' property, so add that to the schema. As there are lots of references to simple-panel.txt, just keep the file with a reference to common.yaml for now until all the bindings are converted. Cc: Thierry Reding Cc: Laurent Pinchart Cc: dri-devel@lists.freedesktop.org Acked-by: Sam Ravnborg Reviewed-by: Maxime Ripard Reviewed-by: Thierry Reding Signed-off-by: Rob Herring --- .../display/panel/arm,versatile-tft-panel.txt | 2 +- .../bindings/display/panel/panel-common.txt | 101 ------------ .../bindings/display/panel/panel-common.yaml | 149 ++++++++++++++++++ .../bindings/display/panel/panel.txt | 4 - .../bindings/display/panel/simple-panel.txt | 29 +--- 5 files changed, 151 insertions(+), 134 deletions(-) delete mode 100644 Documentation/devicetree/bindings/display/panel/panel-common.txt create mode 100644 Documentation/devicetree/bindings/display/panel/panel-common.yaml delete mode 100644 Documentation/devicetree/bindings/display/panel/panel.txt diff --git a/Documentation/devicetree/bindings/display/panel/arm,versatile-tft-panel.txt b/Documentation/devicetree/bindings/display/panel/arm,versatile-tft-panel.txt index 248141c3c7e3..0601a9e34703 100644 --- a/Documentation/devicetree/bindings/display/panel/arm,versatile-tft-panel.txt +++ b/Documentation/devicetree/bindings/display/panel/arm,versatile-tft-panel.txt @@ -10,7 +10,7 @@ Required properties: - compatible: should be "arm,versatile-tft-panel" Required subnodes: -- port: see display/panel/panel-common.txt, graph.txt +- port: see display/panel/panel-common.yaml, graph.txt Example: diff --git a/Documentation/devicetree/bindings/display/panel/panel-common.txt b/Documentation/devicetree/bindings/display/panel/panel-common.txt deleted file mode 100644 index 5d2519af4bb5..000000000000 --- a/Documentation/devicetree/bindings/display/panel/panel-common.txt +++ /dev/null @@ -1,101 +0,0 @@ -Common Properties for Display Panel -=================================== - -This document defines device tree properties common to several classes of -display panels. It doesn't constitue a device tree binding specification by -itself but is meant to be referenced by device tree bindings. - -When referenced from panel device tree bindings the properties defined in this -document are defined as follows. The panel device tree bindings are -responsible for defining whether each property is required or optional. - - -Descriptive Properties ----------------------- - -- width-mm, -- height-mm: The width-mm and height-mm specify the width and height of the - physical area where images are displayed. These properties are expressed in - millimeters and rounded to the closest unit. - -- label: The label property specifies a symbolic name for the panel as a - string suitable for use by humans. It typically contains a name inscribed on - the system (e.g. as an affixed label) or specified in the system's - documentation (e.g. in the user's manual). - - If no such name exists, and unless the property is mandatory according to - device tree bindings, it shall rather be omitted than constructed of - non-descriptive information. For instance an LCD panel in a system that - contains a single panel shall not be labelled "LCD" if that name is not - inscribed on the system or used in a descriptive fashion in system - documentation. - - -Display Timings ---------------- - -- panel-timing: Most display panels are restricted to a single resolution and - require specific display timings. The panel-timing subnode expresses those - timings as specified in the timing subnode section of the display timing - bindings defined in - Documentation/devicetree/bindings/display/panel/display-timing.txt. - - -Connectivity ------------- - -- ports: Panels receive video data through one or multiple connections. While - the nature of those connections is specific to the panel type, the - connectivity is expressed in a standard fashion using ports as specified in - the device graph bindings defined in - Documentation/devicetree/bindings/graph.txt. - -- ddc-i2c-bus: Some panels expose EDID information through an I2C-compatible - bus such as DDC2 or E-DDC. For such panels the ddc-i2c-bus contains a - phandle to the system I2C controller connected to that bus. - - -Control I/Os ------------- - -Many display panels can be controlled through pins driven by GPIOs. The nature -and timing of those control signals are device-specific and left for panel -device tree bindings to specify. The following GPIO specifiers can however be -used for panels that implement compatible control signals. - -- enable-gpios: Specifier for a GPIO connected to the panel enable control - signal. The enable signal is active high and enables operation of the panel. - This property can also be used for panels implementing an active low power - down signal, which is a negated version of the enable signal. Active low - enable signals (or active high power down signals) can be supported by - inverting the GPIO specifier polarity flag. - - Note that the enable signal control panel operation only and must not be - confused with a backlight enable signal. - -- reset-gpios: Specifier for a GPIO coonnected to the panel reset control - signal. The reset signal is active low and resets the panel internal logic - while active. Active high reset signals can be supported by inverting the - GPIO specifier polarity flag. - -Power ------ - -- power-supply: display panels require power to be supplied. While several - panels need more than one power supply with panel-specific constraints - governing the order and timings of the power supplies, in many cases a single - power supply is sufficient, either because the panel has a single power rail, - or because all its power rails can be driven by the same supply. In that case - the power-supply property specifies the supply powering the panel as a phandle - to a regulator. - -Backlight ---------- - -Most display panels include a backlight. Some of them also include a backlight -controller exposed through a control bus such as I2C or DSI. Others expose -backlight control through GPIO, PWM or other signals connected to an external -backlight controller. - -- backlight: For panels whose backlight is controlled by an external backlight - controller, this property contains a phandle that references the controller. diff --git a/Documentation/devicetree/bindings/display/panel/panel-common.yaml b/Documentation/devicetree/bindings/display/panel/panel-common.yaml new file mode 100644 index 000000000000..ef8d8cdfcede --- /dev/null +++ b/Documentation/devicetree/bindings/display/panel/panel-common.yaml @@ -0,0 +1,149 @@ +# SPDX-License-Identifier: GPL-2.0 +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/display/panel/panel-common.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Common Properties for Display Panels + +maintainers: + - Thierry Reding + - Laurent Pinchart + +description: | + This document defines device tree properties common to several classes of + display panels. It doesn't constitue a device tree binding specification by + itself but is meant to be referenced by device tree bindings. + + When referenced from panel device tree bindings the properties defined in this + document are defined as follows. The panel device tree bindings are + responsible for defining whether each property is required or optional. + +properties: + # Descriptive Properties + width-mm: + description: + Specifies the width of the physical area where images are displayed. This + property is expressed in millimeters and rounded to the closest unit. + + height-mm: + description: + Specifies the height of the physical area where images are displayed. This + property is expressed in millimeters and rounded to the closest unit. + + label: + description: | + The label property specifies a symbolic name for the panel as a + string suitable for use by humans. It typically contains a name inscribed + on the system (e.g. as an affixed label) or specified in the system's + documentation (e.g. in the user's manual). + + If no such name exists, and unless the property is mandatory according to + device tree bindings, it shall rather be omitted than constructed of + non-descriptive information. For instance an LCD panel in a system that + contains a single panel shall not be labelled "LCD" if that name is not + inscribed on the system or used in a descriptive fashion in system + documentation. + + rotation: + description: + Display rotation in degrees counter clockwise (0,90,180,270) + allOf: + - $ref: /schemas/types.yaml#/definitions/uint32 + - enum: [ 0, 90, 180, 270 ] + + # Display Timings + panel-timing: + type: object + description: + Most display panels are restricted to a single resolution and + require specific display timings. The panel-timing subnode expresses those + timings as specified in the timing subnode section of the display timing + bindings defined in + Documentation/devicetree/bindings/display/panel/display-timing.txt. + + # Connectivity + port: + type: object + + ports: + type: object + description: + Panels receive video data through one or multiple connections. While + the nature of those connections is specific to the panel type, the + connectivity is expressed in a standard fashion using ports as specified + in the device graph bindings defined in + Documentation/devicetree/bindings/graph.txt. + + ddc-i2c-bus: + $ref: /schemas/types.yaml#/definitions/phandle + description: + Some panels expose EDID information through an I2C-compatible + bus such as DDC2 or E-DDC. For such panels the ddc-i2c-bus contains a + phandle to the system I2C controller connected to that bus. + + no-hpd: + type: boolean + description: + This panel is supposed to communicate that it's ready via HPD + (hot plug detect) signal, but the signal isn't hooked up so we should + hardcode the max delay from the panel spec when powering up the panel. + + # Control I/Os + + # Many display panels can be controlled through pins driven by GPIOs. The nature + # and timing of those control signals are device-specific and left for panel + # device tree bindings to specify. The following GPIO specifiers can however be + # used for panels that implement compatible control signals. + + enable-gpios: + maxItems: 1 + description: | + Specifier for a GPIO connected to the panel enable control signal. The + enable signal is active high and enables operation of the panel. This + property can also be used for panels implementing an active low power down + signal, which is a negated version of the enable signal. Active low enable + signals (or active high power down signals) can be supported by inverting + the GPIO specifier polarity flag. + + Note that the enable signal control panel operation only and must not be + confused with a backlight enable signal. + + reset-gpios: + maxItems: 1 + description: + Specifier for a GPIO connected to the panel reset control signal. + The reset signal is active low and resets the panel internal logic + while active. Active high reset signals can be supported by inverting the + GPIO specifier polarity flag. + + # Power + power-supply: + description: + Display panels require power to be supplied. While several panels need + more than one power supply with panel-specific constraints governing the + order and timings of the power supplies, in many cases a single power + supply is sufficient, either because the panel has a single power rail, or + because all its power rails can be driven by the same supply. In that case + the power-supply property specifies the supply powering the panel as a + phandle to a regulator. + + # Backlight + + # Most display panels include a backlight. Some of them also include a backlight + # controller exposed through a control bus such as I2C or DSI. Others expose + # backlight control through GPIO, PWM or other signals connected to an external + # backlight controller. + + backlight: + $ref: /schemas/types.yaml#/definitions/phandle + description: + For panels whose backlight is controlled by an external backlight + controller, this property contains a phandle that references the + controller. + +dependencies: + width-mm: [ height-mm ] + height-mm: [ width-mm ] + +... diff --git a/Documentation/devicetree/bindings/display/panel/panel.txt b/Documentation/devicetree/bindings/display/panel/panel.txt deleted file mode 100644 index e2e6867852b8..000000000000 --- a/Documentation/devicetree/bindings/display/panel/panel.txt +++ /dev/null @@ -1,4 +0,0 @@ -Common display properties -------------------------- - -- rotation: Display rotation in degrees counter clockwise (0,90,180,270) diff --git a/Documentation/devicetree/bindings/display/panel/simple-panel.txt b/Documentation/devicetree/bindings/display/panel/simple-panel.txt index b2b872c710f2..e11208fb7da8 100644 --- a/Documentation/devicetree/bindings/display/panel/simple-panel.txt +++ b/Documentation/devicetree/bindings/display/panel/simple-panel.txt @@ -1,28 +1 @@ -Simple display panel -==================== - -panel node ----------- - -Required properties: -- power-supply: See panel-common.txt - -Optional properties: -- ddc-i2c-bus: phandle of an I2C controller used for DDC EDID probing -- enable-gpios: GPIO pin to enable or disable the panel -- backlight: phandle of the backlight device attached to the panel -- no-hpd: This panel is supposed to communicate that it's ready via HPD - (hot plug detect) signal, but the signal isn't hooked up so we should - hardcode the max delay from the panel spec when powering up the panel. - -Example: - - panel: panel { - compatible = "cptt,claa101wb01"; - ddc-i2c-bus = <&panelddc>; - - power-supply = <&vdd_pnl_reg>; - enable-gpios = <&gpio 90 0>; - - backlight = <&backlight>; - }; +See panel-common.yaml in this directory. 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>; + }; + }; + }; + +... From patchwork Mon Jun 24 21:56:41 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: 167665 Delivered-To: patch@linaro.org Received: by 2002:a92:4782:0:0:0:0:0 with SMTP id e2csp4733692ilk; Mon, 24 Jun 2019 14:59:39 -0700 (PDT) X-Google-Smtp-Source: APXvYqwB8V4avoekyTrG3LmUwXUx6qJV/lIebPdkaXuWKe95XLHmwsuu5IhOufjz1R4Lx6eHdQKV X-Received: by 2002:a17:902:694a:: with SMTP id k10mr76365963plt.255.1561413579228; Mon, 24 Jun 2019 14:59:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561413579; cv=none; d=google.com; s=arc-20160816; b=ruuuaHymeqKNpWgs/v+0A3vFDEFdqa4eCScBkEWlOWz38N+ejEU/bvtzRHHC/WPPWL 9MI9evb2eOY0ptcd3ryYsX6qpKiIZviiQn6DuIuW1Wo76qiwyhj68z5EGNTgyuMUOJqA pv+hm9NaskZVUXfB2IkbGaV0ylFQa/f41xUR5VvzvqgKcjZeHUpJTblgB7MXwxr9FOgX YEk/dni7fbJCeBLjS8EiRijTSQkqodKsIX2mKzHgJHPmXCai4pKuseQ3zuipJLw/wvbZ Z1wuVVJv0ZA9sTlRMy707b3nUnsETWwgy6yjbhVOwVcmMlOt2AGPmZtM9Q2V0dNE10Jx zhAQ== 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=d6wt0nGB4O0S8p8kd4JzvDnBLqtYrk0Lsmx5Cz17Xyc=; b=I56OrVLowerkMBHI99svi8pChHDj/81y2G/TE0/SEoTmf8jDUPlYPB8T22prckmb2c 95Y+Z1Ofvpd1mrhR5wN3/h09fhUjYVNUHsXvnPIK7vhGuZUmpJvnjIBJYHxU2imeUc7f OeDiJbszqpjJvn8sUaLyrYp4Xfvzdz9Lk6on6HtNX3sqhlmKiDB3lqknGHtgrEtGRvM2 dex2UbqsSpwol9IFD8RXl6nvuvDQeikM5cophiwJ1TdFHj94dRWYHVhKrnXnIYswvJOv SMwM1xpZB1Kt9J0DjeBEeLWrEv/cuq1GE9kU/+1ri9JCBpTak1afD3/5yO+OGh1XZP5X /dEA== 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 cl14si11728884plb.341.2019.06.24.14.59.38 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 24 Jun 2019 14:59:39 -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 5E85889E50; Mon, 24 Jun 2019 21:59:34 +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 19D0889E0E for ; Mon, 24 Jun 2019 21:59:04 +0000 (UTC) Received: by mail-io1-f66.google.com with SMTP id w25so5016607ioc.8 for ; Mon, 24 Jun 2019 14:59:04 -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=qxcMK+QpGg0slednYV4FulPMcMSYDpcVW7BBUR9mgVE=; b=Suu3e8rjsQG+3XVftyAT0PCu6GhdWpN801TLPw02e//HpcCdVCuzjDkmZ1xcSZrylw KCEzQcOf3XFyFOyfjcqqF48vV+81m30+IgolFMQOiPuc27Jrfr/xyT72pug0xtFYjWPC MUkhUQ3QOLR5bfiRvz/a7TslwTNEZkMYatnC4TTfygObU4FUEmOBmDfUtkHpGMqX6OU5 ImhqUNpbvfYeygu5se7VimrDAOkxIksunzapw00K4AoKQGegUKu0jELllGtYVXRDAv0q HBClXHtPLjgL2rgDEWDFth2ZvlHP5Wz6ZK5w/zced7a9CMyM5NsoSarU2hu1vDPbquoA 6png== X-Gm-Message-State: APjAAAUoijYeve7IoO3fPDPRcWoaLLCzpbedeFJiOHoapSrIVgywgndA j8havXhLLeeUAAUUcbL2aMG+4Tg= X-Received: by 2002:a5d:81c6:: with SMTP id t6mr483058iol.86.1561413543153; Mon, 24 Jun 2019 14:59:03 -0700 (PDT) Received: from localhost.localdomain ([64.188.179.247]) by smtp.googlemail.com with ESMTPSA id l5sm14717301ioq.83.2019.06.24.14.59.01 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Mon, 24 Jun 2019 14:59:02 -0700 (PDT) From: Rob Herring To: dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org Subject: [PATCH v2 07/15] dt-bindings: display: Convert pda, 91-00156-a0 panel to DT schema Date: Mon, 24 Jun 2019 15:56:41 -0600 Message-Id: <20190624215649.8939-8-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 , Thierry Reding , Sam Ravnborg , linux-kernel@vger.kernel.org, Laurent Pinchart Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Convert the pda,91-00156-a0 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 Reviewed-by: Maxime Ripard --- .../display/panel/pda,91-00156-a0.txt | 14 ----------- .../display/panel/pda,91-00156-a0.yaml | 25 +++++++++++++++++++ 2 files changed, 25 insertions(+), 14 deletions(-) delete mode 100644 Documentation/devicetree/bindings/display/panel/pda,91-00156-a0.txt create mode 100644 Documentation/devicetree/bindings/display/panel/pda,91-00156-a0.yaml diff --git a/Documentation/devicetree/bindings/display/panel/pda,91-00156-a0.txt b/Documentation/devicetree/bindings/display/panel/pda,91-00156-a0.txt deleted file mode 100644 index 1639fb17a9f0..000000000000 --- a/Documentation/devicetree/bindings/display/panel/pda,91-00156-a0.txt +++ /dev/null @@ -1,14 +0,0 @@ -PDA 91-00156-A0 5.0" WVGA TFT LCD panel - -Required properties: -- compatible: should be "pda,91-00156-a0" -- power-supply: this panel requires a single power supply. A phandle to a -regulator needs to be specified here. Compatible with panel-common binding which -is specified in the panel-common.txt in this directory. -- backlight: this panel's backlight is controlled by an external backlight -controller. A phandle to this controller needs to be specified here. -Compatible with panel-common binding which is specified in the panel-common.txt -in this directory. - -This binding is compatible with the simple-panel binding, which is specified -in simple-panel.txt in this directory. diff --git a/Documentation/devicetree/bindings/display/panel/pda,91-00156-a0.yaml b/Documentation/devicetree/bindings/display/panel/pda,91-00156-a0.yaml new file mode 100644 index 000000000000..cea5bcb3c455 --- /dev/null +++ b/Documentation/devicetree/bindings/display/panel/pda,91-00156-a0.yaml @@ -0,0 +1,25 @@ +# SPDX-License-Identifier: GPL-2.0 +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/display/panel/pda,91-00156-a0.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: PDA 91-00156-A0 5.0" WVGA TFT LCD panel + +maintainers: + - Cristian Birsan + - Thierry Reding + +allOf: + - $ref: panel-common.yaml# + +properties: + compatible: + const: pda,91-00156-a0 + +required: + - compatible + - power-supply + - backlight + +... From patchwork Mon Jun 24 21:56:42 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: 167660 Delivered-To: patch@linaro.org Received: by 2002:a92:4782:0:0:0:0:0 with SMTP id e2csp4733538ilk; Mon, 24 Jun 2019 14:59:24 -0700 (PDT) X-Google-Smtp-Source: APXvYqy6RwQmyebTJYugAZvOcJ2HTGUjxwHNWDgD1raXbTQpobQJBrIuVtRENs+pdOO2WMTOlAxh X-Received: by 2002:a63:e057:: with SMTP id n23mr8612348pgj.228.1561413564341; Mon, 24 Jun 2019 14:59:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561413564; cv=none; d=google.com; s=arc-20160816; b=XFI1G9QU4r0HyplG3pe3So4R2AIHlyMkwgTUnjiVTe2lU0QyKcHq7Ld/834xaym1qD wjC5wBh6AHWpK/nsE+8WPQZvbCWWAKYHzbNQuLQr8zrPdCipJOFlAA0stVNAwfo8DttO mfn8cHagd5JBEXIoYS9bGg4oiJpL+QM+lXQU3/5lHHfvho7LE6KrciLq4kxKYQ3ipnqi uYLuuoCpvrSEvYBbTSt+kZ9iX9C0RNaqH2YLnmfq2nGB9wgWJ5es3rspy7XisrIwpj9O wbW2G7df/7L+FDSO121yFvtzNeJflo8LkWCeAZCsXd2MxEkk5zt1l1GQr/EbykyopVmv IPEA== 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=WG84it6khxH5FDY8foDGKL6c7JEftHFVhqekO37ta+0=; b=0TYo6guztDqOWuC3hqmvizs1/rhHEzXJC/lZP/IB2ZeCugjo9HpX1g6LdRUfU6EFmH adZN9WETWvSeG+SL7cUbD15xLbdK3R6SxlvNEeHDDKidT2aPRGB2JbQgls+tTYUJp7xu 2Fi5d/Y1aJalf4tqsp4+UUGCNJf4hT6+nn4chqDvjUfGyLtbDufZVszAnIpr8vhOK3tQ YS2E+twmuCXrkPwRpCxQcrPcfz3dsxH0/kSdvVGMBw+NAClDw2XuP4SkzbDFdwzkz1+V 9y4TfWL3qxc+NbDTXriy4rTL0cpOux+tYlEvo+HEqHZkKB/nhXk9kDr1FQqUnWO6bbR6 5iMQ== 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 f89si685578pje.50.2019.06.24.14.59.24 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 24 Jun 2019 14:59:24 -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 2D61089BFF; Mon, 24 Jun 2019 21:59:20 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-io1-f53.google.com (mail-io1-f53.google.com [209.85.166.53]) by gabe.freedesktop.org (Postfix) with ESMTPS id D2FAE89E19 for ; Mon, 24 Jun 2019 21:59:05 +0000 (UTC) Received: by mail-io1-f53.google.com with SMTP id e3so556692ioc.12 for ; Mon, 24 Jun 2019 14:59:05 -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=R/fpUXKWtDJj+GJwzBf/JS6ePSNt/GKGHFOmlkyQ0hI=; b=jIPaV/2n8g9W4i8QOmkQK9GaF5wPNOum7de7fwEgKI0E6CNq6zzBZiq2B7zMNC/U+h glHRz6iADvVZn0ApFR66yHw3UXCOUz+MzD5xDM1OOUWtiS+Q/0CtPKE3Ft3YngP1zE7A Rxa+UFrJPZPqOll+kYApPIM23wFOlhyTo2p7at8Efmh8j0LHWQlLThsVdP/XlqXKCDlH gFBxDhSc2bUwrYNzDYo+ZgQ6IuQWubZZBqJ1rtXkHt+kOWR/dtAVckZ36AX02k4Ky6P8 x7BwYCPSEaJBh9mfEUHOBaTUncnCIn1RQCmpYclDA+E2NKBu4WtS+GygE6ppDrZ4mkUJ KLuA== X-Gm-Message-State: APjAAAUkDlPYdM9TPyMQXRujh+WRTRG3731xKKl0g0hfieoDYEUovTvz hgcgiFGv4uXarfqJ8FvaKIsSKiw= X-Received: by 2002:a5d:9703:: with SMTP id h3mr23310932iol.152.1561413544689; Mon, 24 Jun 2019 14:59:04 -0700 (PDT) Received: from localhost.localdomain ([64.188.179.247]) by smtp.googlemail.com with ESMTPSA id l5sm14717301ioq.83.2019.06.24.14.59.03 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Mon, 24 Jun 2019 14:59:04 -0700 (PDT) From: Rob Herring To: dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org Subject: [PATCH v2 08/15] dt-bindings: display: Convert raspberrypi, 7inch-touchscreen panel to DT schema Date: Mon, 24 Jun 2019 15:56:42 -0600 Message-Id: <20190624215649.8939-9-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, Thierry Reding , Laurent Pinchart , Sam Ravnborg Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Convert the raspberrypi,7inch-touchscreen panel binding to DT schema. Cc: Eric Anholt Cc: Thierry Reding Cc: Sam Ravnborg Cc: Maxime Ripard Cc: Laurent Pinchart Cc: dri-devel@lists.freedesktop.org Signed-off-by: Rob Herring --- .../panel/raspberrypi,7inch-touchscreen.txt | 49 ------------- .../panel/raspberrypi,7inch-touchscreen.yaml | 71 +++++++++++++++++++ 2 files changed, 71 insertions(+), 49 deletions(-) delete mode 100644 Documentation/devicetree/bindings/display/panel/raspberrypi,7inch-touchscreen.txt create mode 100644 Documentation/devicetree/bindings/display/panel/raspberrypi,7inch-touchscreen.yaml diff --git a/Documentation/devicetree/bindings/display/panel/raspberrypi,7inch-touchscreen.txt b/Documentation/devicetree/bindings/display/panel/raspberrypi,7inch-touchscreen.txt deleted file mode 100644 index e9e19c059260..000000000000 --- a/Documentation/devicetree/bindings/display/panel/raspberrypi,7inch-touchscreen.txt +++ /dev/null @@ -1,49 +0,0 @@ -This binding covers the official 7" (800x480) Raspberry Pi touchscreen -panel. - -This DSI panel contains: - -- TC358762 DSI->DPI bridge -- Atmel microcontroller on I2C for power sequencing the DSI bridge and - controlling backlight -- Touchscreen controller on I2C for touch input - -and this binding covers the DSI display parts but not its touch input. - -Required properties: -- compatible: Must be "raspberrypi,7inch-touchscreen-panel" -- reg: Must be "45" -- port: See panel-common.txt - -Example: - -dsi1: dsi@7e700000 { - #address-cells = <1>; - #size-cells = <0>; - <...> - - port { - dsi_out_port: endpoint { - remote-endpoint = <&panel_dsi_port>; - }; - }; -}; - -i2c_dsi: i2c { - compatible = "i2c-gpio"; - #address-cells = <1>; - #size-cells = <0>; - gpios = <&gpio 28 0 - &gpio 29 0>; - - lcd@45 { - compatible = "raspberrypi,7inch-touchscreen-panel"; - reg = <0x45>; - - port { - panel_dsi_port: endpoint { - remote-endpoint = <&dsi_out_port>; - }; - }; - }; -}; diff --git a/Documentation/devicetree/bindings/display/panel/raspberrypi,7inch-touchscreen.yaml b/Documentation/devicetree/bindings/display/panel/raspberrypi,7inch-touchscreen.yaml new file mode 100644 index 000000000000..22a083f7bc8e --- /dev/null +++ b/Documentation/devicetree/bindings/display/panel/raspberrypi,7inch-touchscreen.yaml @@ -0,0 +1,71 @@ +# SPDX-License-Identifier: GPL-2.0 +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/display/panel/raspberrypi,7inch-touchscreen.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: The official 7" (800x480) Raspberry Pi touchscreen + +maintainers: + - Eric Anholt + - Thierry Reding + +description: |+ + This DSI panel contains: + + - TC358762 DSI->DPI bridge + - Atmel microcontroller on I2C for power sequencing the DSI bridge and + controlling backlight + - Touchscreen controller on I2C for touch input + + and this binding covers the DSI display parts but not its touch input. + +properties: + compatible: + const: raspberrypi,7inch-touchscreen-panel + + reg: + const: 0x45 + + port: true + +required: + - compatible + - reg + - port + +additionalProperties: false + +examples: + - |+ + dsi1: dsi { + #address-cells = <1>; + #size-cells = <0>; + + port { + dsi_out_port: endpoint { + remote-endpoint = <&panel_dsi_port>; + }; + }; + }; + + i2c_dsi: i2c { + compatible = "i2c-gpio"; + #address-cells = <1>; + #size-cells = <0>; + scl-gpios = <&gpio 28 0>; + sda-gpios = <&gpio 29 0>; + + lcd@45 { + compatible = "raspberrypi,7inch-touchscreen-panel"; + reg = <0x45>; + + port { + panel_dsi_port: endpoint { + remote-endpoint = <&dsi_out_port>; + }; + }; + }; + }; + +... From patchwork Mon Jun 24 21:56:44 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: 167664 Delivered-To: patch@linaro.org Received: by 2002:a92:4782:0:0:0:0:0 with SMTP id e2csp4733657ilk; Mon, 24 Jun 2019 14:59:35 -0700 (PDT) X-Google-Smtp-Source: APXvYqy7iBveGG9WZFESuZqTUaI/C+DjMC5nt792Zjaf3D5eGkdu9hUNiAOJoF2Ci0q2z7NqnH2F X-Received: by 2002:a63:570c:: with SMTP id l12mr7943987pgb.25.1561413575373; Mon, 24 Jun 2019 14:59:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561413575; cv=none; d=google.com; s=arc-20160816; b=R/u7p2kYp1XX2XL8dxvd6ZcWbT/qhNVTlvYEBot1r/mfUrhbgOBrLPTSKkAU+85mSA 3I8nH3uU46fPgDCGLmhjtvKu+7l+SEC72AjgAgjJu6KBqf8oQLfN511GcyjqxznvzMaa Kv3ghacZ65SOk3B+pINsIXSh19b5U/ocfdXpjZaWmpLe51+KNMS77AtiNL1c+GB8F3vz G1EFWjQOIpnZ8iFDFWx/MFk8dDUc6tFLBdt8jysd8h4yvPTc8nrT6Y/D1fnbSzCAtQ8l f51p8ITcx4VnLLc4BNyvJc6NfHE/8QW0+kiGRK/wmgikJuTh0kUI3yFQlrxJduZr2OIV WOFA== 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=eEq2VcJ7eepR1CHyDJPWW+LZBnAVnkUNvQmw7UDOfkA=; b=SgO2E841vXJ/6AGsWQ0rSF2KPZ75TsQa+O7TLO91AOtc7LFv91tw/5k5911GHPtWN7 5i3P8w8GGb7gEvnyJIufbOfvU4SYfTiP0w0KilVrKTOuYu5VJv4wuTIkTyGUg52wzD11 h7xQ0DxuN6QlVyKmdbvLTAyarktYkDDSk7Q4Uf2i6I1M4gzh0ijml3XWTHJxFINzUFSd JujYrqm97ySVfniNkLbU1nXlM0ry83lJXuIKvxSx2/5Sy4FJm6sZzML2Es27u/joe/YK l/2u+ceIy+Q/yA51/vrGR977gJpI5UzAVvtGll124ghbS3Ove2utf28XGqbhEnGxaKi3 SLCw== 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 j9si10541369pgq.555.2019.06.24.14.59.35 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 24 Jun 2019 14:59:35 -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 D719789E3F; Mon, 24 Jun 2019 21:59:32 +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 4A1DD89E1B for ; Mon, 24 Jun 2019 21:59:08 +0000 (UTC) Received: by mail-io1-f68.google.com with SMTP id r185so751210iod.6 for ; Mon, 24 Jun 2019 14:59:08 -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=mwUOQlLuJ3XhE9Np0zOsuYiPvKJ0VZzFo8+UtVJgieA=; b=oLqlPkTqTL99iXig72A59y2BnQUbRTXOaK6b/cyAh9cHJ1lmIfplgSHzrXkGfP0D3p F+aVAUnB2ddQPLgVAjJqT6wYFhciiH7dGob5yGAbASz3/VUslKCX1w4gpkaOdOaRrmv/ YK0W8Axmu8Hqdg2+VhhzsaAEIFMMNTw6zAe2oP/Wf2aLPK6vfiwdg9gwgVG/v1FkEZLb 8cbZPYPkrCoEgAfo28UXQw561NDzm7TC0+ynifliU+QUaPJM3is79FT7el8xUJDLm4nO TW9uM8zlb8FX0pYTwJiB8MQPtwuy94otVcWQhx3Hx84U1FE9zpqRXu3ECgAkk36e7jG6 rjKg== X-Gm-Message-State: APjAAAXNB7xZe3bPTCryMeMzAXopH/MQSKFOmMeDfavAktst6A39CEw/ PYI7jYqiaUOFPfN+BajV1pVQd7c= X-Received: by 2002:a6b:7d49:: with SMTP id d9mr1606554ioq.50.1561413547310; Mon, 24 Jun 2019 14:59:07 -0700 (PDT) Received: from localhost.localdomain ([64.188.179.247]) by smtp.googlemail.com with ESMTPSA id l5sm14717301ioq.83.2019.06.24.14.59.05 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Mon, 24 Jun 2019 14:59:06 -0700 (PDT) From: Rob Herring To: dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org Subject: [PATCH v2 10/15] dt-bindings: display: Convert tpo, tpg110 panel to DT schema Date: Mon, 24 Jun 2019 15:56:44 -0600 Message-Id: <20190624215649.8939-11-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, Thierry Reding , Laurent Pinchart , Sam Ravnborg Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Convert the tpo,tpg110 panel binding to DT schema. Cc: Linus Walleij Cc: Thierry Reding Cc: Sam Ravnborg Cc: Maxime Ripard Cc: Laurent Pinchart Cc: dri-devel@lists.freedesktop.org Signed-off-by: Rob Herring --- .../bindings/display/panel/tpo,tpg110.txt | 70 ------------ .../bindings/display/panel/tpo,tpg110.yaml | 101 ++++++++++++++++++ 2 files changed, 101 insertions(+), 70 deletions(-) delete mode 100644 Documentation/devicetree/bindings/display/panel/tpo,tpg110.txt create mode 100644 Documentation/devicetree/bindings/display/panel/tpo,tpg110.yaml diff --git a/Documentation/devicetree/bindings/display/panel/tpo,tpg110.txt b/Documentation/devicetree/bindings/display/panel/tpo,tpg110.txt deleted file mode 100644 index 40f3d7c713bb..000000000000 --- a/Documentation/devicetree/bindings/display/panel/tpo,tpg110.txt +++ /dev/null @@ -1,70 +0,0 @@ -TPO TPG110 Panel -================ - -This panel driver is a component that acts as an intermediary -between an RGB output and a variety of panels. The panel -driver is strapped up in electronics to the desired resolution -and other properties, and has a control interface over 3WIRE -SPI. By talking to the TPG110 over SPI, the strapped properties -can be discovered and the hardware is therefore mostly -self-describing. - - +--------+ -SPI -> | TPO | -> physical display -RGB -> | TPG110 | - +--------+ - -If some electrical strap or alternate resolution is desired, -this can be set up by taking software control of the display -over the SPI interface. The interface can also adjust -for properties of the display such as gamma correction and -certain electrical driving levels. - -The TPG110 does not know the physical dimensions of the panel -connected, so this needs to be specified in the device tree. - -It requires a GPIO line for control of its reset line. - -The serial protocol has line names that resemble I2C but the -protocol is not I2C but 3WIRE SPI. - -Required properties: -- compatible : one of: - "ste,nomadik-nhk15-display", "tpo,tpg110" - "tpo,tpg110" -- grestb-gpios : panel reset GPIO -- width-mm : see display/panel/panel-common.txt -- height-mm : see display/panel/panel-common.txt - -The device needs to be a child of an SPI bus, see -spi/spi-bus.txt. The SPI child must set the following -properties: -- spi-3wire -- spi-max-frequency = <3000000>; -as these are characteristics of this device. - -The device node can contain one 'port' child node with one child -'endpoint' node, according to the bindings defined in -media/video-interfaces.txt. This node should describe panel's video bus. - -Example -------- - -panel: display@0 { - compatible = "tpo,tpg110"; - reg = <0>; - spi-3wire; - /* 320 ns min period ~= 3 MHz */ - spi-max-frequency = <3000000>; - /* Width and height from data sheet */ - width-mm = <116>; - height-mm = <87>; - grestb-gpios = <&foo_gpio 5 GPIO_ACTIVE_LOW>; - backlight = <&bl>; - - port { - nomadik_clcd_panel: endpoint { - remote-endpoint = <&foo>; - }; - }; -}; diff --git a/Documentation/devicetree/bindings/display/panel/tpo,tpg110.yaml b/Documentation/devicetree/bindings/display/panel/tpo,tpg110.yaml new file mode 100644 index 000000000000..a51660b73f28 --- /dev/null +++ b/Documentation/devicetree/bindings/display/panel/tpo,tpg110.yaml @@ -0,0 +1,101 @@ +# SPDX-License-Identifier: GPL-2.0 +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/display/panel/tpo,tpg110.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: TPO TPG110 Panel + +maintainers: + - Linus Walleij + - Thierry Reding + +description: |+ + This panel driver is a component that acts as an intermediary + between an RGB output and a variety of panels. The panel + driver is strapped up in electronics to the desired resolution + and other properties, and has a control interface over 3WIRE + SPI. By talking to the TPG110 over SPI, the strapped properties + can be discovered and the hardware is therefore mostly + self-describing. + + +--------+ + SPI -> | TPO | -> physical display + RGB -> | TPG110 | + +--------+ + + If some electrical strap or alternate resolution is desired, + this can be set up by taking software control of the display + over the SPI interface. The interface can also adjust + for properties of the display such as gamma correction and + certain electrical driving levels. + + The TPG110 does not know the physical dimensions of the panel + connected, so this needs to be specified in the device tree. + + It requires a GPIO line for control of its reset line. + + The serial protocol has line names that resemble I2C but the + protocol is not I2C but 3WIRE SPI. + + +allOf: + - $ref: panel-common.yaml# + +properties: + compatible: + oneOf: + - items: + - enum: + - ste,nomadik-nhk15-display + - const: tpo,tpg110 + - const: tpo,tpg110 + + reg: true + + grestb-gpios: + maxItems: 1 + description: panel reset GPIO + + spi-3wire: true + + spi-max-frequency: + const: 3000000 + +required: + - compatible + - reg + - grestb-gpios + - width-mm + - height-mm + - spi-3wire + - spi-max-frequency + - port + +examples: + - |+ + spi { + #address-cells = <1>; + #size-cells = <0>; + + panel: display@0 { + compatible = "tpo,tpg110"; + reg = <0>; + spi-3wire; + /* 320 ns min period ~= 3 MHz */ + spi-max-frequency = <3000000>; + /* Width and height from data sheet */ + width-mm = <116>; + height-mm = <87>; + grestb-gpios = <&foo_gpio 5 1>; + backlight = <&bl>; + + port { + nomadik_clcd_panel: endpoint { + remote-endpoint = <&foo>; + }; + }; + }; + }; + +... From patchwork Mon Jun 24 21:56:49 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: 167662 Delivered-To: patch@linaro.org Received: by 2002:a92:4782:0:0:0:0:0 with SMTP id e2csp4733554ilk; Mon, 24 Jun 2019 14:59:26 -0700 (PDT) X-Google-Smtp-Source: APXvYqyNNaLUKtmyINfQEdkfQh9dEhifIMncZhdsj2git7vIb/4SKBIHG//nqQkvt4gXgWyxYjgN X-Received: by 2002:a17:902:e58b:: with SMTP id cl11mr128226506plb.24.1561413565951; Mon, 24 Jun 2019 14:59:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561413565; cv=none; d=google.com; s=arc-20160816; b=oRpl9DqXL2fjGBIoMaQGU/tBgwQ07tz9+5YdPj2BhEtQ+gDE7YZc2GfJxfWYlH07E0 YUiHGIWb1c/VvxHRQ2EH88y+Zxp5eOyYzfX10ftQQrJztTTunIvJwzDqLA2AZfWlW/++ lrxHSTW1OsC97GZtnarazr+/7FYgw6CaAIwTzefXANWiiz5abLE3853ZNB4juYG78+9D xlcWKEe26Vq1UahRqpIDwfDbH/sSysjZDCoTmhWaQAxeltf/da8UAcvr2lxrQ6UlhQRb Nfh3Q+MqEMAxYcHILiu8wda8Qld8OFFMMbBVo7vBMTbhv0qstWZzIugBIsXyMItfsP3l tSnw== 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=C0fhF/HHmpDyka0Wd6VE1RdzpDQP/WKIgjv5u9+0wVQ=; b=cvwQD3erxb+gVxqmvOhwCySPoIq7Jv5nsgZxcbk5t2rEctCcAueGbECl78fcnpdXj7 10w05tWHFHDFihc3rWmCcs9UrKmVwl2ZF58B2KTDOWaT/ho6+WAO1W51+MSUDsBgvTLv yF40d8taC/zmp3/m500CVtrp7TezzSvvmKQfTT7V55tY/ESKMuQkB7yJSpiL6v4gF0H7 XfKxUWWXpc2sI+bDXRPRKskC47nkYYf1fYynVorRZXyONt9pNHnxr91rbt4IrhbjUR6k ra0p4yNiv0VaKu7bWLqxL1AWCTH6fO2PRCWIm1pIIyX3GdzL2Zi3vIeqhkCRkMuwAWg1 gxBw== 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 a7si11020363pga.381.2019.06.24.14.59.25 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 24 Jun 2019 14:59:25 -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 45D8089DD8; Mon, 24 Jun 2019 21:59:20 +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 287228924A for ; Mon, 24 Jun 2019 21:59:16 +0000 (UTC) Received: by mail-io1-f68.google.com with SMTP id h6so956ioh.3 for ; Mon, 24 Jun 2019 14:59:16 -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=yESbo+i10idiBFWz3etXGo6XCmb8EOHmWEtPPGEz5fg=; b=DDP7nOBOPk/wzN4GOt9+CQT8RZ2k5aVaat3GdIgwuXy3oll9Tl6h/Ui5I5qm9iW+M8 ff9/pkb2R6fSH7heJBq4GimLlOpbExsdwxm/S9v9U++bu28tR4P8EbhvFfyz7dILkpZT 8YngerKSnLTFvP0Erhz+ppz/1aeKSoVkcjl49+0PxAhBSY2UX0D3w6jGXxWtRlTvnceC b5M/G8YlBGA5FROCfHubR6zpRll0gR9pTX0P77su2HFdpT4YI5vWK0yBLOE+upX6Vva3 dAopE+bsNVVCCJxsanUSQG+Pq0uTosRMJFQr94PC0FgqYOZfzYxwPsdquQr5ydw3aiRn WAPQ== X-Gm-Message-State: APjAAAUesgq+BQw0+U2q/uTGc65K/khelrz76XSxQWBetsxVBoUL+kZp AKwau32lPhX+lf4LLkKBR/dEuMA= X-Received: by 2002:a6b:4e08:: with SMTP id c8mr33071155iob.217.1561413554728; Mon, 24 Jun 2019 14:59:14 -0700 (PDT) Received: from localhost.localdomain ([64.188.179.247]) by smtp.googlemail.com with ESMTPSA id l5sm14717301ioq.83.2019.06.24.14.59.13 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Mon, 24 Jun 2019 14:59:14 -0700 (PDT) From: Rob Herring To: dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org Subject: [PATCH v2 15/15] dt-bindings: display: Convert sgd, gktw70sdae4se panel to DT schema Date: Mon, 24 Jun 2019 15:56:49 -0600 Message-Id: <20190624215649.8939-16-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: Neil Armstrong , Maxime Ripard , linux-kernel@vger.kernel.org, Thierry Reding , Laurent Pinchart , Sam Ravnborg Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Convert the sgd,gktw70sdae4se LVDS panel binding to DT schema. Cc: Neil Armstrong Cc: Thierry Reding Cc: Sam Ravnborg Cc: Maxime Ripard Cc: Laurent Pinchart Signed-off-by: Rob Herring --- .../display/panel/sgd,gktw70sdae4se.txt | 41 ------------ .../display/panel/sgd,gktw70sdae4se.yaml | 63 +++++++++++++++++++ 2 files changed, 63 insertions(+), 41 deletions(-) delete mode 100644 Documentation/devicetree/bindings/display/panel/sgd,gktw70sdae4se.txt create mode 100644 Documentation/devicetree/bindings/display/panel/sgd,gktw70sdae4se.yaml diff --git a/Documentation/devicetree/bindings/display/panel/sgd,gktw70sdae4se.txt b/Documentation/devicetree/bindings/display/panel/sgd,gktw70sdae4se.txt deleted file mode 100644 index d06644b555bd..000000000000 --- a/Documentation/devicetree/bindings/display/panel/sgd,gktw70sdae4se.txt +++ /dev/null @@ -1,41 +0,0 @@ -Solomon Goldentek Display GKTW70SDAE4SE LVDS Display Panel -========================================================== - -The GKTW70SDAE4SE is a 7" WVGA 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 "sgd,gktw70sdae4se" and "panel-lvds", in that order. - -Example -------- - -panel { - compatible = "sgd,gktw70sdae4se", "panel-lvds"; - - width-mm = <153>; - height-mm = <86>; - - data-mapping = "jeida-18"; - - panel-timing { - clock-frequency = <32000000>; - hactive = <800>; - vactive = <480>; - hback-porch = <39>; - hfront-porch = <39>; - vback-porch = <29>; - vfront-porch = <13>; - hsync-len = <47>; - vsync-len = <2>; - }; - - port { - panel_in: endpoint { - remote-endpoint = <&lvds_encoder>; - }; - }; -}; diff --git a/Documentation/devicetree/bindings/display/panel/sgd,gktw70sdae4se.yaml b/Documentation/devicetree/bindings/display/panel/sgd,gktw70sdae4se.yaml new file mode 100644 index 000000000000..487283288cb0 --- /dev/null +++ b/Documentation/devicetree/bindings/display/panel/sgd,gktw70sdae4se.yaml @@ -0,0 +1,63 @@ +# SPDX-License-Identifier: GPL-2.0 +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/display/panel/sgd,gktw70sdae4se.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Solomon Goldentek Display GKTW70SDAE4SE 7" WVGA LVDS Display Panel + +maintainers: + - Neil Armstrong + - Thierry Reding + +allOf: + - $ref: lvds.yaml# + +properties: + compatible: + items: + - const: sgd,gktw70sdae4se + - {} # panel-lvds, but not listed here to avoid false select + + data-mapping: + const: jeida-18 + + width-mm: + const: 153 + + height-mm: + const: 86 + +required: + - compatible + +examples: + - |+ + panel { + compatible = "sgd,gktw70sdae4se", "panel-lvds"; + + width-mm = <153>; + height-mm = <86>; + + data-mapping = "jeida-18"; + + panel-timing { + clock-frequency = <32000000>; + hactive = <800>; + vactive = <480>; + hback-porch = <39>; + hfront-porch = <39>; + vback-porch = <29>; + vfront-porch = <13>; + hsync-len = <47>; + vsync-len = <2>; + }; + + port { + panel_in: endpoint { + remote-endpoint = <&lvds_encoder>; + }; + }; + }; + +...