From patchwork Sun Mar 15 13:43:42 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sam Ravnborg X-Patchwork-Id: 203300 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.6 required=3.0 tests=DKIM_INVALID,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH, MAILING_LIST_MULTI, SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 47A87C10DCE for ; Sun, 15 Mar 2020 13:44:36 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 16CA920575 for ; Sun, 15 Mar 2020 13:44:36 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="Oqq5zZmQ" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726498AbgCONof (ORCPT ); Sun, 15 Mar 2020 09:44:35 -0400 Received: from mail-lj1-f196.google.com ([209.85.208.196]:33613 "EHLO mail-lj1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728634AbgCONof (ORCPT ); Sun, 15 Mar 2020 09:44:35 -0400 Received: by mail-lj1-f196.google.com with SMTP id f13so15622071ljp.0; Sun, 15 Mar 2020 06:44:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=X45tw5KJlXhhJ3R6ynp7V7JRLgh1AOjgAQ5sYiJA7gQ=; b=Oqq5zZmQwYobC/AnUgTbv+2yNqZC1ysfOc2s7Dq7jJeMNanIhWjon9tWa5pfztJ6Oy Pej2RybnxI+89G9uHBa5IkXk6CoAIE/puDgRbN4dc3gybEtjgASgzlhLXnxUkEg0N53g jQkIaV4mdCElNhUzuuB1FR8JWCm8miXnIcYViF/mUf+gziC95xg6kXReV9Lx4NYnRMs5 A6OfsMYAdo36YXPL913Pb/T2v3A1vCVSEDCufLgZM8jA9Lj0wSarOW5f4eT8/GmzkkJ4 I81/N2rLrQxHi7Ren4MnSl5o1/9CHex0yrqCyUS74kwQsglYxMu2soNbKK/M2VHfol5A P5Xg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=X45tw5KJlXhhJ3R6ynp7V7JRLgh1AOjgAQ5sYiJA7gQ=; b=n21JYe9qLqKc57O0DKIWoqIbfmnD5ZVVsumZkpSuUnrMIfWll/tJ4NyhExECW3CuPJ J6KhsBmgz2BnfjSxK2fAHCR4RujOwFaZkUW2kBvwZR4Q0V4YXV3Eh+fnUU/mIZeVFM+0 I6eJ3powKB/0xAi6iJqzUGlugmmn7VswoS+z2ZdpW/h6UVmeBxBXyd6Q1pD7rIG89Cei J04wDugByqaO/PJAMwHZ/j1mb6SyDhxWj1nABInCWmYebqVqtcJP6e2J5d1jAbXC1I+m FMC8oJdWB+iDpdEibzXeKiWZ6dR768PKRnsr8INuMSOXIucHpQGpiPRqkQyLffU6mGkc cRbA== X-Gm-Message-State: ANhLgQ2jTvM16DpLkmAPnM2xDUnXw9JqBOzSwsMpAdqadvF5dsXLef+T HqWvaOlN49X12Ix70wVymtk= X-Google-Smtp-Source: ADFU+vvKezVrr5pKhPKFDDiDBtGVr/h70AHssvhC8VNZHgZJoJYzPcWqdWCvDfcTSWr33npk2S7GtA== X-Received: by 2002:a2e:3002:: with SMTP id w2mr10976729ljw.82.1584279872839; Sun, 15 Mar 2020 06:44:32 -0700 (PDT) Received: from saturn.lan (18.158-248-194.customer.lyse.net. [158.248.194.18]) by smtp.gmail.com with ESMTPSA id a9sm23025212lfb.21.2020.03.15.06.44.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 15 Mar 2020 06:44:32 -0700 (PDT) From: Sam Ravnborg To: dri-devel@lists.freedesktop.org, Thierry Reding , Rob Herring , devicetree@vger.kernel.org Cc: Alexandre Courbot , Andrzej Hajda , Brian Masney , Chris Zhong , Douglas Anderson , Guido Gunther , Heiko Schocher , Nikolaus Schaller , Hoegeun Kwon , Jagan Teki , Jerry Han , Jonathan Bakker , Laurent Pinchart , Lin Huang , Linus Walleij , linux-spi@vger.kernel.org, Marco Franchi , Marek Belisko , Mark Brown , Maxime Ripard , Maxime Ripard , Nickey Yang , Paul Cercueil , Peter Rosin , Peter Ujfalusi , Purism Kernel Team , Robert Chiras , Sam Ravnborg , Sandeep Panda , Stefan Mavrodiev , Tomi Valkeinen , Tony Lindgren , Vinay Simha BN , Werner Johansson Subject: [PATCH v1 02/36] dt-bindings: spi: support non-spi bindings as SPI slaves Date: Sun, 15 Mar 2020 14:43:42 +0100 Message-Id: <20200315134416.16527-3-sam@ravnborg.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200315134416.16527-1-sam@ravnborg.org> References: <20200315134416.16527-1-sam@ravnborg.org> MIME-Version: 1.0 Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Independent bindings can be SPI slaves which for example is the case for several panel bindings. Move SPI slave properties to spi-slave.yaml so the independent SPI slave bindings can include spi-slave.yaml rather than duplicating the properties. Signed-off-by: Sam Ravnborg Cc: Maxime Ripard Cc: Rob Herring Cc: Mark Brown Cc: linux-spi@vger.kernel.org --- .../bindings/spi/spi-controller.yaml | 63 +------------- .../devicetree/bindings/spi/spi-slave.yaml | 83 +++++++++++++++++++ 2 files changed, 86 insertions(+), 60 deletions(-) create mode 100644 Documentation/devicetree/bindings/spi/spi-slave.yaml diff --git a/Documentation/devicetree/bindings/spi/spi-controller.yaml b/Documentation/devicetree/bindings/spi/spi-controller.yaml index 1e0ca6ccf64b..99531c8d10dd 100644 --- a/Documentation/devicetree/bindings/spi/spi-controller.yaml +++ b/Documentation/devicetree/bindings/spi/spi-controller.yaml @@ -67,71 +67,14 @@ patternProperties: "^.*@[0-9a-f]+$": type: object + allOf: + - $ref: spi-slave.yaml# + properties: compatible: description: Compatible of the SPI device. - reg: - minimum: 0 - maximum: 256 - description: - Chip select used by the device. - - spi-3wire: - $ref: /schemas/types.yaml#/definitions/flag - description: - The device requires 3-wire mode. - - spi-cpha: - $ref: /schemas/types.yaml#/definitions/flag - description: - The device requires shifted clock phase (CPHA) mode. - - spi-cpol: - $ref: /schemas/types.yaml#/definitions/flag - description: - The device requires inverse clock polarity (CPOL) mode. - - spi-cs-high: - $ref: /schemas/types.yaml#/definitions/flag - description: - The device requires the chip select active high. - - spi-lsb-first: - $ref: /schemas/types.yaml#/definitions/flag - description: - The device requires the LSB first mode. - - spi-max-frequency: - $ref: /schemas/types.yaml#/definitions/uint32 - description: - Maximum SPI clocking speed of the device in Hz. - - spi-rx-bus-width: - allOf: - - $ref: /schemas/types.yaml#/definitions/uint32 - - enum: [ 1, 2, 4, 8 ] - - default: 1 - description: - Bus width to the SPI bus used for MISO. - - spi-rx-delay-us: - description: - Delay, in microseconds, after a read transfer. - - spi-tx-bus-width: - allOf: - - $ref: /schemas/types.yaml#/definitions/uint32 - - enum: [ 1, 2, 4, 8 ] - - default: 1 - description: - Bus width to the SPI bus used for MOSI. - - spi-tx-delay-us: - description: - Delay, in microseconds, after a write transfer. - required: - compatible - reg diff --git a/Documentation/devicetree/bindings/spi/spi-slave.yaml b/Documentation/devicetree/bindings/spi/spi-slave.yaml new file mode 100644 index 000000000000..fa50d9dfab41 --- /dev/null +++ b/Documentation/devicetree/bindings/spi/spi-slave.yaml @@ -0,0 +1,83 @@ +# SPDX-License-Identifier: GPL-2.0 +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/spi/spi-slave.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: SPI slave generic binding + +maintainers: + - Mark Brown + +description: | + This document defines device tree properties common to SPI slaves. + It doesn't constitue a device tree binding specification by + itself but is meant to be referenced by device tree bindings. + + When referenced from device tree bindings the properties defined in this + document are defined as follows. The device tree bindings are responsible + for defining whether each property is required or optional. + +properties: + + reg: + minimum: 0 + maximum: 256 + description: + Chip select used by the device. + + spi-3wire: + $ref: /schemas/types.yaml#/definitions/flag + description: + The device requires 3-wire mode. + + spi-cpha: + $ref: /schemas/types.yaml#/definitions/flag + description: + The device requires shifted clock phase (CPHA) mode. + + spi-cpol: + $ref: /schemas/types.yaml#/definitions/flag + description: + The device requires inverse clock polarity (CPOL) mode. + + spi-cs-high: + $ref: /schemas/types.yaml#/definitions/flag + description: + The device requires the chip select active high. + + spi-lsb-first: + $ref: /schemas/types.yaml#/definitions/flag + description: + The device requires the LSB first mode. + + spi-max-frequency: + $ref: /schemas/types.yaml#/definitions/uint32 + description: + Maximum SPI clocking speed of the device in Hz. + + spi-rx-bus-width: + allOf: + - $ref: /schemas/types.yaml#/definitions/uint32 + - enum: [ 1, 2, 4, 8 ] + - default: 1 + description: + Bus width to the SPI bus used for MISO. + + spi-rx-delay-us: + description: + Delay, in microseconds, after a read transfer. + + spi-tx-bus-width: + allOf: + - $ref: /schemas/types.yaml#/definitions/uint32 + - enum: [ 1, 2, 4, 8 ] + - default: 1 + description: + Bus width to the SPI bus used for MOSI. + + spi-tx-delay-us: + description: + Delay, in microseconds, after a write transfer. + +... From patchwork Sun Mar 15 13:43:44 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sam Ravnborg X-Patchwork-Id: 203299 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.6 required=3.0 tests=DKIM_INVALID,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH, MAILING_LIST_MULTI, SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 83658C2BB1D for ; Sun, 15 Mar 2020 13:44:41 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 5AB4D206BE for ; Sun, 15 Mar 2020 13:44:41 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="fm/YHgYq" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728647AbgCONol (ORCPT ); Sun, 15 Mar 2020 09:44:41 -0400 Received: from mail-lf1-f65.google.com ([209.85.167.65]:33741 "EHLO mail-lf1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728643AbgCONok (ORCPT ); Sun, 15 Mar 2020 09:44:40 -0400 Received: by mail-lf1-f65.google.com with SMTP id c20so11745367lfb.0; Sun, 15 Mar 2020 06:44:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=C9SsIXb80tx1XgE4QnEZlqaCxjB5IA7rL4pD0MP0x+E=; b=fm/YHgYqGltGK7GE1wbGY7G8zo4Ns0vW+iU7MUUX5G2g9lBIU6erjBD9k0egBK3Qew fl4A1fRxvOeYzHUaevzlUjY/CHHDcfr23RYzMS8kqSNgVlzb42Nexg/R5i7SLTlPhG3i b6wpkipTvQupy3cSYX5bpwmfRkrOVjFQpz18z+kA/sKAj6xV2OFina1wqSALEPBHaP2Y CQY80hqeEHQYylOcffvPeyftA5GfosbNh1ZeSaaEdpGAQN0sZZix4uABB+p+YWR8Ev1T Z1VHRukdseG8fsVZbM0DRFvijkD7duIFuiCTwHM4xOP5Ec3dq/FF6MejPV9zTtjj+ZyU nPyA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=C9SsIXb80tx1XgE4QnEZlqaCxjB5IA7rL4pD0MP0x+E=; b=E8zSxI/+xPriQGzqIYiia9lrsSdRkP9cjd7qUF3yikOgLVZe5JieAhPGuLkYv11/0c sXWhSFkWlGyl3oNQ+Ru9F9rz2XiD/a93ojZ+S+DuCAVU/W1rDnb/L7rYoSm+Gq1DdnlA Cjcb8zZGDfiikzovoh9FzK7T+h2sDpM1jm9lD6iVuMeJ4RTbuwxtW7/SzKHYX9zN/B8Y SnbpfqWrGDp0RNYA9eo/cmt4J75pE3uy7t2F5k0iX0XT+TbHQN8Dj4v6WKIROu6PDXH5 gAoutad6+XrHFqtPqUxESlj8Ax86rAq0qHi0c8yvC/uuOTxtq33z8qDkDUn3BgPrOeSB L9PQ== X-Gm-Message-State: ANhLgQ1o/rIScxelA2LWJzcUp8J5a3rZ8Te1ht0PZ34le+myo3XB+u7Q U2nFF+rEPTpN193l8sMvMNs= X-Google-Smtp-Source: ADFU+vsmUIw0h+Jwxkxf146YRyd9fkTD5JMB5Hpegdo28MUyCENYV8foz/uamg8NsejFR3yfyJtcXg== X-Received: by 2002:a19:ca46:: with SMTP id h6mr2077077lfj.108.1584279876898; Sun, 15 Mar 2020 06:44:36 -0700 (PDT) Received: from saturn.lan (18.158-248-194.customer.lyse.net. [158.248.194.18]) by smtp.gmail.com with ESMTPSA id a9sm23025212lfb.21.2020.03.15.06.44.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 15 Mar 2020 06:44:36 -0700 (PDT) From: Sam Ravnborg To: dri-devel@lists.freedesktop.org, Thierry Reding , Rob Herring , devicetree@vger.kernel.org Cc: Alexandre Courbot , Andrzej Hajda , Brian Masney , Chris Zhong , Douglas Anderson , Guido Gunther , Heiko Schocher , Nikolaus Schaller , Hoegeun Kwon , Jagan Teki , Jerry Han , Jonathan Bakker , Laurent Pinchart , Lin Huang , Linus Walleij , linux-spi@vger.kernel.org, Marco Franchi , Marek Belisko , Mark Brown , Maxime Ripard , Maxime Ripard , Nickey Yang , Paul Cercueil , Peter Rosin , Peter Ujfalusi , Purism Kernel Team , Robert Chiras , Sam Ravnborg , Sandeep Panda , Stefan Mavrodiev , Tomi Valkeinen , Tony Lindgren , Vinay Simha BN , Werner Johansson Subject: [PATCH v1 04/36] dt-bindings: display: convert arm, versatile-tft-panel to DT Schema Date: Sun, 15 Mar 2020 14:43:44 +0100 Message-Id: <20200315134416.16527-5-sam@ravnborg.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200315134416.16527-1-sam@ravnborg.org> References: <20200315134416.16527-1-sam@ravnborg.org> MIME-Version: 1.0 Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Signed-off-by: Sam Ravnborg Cc: Linus Walleij Cc: Thierry Reding Cc: Sam Ravnborg --- .../display/panel/arm,versatile-tft-panel.txt | 31 ----------- .../panel/arm,versatile-tft-panel.yaml | 51 +++++++++++++++++++ 2 files changed, 51 insertions(+), 31 deletions(-) delete mode 100644 Documentation/devicetree/bindings/display/panel/arm,versatile-tft-panel.txt create mode 100644 Documentation/devicetree/bindings/display/panel/arm,versatile-tft-panel.yaml diff --git a/Documentation/devicetree/bindings/display/panel/arm,versatile-tft-panel.txt b/Documentation/devicetree/bindings/display/panel/arm,versatile-tft-panel.txt deleted file mode 100644 index 0601a9e34703..000000000000 --- a/Documentation/devicetree/bindings/display/panel/arm,versatile-tft-panel.txt +++ /dev/null @@ -1,31 +0,0 @@ -ARM Versatile TFT Panels - -These panels are connected to the daughterboards found on the -ARM Versatile reference designs. - -This device node must appear as a child to a "syscon"-compatible -node. - -Required properties: -- compatible: should be "arm,versatile-tft-panel" - -Required subnodes: -- port: see display/panel/panel-common.yaml, graph.txt - - -Example: - -sysreg@0 { - compatible = "arm,versatile-sysreg", "syscon", "simple-mfd"; - reg = <0x00000 0x1000>; - - panel: display@0 { - compatible = "arm,versatile-tft-panel"; - - port { - panel_in: endpoint { - remote-endpoint = <&foo>; - }; - }; - }; -}; diff --git a/Documentation/devicetree/bindings/display/panel/arm,versatile-tft-panel.yaml b/Documentation/devicetree/bindings/display/panel/arm,versatile-tft-panel.yaml new file mode 100644 index 000000000000..8ad7305887b4 --- /dev/null +++ b/Documentation/devicetree/bindings/display/panel/arm,versatile-tft-panel.yaml @@ -0,0 +1,51 @@ +# SPDX-License-Identifier: GPL-2.0 +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/display/panel/arm,versatile-tft-panel.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: ARM Versatile TFT Panels + +maintainers: + - Linus Walleij + +description: | + These panels are connected to the daughterboards found on the + ARM Versatile reference designs. + + This device node must appear as a child to a "syscon"-compatible + node. + +allOf: + - $ref: panel-common.yaml# + +properties: + compatible: + const: arm,versatile-tft-panel + + port: true + +required: + - compatible + - port + +additionalProperties: false + +examples: + - | + sysreg { + compatible = "arm,versatile-sysreg", "syscon", "simple-mfd"; + reg = <0x00000 0x1000>; + + panel: display@0 { + compatible = "arm,versatile-tft-panel"; + + port { + panel_in: endpoint { + remote-endpoint = <&foo>; + }; + }; + }; + }; + +... From patchwork Sun Mar 15 13:43:47 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sam Ravnborg X-Patchwork-Id: 203298 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.6 required=3.0 tests=DKIM_INVALID,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH, MAILING_LIST_MULTI, SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 80F5FC4CECE for ; Sun, 15 Mar 2020 13:44:46 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 57E7C206E9 for ; Sun, 15 Mar 2020 13:44:46 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="oHWDnNCQ" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728656AbgCONop (ORCPT ); Sun, 15 Mar 2020 09:44:45 -0400 Received: from mail-lj1-f195.google.com ([209.85.208.195]:45286 "EHLO mail-lj1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728649AbgCONop (ORCPT ); Sun, 15 Mar 2020 09:44:45 -0400 Received: by mail-lj1-f195.google.com with SMTP id e18so15606081ljn.12; Sun, 15 Mar 2020 06:44:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=pgEXQsDcjOHsYIv9nRQRc/r4cOy9yFXdgKqPV0CnCk8=; b=oHWDnNCQT47agrp2O3QeiJSxC/Xin3q9XIDhN9NkD5V0vzdx5EhSYeLMHHZWqK1znH vR2G2kdbnxstwPI79gskId/5hTb0WpW817qpWYTsk3vd6OUdPM+NF3es9i1UdRNgHgnS vMzfav/4a35ffNF0z1780uLQY/dXPnDk+8gujM+3oP9pEJStYJCWH7vhJg+smmFYSnnZ mq5HWaLWPh9+f/kwQlz5CkYDaD0sEoRHskgWut9RABQMXaJkQR4B+DFZFahiOZaN7Hos /SWx6qJGiaNHwgHGp+IjwxUeAawKwEpCJN3p97fdMShWx8oWTos+enqtq0hvPMuZ4Rqx gs2g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=pgEXQsDcjOHsYIv9nRQRc/r4cOy9yFXdgKqPV0CnCk8=; b=a/MfPEe1vfb53C0kkstPfJ5Yr9QrBJYZSIRBTu+ofESJ/Pn8p3OpNXDjLVd1tfIzE2 AJ3yp6pRDkz3j52oTR576fS2CKsGnrQUZAKYEgsAmI/eKgkSrcAejuKfpd2SfT7NNzxN RUqSnAcBnDJ2mhmJ9VBhJWeuB7Uu1dgrqKXm+Skjn4fDuVZBVJcyi/9Cw9jSZ8Dj1kIO BF/iMeciT0d2h4PLijzc83m69dmCSocsDkxl8qLR544kxmlc9MTdRYfmu1JdgzI/QBn0 JK7LEDnyfgJepjYiyTdWHv7AGL2HEOTQ5wa3eE2SQHJhTFuvokD3mHLiOEBopAMhQKaQ 8fUQ== X-Gm-Message-State: ANhLgQ3HSDH4XOARoTOZH7Trt+RHxZgRWOEqFQTclpB3i9PYZpAQlYii uk7O4JIkNMiES2Wr0lTgbdw= X-Google-Smtp-Source: ADFU+vuCyi5ubtfFG28TZfhRyYRqzodmur8BQI0nkoClJCFFJcM5vZi+/T5l7TzlRyRKvba6IPp8uQ== X-Received: by 2002:a2e:92d6:: with SMTP id k22mr1256904ljh.18.1584279883480; Sun, 15 Mar 2020 06:44:43 -0700 (PDT) Received: from saturn.lan (18.158-248-194.customer.lyse.net. [158.248.194.18]) by smtp.gmail.com with ESMTPSA id a9sm23025212lfb.21.2020.03.15.06.44.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 15 Mar 2020 06:44:43 -0700 (PDT) From: Sam Ravnborg To: dri-devel@lists.freedesktop.org, Thierry Reding , Rob Herring , devicetree@vger.kernel.org Cc: Alexandre Courbot , Andrzej Hajda , Brian Masney , Chris Zhong , Douglas Anderson , Guido Gunther , Heiko Schocher , Nikolaus Schaller , Hoegeun Kwon , Jagan Teki , Jerry Han , Jonathan Bakker , Laurent Pinchart , Lin Huang , Linus Walleij , linux-spi@vger.kernel.org, Marco Franchi , Marek Belisko , Mark Brown , Maxime Ripard , Maxime Ripard , Nickey Yang , Paul Cercueil , Peter Rosin , Peter Ujfalusi , Purism Kernel Team , Robert Chiras , Sam Ravnborg , Sandeep Panda , Stefan Mavrodiev , Tomi Valkeinen , Tony Lindgren , Vinay Simha BN , Werner Johansson Subject: [PATCH v1 07/36] dt-bindings: display: convert ilitek, ili9881c to DT Schema Date: Sun, 15 Mar 2020 14:43:47 +0100 Message-Id: <20200315134416.16527-8-sam@ravnborg.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200315134416.16527-1-sam@ravnborg.org> References: <20200315134416.16527-1-sam@ravnborg.org> MIME-Version: 1.0 Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Signed-off-by: Sam Ravnborg Cc: Maxime Ripard Cc: Thierry Reding Cc: Sam Ravnborg --- .../display/panel/ilitek,ili9881c.txt | 20 -------- .../display/panel/ilitek,ili9881c.yaml | 50 +++++++++++++++++++ 2 files changed, 50 insertions(+), 20 deletions(-) delete mode 100644 Documentation/devicetree/bindings/display/panel/ilitek,ili9881c.txt create mode 100644 Documentation/devicetree/bindings/display/panel/ilitek,ili9881c.yaml diff --git a/Documentation/devicetree/bindings/display/panel/ilitek,ili9881c.txt b/Documentation/devicetree/bindings/display/panel/ilitek,ili9881c.txt deleted file mode 100644 index 4a041acb4e18..000000000000 --- a/Documentation/devicetree/bindings/display/panel/ilitek,ili9881c.txt +++ /dev/null @@ -1,20 +0,0 @@ -Ilitek ILI9881c based MIPI-DSI panels - -Required properties: - - compatible: must be "ilitek,ili9881c" and one of: - * "bananapi,lhr050h41" - - reg: DSI virtual channel used by that screen - - power-supply: phandle to the power regulator - - reset-gpios: a GPIO phandle for the reset pin - -Optional properties: - - backlight: phandle to the backlight used - -Example: -panel@0 { - compatible = "bananapi,lhr050h41", "ilitek,ili9881c"; - reg = <0>; - power-supply = <®_display>; - reset-gpios = <&r_pio 0 5 GPIO_ACTIVE_LOW>; /* PL05 */ - backlight = <&pwm_bl>; -}; diff --git a/Documentation/devicetree/bindings/display/panel/ilitek,ili9881c.yaml b/Documentation/devicetree/bindings/display/panel/ilitek,ili9881c.yaml new file mode 100644 index 000000000000..a39332276bab --- /dev/null +++ b/Documentation/devicetree/bindings/display/panel/ilitek,ili9881c.yaml @@ -0,0 +1,50 @@ +# SPDX-License-Identifier: GPL-2.0 +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/display/panel/ilitek,ili9881c.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Ilitek ILI9881c based MIPI-DSI panels + +maintainers: + - Maxime Ripard + +properties: + compatible: + items: + - enum: + - bananapi,lhr050h41 + + - const: ilitek,ili9881c + + backlight: true + power-supply: true + reg: true + reset-gpios: true + +required: + - compatible + - power-supply + - reg + - reset-gpios + +additionalProperties: false + +examples: + - | + #include + + dsi { + #address-cells = <1>; + #size-cells = <0>; + + panel@0 { + compatible = "bananapi,lhr050h41", "ilitek,ili9881c"; + reg = <0>; + power-supply = <®_display>; + reset-gpios = <&r_pio 0 5 GPIO_ACTIVE_LOW>; /* PL05 */ + backlight = <&pwm_bl>; + }; + }; + +... From patchwork Sun Mar 15 13:43:48 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sam Ravnborg X-Patchwork-Id: 203297 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.6 required=3.0 tests=DKIM_INVALID,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH, MAILING_LIST_MULTI, SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 15ED6C10DCE for ; Sun, 15 Mar 2020 13:44:49 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id E170620674 for ; Sun, 15 Mar 2020 13:44:48 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="YSDzbdm4" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728659AbgCONos (ORCPT ); Sun, 15 Mar 2020 09:44:48 -0400 Received: from mail-lf1-f66.google.com ([209.85.167.66]:42477 "EHLO mail-lf1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728658AbgCONos (ORCPT ); Sun, 15 Mar 2020 09:44:48 -0400 Received: by mail-lf1-f66.google.com with SMTP id t21so11694178lfe.9; Sun, 15 Mar 2020 06:44:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=OWdCcK1waThtoepd7BYaq8MoQGbRPjR7ssIGl9jD1xY=; b=YSDzbdm4qZdmbd9LTRerOaVNxCvdNWkRyn/yU3TbuIPImFjaM6FXupe/cBOTPgfatz ci66uHuB16rB+LKkyoRJlDaheIF3gaVQIk2rW+wtqmrIcj3s+LoLf7BXvY22wI3Ue02U 9Xq8YK1Xc8E0Ppac1XGbHpoK9keUbfb0G3zs+cehLapMQT+I/maKaPKWMLcrYYr0XpDK MxHaTxvpC/oxqq29BwiXfTNBLkm2N179/isspU3vWjuxeJn263d0d96zPH4K+N07zBix CyAZBPVAPXO92Kpha7Ri2zuWPjgRKHC4PnNB5hFk2WmfZP5IibycdLeuMXsYyQ6ySjwm Zu0w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=OWdCcK1waThtoepd7BYaq8MoQGbRPjR7ssIGl9jD1xY=; b=F/EYKmjVNVCZCtoFyrfKhix+AotVX/HhxghEsQl3fg/v8JwkKxsRyHOlsNSybbYtKR owauEX3G8+4O6u27SoQJZ7jTr6XF4nhHSpj3Rr2rIMhkcPIKaVQM8ISnu7JoZHD8+6kn OCkeU56vPO0hesYjtyCpk+cstx+0WYJ60/OAZq3gbnuvcnNo4BWkNnBDIRTAHJoKNv9d ZUdSM7GTV+UiPXEzxwTAsBpI9ZveoojNY6DEWkAaYwQyz/PzBZEk7lCdRtdCkufk81Cw PzaPe6EpXBwAAp+SxglUIDqvxhr1q5lklH1+rHFmAOaiFGoW2UG4mMoJlkc44KOvi4df J+wg== X-Gm-Message-State: ANhLgQ2FPEk8owTCL/fIZeGVsnOM+M0Ook2ph3FuJRvc2gitNZoSIo7R 5py2hKoFvRgm78eNDTAGPiI= X-Google-Smtp-Source: ADFU+vvMNL4/OCBcGRfP86JCNs0Uu0s4FaODwXFU6z2OwE94xN979qCQv/xlOUmU0/daCIjp3W2TBQ== X-Received: by 2002:a19:80e:: with SMTP id 14mr13714096lfi.206.1584279885499; Sun, 15 Mar 2020 06:44:45 -0700 (PDT) Received: from saturn.lan (18.158-248-194.customer.lyse.net. [158.248.194.18]) by smtp.gmail.com with ESMTPSA id a9sm23025212lfb.21.2020.03.15.06.44.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 15 Mar 2020 06:44:45 -0700 (PDT) From: Sam Ravnborg To: dri-devel@lists.freedesktop.org, Thierry Reding , Rob Herring , devicetree@vger.kernel.org Cc: Alexandre Courbot , Andrzej Hajda , Brian Masney , Chris Zhong , Douglas Anderson , Guido Gunther , Heiko Schocher , Nikolaus Schaller , Hoegeun Kwon , Jagan Teki , Jerry Han , Jonathan Bakker , Laurent Pinchart , Lin Huang , Linus Walleij , linux-spi@vger.kernel.org, Marco Franchi , Marek Belisko , Mark Brown , Maxime Ripard , Maxime Ripard , Nickey Yang , Paul Cercueil , Peter Rosin , Peter Ujfalusi , Purism Kernel Team , Robert Chiras , Sam Ravnborg , Sandeep Panda , Stefan Mavrodiev , Tomi Valkeinen , Tony Lindgren , Vinay Simha BN , Werner Johansson Subject: [PATCH v1 08/36] dt-bindings: display: convert feiyang, fy07024di26a30d to DT Schema Date: Sun, 15 Mar 2020 14:43:48 +0100 Message-Id: <20200315134416.16527-9-sam@ravnborg.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200315134416.16527-1-sam@ravnborg.org> References: <20200315134416.16527-1-sam@ravnborg.org> MIME-Version: 1.0 Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Signed-off-by: Sam Ravnborg Cc: Jagan Teki Cc: Thierry Reding Cc: Sam Ravnborg --- .../display/panel/feiyang,fy07024di26a30d.txt | 20 ------- .../panel/feiyang,fy07024di26a30d.yaml | 56 +++++++++++++++++++ 2 files changed, 56 insertions(+), 20 deletions(-) delete mode 100644 Documentation/devicetree/bindings/display/panel/feiyang,fy07024di26a30d.txt create mode 100644 Documentation/devicetree/bindings/display/panel/feiyang,fy07024di26a30d.yaml diff --git a/Documentation/devicetree/bindings/display/panel/feiyang,fy07024di26a30d.txt b/Documentation/devicetree/bindings/display/panel/feiyang,fy07024di26a30d.txt deleted file mode 100644 index 82caa7b65ae8..000000000000 --- a/Documentation/devicetree/bindings/display/panel/feiyang,fy07024di26a30d.txt +++ /dev/null @@ -1,20 +0,0 @@ -Feiyang FY07024DI26A30-D 7" MIPI-DSI LCD Panel - -Required properties: -- compatible: must be "feiyang,fy07024di26a30d" -- reg: DSI virtual channel used by that screen -- avdd-supply: analog regulator dc1 switch -- dvdd-supply: 3v3 digital regulator -- reset-gpios: a GPIO phandle for the reset pin - -Optional properties: -- backlight: phandle for the backlight control. - -panel@0 { - compatible = "feiyang,fy07024di26a30d"; - reg = <0>; - avdd-supply = <®_dc1sw>; - dvdd-supply = <®_dldo2>; - reset-gpios = <&pio 3 24 GPIO_ACTIVE_HIGH>; /* LCD-RST: PD24 */ - backlight = <&backlight>; -}; diff --git a/Documentation/devicetree/bindings/display/panel/feiyang,fy07024di26a30d.yaml b/Documentation/devicetree/bindings/display/panel/feiyang,fy07024di26a30d.yaml new file mode 100644 index 000000000000..4bf4498d007a --- /dev/null +++ b/Documentation/devicetree/bindings/display/panel/feiyang,fy07024di26a30d.yaml @@ -0,0 +1,56 @@ +# SPDX-License-Identifier: GPL-2.0 +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/display/panel/feiyang,fy07024di26a30d.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Feiyang FY07024DI26A30-D 7" MIPI-DSI LCD Panel + +maintainers: + - Jagan Teki + +allOf: + - $ref: panel-common.yaml# + +properties: + compatible: + const: feiyang,fy07024di26a30d + + backlight: true + reg : true + reset-gpios: true + + avdd-supply: + description: analog regulator dc1 switch + + dvdd-supply: + description: 3v3 digital regulator + +required: + - compatible + - reg + - reset-gpios + - avdd-supply + - dvdd-supply + +additionalProperties: false + +examples: + - | + #include + + dsi { + #address-cells = <1>; + #size-cells = <0>; + + panel@0 { + compatible = "feiyang,fy07024di26a30d"; + reg = <0>; + avdd-supply = <®_dc1sw>; + dvdd-supply = <®_dldo2>; + reset-gpios = <&pio 3 24 GPIO_ACTIVE_HIGH>; /* LCD-RST: PD24 */ + backlight = <&backlight>; + }; + }; + +... From patchwork Sun Mar 15 13:43:50 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sam Ravnborg X-Patchwork-Id: 203296 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.6 required=3.0 tests=DKIM_INVALID,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH, MAILING_LIST_MULTI, SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id CBBABC10DCE for ; Sun, 15 Mar 2020 13:44:53 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id A43A820724 for ; Sun, 15 Mar 2020 13:44:53 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="nKQkRbs6" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728616AbgCONox (ORCPT ); Sun, 15 Mar 2020 09:44:53 -0400 Received: from mail-lf1-f67.google.com ([209.85.167.67]:37467 "EHLO mail-lf1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728658AbgCONox (ORCPT ); Sun, 15 Mar 2020 09:44:53 -0400 Received: by mail-lf1-f67.google.com with SMTP id j11so11717524lfg.4; Sun, 15 Mar 2020 06:44:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=DKFWNzm+inHvUnuFaBbTyPTrAd4h6YpCxucuZ+VVDvg=; b=nKQkRbs6p7IU6GKjqEAoG/cl1CtIpH+L/FrvbrTmJCLaV2cNEYHISe0/xnBO2pnCoi tm25uzNnyMFSpPnNrAbUugYBn7ixSlcl7XtqS6N2cD9nz7IJCm+CPPK9Dj4E/sQmm0Z1 br7eDuzTfyk+VVm+L+T2vSOJ249dlsCTvZha1x60RHoCCaSyvaVnUZ8TGFxgFT5FY1Dz ndve/sIQpzM9HJ7ubT8+f3MoVRL5it674tni+OL0RzSOAwr7Ny7ChiPqwoAxtOFekX2n Ch0ZYff0Dm1FLo1o801LkUTwCVqZojTf/D+SpivzJR8GkiohK9wbY97Ult8LleZBvaYp 5t2A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=DKFWNzm+inHvUnuFaBbTyPTrAd4h6YpCxucuZ+VVDvg=; b=Pcm97/YocE1hRWudNzicDFnxItMhhOm2WyU1lunjPb/FZCwWeAwQVTv1L0XPbTraMY bGD749cYd1P8pbQHah5K/SwIoKJRJuO+Vtb6c9hJm9TiMZQs6Iq9zz5ULCwdh2QSRux2 FWQ4Ufp6R6gl2SvWHaW3KftPEnEP3OTBiR/keVHmOUpQVMBW7+5/tExAsXkc3sGGiqAM zxBZ1aIPj2xT/L9ZaO8PCTtH6Y8H3UqBGa17rb6uZl/VUgkfbp3bKgzVVtikS/Wr1s6p mS9N/lSJMxKwVpJG5viuSi6ijd79hmo7NFMgYO/QUNpl1h0FG72PHAeRpBAeyLlj7gh6 +J/Q== X-Gm-Message-State: ANhLgQ3bEf3MaY0/su5Ux7WpRvDgmJTL9WhPppi9I15zf5UhpPgapmRt 87fmjuIv5qPD8RevSvyIonw= X-Google-Smtp-Source: ADFU+vs0IGyQy3vzYGDlnv9TvE4khDaBhV7yBGIAFb8i07P4mBDYkpaUXJBq/gHEcKsW7v9UOYK1uQ== X-Received: by 2002:a19:a415:: with SMTP id q21mr13918816lfc.21.1584279889723; Sun, 15 Mar 2020 06:44:49 -0700 (PDT) Received: from saturn.lan (18.158-248-194.customer.lyse.net. [158.248.194.18]) by smtp.gmail.com with ESMTPSA id a9sm23025212lfb.21.2020.03.15.06.44.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 15 Mar 2020 06:44:49 -0700 (PDT) From: Sam Ravnborg To: dri-devel@lists.freedesktop.org, Thierry Reding , Rob Herring , devicetree@vger.kernel.org Cc: Alexandre Courbot , Andrzej Hajda , Brian Masney , Chris Zhong , Douglas Anderson , Guido Gunther , Heiko Schocher , Nikolaus Schaller , Hoegeun Kwon , Jagan Teki , Jerry Han , Jonathan Bakker , Laurent Pinchart , Lin Huang , Linus Walleij , linux-spi@vger.kernel.org, Marco Franchi , Marek Belisko , Mark Brown , Maxime Ripard , Maxime Ripard , Nickey Yang , Paul Cercueil , Peter Rosin , Peter Ujfalusi , Purism Kernel Team , Robert Chiras , Sam Ravnborg , Sandeep Panda , Stefan Mavrodiev , Tomi Valkeinen , Tony Lindgren , Vinay Simha BN , Werner Johansson Subject: [PATCH v1 10/36] dt-bindings: display: convert innolux, p097pfg to DT Schema Date: Sun, 15 Mar 2020 14:43:50 +0100 Message-Id: <20200315134416.16527-11-sam@ravnborg.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200315134416.16527-1-sam@ravnborg.org> References: <20200315134416.16527-1-sam@ravnborg.org> MIME-Version: 1.0 Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Signed-off-by: Sam Ravnborg Cc: Lin Huang Cc: Thierry Reding Cc: Sam Ravnborg --- .../display/panel/innolux,p097pfg.txt | 24 -------- .../display/panel/innolux,p097pfg.yaml | 56 +++++++++++++++++++ 2 files changed, 56 insertions(+), 24 deletions(-) delete mode 100644 Documentation/devicetree/bindings/display/panel/innolux,p097pfg.txt create mode 100644 Documentation/devicetree/bindings/display/panel/innolux,p097pfg.yaml diff --git a/Documentation/devicetree/bindings/display/panel/innolux,p097pfg.txt b/Documentation/devicetree/bindings/display/panel/innolux,p097pfg.txt deleted file mode 100644 index d1cab3a8f0fb..000000000000 --- a/Documentation/devicetree/bindings/display/panel/innolux,p097pfg.txt +++ /dev/null @@ -1,24 +0,0 @@ -Innolux P097PFG 9.7" 1536x2048 TFT LCD panel - -Required properties: -- compatible: should be "innolux,p097pfg" -- reg: DSI virtual channel of the peripheral -- avdd-supply: phandle of the regulator that provides positive voltage -- avee-supply: phandle of the regulator that provides negative voltage -- enable-gpios: panel enable gpio - -Optional properties: -- backlight: phandle of the backlight device attached to the panel - -Example: - - &mipi_dsi { - panel@0 { - compatible = "innolux,p079zca"; - reg = <0>; - avdd-supply = <...>; - avee-supply = <...>; - backlight = <&backlight>; - enable-gpios = <&gpio1 13 GPIO_ACTIVE_HIGH>; - }; - }; diff --git a/Documentation/devicetree/bindings/display/panel/innolux,p097pfg.yaml b/Documentation/devicetree/bindings/display/panel/innolux,p097pfg.yaml new file mode 100644 index 000000000000..5a5f071627fb --- /dev/null +++ b/Documentation/devicetree/bindings/display/panel/innolux,p097pfg.yaml @@ -0,0 +1,56 @@ +# SPDX-License-Identifier: GPL-2.0 +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/display/panel/innolux,p097pfg.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Innolux P097PFG 9.7" 1536x2048 TFT LCD panel + +maintainers: + - Lin Huang + +allOf: + - $ref: panel-common.yaml# + +properties: + compatible: + const: innolux,p097pfg + + backlight: true + enable-gpios: true + reg: true + + avdd-supply: + description: The regulator that provides positive voltage + + avee-supply: + description: The regulator that provides negative voltage + +required: + - compatible + - reg + - avdd-supply + - avee-supply + - enable-gpios + +additionalProperties: false + +examples: + - | + #include + + dsi { + #address-cells = <1>; + #size-cells = <0>; + + panel@0 { + compatible = "innolux,p097pfg"; + reg = <0>; + avdd-supply = <&avdd>; + avee-supply = <&avee>; + backlight = <&backlight>; + enable-gpios = <&gpio1 13 GPIO_ACTIVE_HIGH>; + }; + }; + +... From patchwork Sun Mar 15 13:43:52 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sam Ravnborg X-Patchwork-Id: 203295 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.6 required=3.0 tests=DKIM_INVALID,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH, MAILING_LIST_MULTI, SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 49859C2BB1D for ; Sun, 15 Mar 2020 13:44:57 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 1787420575 for ; Sun, 15 Mar 2020 13:44:57 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="mtwGW4X5" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728667AbgCONo4 (ORCPT ); Sun, 15 Mar 2020 09:44:56 -0400 Received: from mail-lj1-f195.google.com ([209.85.208.195]:38471 "EHLO mail-lj1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728664AbgCONo4 (ORCPT ); Sun, 15 Mar 2020 09:44:56 -0400 Received: by mail-lj1-f195.google.com with SMTP id w1so15631933ljh.5; Sun, 15 Mar 2020 06:44:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=fbZs3xCKO0rPyc/A/ruz0C0c57eblsfHWM6KLaBbzu0=; b=mtwGW4X5xdOlrVhAc/VLwG/7ziAXS7Fkgze/TQPojsuIjfXZLH/ntsYYxHp/lCvJ9C wOhHy+ppL+vxbK1AtRHhOxhYk96whG1LWzV0IiHtz70P7XsID90Z10HX46v2tus2/ao2 oYJOizypDxrXOmVWk/74qJc+h33+35i3l6zxAMCJRklWKrprsFHPK9HF15p/StvnNbU9 RslpirwYN6sWzmK7jjgg1gsxXT5V/JDJFjF31X9tEJ9H+KYlCVBmHbnM6Owfh++rcQWQ xvE6KyKJd05tfzlMhhaNtOsSsrtcrN21AXUE2mazJBZCWqeYj2tav0lFPPnQaJ4uosPc 924A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=fbZs3xCKO0rPyc/A/ruz0C0c57eblsfHWM6KLaBbzu0=; b=ueLXTTotlNfO2AlYE3pkhOUTG8yTq838gF5n9gIoHAcxkFdWdgMhzU8xo6IK1y+Nv0 Rvrz9cVIn1REkSmlpV62UGwjXMB9LyijkWUoDEtP35QkqPLQ/9WCV3g8qM1nLP7vklI9 PW/tXNqyfBKUe+9aHSABSAbOSDnFkd8b47oy73difr7+G/rpTYi48XY7OyHPYZ7/rNo3 GrSxHQKH4ya3HGmO+KI/SEqPRUsSeOUYSgcSHPE5DmO56HTZHVFp9HiLcLDHnL9Fui0r d9jkrY1cklk/jagPtKNViZ916zOSnGANMfXmHqmOWc57zJY54wd42sK+AAECdjZdWBAm 47XA== X-Gm-Message-State: ANhLgQ3PQLG1+19P3rBBjEMP85q6IsKs4sUD/8yE1QyIWSwTo5wvooto fK1NqOOpOXTgIOk3yYAmpNI= X-Google-Smtp-Source: ADFU+vtdu+RtCfOyfUD8nHISljJPTE1xUWlvIyhAv6x8i0R2hy2i9EsS4Xv3x/wGemFSN33Ad6CKfA== X-Received: by 2002:a2e:5ce:: with SMTP id 197mr14029954ljf.234.1584279893885; Sun, 15 Mar 2020 06:44:53 -0700 (PDT) Received: from saturn.lan (18.158-248-194.customer.lyse.net. [158.248.194.18]) by smtp.gmail.com with ESMTPSA id a9sm23025212lfb.21.2020.03.15.06.44.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 15 Mar 2020 06:44:53 -0700 (PDT) From: Sam Ravnborg To: dri-devel@lists.freedesktop.org, Thierry Reding , Rob Herring , devicetree@vger.kernel.org Cc: Alexandre Courbot , Andrzej Hajda , Brian Masney , Chris Zhong , Douglas Anderson , Guido Gunther , Heiko Schocher , Nikolaus Schaller , Hoegeun Kwon , Jagan Teki , Jerry Han , Jonathan Bakker , Laurent Pinchart , Lin Huang , Linus Walleij , linux-spi@vger.kernel.org, Marco Franchi , Marek Belisko , Mark Brown , Maxime Ripard , Maxime Ripard , Nickey Yang , Paul Cercueil , Peter Rosin , Peter Ujfalusi , Purism Kernel Team , Robert Chiras , Sam Ravnborg , Sandeep Panda , Stefan Mavrodiev , Tomi Valkeinen , Tony Lindgren , Vinay Simha BN , Werner Johansson Subject: [PATCH v1 12/36] dt-bindings: display: convert jdi, lt070me05000 to DT Schema Date: Sun, 15 Mar 2020 14:43:52 +0100 Message-Id: <20200315134416.16527-13-sam@ravnborg.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200315134416.16527-1-sam@ravnborg.org> References: <20200315134416.16527-1-sam@ravnborg.org> MIME-Version: 1.0 Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Signed-off-by: Sam Ravnborg Cc: Vinay Simha BN Cc: Thierry Reding Cc: Sam Ravnborg --- .../display/panel/jdi,lt070me05000.txt | 31 --------- .../display/panel/jdi,lt070me05000.yaml | 69 +++++++++++++++++++ 2 files changed, 69 insertions(+), 31 deletions(-) delete mode 100644 Documentation/devicetree/bindings/display/panel/jdi,lt070me05000.txt create mode 100644 Documentation/devicetree/bindings/display/panel/jdi,lt070me05000.yaml diff --git a/Documentation/devicetree/bindings/display/panel/jdi,lt070me05000.txt b/Documentation/devicetree/bindings/display/panel/jdi,lt070me05000.txt deleted file mode 100644 index 4989c91d505f..000000000000 --- a/Documentation/devicetree/bindings/display/panel/jdi,lt070me05000.txt +++ /dev/null @@ -1,31 +0,0 @@ -JDI model LT070ME05000 1200x1920 7" DSI Panel - -Required properties: -- compatible: should be "jdi,lt070me05000" -- vddp-supply: phandle of the regulator that provides the supply voltage - Power IC supply (3-5V) -- iovcc-supply: phandle of the regulator that provides the supply voltage - IOVCC , power supply for LCM (1.8V) -- enable-gpios: phandle of gpio for enable line - LED_EN, LED backlight enable, High active -- reset-gpios: phandle of gpio for reset line - This should be 8mA, gpio can be configured using mux, pinctrl, pinctrl-names - XRES, Reset, Low active -- dcdc-en-gpios: phandle of the gpio for power ic line - Power IC supply enable, High active - -Example: - - dsi0: qcom,mdss_dsi@4700000 { - panel@0 { - compatible = "jdi,lt070me05000"; - reg = <0>; - - vddp-supply = <&pm8921_l17>; - iovcc-supply = <&pm8921_lvs7>; - - enable-gpios = <&pm8921_gpio 36 GPIO_ACTIVE_HIGH>; - reset-gpios = <&tlmm_pinmux 54 GPIO_ACTIVE_LOW>; - dcdc-en-gpios = <&pm8921_gpio 23 GPIO_ACTIVE_HIGH>; - }; - }; diff --git a/Documentation/devicetree/bindings/display/panel/jdi,lt070me05000.yaml b/Documentation/devicetree/bindings/display/panel/jdi,lt070me05000.yaml new file mode 100644 index 000000000000..e0abf68ecb19 --- /dev/null +++ b/Documentation/devicetree/bindings/display/panel/jdi,lt070me05000.yaml @@ -0,0 +1,69 @@ +# SPDX-License-Identifier: GPL-2.0 +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/display/panel/jdi,lt070me05000.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: JDI model LT070ME05000 1200x1920 7" DSI Panel + +maintainers: + - Vinay Simha BN + +allOf: + - $ref: panel-common.yaml# + +properties: + compatible: + const: jdi,lt070me05000 + + enable-gpios: true + reg: true + reset-gpios: true + + vddp-supply: + description: | + The regulator that provides the supply voltage Power IC supply (3-5V) + + iovcc-supply: + description: | + The regulator that provides the supply voltage IOVCC, + power supply for LCM (1.8V) + + dcdc-en-gpios: + description: | + phandle of the gpio for power ic line + Power IC supply enable, High active + +required: + - compatible + - reg + - vddp-supply + - iovcc-supply + - enable-gpios + - reset-gpios + - dcdc-en-gpios + +additionalProperties: false + +examples: + - | + #include + + dsi: qcom,mdss_dsi@4700000 { + #address-cells = <1>; + #size-cells = <0>; + + panel@0 { + compatible = "jdi,lt070me05000"; + reg = <0>; + + vddp-supply = <&pm8921_l17>; + iovcc-supply = <&pm8921_lvs7>; + + enable-gpios = <&pm8921_gpio 36 GPIO_ACTIVE_HIGH>; + reset-gpios = <&tlmm_pinmux 54 GPIO_ACTIVE_LOW>; + dcdc-en-gpios = <&pm8921_gpio 23 GPIO_ACTIVE_HIGH>; + }; + }; + +... From patchwork Sun Mar 15 13:43:54 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sam Ravnborg X-Patchwork-Id: 203294 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.6 required=3.0 tests=DKIM_INVALID,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH, MAILING_LIST_MULTI, SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3F7F9C5ACC1 for ; Sun, 15 Mar 2020 13:45:01 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 16478206BE for ; Sun, 15 Mar 2020 13:45:01 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="ZibC4+UN" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728664AbgCONpA (ORCPT ); Sun, 15 Mar 2020 09:45:00 -0400 Received: from mail-lj1-f195.google.com ([209.85.208.195]:33642 "EHLO mail-lj1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728668AbgCONpA (ORCPT ); Sun, 15 Mar 2020 09:45:00 -0400 Received: by mail-lj1-f195.google.com with SMTP id f13so15622795ljp.0; Sun, 15 Mar 2020 06:44:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=DaICPVhWGMzYWehtRVbV/jO9Up7YjJ7XLHT6tmeYB5E=; b=ZibC4+UNeg34TbeI3ckGQczgn386Wu/l22ZpAODVcHe97It6VtfBqDTxm9uSyl+BHi I5tn/NFGl7HJch+m5eUoaDpspYTPwNi6MdPdoGihz4s55YeyepzrkpjT937R9vxg1bQ5 vu7sTooKxHv/mJIQ1d5m1uLOCfZtRtq8qSAhNGo2e9pCU2TvsB3IQMju3ozIjdP21PpO l/HYXypAtNp6nAHWMkrKndi4YT2Rs/6lk4xSJh047DXuoIvtAV7ty2xsFGsuw/YkbMu6 SCStaJXWS/xOq75AvYwPMzxTAThl8wP2u9bXtUxSc/huAdJAoLf51x0cTidgbeTzdRYV FaXQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=DaICPVhWGMzYWehtRVbV/jO9Up7YjJ7XLHT6tmeYB5E=; b=mmO7eyoxDTK3rwW05IbW9L+48eOKnX5KZx0piLKLPRRMHe943tASPhgDjWmhxW7AOm 0cwyguyENE4p++FObiKu9C+lTQIyiF/JQ98mgLpdZ7S7L2zGYsGIuGE10khtGnkOI45/ OPcUvH3PcOrf3lby4oTW4+Q7gNoyYuzPLU37IQYrUJXN3G0V8nILO0NQoewKpa0HjCgr 1sunQQPwBv4+2nd/13p2wKXI9tUCvBgnuPG3hOGB65KWSRELI/I3K3Fh9lyb1/Hml+lU jBhatv1emo+lKnI3ebr+tEB8f3wK7Ir+RmkjCY5Db07u9fkW/prQR7NllPB6h3U5oULH lHUw== X-Gm-Message-State: ANhLgQ2JztxzZEHLWQH7w2M2VubqfAreD7RkJFFXIuM8CYLZqDxC5YGL jegN5iH9HAtRZkUz8LjMivo= X-Google-Smtp-Source: ADFU+vtiYR/8jOKEOpXLo77qW2MSVX/PdJNmFiXhUMdYwaEx+J8Z4srFOMItI4TWNSXjVwVgstJAug== X-Received: by 2002:a2e:b5a5:: with SMTP id f5mr13517595ljn.162.1584279898083; Sun, 15 Mar 2020 06:44:58 -0700 (PDT) Received: from saturn.lan (18.158-248-194.customer.lyse.net. [158.248.194.18]) by smtp.gmail.com with ESMTPSA id a9sm23025212lfb.21.2020.03.15.06.44.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 15 Mar 2020 06:44:57 -0700 (PDT) From: Sam Ravnborg To: dri-devel@lists.freedesktop.org, Thierry Reding , Rob Herring , devicetree@vger.kernel.org Cc: Alexandre Courbot , Andrzej Hajda , Brian Masney , Chris Zhong , Douglas Anderson , Guido Gunther , Heiko Schocher , Nikolaus Schaller , Hoegeun Kwon , Jagan Teki , Jerry Han , Jonathan Bakker , Laurent Pinchart , Lin Huang , Linus Walleij , linux-spi@vger.kernel.org, Marco Franchi , Marek Belisko , Mark Brown , Maxime Ripard , Maxime Ripard , Nickey Yang , Paul Cercueil , Peter Rosin , Peter Ujfalusi , Purism Kernel Team , Robert Chiras , Sam Ravnborg , Sandeep Panda , Stefan Mavrodiev , Tomi Valkeinen , Tony Lindgren , Vinay Simha BN , Werner Johansson Subject: [PATCH v1 14/36] dt-bindings: display: convert kingdisplay, kd097d04 to DT Schema Date: Sun, 15 Mar 2020 14:43:54 +0100 Message-Id: <20200315134416.16527-15-sam@ravnborg.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200315134416.16527-1-sam@ravnborg.org> References: <20200315134416.16527-1-sam@ravnborg.org> MIME-Version: 1.0 Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org kingdisplay,kd097d04 matches the panel-simple-dsi binding. The only difference is that enable-gpios is now an optional property. Signed-off-by: Sam Ravnborg Cc: Nickey Yang Cc: Thierry Reding Cc: Sam Ravnborg --- .../display/panel/kingdisplay,kd097d04.txt | 22 ------------------- .../display/panel/panel-simple-dsi.yaml | 2 ++ 2 files changed, 2 insertions(+), 22 deletions(-) delete mode 100644 Documentation/devicetree/bindings/display/panel/kingdisplay,kd097d04.txt diff --git a/Documentation/devicetree/bindings/display/panel/kingdisplay,kd097d04.txt b/Documentation/devicetree/bindings/display/panel/kingdisplay,kd097d04.txt deleted file mode 100644 index cfefff688614..000000000000 --- a/Documentation/devicetree/bindings/display/panel/kingdisplay,kd097d04.txt +++ /dev/null @@ -1,22 +0,0 @@ -Kingdisplay KD097D04 9.7" 1536x2048 TFT LCD panel - -Required properties: -- compatible: should be "kingdisplay,kd097d04" -- reg: DSI virtual channel of the peripheral -- power-supply: phandle of the regulator that provides the supply voltage -- enable-gpios: panel enable gpio - -Optional properties: -- backlight: phandle of the backlight device attached to the panel - -Example: - - &mipi_dsi { - panel@0 { - compatible = "kingdisplay,kd097d04"; - reg = <0>; - power-supply = <...>; - backlight = <&backlight>; - enable-gpios = <&gpio1 13 GPIO_ACTIVE_HIGH>; - }; - }; diff --git a/Documentation/devicetree/bindings/display/panel/panel-simple-dsi.yaml b/Documentation/devicetree/bindings/display/panel/panel-simple-dsi.yaml index b2e8742fd6af..949371db0a16 100644 --- a/Documentation/devicetree/bindings/display/panel/panel-simple-dsi.yaml +++ b/Documentation/devicetree/bindings/display/panel/panel-simple-dsi.yaml @@ -29,6 +29,8 @@ properties: # compatible must be listed in alphabetical order, ordered by compatible. # The description in the comment is mandatory for each compatible. + # Kingdisplay KD097D04 9.7" 1536x2048 TFT LCD panel + - kingdisplay,kd097d04 # Panasonic 10" WUXGA TFT LCD panel - panasonic,vvx10f034n00 From patchwork Sun Mar 15 13:43:57 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sam Ravnborg X-Patchwork-Id: 203293 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.6 required=3.0 tests=DKIM_INVALID,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH, MAILING_LIST_MULTI, SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 156C7C5ACBF for ; Sun, 15 Mar 2020 13:45:07 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id DFFC220674 for ; Sun, 15 Mar 2020 13:45:06 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="soslxIbX" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728630AbgCONpG (ORCPT ); Sun, 15 Mar 2020 09:45:06 -0400 Received: from mail-lf1-f68.google.com ([209.85.167.68]:42499 "EHLO mail-lf1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728674AbgCONpG (ORCPT ); Sun, 15 Mar 2020 09:45:06 -0400 Received: by mail-lf1-f68.google.com with SMTP id t21so11694544lfe.9; Sun, 15 Mar 2020 06:45:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=U/emWc6W4zftcHfaj2Yi3x1iJjutKkIrJjITu/23MG8=; b=soslxIbXlga3HyB3Xw3wJYKYpBXGUY2SyZD4ZKzVIpz/U1tbAfjbUysyQseA7TyOXk B5/6Z47V2IY1KxUSXQ59R5/TTFKZ3V10fi+akp9plN/0btYG6qylw4Ur6vaJ+l/w87Qb eTOxyGY97JfyCjzJ6t359ubmblf8x2JvVjlO0VJMQ6MJMShO9FvzQl3P7d3Qw4R/9Eyh y9Iy+B7MPSNVU0ObeAy4QNfzJFRqRMlzz2kcexsLG7fm6L/pdYv536jwLTDBcpIpNUVd D3nu4TkFK3/YG0LuSdsLSpXwawLGCaa7zPi0MrOBdnIIuRL+3KxHwYwHADddMhXrzlrY gSpg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=U/emWc6W4zftcHfaj2Yi3x1iJjutKkIrJjITu/23MG8=; b=HHVT+mBq6TWQfyXXTWqSIYxV7lJHc7CEP4dGlo3kwV+tE+1zM5liNAiHT3cnlyJNjo AV/ilkRZQtYaw2B3rMvH4pXNa2sJhMePHFj/jQdEzzYSU6HUv24Q8qdqz93ZSJ0AB/g7 Xqkk1dADnWdu4H8AS2I9vsL7sYbEms/47dg8cxZatJanXPYNMaECPDn3m6wFCYQE/wfZ mQBMWx6Vo6UYG361I81jxHQ+tcsDc0/aSF8SPgFNSHcnSZq5Qze6zVSh5ztcAkxQHren YCk1qE8YoUVSCPmb6PHXhYb+IqLMvMTtTIA751h8P/R477cnp73hbvejV3yZ5Kp0XYNz ZAEQ== X-Gm-Message-State: ANhLgQ3Nn09wuI1ekQqZJ3HArzD2m7BxbEnRO7IFQl9fU/Qml6zIByfZ yNSEGh0YcukRX6Br/40vO3E= X-Google-Smtp-Source: ADFU+vv/YARa9XC2pIUfGZx8c4J67p1hauQnO9uNhe9XhQfB4SmZyKZCgmx7UknwsUdiQJnzDkFIHQ== X-Received: by 2002:a05:6512:10cf:: with SMTP id k15mr14706524lfg.142.1584279904157; Sun, 15 Mar 2020 06:45:04 -0700 (PDT) Received: from saturn.lan (18.158-248-194.customer.lyse.net. [158.248.194.18]) by smtp.gmail.com with ESMTPSA id a9sm23025212lfb.21.2020.03.15.06.45.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 15 Mar 2020 06:45:03 -0700 (PDT) From: Sam Ravnborg To: dri-devel@lists.freedesktop.org, Thierry Reding , Rob Herring , devicetree@vger.kernel.org Cc: Alexandre Courbot , Andrzej Hajda , Brian Masney , Chris Zhong , Douglas Anderson , Guido Gunther , Heiko Schocher , Nikolaus Schaller , Hoegeun Kwon , Jagan Teki , Jerry Han , Jonathan Bakker , Laurent Pinchart , Lin Huang , Linus Walleij , linux-spi@vger.kernel.org, Marco Franchi , Marek Belisko , Mark Brown , Maxime Ripard , Maxime Ripard , Nickey Yang , Paul Cercueil , Peter Rosin , Peter Ujfalusi , Purism Kernel Team , Robert Chiras , Sam Ravnborg , Sandeep Panda , Stefan Mavrodiev , Tomi Valkeinen , Tony Lindgren , Vinay Simha BN , Werner Johansson Subject: [PATCH v1 17/36] dt-bindings: display: convert osddisplays, osd101t2587-53ts to DT Schema Date: Sun, 15 Mar 2020 14:43:57 +0100 Message-Id: <20200315134416.16527-18-sam@ravnborg.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200315134416.16527-1-sam@ravnborg.org> References: <20200315134416.16527-1-sam@ravnborg.org> MIME-Version: 1.0 Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org osddisplays,osd101t2587-53ts is compatible with panel-simple binding, so list the compatible in the panel-simple binding file. Signed-off-by: Sam Ravnborg Cc: Peter Ujfalusi Cc: Thierry Reding Cc: Sam Ravnborg --- .../display/panel/osddisplays,osd101t2587-53ts.txt | 14 -------------- .../bindings/display/panel/panel-simple.yaml | 2 ++ 2 files changed, 2 insertions(+), 14 deletions(-) delete mode 100644 Documentation/devicetree/bindings/display/panel/osddisplays,osd101t2587-53ts.txt diff --git a/Documentation/devicetree/bindings/display/panel/osddisplays,osd101t2587-53ts.txt b/Documentation/devicetree/bindings/display/panel/osddisplays,osd101t2587-53ts.txt deleted file mode 100644 index 9d88e96003fc..000000000000 --- a/Documentation/devicetree/bindings/display/panel/osddisplays,osd101t2587-53ts.txt +++ /dev/null @@ -1,14 +0,0 @@ -One Stop Displays OSD101T2587-53TS 10.1" 1920x1200 panel - -The panel is similar to OSD101T2045-53TS, but it needs additional -MIPI_DSI_TURN_ON_PERIPHERAL message from the host. - -Required properties: -- compatible: should be "osddisplays,osd101t2587-53ts" -- power-supply: as specified in the base binding - -Optional properties: -- backlight: as specified in the base binding - -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/panel-simple.yaml b/Documentation/devicetree/bindings/display/panel/panel-simple.yaml index b1b8d0edadef..70c290f7df30 100644 --- a/Documentation/devicetree/bindings/display/panel/panel-simple.yaml +++ b/Documentation/devicetree/bindings/display/panel/panel-simple.yaml @@ -209,6 +209,8 @@ properties: - osddisplays,osd070t1718-19ts # One Stop Displays OSD101T2045-53TS 10.1" 1920x1200 panel - osddisplays,osd101t2045-53ts + # One Stop Displays OSD101T2587-53TS 10.1" 1920x1200 panel + - osddisplays,osd101t2587-53ts # QiaoDian XianShi Corporation 4"3 TFT LCD panel - qiaodian,qd43003c0-40 # Rocktech Displays Ltd. RK101II01D-CT 10.1" TFT 1280x800 From patchwork Sun Mar 15 13:43:58 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sam Ravnborg X-Patchwork-Id: 203292 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.6 required=3.0 tests=DKIM_INVALID,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH, MAILING_LIST_MULTI, SIGNED_OFF_BY, SPF_HELO_NONE, SPF_PASS, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1ADB6C4CECE for ; Sun, 15 Mar 2020 13:45:11 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id E5A0520575 for ; Sun, 15 Mar 2020 13:45:10 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="aoJebTvo" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728679AbgCONpK (ORCPT ); Sun, 15 Mar 2020 09:45:10 -0400 Received: from mail-lf1-f66.google.com ([209.85.167.66]:41088 "EHLO mail-lf1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728668AbgCONpK (ORCPT ); Sun, 15 Mar 2020 09:45:10 -0400 Received: by mail-lf1-f66.google.com with SMTP id q10so11696720lfo.8; Sun, 15 Mar 2020 06:45:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=K4LBF/SfxFsUJUI8XynDjFJLvWIbs62fNsYASRbdYqg=; b=aoJebTvoPhClcIQs9YdHWM3SzN8T043UUVvQYFNL8UE17NuDGxf+Py6gqkcqFYFsEk T5nBFivS4rykT3XVNYc/7+tX7dCQV27ZdqAlkvzYrH/48ztoAudGFud7YIx+dmawq9Dx un8ulI1mFeNu4hlK4vUnbKS7ooVbnGNzKoWmAdar0teE0q158xIPaNieOGLvTqILBQS/ Cs8JlXNRVtJKlcnthDW/Yw0S/txAH2kG/thS1zfMnVqNZecJlLw8buvJn0nTdzzr88Jy XgoQj1y6WPlO2swBt1s88x1sPetexxXX6SrDcIXa6ln/FPEp9Aj/+feIpGIpnkw5ob7L 032w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=K4LBF/SfxFsUJUI8XynDjFJLvWIbs62fNsYASRbdYqg=; b=D/NEKrugTJaFi26hdefjBbm2FcSGjjMih1i+mfJWcH3L7tzObxJ8GAj7ziMar0iBbN BsoYGlDHCRXPYcl6xKB0bxokdqgORF8ZWpaTzpm3fYAskBT9lABMhekWbwXT95BWvgje 94GEc+xCsIM4JlF2QxCfoZYZfBe4xlUR8Hq9HE87Sj3Gli+XyN9c250ofjZFDw1AlDqT 6KLZ3hQuB56WwyF76lGr+D2NPxcjrrkRTf9qrlzdLqlEjl9BFEp+NObaTCozZ9KPwkO5 e33X5nesp4IsyJi9KdjaCgRlviN7IW4q2tW4vN4/NKchGDel2dFUQdt5NWYSTMHnS9ed yXpg== X-Gm-Message-State: ANhLgQ2UHFIKpVS/4BOgV0HCj7LvaIwiwJAQtGOaVK7IKTggoIWZnSqp clxrg+6/5eOwOFfYcfTKAi0= X-Google-Smtp-Source: ADFU+vvWFtPKBW6qyBr5/W0wNmtivYBhs/ZHpF0VnBgS28zZBTjXkCXXsHcgk6/v8BGForf5E2kFNA== X-Received: by 2002:a19:5509:: with SMTP id n9mr12784893lfe.51.1584279906102; Sun, 15 Mar 2020 06:45:06 -0700 (PDT) Received: from saturn.lan (18.158-248-194.customer.lyse.net. [158.248.194.18]) by smtp.gmail.com with ESMTPSA id a9sm23025212lfb.21.2020.03.15.06.45.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 15 Mar 2020 06:45:05 -0700 (PDT) From: Sam Ravnborg To: dri-devel@lists.freedesktop.org, Thierry Reding , Rob Herring , devicetree@vger.kernel.org Cc: Alexandre Courbot , Andrzej Hajda , Brian Masney , Chris Zhong , Douglas Anderson , Guido Gunther , Heiko Schocher , Nikolaus Schaller , Hoegeun Kwon , Jagan Teki , Jerry Han , Jonathan Bakker , Laurent Pinchart , Lin Huang , Linus Walleij , linux-spi@vger.kernel.org, Marco Franchi , Marek Belisko , Mark Brown , Maxime Ripard , Maxime Ripard , Nickey Yang , Paul Cercueil , Peter Rosin , Peter Ujfalusi , Purism Kernel Team , Robert Chiras , Sam Ravnborg , Sandeep Panda , Stefan Mavrodiev , Tomi Valkeinen , Tony Lindgren , Vinay Simha BN , Werner Johansson Subject: [PATCH v1 18/36] dt-bindings: display: convert raydium, rm67191 to DT Schema Date: Sun, 15 Mar 2020 14:43:58 +0100 Message-Id: <20200315134416.16527-19-sam@ravnborg.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200315134416.16527-1-sam@ravnborg.org> References: <20200315134416.16527-1-sam@ravnborg.org> MIME-Version: 1.0 Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Signed-off-by: Sam Ravnborg Cc: Robert Chiras Cc: Thierry Reding Cc: Sam Ravnborg --- .../display/panel/raydium,rm67191.txt | 41 ---------- .../display/panel/raydium,rm67191.yaml | 75 +++++++++++++++++++ 2 files changed, 75 insertions(+), 41 deletions(-) delete mode 100644 Documentation/devicetree/bindings/display/panel/raydium,rm67191.txt create mode 100644 Documentation/devicetree/bindings/display/panel/raydium,rm67191.yaml diff --git a/Documentation/devicetree/bindings/display/panel/raydium,rm67191.txt b/Documentation/devicetree/bindings/display/panel/raydium,rm67191.txt deleted file mode 100644 index 10424695aa02..000000000000 --- a/Documentation/devicetree/bindings/display/panel/raydium,rm67191.txt +++ /dev/null @@ -1,41 +0,0 @@ -Raydium RM67171 OLED LCD panel with MIPI-DSI protocol - -Required properties: -- compatible: "raydium,rm67191" -- reg: virtual channel for MIPI-DSI protocol - must be <0> -- dsi-lanes: number of DSI lanes to be used - must be <3> or <4> -- port: input port node with endpoint definition as - defined in Documentation/devicetree/bindings/graph.txt; - the input port should be connected to a MIPI-DSI device - driver - -Optional properties: -- reset-gpios: a GPIO spec for the RST_B GPIO pin -- v3p3-supply: phandle to 3.3V regulator that powers the VDD_3V3 pin -- v1p8-supply: phandle to 1.8V regulator that powers the VDD_1V8 pin -- width-mm: see panel-common.txt -- height-mm: see panel-common.txt -- video-mode: 0 - burst-mode - 1 - non-burst with sync event - 2 - non-burst with sync pulse - -Example: - - panel@0 { - compatible = "raydium,rm67191"; - reg = <0>; - pinctrl-0 = <&pinctrl_mipi_dsi_0_1_en>; - pinctrl-names = "default"; - reset-gpios = <&gpio1 7 GPIO_ACTIVE_LOW>; - dsi-lanes = <4>; - width-mm = <68>; - height-mm = <121>; - - port { - panel_in: endpoint { - remote-endpoint = <&mipi_out>; - }; - }; - }; diff --git a/Documentation/devicetree/bindings/display/panel/raydium,rm67191.yaml b/Documentation/devicetree/bindings/display/panel/raydium,rm67191.yaml new file mode 100644 index 000000000000..b78b66a4336f --- /dev/null +++ b/Documentation/devicetree/bindings/display/panel/raydium,rm67191.yaml @@ -0,0 +1,75 @@ +# SPDX-License-Identifier: GPL-2.0 +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/display/panel/raydium,rm67191.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Raydium RM67171 OLED LCD panel with MIPI-DSI protocol + +maintainers: + - Robert Chiras + +allOf: + - $ref: panel-common.yaml# + +properties: + compatible: + const: raydium,rm67191 + + reg: true + port: true + reset-gpios: true + width-mm: true + height-mm: true + + dsi-lanes: + description: Number of DSI lanes to be used must be <3> or <4> + enum: [3, 4] + + v3p3-supply: + description: phandle to 3.3V regulator that powers the VDD_3V3 pin + + v1p8-supply: + description: phandle to 1.8V regulator that powers the VDD_1V8 pin + + video-mode: + description: | + 0 - burst-mode + 1 - non-burst with sync event + 2 - non-burst with sync pulse + enum: [0, 1, 2] + +required: + - compatible + - reg + - dsi-lanes + - port + +additionalProperties: false + +examples: + - | + #include + + dsi { + #address-cells = <1>; + #size-cells = <0>; + + panel { + compatible = "raydium,rm67191"; + reg = <0>; + reset-gpios = <&gpio1 7 GPIO_ACTIVE_LOW>; + dsi-lanes = <4>; + width-mm = <68>; + height-mm = <121>; + video-mode = <1>; + + port { + panel_in: endpoint { + remote-endpoint = <&mipi_out>; + }; + }; + }; + }; + +... From patchwork Sun Mar 15 13:44:00 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sam Ravnborg X-Patchwork-Id: 203291 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.6 required=3.0 tests=DKIM_INVALID,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH, MAILING_LIST_MULTI, SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 03CB1C4CECE for ; Sun, 15 Mar 2020 13:45:14 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id C327120674 for ; Sun, 15 Mar 2020 13:45:13 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="RUApmchf" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728685AbgCONpN (ORCPT ); Sun, 15 Mar 2020 09:45:13 -0400 Received: from mail-lf1-f67.google.com ([209.85.167.67]:42504 "EHLO mail-lf1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728668AbgCONpN (ORCPT ); Sun, 15 Mar 2020 09:45:13 -0400 Received: by mail-lf1-f67.google.com with SMTP id t21so11694680lfe.9; Sun, 15 Mar 2020 06:45:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=K6Ojd94vjUcgSndzfprDVKF+JSlxG4uGRfRXsYpGzQ0=; b=RUApmchfSYmoxx2BhNKgiY6eJuIK9Qg6fULrj7j1NQ0ylBx6Jri/OwL8H7UafwANxG Y/CDNBHoSvUo6GE9N6kgf6dCCw0FmmI3q/x6FzpEQUfdtSixzhvwm9Jj7wR7MeEX773q 0ghaVjexNXypxQMBQ39t6WlP+qMv2fz9Inx1PaZ42d4dRwV/2tQKnBMNAbNTnR103BPx U6kmRlmC29jHgKLxdWQuGpYvZLlgqBWE1jScq40JTEjjA+O5kXrh9CHm6W4QTImg0CAh tQrN3ZpxeGIgMaIaauZ06tw5PdPX18vabtO1txh7fnQwWrWkSofW21y9bLOh2dVKCsfD vTfg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=K6Ojd94vjUcgSndzfprDVKF+JSlxG4uGRfRXsYpGzQ0=; b=Uf+fS4srhTYWM13D/k0P4FD5VRfOTYyJcIGYMCVkWt/4wVf5tLQG14e6VkVQghrx6T g8mp4j7VzizX0RCyAShy2wmLxKSiFpCrQd3odZvyuEZROS0EN+vtPkSCM5SMzSyc9pwF 04OEqyJjw30L936J8TXRKj+TGEAyVXyCmAwSRLHZXVs3RYPn8XBC1C5NYzNjT2zKyVah 3/8bJR3eQoXoFH29/JmOQ5ePcyWN5qPXeZtoYiN9sxcJWxSofTlqWEBvXHk2jMoopYRu aoy172Kb7lZDOrzCDXwjo+PnZhHgqxw4UNcWVZ3ayiDO1Ag/iFkF+OqOESTQ1ur920tD 6tmw== X-Gm-Message-State: ANhLgQ1eHGIOmEDA1Of6FdpQMy5R61D03Emjo70fshK/vKoXnKwljUHq StjIUGy2BUsfNY2vd9j92sE= X-Google-Smtp-Source: ADFU+vvUDD8EF4KsOZd/MppSFwwUy3nri8pTIr+LWp70LAZWTpH+hOHiq0AvEfYZ7bRx03u/qweGHQ== X-Received: by 2002:a05:6512:1085:: with SMTP id j5mr14336324lfg.183.1584279910323; Sun, 15 Mar 2020 06:45:10 -0700 (PDT) Received: from saturn.lan (18.158-248-194.customer.lyse.net. [158.248.194.18]) by smtp.gmail.com with ESMTPSA id a9sm23025212lfb.21.2020.03.15.06.45.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 15 Mar 2020 06:45:09 -0700 (PDT) From: Sam Ravnborg To: dri-devel@lists.freedesktop.org, Thierry Reding , Rob Herring , devicetree@vger.kernel.org Cc: Alexandre Courbot , Andrzej Hajda , Brian Masney , Chris Zhong , Douglas Anderson , Guido Gunther , Heiko Schocher , Nikolaus Schaller , Hoegeun Kwon , Jagan Teki , Jerry Han , Jonathan Bakker , Laurent Pinchart , Lin Huang , Linus Walleij , linux-spi@vger.kernel.org, Marco Franchi , Marek Belisko , Mark Brown , Maxime Ripard , Maxime Ripard , Nickey Yang , Paul Cercueil , Peter Rosin , Peter Ujfalusi , Purism Kernel Team , Robert Chiras , Sam Ravnborg , Sandeep Panda , Stefan Mavrodiev , Tomi Valkeinen , Tony Lindgren , Vinay Simha BN , Werner Johansson Subject: [PATCH v1 20/36] dt-bindings: display: convert samsung AMOLED to DT Schema Date: Sun, 15 Mar 2020 14:44:00 +0100 Message-Id: <20200315134416.16527-21-sam@ravnborg.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200315134416.16527-1-sam@ravnborg.org> References: <20200315134416.16527-1-sam@ravnborg.org> MIME-Version: 1.0 Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org For samsung there was two AMOLED panels with the same description. Collect them in one binding file. Signed-off-by: Sam Ravnborg Cc: Hoegeun Kwon Cc: Thierry Reding Cc: Sam Ravnborg --- .../panel/samsung,amoled-mipi-dsi.yaml | 65 +++++++++++++++++++ .../display/panel/samsung,s6e3ha2.txt | 31 --------- .../display/panel/samsung,s6e63j0x03.txt | 24 ------- 3 files changed, 65 insertions(+), 55 deletions(-) create mode 100644 Documentation/devicetree/bindings/display/panel/samsung,amoled-mipi-dsi.yaml delete mode 100644 Documentation/devicetree/bindings/display/panel/samsung,s6e3ha2.txt delete mode 100644 Documentation/devicetree/bindings/display/panel/samsung,s6e63j0x03.txt diff --git a/Documentation/devicetree/bindings/display/panel/samsung,amoled-mipi-dsi.yaml b/Documentation/devicetree/bindings/display/panel/samsung,amoled-mipi-dsi.yaml new file mode 100644 index 000000000000..96bdde9298e0 --- /dev/null +++ b/Documentation/devicetree/bindings/display/panel/samsung,amoled-mipi-dsi.yaml @@ -0,0 +1,65 @@ +# SPDX-License-Identifier: GPL-2.0 +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/display/panel/samsung,amoled-mipi-dsi.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Samsung AMOLED MIPI-DSI panels + +maintainers: + - Hoegeun Kwon + +allOf: + - $ref: panel-common.yaml# + +properties: + compatible: + enum: + # Samsung S6E63J0X03 1.63" 320x320 AMOLED panel + - samsung,s6e63j0x03 + # Samsung S6E3HA2 5.7" 1440x2560 AMOLED panel + - samsung,s6e3ha2 + # Samsung S6E3HF2 5.65" 1600x2560 AMOLED panel + - samsung,s6e3hf2 + + reg: true + reset-gpios: true + enable-gpios: true + te-gpios: true + + vdd3-supply: + description: I/O voltage supply + + vci-supply: + description: voltage supply for analog circuits + +required: + - compatible + - reg + - vdd3-supply + - vci-supply + - reset-gpios + - enable-gpios + +additionalProperties: false + +examples: + - | + #include + + dsi { + #address-cells = <1>; + #size-cells = <0>; + + panel@0 { + compatible = "samsung,s6e3ha2"; + reg = <0>; + vdd3-supply = <&ldo27_reg>; + vci-supply = <&ldo28_reg>; + reset-gpios = <&gpg0 0 GPIO_ACTIVE_LOW>; + enable-gpios = <&gpf1 5 GPIO_ACTIVE_HIGH>; + te-gpios = <&gpf1 3 GPIO_ACTIVE_HIGH>; + }; + }; + +... diff --git a/Documentation/devicetree/bindings/display/panel/samsung,s6e3ha2.txt b/Documentation/devicetree/bindings/display/panel/samsung,s6e3ha2.txt deleted file mode 100644 index 4acea25c244b..000000000000 --- a/Documentation/devicetree/bindings/display/panel/samsung,s6e3ha2.txt +++ /dev/null @@ -1,31 +0,0 @@ -Samsung S6E3HA2 5.7" 1440x2560 AMOLED panel -Samsung S6E3HF2 5.65" 1600x2560 AMOLED panel - -Required properties: - - compatible: should be one of: - "samsung,s6e3ha2", - "samsung,s6e3hf2". - - reg: the virtual channel number of a DSI peripheral - - vdd3-supply: I/O voltage supply - - vci-supply: voltage supply for analog circuits - - reset-gpios: a GPIO spec for the reset pin (active low) - - enable-gpios: a GPIO spec for the panel enable pin (active high) - -Optional properties: - - te-gpios: a GPIO spec for the tearing effect synchronization signal - gpio pin (active high) - -Example: -&dsi { - ... - - panel@0 { - compatible = "samsung,s6e3ha2"; - reg = <0>; - vdd3-supply = <&ldo27_reg>; - vci-supply = <&ldo28_reg>; - reset-gpios = <&gpg0 0 GPIO_ACTIVE_LOW>; - enable-gpios = <&gpf1 5 GPIO_ACTIVE_HIGH>; - te-gpios = <&gpf1 3 GPIO_ACTIVE_HIGH>; - }; -}; diff --git a/Documentation/devicetree/bindings/display/panel/samsung,s6e63j0x03.txt b/Documentation/devicetree/bindings/display/panel/samsung,s6e63j0x03.txt deleted file mode 100644 index 3f1a8392af7f..000000000000 --- a/Documentation/devicetree/bindings/display/panel/samsung,s6e63j0x03.txt +++ /dev/null @@ -1,24 +0,0 @@ -Samsung S6E63J0X03 1.63" 320x320 AMOLED panel (interface: MIPI-DSI command mode) - -Required properties: - - compatible: "samsung,s6e63j0x03" - - reg: the virtual channel number of a DSI peripheral - - vdd3-supply: I/O voltage supply - - vci-supply: voltage supply for analog circuits - - reset-gpios: a GPIO spec for the reset pin (active low) - - te-gpios: a GPIO spec for the tearing effect synchronization signal - gpio pin (active high) - -Example: -&dsi { - ... - - panel@0 { - compatible = "samsung,s6e63j0x03"; - reg = <0>; - vdd3-supply = <&ldo16_reg>; - vci-supply = <&ldo20_reg>; - reset-gpios = <&gpe0 1 GPIO_ACTIVE_LOW>; - te-gpios = <&gpx0 6 GPIO_ACTIVE_HIGH>; - }; -}; From patchwork Sun Mar 15 13:44:02 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sam Ravnborg X-Patchwork-Id: 203290 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.6 required=3.0 tests=DKIM_INVALID,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH, MAILING_LIST_MULTI, SIGNED_OFF_BY, SPF_HELO_NONE, SPF_PASS, URIBL_BLOCKED, USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 20617C10DCE for ; Sun, 15 Mar 2020 13:45:20 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id E36AD206EB for ; Sun, 15 Mar 2020 13:45:19 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="kVkFO0dZ" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728689AbgCONpT (ORCPT ); Sun, 15 Mar 2020 09:45:19 -0400 Received: from mail-lj1-f194.google.com ([209.85.208.194]:39035 "EHLO mail-lj1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728668AbgCONpT (ORCPT ); Sun, 15 Mar 2020 09:45:19 -0400 Received: by mail-lj1-f194.google.com with SMTP id f10so15604341ljn.6; Sun, 15 Mar 2020 06:45:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=95/tYrFLxFWhHQedTIuiprVnYZuYF3knH69CjqDuvg4=; b=kVkFO0dZn3WY2eMdLtNyuUxKYmVfl5GkIYSSGuVnSVLwfS7on2M58zQL/nGUG1V6W6 KOPElrjpPlI3MYCbvm8oiDtkivrOfLK0wD5olkxHasi8wp5yStO5MJUKwxW4N2+56vEl 9SJ6aj5TLkVhBTe+OnB68MnD2QYhQTYONHmVpzs6rbf+QYn7haf7iiAwe+Byt+M1gVYR aLQDOzcS6djblQkcKg6VbWUSbWcALHd+nu7VuNCO7/D1kzH0Aow495hmSMovYWMXmW0o 92P+Qu03iJ57nRtDk9+6a6fHVx3kIdJIKOPbcu5k4SLWQ1l8rIzuVp/v9HKFf4m9xFkJ wU5w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=95/tYrFLxFWhHQedTIuiprVnYZuYF3knH69CjqDuvg4=; b=oDiHdruZj/ttpWQpkoJ9RZi9eisZZ8/yTiCUDYXiyN/hzqIJo5hmOOsh9MvbBgwUfh zNc73OhzN7yfvXtqMDYpA9FvQyUcik2UnIskU1GHsU+JkSK/Y0xDovFZd334k4OPuaeE mlGqtMAiREH6wqypXCd6R1BuVgHHwr17WBMAFIvvWy8vvqotc8tYMhjcUmuqfV/51NTa srTAKOWnyv0F2GoIxKtNqbzpOpfrA1VkrO0nXQfxFNLfS/qf7/xXUXAPUId7KJPZlO8x gcL/f+oN9oOBZQNWf3WLBYQqrZdpYzUSRchCeap6fEuSUgOOlLcmPIUZ1vB+rH0KPg7H /szw== X-Gm-Message-State: ANhLgQ0tRZFSL43JuGJ9SRt2ZiT3QQbqiOU1bAaKS3Tz1k4dqQopgGhK +ta2gUHBgX26vFeByFwl7C8= X-Google-Smtp-Source: ADFU+vvAb04MLDJqI6lPeN8wJHT/HuiV0E9v6XPvtroLZweI21bVO9Nmr0Oyc6ieS+LchZ7g0jnh2Q== X-Received: by 2002:a2e:870b:: with SMTP id m11mr3056178lji.109.1584279914394; Sun, 15 Mar 2020 06:45:14 -0700 (PDT) Received: from saturn.lan (18.158-248-194.customer.lyse.net. [158.248.194.18]) by smtp.gmail.com with ESMTPSA id a9sm23025212lfb.21.2020.03.15.06.45.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 15 Mar 2020 06:45:13 -0700 (PDT) From: Sam Ravnborg To: dri-devel@lists.freedesktop.org, Thierry Reding , Rob Herring , devicetree@vger.kernel.org Cc: Alexandre Courbot , Andrzej Hajda , Brian Masney , Chris Zhong , Douglas Anderson , Guido Gunther , Heiko Schocher , Nikolaus Schaller , Hoegeun Kwon , Jagan Teki , Jerry Han , Jonathan Bakker , Laurent Pinchart , Lin Huang , Linus Walleij , linux-spi@vger.kernel.org, Marco Franchi , Marek Belisko , Mark Brown , Maxime Ripard , Maxime Ripard , Nickey Yang , Paul Cercueil , Peter Rosin , Peter Ujfalusi , Purism Kernel Team , Robert Chiras , Sam Ravnborg , Sandeep Panda , Stefan Mavrodiev , Tomi Valkeinen , Tony Lindgren , Vinay Simha BN , Werner Johansson Subject: [PATCH v1 22/36] dt-bindings: display: convert samsung, ld9040 to DT Schema Date: Sun, 15 Mar 2020 14:44:02 +0100 Message-Id: <20200315134416.16527-23-sam@ravnborg.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200315134416.16527-1-sam@ravnborg.org> References: <20200315134416.16527-1-sam@ravnborg.org> MIME-Version: 1.0 Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Signed-off-by: Sam Ravnborg Cc: Andrzej Hajda Cc: Thierry Reding Cc: Sam Ravnborg --- .../bindings/display/panel/samsung,ld9040.txt | 66 ------------ .../display/panel/samsung,ld9040.yaml | 100 ++++++++++++++++++ 2 files changed, 100 insertions(+), 66 deletions(-) delete mode 100644 Documentation/devicetree/bindings/display/panel/samsung,ld9040.txt create mode 100644 Documentation/devicetree/bindings/display/panel/samsung,ld9040.yaml diff --git a/Documentation/devicetree/bindings/display/panel/samsung,ld9040.txt b/Documentation/devicetree/bindings/display/panel/samsung,ld9040.txt deleted file mode 100644 index 354d4d1df4ff..000000000000 --- a/Documentation/devicetree/bindings/display/panel/samsung,ld9040.txt +++ /dev/null @@ -1,66 +0,0 @@ -Samsung LD9040 AMOLED LCD parallel RGB panel with SPI control bus - -Required properties: - - compatible: "samsung,ld9040" - - reg: address of the panel on SPI bus - - vdd3-supply: core voltage supply - - vci-supply: voltage supply for analog circuits - - reset-gpios: a GPIO spec for the reset pin - - display-timings: timings for the connected panel according to [1] - -The panel must obey rules for SPI slave device specified in document [2]. - -Optional properties: - - power-on-delay: delay after turning regulators on [ms] - - reset-delay: delay after reset sequence [ms] - - panel-width-mm: physical panel width [mm] - - panel-height-mm: physical panel height [mm] - -The device node can contain one 'port' child node with one child -'endpoint' node, according to the bindings defined in [3]. This -node should describe panel's video bus. - -[1]: Documentation/devicetree/bindings/display/panel/display-timing.txt -[2]: Documentation/devicetree/bindings/spi/spi-bus.txt -[3]: Documentation/devicetree/bindings/media/video-interfaces.txt - -Example: - - lcd@0 { - compatible = "samsung,ld9040"; - reg = <0>; - vdd3-supply = <&ldo7_reg>; - vci-supply = <&ldo17_reg>; - reset-gpios = <&gpy4 5 0>; - spi-max-frequency = <1200000>; - spi-cpol; - spi-cpha; - power-on-delay = <10>; - reset-delay = <10>; - panel-width-mm = <90>; - panel-height-mm = <154>; - - display-timings { - timing { - clock-frequency = <23492370>; - hactive = <480>; - vactive = <800>; - hback-porch = <16>; - hfront-porch = <16>; - vback-porch = <2>; - vfront-porch = <28>; - hsync-len = <2>; - vsync-len = <1>; - hsync-active = <0>; - vsync-active = <0>; - de-active = <0>; - pixelclk-active = <0>; - }; - }; - - port { - lcd_ep: endpoint { - remote-endpoint = <&fimd_dpi_ep>; - }; - }; - }; diff --git a/Documentation/devicetree/bindings/display/panel/samsung,ld9040.yaml b/Documentation/devicetree/bindings/display/panel/samsung,ld9040.yaml new file mode 100644 index 000000000000..b6e7e87411e8 --- /dev/null +++ b/Documentation/devicetree/bindings/display/panel/samsung,ld9040.yaml @@ -0,0 +1,100 @@ +# SPDX-License-Identifier: GPL-2.0 +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/display/panel/samsung,ld9040.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Samsung LD9040 AMOLED LCD parallel RGB panel with SPI control bus + +maintainers: + - Andrzej Hajda + +allOf: + - $ref: ../../spi/spi-slave.yaml# + - $ref: panel-common.yaml# + +properties: + compatible: + const: samsung,ld9040 + + display-timings: true + port: true + reg: true + reset-gpios: true + + vdd3-supply: + description: core voltage supply + + vci-supply: + description: voltage supply for analog circuits + + power-on-delay: + description: delay after turning regulators on [ms] + + reset-delay: + description: delay after reset sequence [ms] + + panel-width-mm: + description: physical panel width [mm] + + panel-height-mm: + description: physical panel height [mm] + +required: + - compatible + - reg + - vdd3-supply + - vci-supply + - reset-gpios + - display-timings + +examples: + - | + spi { + #address-cells = <1>; + #size-cells = <0>; + + lcd@0 { + compatible = "samsung,ld9040"; + #address-cells = <1>; + #size-cells = <0>; + + reg = <0>; + vdd3-supply = <&ldo7_reg>; + vci-supply = <&ldo17_reg>; + reset-gpios = <&gpy4 5 0>; + spi-max-frequency = <1200000>; + spi-cpol; + spi-cpha; + power-on-delay = <10>; + reset-delay = <10>; + panel-width-mm = <90>; + panel-height-mm = <154>; + + display-timings { + timing { + clock-frequency = <23492370>; + hactive = <480>; + vactive = <800>; + hback-porch = <16>; + hfront-porch = <16>; + vback-porch = <2>; + vfront-porch = <28>; + hsync-len = <2>; + vsync-len = <1>; + hsync-active = <0>; + vsync-active = <0>; + de-active = <0>; + pixelclk-active = <0>; + }; + }; + + port { + lcd_ep: endpoint { + remote-endpoint = <&fimd_dpi_ep>; + }; + }; + }; + }; + +... From patchwork Sun Mar 15 13:44:04 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sam Ravnborg X-Patchwork-Id: 203289 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.6 required=3.0 tests=DKIM_INVALID,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH, MAILING_LIST_MULTI, SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6D465C5ACC2 for ; Sun, 15 Mar 2020 13:45:22 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 428E1206B1 for ; Sun, 15 Mar 2020 13:45:22 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="pXX4HARM" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728693AbgCONpV (ORCPT ); Sun, 15 Mar 2020 09:45:21 -0400 Received: from mail-lf1-f68.google.com ([209.85.167.68]:42516 "EHLO mail-lf1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728688AbgCONpV (ORCPT ); Sun, 15 Mar 2020 09:45:21 -0400 Received: by mail-lf1-f68.google.com with SMTP id t21so11694874lfe.9; Sun, 15 Mar 2020 06:45:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=ghUynx34Se1PWQlxUuq3M8AKFCN6cEMd2e8sZ7qxkGY=; b=pXX4HARMlo/xxLmk/Ribpq3UuFfXvqrQ9jU2j13Y9h6stHodmEt1h+dfHlxMt9L57z SEBzTJDGTz+G+YRegd+ZgxU8hAa2OaSfKgDZz30lTHQ96Bprky335XWloIRBjLb9gg2d lIQuIbWcAQNAhfOl5eo5MZgNdoQ0XaE2vDt5N3r2iT9MOBtm8xR/J0LyO3W8Sla21jZx yOf1Q+FyoqUDj/2FJ4Q7U26s5gxEJDyk4huESC2qjhA2e5dc903i5Inv23gUj+l40Ex/ BDBJoJ0Ojk4RV00rd3B9eejNCkx1QjY9MGoixSN0TEJ0e8X0FriBJg1HOrL7Ckqy5mWD c15g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=ghUynx34Se1PWQlxUuq3M8AKFCN6cEMd2e8sZ7qxkGY=; b=c1diPGveL3ej1IiskBf6Vy8ct7aIpPteMHXfQiyccKCVYrvZ19VTI65Yd+ps+wcHHR cg6Ms3O6/X/+toqsOxAeAeQDRz6wu/eFzkzeG5vVTtc+zMVkYTK9DB+yRlKEHKzZJrm1 Hk5nCxew9ptycsok21TDgegtH4JNcLQUM5eEOyL9E89tB87pyTpBd9bKXs3VtfeONxuT YvnDe+6PdQSYwNJ9Gjvcga4rJ+9y8F6GHBQnlWGIcLmH3zdXk9iEsFql4IR2Cw7R4EG6 tW3UU5AEsMDpb65wGuZGdvgVG3S3yrjkZFvr6pYi9T/Wn0X6OtOv4y1h8kKVhvjnt9PI 8/3Q== X-Gm-Message-State: ANhLgQ2BeTfIVftV3qPB/ww2bTP3EGCc6i5Wbh91IzUj0LkC8lOZQ4fS HURaKc0DG7LQG6Nw3JMDA78= X-Google-Smtp-Source: ADFU+vvqGwEF7vJ9mSozATwfYlatHSXGkxufLvaaOBHO7rJKVQZ4y8gUYwiG2PeFs0YD7kJuwer2lA== X-Received: by 2002:ac2:5598:: with SMTP id v24mr13738225lfg.139.1584279918259; Sun, 15 Mar 2020 06:45:18 -0700 (PDT) Received: from saturn.lan (18.158-248-194.customer.lyse.net. [158.248.194.18]) by smtp.gmail.com with ESMTPSA id a9sm23025212lfb.21.2020.03.15.06.45.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 15 Mar 2020 06:45:17 -0700 (PDT) From: Sam Ravnborg To: dri-devel@lists.freedesktop.org, Thierry Reding , Rob Herring , devicetree@vger.kernel.org Cc: Alexandre Courbot , Andrzej Hajda , Brian Masney , Chris Zhong , Douglas Anderson , Guido Gunther , Heiko Schocher , Nikolaus Schaller , Hoegeun Kwon , Jagan Teki , Jerry Han , Jonathan Bakker , Laurent Pinchart , Lin Huang , Linus Walleij , linux-spi@vger.kernel.org, Marco Franchi , Marek Belisko , Mark Brown , Maxime Ripard , Maxime Ripard , Nickey Yang , Paul Cercueil , Peter Rosin , Peter Ujfalusi , Purism Kernel Team , Robert Chiras , Sam Ravnborg , Sandeep Panda , Stefan Mavrodiev , Tomi Valkeinen , Tony Lindgren , Vinay Simha BN , Werner Johansson Subject: [PATCH v1 24/36] dt-bindings: display: convert toppoly panels to DT Schema Date: Sun, 15 Mar 2020 14:44:04 +0100 Message-Id: <20200315134416.16527-25-sam@ravnborg.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200315134416.16527-1-sam@ravnborg.org> References: <20200315134416.16527-1-sam@ravnborg.org> MIME-Version: 1.0 Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Signed-off-by: Sam Ravnborg Cc: Marek Belisko Cc: H. Nikolaus Schaller Cc: Thierry Reding Cc: Sam Ravnborg --- .../bindings/display/panel/tpo,td.yaml | 60 +++++++++++++++++++ .../bindings/display/panel/tpo,td028ttec1.txt | 32 ---------- .../bindings/display/panel/tpo,td043mtea1.txt | 33 ---------- 3 files changed, 60 insertions(+), 65 deletions(-) create mode 100644 Documentation/devicetree/bindings/display/panel/tpo,td.yaml delete mode 100644 Documentation/devicetree/bindings/display/panel/tpo,td028ttec1.txt delete mode 100644 Documentation/devicetree/bindings/display/panel/tpo,td043mtea1.txt diff --git a/Documentation/devicetree/bindings/display/panel/tpo,td.yaml b/Documentation/devicetree/bindings/display/panel/tpo,td.yaml new file mode 100644 index 000000000000..9a79bcf87753 --- /dev/null +++ b/Documentation/devicetree/bindings/display/panel/tpo,td.yaml @@ -0,0 +1,60 @@ +# SPDX-License-Identifier: GPL-2.0 +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/display/panel/tpo,td.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Toppoly TD Panels + +maintainers: + - Marek Belisko + - H. Nikolaus Schaller + +allOf: + - $ref: panel-common.yaml# + - $ref: ../../spi/spi-slave.yaml# + +properties: + compatible: + enum: + # Toppoly TD028TTEC1 Panel + - tpo,td028ttec1 + # Toppoly TD043MTEA1 Panel + - tpo,td043mtea1 + + reg: true + label: true + reset-gpios: true + backlight: true + port: true + +required: + - compatible + - port + +examples: + - | + spi { + #address-cells = <1>; + #size-cells = <0>; + + panel: panel@0 { + compatible = "tpo,td043mtea1"; + reg = <0>; + spi-max-frequency = <100000>; + spi-cpol; + spi-cpha; + + label = "lcd"; + + reset-gpios = <&gpio7 7 0>; + + port { + lcd_in: endpoint { + remote-endpoint = <&dpi_out>; + }; + }; + }; + }; + +... diff --git a/Documentation/devicetree/bindings/display/panel/tpo,td028ttec1.txt b/Documentation/devicetree/bindings/display/panel/tpo,td028ttec1.txt deleted file mode 100644 index 898e06ecf4ef..000000000000 --- a/Documentation/devicetree/bindings/display/panel/tpo,td028ttec1.txt +++ /dev/null @@ -1,32 +0,0 @@ -Toppoly TD028TTEC1 Panel -======================== - -Required properties: -- compatible: "tpo,td028ttec1" - -Optional properties: -- label: a symbolic name for the panel -- backlight: phandle of the backlight device - -Required nodes: -- Video port for DPI input - -Example -------- - -lcd-panel: td028ttec1@0 { - compatible = "tpo,td028ttec1"; - reg = <0>; - spi-max-frequency = <100000>; - spi-cpol; - spi-cpha; - - label = "lcd"; - backlight = <&backlight>; - port { - lcd_in: endpoint { - remote-endpoint = <&dpi_out>; - }; - }; -}; - diff --git a/Documentation/devicetree/bindings/display/panel/tpo,td043mtea1.txt b/Documentation/devicetree/bindings/display/panel/tpo,td043mtea1.txt deleted file mode 100644 index ec6d62975162..000000000000 --- a/Documentation/devicetree/bindings/display/panel/tpo,td043mtea1.txt +++ /dev/null @@ -1,33 +0,0 @@ -TPO TD043MTEA1 Panel -==================== - -Required properties: -- compatible: "tpo,td043mtea1" -- reset-gpios: panel reset gpio - -Optional properties: -- label: a symbolic name for the panel - -Required nodes: -- Video port for DPI input - -Example -------- - -lcd-panel: panel@0 { - compatible = "tpo,td043mtea1"; - reg = <0>; - spi-max-frequency = <100000>; - spi-cpol; - spi-cpha; - - label = "lcd"; - - reset-gpios = <&gpio7 7 0>; - - port { - lcd_in: endpoint { - remote-endpoint = <&dpi_out>; - }; - }; -}; From patchwork Sun Mar 15 13:44:06 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sam Ravnborg X-Patchwork-Id: 203288 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.6 required=3.0 tests=DKIM_INVALID,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH, MAILING_LIST_MULTI, SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id D460CC5ACBF for ; Sun, 15 Mar 2020 13:45:25 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id AD4F1206B1 for ; Sun, 15 Mar 2020 13:45:25 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="GylaU3jU" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728697AbgCONpZ (ORCPT ); Sun, 15 Mar 2020 09:45:25 -0400 Received: from mail-lj1-f193.google.com ([209.85.208.193]:39043 "EHLO mail-lj1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728628AbgCONpZ (ORCPT ); Sun, 15 Mar 2020 09:45:25 -0400 Received: by mail-lj1-f193.google.com with SMTP id f10so15604530ljn.6; Sun, 15 Mar 2020 06:45:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=YjUy1ADd38ONuUoZQBzdcbnlxdYpv/fTDjjTTwszQr4=; b=GylaU3jU+HIKMfeaQ7IeuU+xs4umCfPUVuYcOIxrPFuj/ZoaGAtx58hYWArlZA7EOT SDvJNDyUrfLHLajV+sz/k4RTvtE9kp3csCoYbzSLCzYW704ESkcsi0KgQ69hDoUImWgM EUQQEB7r/5UV1oB/iSWNd37KO5mhbW92PtfiGUheYmBP13oqryI8JOhLZP2Md3qod3+w 4hjjEXWUNuLXk2Jd2ZXKxU/5Gu23PSR2QZGsLGI5zdZzVZ4G76ndGj3+FQTKRMys5+xF LFg3F+ll2IZuKvh9rSjSrmfbA4kV/gR+L9BD1nzZIWwouuK3+qP/SUD29B0gzINCHZBS sFwA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=YjUy1ADd38ONuUoZQBzdcbnlxdYpv/fTDjjTTwszQr4=; b=mGoEaW+IiwxiRLeVFAsq0sOADvphPqf0cmBXvGlLS3Me0vrXpJPkL/UKdjmq1i+cxo pku5q1TqfEOpdfj71GpR2DZQ3hqZ6MnTPJ85790RWlpWctkrNXOEmWkzcRLIhOy0uig4 7ING4h2aAwJvfKQ7OyC7SLIP8GpNo7sGgKTrBSw0rBlXYkJYjo0iD3rCCCQpQFZ73Jnu v3FRExUjZXC89cHREij+CaAAwa6hQmuvqFCmRBOM3cMqpso1mE8u2vJSQMO/1VuURRu0 TFfrCWygeMFRZChwAZQQ+YriiBr+Ri5Xb6ew+R1dXBPQ16nNRsZi5JrSi8K4fqmC02CY pt6w== X-Gm-Message-State: ANhLgQ3cvqbr/ScLWVC/yf3b1W+LFPVOuatUZQbxv/msNskZJJdiod6+ 27S7o6mVCfo9z5V/uoj1SPg= X-Google-Smtp-Source: ADFU+vuBCcTjGBb970zhwI+lTBV4D9X+F5N29JU57gnyuBXoYAnBstRC+Mb4jD/+P4F27+Qag9SyXg== X-Received: by 2002:a2e:8991:: with SMTP id c17mr12506536lji.278.1584279922586; Sun, 15 Mar 2020 06:45:22 -0700 (PDT) Received: from saturn.lan (18.158-248-194.customer.lyse.net. [158.248.194.18]) by smtp.gmail.com with ESMTPSA id a9sm23025212lfb.21.2020.03.15.06.45.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 15 Mar 2020 06:45:22 -0700 (PDT) From: Sam Ravnborg To: dri-devel@lists.freedesktop.org, Thierry Reding , Rob Herring , devicetree@vger.kernel.org Cc: Alexandre Courbot , Andrzej Hajda , Brian Masney , Chris Zhong , Douglas Anderson , Guido Gunther , Heiko Schocher , Nikolaus Schaller , Hoegeun Kwon , Jagan Teki , Jerry Han , Jonathan Bakker , Laurent Pinchart , Lin Huang , Linus Walleij , linux-spi@vger.kernel.org, Marco Franchi , Marek Belisko , Mark Brown , Maxime Ripard , Maxime Ripard , Nickey Yang , Paul Cercueil , Peter Rosin , Peter Ujfalusi , Purism Kernel Team , Robert Chiras , Sam Ravnborg , Sandeep Panda , Stefan Mavrodiev , Tomi Valkeinen , Tony Lindgren , Vinay Simha BN , Werner Johansson Subject: [PATCH v1 26/36] dt-bindings: display: convert sony, acx565akm to DT Schema Date: Sun, 15 Mar 2020 14:44:06 +0100 Message-Id: <20200315134416.16527-27-sam@ravnborg.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200315134416.16527-1-sam@ravnborg.org> References: <20200315134416.16527-1-sam@ravnborg.org> MIME-Version: 1.0 Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Signed-off-by: Sam Ravnborg Cc: Tomi Valkeinen Cc: Thierry Reding Cc: Sam Ravnborg --- .../bindings/display/panel/sony,acx565akm.txt | 30 ----------- .../display/panel/sony,acx565akm.yaml | 53 +++++++++++++++++++ 2 files changed, 53 insertions(+), 30 deletions(-) delete mode 100644 Documentation/devicetree/bindings/display/panel/sony,acx565akm.txt create mode 100644 Documentation/devicetree/bindings/display/panel/sony,acx565akm.yaml diff --git a/Documentation/devicetree/bindings/display/panel/sony,acx565akm.txt b/Documentation/devicetree/bindings/display/panel/sony,acx565akm.txt deleted file mode 100644 index e12333280749..000000000000 --- a/Documentation/devicetree/bindings/display/panel/sony,acx565akm.txt +++ /dev/null @@ -1,30 +0,0 @@ -Sony ACX565AKM SDI Panel -======================== - -Required properties: -- compatible: "sony,acx565akm" - -Optional properties: -- label: a symbolic name for the panel -- reset-gpios: panel reset gpio - -Required nodes: -- Video port for SDI input - -Example -------- - -acx565akm@2 { - compatible = "sony,acx565akm"; - spi-max-frequency = <6000000>; - reg = <2>; - - label = "lcd"; - reset-gpios = <&gpio3 26 GPIO_ACTIVE_HIGH>; /* 90 */ - - port { - lcd_in: endpoint { - remote-endpoint = <&sdi_out>; - }; - }; -}; diff --git a/Documentation/devicetree/bindings/display/panel/sony,acx565akm.yaml b/Documentation/devicetree/bindings/display/panel/sony,acx565akm.yaml new file mode 100644 index 000000000000..a0b1abb9f33d --- /dev/null +++ b/Documentation/devicetree/bindings/display/panel/sony,acx565akm.yaml @@ -0,0 +1,53 @@ +# SPDX-License-Identifier: GPL-2.0 +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/display/panel/sony,acx565akm.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Sony ACX565AKM SDI Panel + +maintainers: + - Tomi Valkeinen + +allOf: + - $ref: panel-common.yaml# + - $ref: ../../spi/spi-slave.yaml# + +properties: + compatible: + const: sony,acx565akm + + label: true + reset-gpios: true + port: true + +required: + - compatible + - port + + +examples: + - | + #include + + spi { + #address-cells = <1>; + #size-cells = <0>; + + acx565akm@2 { + compatible = "sony,acx565akm"; + spi-max-frequency = <6000000>; + reg = <2>; + + label = "lcd"; + reset-gpios = <&gpio3 26 GPIO_ACTIVE_HIGH>; /* 90 */ + + port { + lcd_in: endpoint { + remote-endpoint = <&sdi_out>; + }; + }; + }; + }; + +... From patchwork Sun Mar 15 13:44:09 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sam Ravnborg X-Patchwork-Id: 203287 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.6 required=3.0 tests=DKIM_INVALID,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH, MAILING_LIST_MULTI, SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4DB90C2BB1D for ; Sun, 15 Mar 2020 13:45:32 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 2193B20575 for ; Sun, 15 Mar 2020 13:45:32 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="Z3lR7wSu" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728703AbgCONpb (ORCPT ); Sun, 15 Mar 2020 09:45:31 -0400 Received: from mail-lj1-f195.google.com ([209.85.208.195]:33678 "EHLO mail-lj1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728628AbgCONpb (ORCPT ); Sun, 15 Mar 2020 09:45:31 -0400 Received: by mail-lj1-f195.google.com with SMTP id f13so15623575ljp.0; Sun, 15 Mar 2020 06:45:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=6D6qYDVAoDX49O3pqM7t4Fg8LndWENhGAQHVsmY5Z5o=; b=Z3lR7wSu95RLPE8X/9z5nbJdYyfKLoqS9TzFiG+Q+tfPehq1P95WyiAlxeU1Nwapxc H9CqELCn6hZRSwR74G/qaLM0VjUFPnUq8J8p59WoRsAxYsp8ucqBBfWJaLvl5gcklSR9 dkH+IkaqkbPBpk9p7ss3gT5eB0IoTUA53nLbo+dv3ZEidt+wDUquCo64Gpsv21lP8R/H Bie6HSoex0YSrJldtxZS1RXWaORFX473B99nyzSRDaEKHTpmeY66phILlVWYBHcDSXTq lAq6gk1KpbeBHRuNnxGe++oP5rt9a4sEy3Xt7WUU02by3ECEEEyZtRQnCMunLmvFZzzu CUVA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=6D6qYDVAoDX49O3pqM7t4Fg8LndWENhGAQHVsmY5Z5o=; b=Uj1csRjkFERjKP/GXoT0YWYvhvm8Ew5HMx7QbSdzQJ5V+EJZsHdg9MiOrAuN6VNlp9 uLSVeYSu1HCu4rIlk+O7rBlvJI35pg7JyaJ4ddAgZp5/GWcnrgHgcrRRSWk+cbH5L9JT spbvgewQbqAiidsawbRgG7MnLwhxDrTsSdbl3cOLiK5V4wxJb7Xof9WV0q6eCN21Fok8 Xht4UFuC6G+rQMNsbNrIoXKuxkM/nybKHUCj8s9OxEiSgQr+lKIpDFaR2+Hwin2w/xmM gbwGBUC7ThTn+9hkoikIxG2PSbxoqprdIviWtwtnZ8cxQyorCYXI60l2+qqg1jY7xIQZ hwNw== X-Gm-Message-State: ANhLgQ3/9Z5yFtz29kkZ8tMpBAWAT3o6qZzJl1hb7DMcRJ8maktVMwsN O+9xkUwDtb3cHdzKi7zWtnU= X-Google-Smtp-Source: ADFU+vtooqsG2bH83FWIuLOJneXqDQ/gelH/BnjWZx7/xYxCAc4rrgoy5QfSuinhYEu3uCPsVtj9nA== X-Received: by 2002:a2e:b00c:: with SMTP id y12mr12528704ljk.167.1584279928664; Sun, 15 Mar 2020 06:45:28 -0700 (PDT) Received: from saturn.lan (18.158-248-194.customer.lyse.net. [158.248.194.18]) by smtp.gmail.com with ESMTPSA id a9sm23025212lfb.21.2020.03.15.06.45.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 15 Mar 2020 06:45:28 -0700 (PDT) From: Sam Ravnborg To: dri-devel@lists.freedesktop.org, Thierry Reding , Rob Herring , devicetree@vger.kernel.org Cc: Alexandre Courbot , Andrzej Hajda , Brian Masney , Chris Zhong , Douglas Anderson , Guido Gunther , Heiko Schocher , Nikolaus Schaller , Hoegeun Kwon , Jagan Teki , Jerry Han , Jonathan Bakker , Laurent Pinchart , Lin Huang , Linus Walleij , linux-spi@vger.kernel.org, Marco Franchi , Marek Belisko , Mark Brown , Maxime Ripard , Maxime Ripard , Nickey Yang , Paul Cercueil , Peter Rosin , Peter Ujfalusi , Purism Kernel Team , Robert Chiras , Sam Ravnborg , Sandeep Panda , Stefan Mavrodiev , Tomi Valkeinen , Tony Lindgren , Vinay Simha BN , Werner Johansson Subject: [PATCH v1 29/36] dt-bindings: display: drop unused simple-panel.txt Date: Sun, 15 Mar 2020 14:44:09 +0100 Message-Id: <20200315134416.16527-30-sam@ravnborg.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200315134416.16527-1-sam@ravnborg.org> References: <20200315134416.16527-1-sam@ravnborg.org> MIME-Version: 1.0 Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org There are no more references to simple-panel.txt. Delete it. Signed-off-by: Sam Ravnborg Cc: Thierry Reding Cc: Sam Ravnborg --- Documentation/devicetree/bindings/display/panel/simple-panel.txt | 1 - 1 file changed, 1 deletion(-) delete mode 100644 Documentation/devicetree/bindings/display/panel/simple-panel.txt diff --git a/Documentation/devicetree/bindings/display/panel/simple-panel.txt b/Documentation/devicetree/bindings/display/panel/simple-panel.txt deleted file mode 100644 index e11208fb7da8..000000000000 --- a/Documentation/devicetree/bindings/display/panel/simple-panel.txt +++ /dev/null @@ -1 +0,0 @@ -See panel-common.yaml in this directory. From patchwork Sun Mar 15 13:44:10 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sam Ravnborg X-Patchwork-Id: 203286 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.6 required=3.0 tests=DKIM_INVALID,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH, MAILING_LIST_MULTI, SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id C0B05C10DCE for ; Sun, 15 Mar 2020 13:45:33 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 864E620637 for ; Sun, 15 Mar 2020 13:45:33 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="T2ZA2c+5" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728704AbgCONpd (ORCPT ); Sun, 15 Mar 2020 09:45:33 -0400 Received: from mail-lj1-f193.google.com ([209.85.208.193]:35422 "EHLO mail-lj1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728701AbgCONpc (ORCPT ); Sun, 15 Mar 2020 09:45:32 -0400 Received: by mail-lj1-f193.google.com with SMTP id u12so15627948ljo.2; Sun, 15 Mar 2020 06:45:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=azOZ7kPdKDKE87CbcQj8S1GR4y4K/OoMeP9jpkMqrjY=; b=T2ZA2c+5tlbhyLrAiFFqt/rd0/VzWau2iJzhn8+bRFM4+1dTv0fJfFPfVvTAxKXbI1 kbqJwQsojD1BcX513aT3h94W4/2KP42h/h81z7rFV/PoaQlxecxhB7v57J0jLeDGOp1q 3uX29T4nJHY/sz5ErLpFRPkO93Z0x0MizZgzyC7EuR0MDLCZWKuHhWP5zwfdFm+F2EV6 /yQi9+LGvupDi4oN7V/B4Yq6gtfhIS4ZEtaHTAog3lq2qmnFdkfKb5mg5nPI89r6RV/A FZ+O1zW81w4Cz+WhYTwxR1rbigqr4BD/tUVgNXCw9vS6jR44dZqTMpy6c1edpwst4ZmT qSvQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=azOZ7kPdKDKE87CbcQj8S1GR4y4K/OoMeP9jpkMqrjY=; b=XVkvCAiDltpbAJqUrQACJbShTlfRROzOrmrKIFhr0Y3LyjGtvPq7e+PdBqSeWtBJ8r 3kqXCIreMtj3TYOT/mdCJ5LGp8cESKrTIuPSuBRHlXP1bBtc+UpgBbIxhOjtN9urHNy0 lpNnmVanP/VNDshFrrN6I1OkwyE8XxJTKR2hPmsh5Vq4srIsIB934HAJt/9oZbJJFDmg pQ/vPxO6saNijNuTYsnOC1RvrAMLHyo9nNT3wCO3qms1ZscCXQnjSNinDjlXTs2/zxnD sDc8cCX3O58lzpmwU1NEppVAeoqasbHzlAtK4c/8YzmwL1VMN8w38V7zFwiNya7eLfi1 e4EQ== X-Gm-Message-State: ANhLgQ17LdgmxoAUQxyOII+ZhLYKAVarscpGFbzb0zn9J+5ofQ2LLW2H 3Fu+3JqyAxMtibsEuhj8zo8= X-Google-Smtp-Source: ADFU+vs5LuCj6JNUC3blwIOkeUFcSwpV+vRt0L6KH2EvF6B7qKXUZVTzXMthHRmmuB8/H9vgT3/euA== X-Received: by 2002:a2e:8095:: with SMTP id i21mr14054517ljg.193.1584279930756; Sun, 15 Mar 2020 06:45:30 -0700 (PDT) Received: from saturn.lan (18.158-248-194.customer.lyse.net. [158.248.194.18]) by smtp.gmail.com with ESMTPSA id a9sm23025212lfb.21.2020.03.15.06.45.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 15 Mar 2020 06:45:30 -0700 (PDT) From: Sam Ravnborg To: dri-devel@lists.freedesktop.org, Thierry Reding , Rob Herring , devicetree@vger.kernel.org Cc: Alexandre Courbot , Andrzej Hajda , Brian Masney , Chris Zhong , Douglas Anderson , Guido Gunther , Heiko Schocher , Nikolaus Schaller , Hoegeun Kwon , Jagan Teki , Jerry Han , Jonathan Bakker , Laurent Pinchart , Lin Huang , Linus Walleij , linux-spi@vger.kernel.org, Marco Franchi , Marek Belisko , Mark Brown , Maxime Ripard , Maxime Ripard , Nickey Yang , Paul Cercueil , Peter Rosin , Peter Ujfalusi , Purism Kernel Team , Robert Chiras , Sam Ravnborg , Sandeep Panda , Stefan Mavrodiev , Tomi Valkeinen , Tony Lindgren , Vinay Simha BN , Werner Johansson Subject: [PATCH v1 30/36] dt-bindings: display: convert sharp, ls043t1le01 to DT Schema Date: Sun, 15 Mar 2020 14:44:10 +0100 Message-Id: <20200315134416.16527-31-sam@ravnborg.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200315134416.16527-1-sam@ravnborg.org> References: <20200315134416.16527-1-sam@ravnborg.org> MIME-Version: 1.0 Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org The txt binding specified the property "power-supply". But the example and the actual implementation in the linux-kernel uses "avdd-supply". So the binding is adjusted to use avdd-supply as this seems to be the correct choice. There are no DT files in the linux kernel to check. Signed-off-by: Sam Ravnborg Cc: Werner Johansson Cc: Thierry Reding Cc: Sam Ravnborg --- .../display/panel/sharp,ls043t1le01.txt | 22 -------- .../display/panel/sharp,ls043t1le01.yaml | 51 +++++++++++++++++++ 2 files changed, 51 insertions(+), 22 deletions(-) delete mode 100644 Documentation/devicetree/bindings/display/panel/sharp,ls043t1le01.txt create mode 100644 Documentation/devicetree/bindings/display/panel/sharp,ls043t1le01.yaml diff --git a/Documentation/devicetree/bindings/display/panel/sharp,ls043t1le01.txt b/Documentation/devicetree/bindings/display/panel/sharp,ls043t1le01.txt deleted file mode 100644 index 3770a111968b..000000000000 --- a/Documentation/devicetree/bindings/display/panel/sharp,ls043t1le01.txt +++ /dev/null @@ -1,22 +0,0 @@ -Sharp Microelectronics 4.3" qHD TFT LCD panel - -Required properties: -- compatible: should be "sharp,ls043t1le01-qhd" -- reg: DSI virtual channel of the peripheral -- power-supply: phandle of the regulator that provides the supply voltage - -Optional properties: -- backlight: phandle of the backlight device attached to the panel -- reset-gpios: a GPIO spec for the reset pin - -Example: - - mdss_dsi@fd922800 { - panel@0 { - compatible = "sharp,ls043t1le01-qhd"; - reg = <0>; - avdd-supply = <&pm8941_l22>; - backlight = <&pm8941_wled>; - reset-gpios = <&pm8941_gpios 19 GPIO_ACTIVE_HIGH>; - }; - }; diff --git a/Documentation/devicetree/bindings/display/panel/sharp,ls043t1le01.yaml b/Documentation/devicetree/bindings/display/panel/sharp,ls043t1le01.yaml new file mode 100644 index 000000000000..a90d0d8bf7c9 --- /dev/null +++ b/Documentation/devicetree/bindings/display/panel/sharp,ls043t1le01.yaml @@ -0,0 +1,51 @@ +# SPDX-License-Identifier: GPL-2.0 +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/display/panel/sharp,ls043t1le01.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Sharp Microelectronics 4.3" qHD TFT LCD panel + +maintainers: + - Werner Johansson + +allOf: + - $ref: panel-common.yaml# + +properties: + compatible: + const: sharp,ls043t1le01-qhd + + reg: true + backlight: true + reset-gpios: true + port: true + + avdd-supply: + description: handle of the regulator that provides the supply voltage + +required: + - compatible + - reg + - avdd-supply + +additionalProperties: false + +examples: + - | + #include + + dsi { + #address-cells = <1>; + #size-cells = <0>; + + panel@0 { + compatible = "sharp,ls043t1le01-qhd"; + reg = <0>; + avdd-supply = <&pm8941_l22>; + backlight = <&pm8941_wled>; + reset-gpios = <&pm8941_gpios 19 GPIO_ACTIVE_HIGH>; + }; + }; + +... From patchwork Sun Mar 15 13:44:12 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sam Ravnborg X-Patchwork-Id: 203285 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.6 required=3.0 tests=DKIM_INVALID,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH, MAILING_LIST_MULTI, SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id CD4C2C5ACBF for ; Sun, 15 Mar 2020 13:45:37 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 9C54020724 for ; Sun, 15 Mar 2020 13:45:37 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="gV0R3B2t" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728701AbgCONph (ORCPT ); Sun, 15 Mar 2020 09:45:37 -0400 Received: from mail-lf1-f66.google.com ([209.85.167.66]:33799 "EHLO mail-lf1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728705AbgCONpg (ORCPT ); Sun, 15 Mar 2020 09:45:36 -0400 Received: by mail-lf1-f66.google.com with SMTP id f3so1466615lfc.1; Sun, 15 Mar 2020 06:45:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=/0FNX+cjsqJEpADC51sdv98xpVCuA7LVCQopkbVC/Tg=; b=gV0R3B2tjHzcEWSiTkPTiPGy8g9AS6rvw7PwXX+LI8GF3v+pE3Cbw5L+ixHChHICsW vvfpiaOPEooEOu1KOW7MzAhcfAGc304V4tXWFEV5lIHr8eCsBmt58fG1cvepyCpaJrLH 8RimUj2igyAXrt86r+Du91NLZmhFjk30ILK4NdpRHFGa8NxsV3Tm/9aFFFUk7l3cs/4s kKD+RTTXC70XPMvz4lKfDXi4tNKcfax3P6cOlHCaL4y0ewwirCl5RGNuJ7ldNaRV+a2E QDJeXXU1raEi8hPqPjk2LkYKdJwvt6aZ4vHUfxt1pv4oOcm20LyKNA5HTWxyyZ7EGqjA gSwQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=/0FNX+cjsqJEpADC51sdv98xpVCuA7LVCQopkbVC/Tg=; b=altCLwcuu8fwfHFhHyIj/AHadYiqLEG7gOvI73RT5Lq4wl1ig4AfoNsenaNUds1ZhP nCx6kjhiYMb2xA9jt9e4uSZa3DYYNM9A6QikY60TndIhN8Rp/2JnlHMv5mMvcmtGg6k9 CKvG64nlykaTu482bEUPMtW6eYQtIcXvChk7qDhoHwqL6gfxd63VPju451TFt+ftW1QR Kp9Nqw98Rnr5gIWF8U4UD/R/F598YRZUmndMJjoC/OGl1KTBonCYHR4SRpC+DQ6aE6cW LPpDEIYf1BP+ebuAkeaTT96IUJ+6+oEHiC6llmha3OHCCh/xcQGKZDgiBKkdXqqzqAsy IXpA== X-Gm-Message-State: ANhLgQ3t0sSOvMU02k18+MmtyK/hWUa7r2jzbrphlWKkWr+sQ6TLedxI jcPPAYcvMQMIlCXPeNLWyn8= X-Google-Smtp-Source: ADFU+vuTV5/5JIRc4afO50rH5s5ft9Y9TYO62OZhur6tWug2yNHygZiD6iecZtaJbOhAWBdgSR//Tw== X-Received: by 2002:ac2:4201:: with SMTP id y1mr14552743lfh.92.1584279934671; Sun, 15 Mar 2020 06:45:34 -0700 (PDT) Received: from saturn.lan (18.158-248-194.customer.lyse.net. [158.248.194.18]) by smtp.gmail.com with ESMTPSA id a9sm23025212lfb.21.2020.03.15.06.45.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 15 Mar 2020 06:45:34 -0700 (PDT) From: Sam Ravnborg To: dri-devel@lists.freedesktop.org, Thierry Reding , Rob Herring , devicetree@vger.kernel.org Cc: Alexandre Courbot , Andrzej Hajda , Brian Masney , Chris Zhong , Douglas Anderson , Guido Gunther , Heiko Schocher , Nikolaus Schaller , Hoegeun Kwon , Jagan Teki , Jerry Han , Jonathan Bakker , Laurent Pinchart , Lin Huang , Linus Walleij , linux-spi@vger.kernel.org, Marco Franchi , Marek Belisko , Mark Brown , Maxime Ripard , Maxime Ripard , Nickey Yang , Paul Cercueil , Peter Rosin , Peter Ujfalusi , Purism Kernel Team , Robert Chiras , Sam Ravnborg , Sandeep Panda , Stefan Mavrodiev , Tomi Valkeinen , Tony Lindgren , Vinay Simha BN , Werner Johansson Subject: [PATCH v1 32/36] dt-bindings: display: convert sharp, ls037v7dw01 to DT Schema Date: Sun, 15 Mar 2020 14:44:12 +0100 Message-Id: <20200315134416.16527-33-sam@ravnborg.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200315134416.16527-1-sam@ravnborg.org> References: <20200315134416.16527-1-sam@ravnborg.org> MIME-Version: 1.0 Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Signed-off-by: Sam Ravnborg Cc: Tony Lindgren Cc: Thierry Reding Cc: Sam Ravnborg --- .../display/panel/sharp,ls037v7dw01.txt | 43 ------------ .../display/panel/sharp,ls037v7dw01.yaml | 66 +++++++++++++++++++ 2 files changed, 66 insertions(+), 43 deletions(-) delete mode 100644 Documentation/devicetree/bindings/display/panel/sharp,ls037v7dw01.txt create mode 100644 Documentation/devicetree/bindings/display/panel/sharp,ls037v7dw01.yaml diff --git a/Documentation/devicetree/bindings/display/panel/sharp,ls037v7dw01.txt b/Documentation/devicetree/bindings/display/panel/sharp,ls037v7dw01.txt deleted file mode 100644 index 0cc8981e9d49..000000000000 --- a/Documentation/devicetree/bindings/display/panel/sharp,ls037v7dw01.txt +++ /dev/null @@ -1,43 +0,0 @@ -SHARP LS037V7DW01 TFT-LCD panel -=================================== - -Required properties: -- compatible: "sharp,ls037v7dw01" - -Optional properties: -- label: a symbolic name for the panel -- enable-gpios: a GPIO spec for the optional enable pin. - This pin is the INI pin as specified in the LS037V7DW01.pdf file. -- reset-gpios: a GPIO spec for the optional reset pin. - This pin is the RESB pin as specified in the LS037V7DW01.pdf file. -- mode-gpios: a GPIO - ordered MO, LR, and UD as specified in the LS037V7DW01.pdf file. - -Required nodes: -- Video port for DPI input - -This panel can have zero to five GPIOs to configure to change configuration -between QVGA and VGA mode and the scan direction. As these pins can be also -configured with external pulls, all the GPIOs are considered optional with holes -in the array. - -Example -------- - -Example when connected to a omap2+ based device: - -lcd0: display { - compatible = "sharp,ls037v7dw01"; - power-supply = <&lcd_3v3>; - enable-gpios = <&gpio5 24 GPIO_ACTIVE_HIGH>; /* gpio152, lcd INI */ - reset-gpios = <&gpio5 27 GPIO_ACTIVE_HIGH>; /* gpio155, lcd RESB */ - mode-gpios = <&gpio5 26 GPIO_ACTIVE_HIGH /* gpio154, lcd MO */ - &gpio1 2 GPIO_ACTIVE_HIGH /* gpio2, lcd LR */ - &gpio1 3 GPIO_ACTIVE_HIGH>; /* gpio3, lcd UD */ - - port { - lcd_in: endpoint { - remote-endpoint = <&dpi_out>; - }; - }; -}; diff --git a/Documentation/devicetree/bindings/display/panel/sharp,ls037v7dw01.yaml b/Documentation/devicetree/bindings/display/panel/sharp,ls037v7dw01.yaml new file mode 100644 index 000000000000..56bd510ae398 --- /dev/null +++ b/Documentation/devicetree/bindings/display/panel/sharp,ls037v7dw01.yaml @@ -0,0 +1,66 @@ +# SPDX-License-Identifier: GPL-2.0 +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/display/panel/sharp,ls037v7dw01.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: SHARP LS037V7DW01 TFT-LCD panel + +description: | + This panel can have zero to five GPIOs to configure to change configuration + between QVGA and VGA mode and the scan direction. As these pins can be also + configured with external pulls, all the GPIOs are considered optional with holes + in the array. + +maintainers: + - Tony Lindgren + +allOf: + - $ref: panel-common.yaml# + +properties: + compatible: + const: sharp,ls037v7dw01 + + label: true + enable-gpios: true + reset-gpios: true + port: true + power-supply: true + + mode-gpios: + description: | + GPIO ordered MO, LR, and UD as specified in LS037V7DW01.pdf + This panel can have zero to five GPIOs to configure to + change configuration between QVGA and VGA mode and the + scan direction. As these pins can be also configured + with external pulls, all the GPIOs are considered + optional with holes in the array. + +required: + - compatible + - port + +additionalProperties: false + +examples: + - | + #include + + lcd0: display { + compatible = "sharp,ls037v7dw01"; + power-supply = <&lcd_3v3>; + enable-gpios = <&gpio5 24 GPIO_ACTIVE_HIGH>; /* gpio152, lcd INI */ + reset-gpios = <&gpio5 27 GPIO_ACTIVE_HIGH>; /* gpio155, lcd RESB */ + mode-gpios = <&gpio5 26 GPIO_ACTIVE_HIGH /* gpio154, lcd MO */ + &gpio1 2 GPIO_ACTIVE_HIGH /* gpio2, lcd LR */ + &gpio1 3 GPIO_ACTIVE_HIGH>; /* gpio3, lcd UD */ + + port { + lcd_in: endpoint { + remote-endpoint = <&dpi_out>; + }; + }; + }; + +... From patchwork Sun Mar 15 13:44:15 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sam Ravnborg X-Patchwork-Id: 203284 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.6 required=3.0 tests=DKIM_INVALID,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH, MAILING_LIST_MULTI, SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 87CB0C5ACD6 for ; Sun, 15 Mar 2020 13:45:44 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 5B585206B1 for ; Sun, 15 Mar 2020 13:45:44 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="lWl9RmPx" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728716AbgCONpn (ORCPT ); Sun, 15 Mar 2020 09:45:43 -0400 Received: from mail-lf1-f65.google.com ([209.85.167.65]:38879 "EHLO mail-lf1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728709AbgCONpn (ORCPT ); Sun, 15 Mar 2020 09:45:43 -0400 Received: by mail-lf1-f65.google.com with SMTP id n13so9906931lfh.5; Sun, 15 Mar 2020 06:45:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=0i0vgiKfLOmpvuqPVA7m37qiPqNJFhGX4H4IYa6i4ig=; b=lWl9RmPxxkjrxxWHn9utIetUaSmb9LWP3dVx4LimFMdzM1pk4BlRSvi1ySK/IEufn0 sX03MMuFa9fOc7XV7XzjU44uaC2qHvytzCv/+Eec+pOEMjXwSldTW15Lw7xTl6U3EYvo iOlegHCxdN/qHX4wOAJj25qdQSlTLnUA3Kq0WFs9COZnKCyu6bCfQ3jZ2QjOFu59reGJ xm9slFbDqTG90364EIv3Blcrj1s71u4H0URzNu+uwzEBwp7oqm0ryY4zNqFXWsrZdHBA mQdfbgd/THjSCD/WHIE/PmPFPFgduBAcck5FZUsO5830N8egRmhNMnThEqK2WibiCBSf C8iQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=0i0vgiKfLOmpvuqPVA7m37qiPqNJFhGX4H4IYa6i4ig=; b=TNcW03yskj6IONqa1bnvGWYiEtqTBDu9XAZxBn3Duzw/mazdPwnvu8GMM3ALio7hLV NaHrm9823AfJ5dpuENyLPgVckZiM63ZfDOPvW2ZcgyxmWe1xNkoMYw/TVAP7JkllOdSB 2j0+ZvyNTV5Zpp9oOd9oY1tsFwgKRW7yg9U424lRUvWqgl05ByYNSM2JayW9Fh00CjyI etIOjB3AdJoUmS2q6Dr/c5mg67CjSKVjwpSRkB340Tqo85/eRerNLqmU+l8WlPmI+u2g oZ3SowKcGB5eq+rEYqAiPuPjVNJMu0WW3wwjRRPcGe42AxlL7Md3HKYpxHBQrHwJRk1/ mJNA== X-Gm-Message-State: ANhLgQ3mOL1Ah66o806jISM+k5akmZOghjD+0hn0E8b7Wgy8NAQ9Ms1K eUSTcBwKNS+zWIMrc4mxS8g= X-Google-Smtp-Source: ADFU+vus3KIMVrdLNQumK21IeQLFPAIhvE0B8wkk6LKoU2xSpSVPWgRyVc6zyWu+4lJgoeI03mbkew== X-Received: by 2002:a19:80e:: with SMTP id 14mr13715743lfi.206.1584279940829; Sun, 15 Mar 2020 06:45:40 -0700 (PDT) Received: from saturn.lan (18.158-248-194.customer.lyse.net. [158.248.194.18]) by smtp.gmail.com with ESMTPSA id a9sm23025212lfb.21.2020.03.15.06.45.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 15 Mar 2020 06:45:40 -0700 (PDT) From: Sam Ravnborg To: dri-devel@lists.freedesktop.org, Thierry Reding , Rob Herring , devicetree@vger.kernel.org Cc: Alexandre Courbot , Andrzej Hajda , Brian Masney , Chris Zhong , Douglas Anderson , Guido Gunther , Heiko Schocher , Nikolaus Schaller , Hoegeun Kwon , Jagan Teki , Jerry Han , Jonathan Bakker , Laurent Pinchart , Lin Huang , Linus Walleij , linux-spi@vger.kernel.org, Marco Franchi , Marek Belisko , Mark Brown , Maxime Ripard , Maxime Ripard , Nickey Yang , Paul Cercueil , Peter Rosin , Peter Ujfalusi , Purism Kernel Team , Robert Chiras , Sam Ravnborg , Sandeep Panda , Stefan Mavrodiev , Tomi Valkeinen , Tony Lindgren , Vinay Simha BN , Werner Johansson Subject: [PATCH v1 35/36] dt-bindings: display: convert lgphilips, lb035q02 to DT Schema Date: Sun, 15 Mar 2020 14:44:15 +0100 Message-Id: <20200315134416.16527-36-sam@ravnborg.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200315134416.16527-1-sam@ravnborg.org> References: <20200315134416.16527-1-sam@ravnborg.org> MIME-Version: 1.0 Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Signed-off-by: Sam Ravnborg Cc: Tomi Valkeinen Cc: Thierry Reding Cc: Sam Ravnborg --- .../display/panel/lgphilips,lb035q02.txt | 33 ------------ .../display/panel/lgphilips,lb035q02.yaml | 54 +++++++++++++++++++ 2 files changed, 54 insertions(+), 33 deletions(-) delete mode 100644 Documentation/devicetree/bindings/display/panel/lgphilips,lb035q02.txt create mode 100644 Documentation/devicetree/bindings/display/panel/lgphilips,lb035q02.yaml diff --git a/Documentation/devicetree/bindings/display/panel/lgphilips,lb035q02.txt b/Documentation/devicetree/bindings/display/panel/lgphilips,lb035q02.txt deleted file mode 100644 index 1a1e653e5407..000000000000 --- a/Documentation/devicetree/bindings/display/panel/lgphilips,lb035q02.txt +++ /dev/null @@ -1,33 +0,0 @@ -LG.Philips LB035Q02 Panel -========================= - -Required properties: -- compatible: "lgphilips,lb035q02" -- enable-gpios: panel enable gpio - -Optional properties: -- label: a symbolic name for the panel - -Required nodes: -- Video port for DPI input - -Example -------- - -lcd-panel: panel@0 { - compatible = "lgphilips,lb035q02"; - reg = <0>; - spi-max-frequency = <100000>; - spi-cpol; - spi-cpha; - - label = "lcd"; - - enable-gpios = <&gpio7 7 0>; - - port { - lcd_in: endpoint { - remote-endpoint = <&dpi_out>; - }; - }; -}; diff --git a/Documentation/devicetree/bindings/display/panel/lgphilips,lb035q02.yaml b/Documentation/devicetree/bindings/display/panel/lgphilips,lb035q02.yaml new file mode 100644 index 000000000000..09eba4090736 --- /dev/null +++ b/Documentation/devicetree/bindings/display/panel/lgphilips,lb035q02.yaml @@ -0,0 +1,54 @@ +# SPDX-License-Identifier: GPL-2.0 +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/display/panel/lgphilips,lb035q02.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: LG.Philips LB035Q02 Panel + +maintainers: + - Tomi Valkeinen + +allOf: + - $ref: panel-common.yaml# + - $ref: ../../spi/spi-slave.yaml# + +properties: + compatible: + const: lgphilips,lb035q02 + + label: true + enable-gpios: true + port: true + +required: + - compatible + - enable-gpios + - port + +examples: + - | + spi { + #address-cells = <1>; + #size-cells = <0>; + + panel: panel@0 { + compatible = "lgphilips,lb035q02"; + reg = <0>; + spi-max-frequency = <100000>; + spi-cpol; + spi-cpha; + + label = "lcd"; + + enable-gpios = <&gpio7 7 0>; + + port { + lcd_in: endpoint { + remote-endpoint = <&dpi_out>; + }; + }; + }; + }; + +... From patchwork Sun Mar 15 13:44:16 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sam Ravnborg X-Patchwork-Id: 203283 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.6 required=3.0 tests=DKIM_INVALID,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH, MAILING_LIST_MULTI, SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5532AC5ACBF for ; Sun, 15 Mar 2020 13:45:46 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 251B8206B1 for ; Sun, 15 Mar 2020 13:45:46 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="JEX8bQmX" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728709AbgCONpp (ORCPT ); Sun, 15 Mar 2020 09:45:45 -0400 Received: from mail-lj1-f193.google.com ([209.85.208.193]:37015 "EHLO mail-lj1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728705AbgCONpp (ORCPT ); Sun, 15 Mar 2020 09:45:45 -0400 Received: by mail-lj1-f193.google.com with SMTP id r24so15638780ljd.4; Sun, 15 Mar 2020 06:45:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=rXa6VlRbgpah7LGY3OOOT1LELVwF4SMk1lCdqSipX50=; b=JEX8bQmXM2HZhTbkCQ80v+cnbaFzXX500vFGdipdZrMPTIncu7Zk9aAbtZodRA5mEU xE94qnXXbDpHnmNE/X4glWhLvCT5TDmfCyMz69rYajFROeZsSDRef05yRFmjgQZL21x/ JdnUDqO6e+tFbnycrUsK+gNEugrhR5iuxaTUNXNbcf2znQkft20+OEUcOEZTi/1EwZBX lcIogDiMypdqvxb+35hdouMy91Hf7uYs1PECsDZGFhJYtYdB7ZsnAcnKfIDl/pGuNNR8 jlGh9ZtdVUU2SRfukvdAsppnB6DANtBfXwH17Q+LIqeS3nZVJIUdAuI43G9ia3c1vzD9 dNxA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=rXa6VlRbgpah7LGY3OOOT1LELVwF4SMk1lCdqSipX50=; b=OLjh5ri9UTdvuzutxjMud9aPfuJITzfIvvI9bTmNNxmyeQ2Pp6Zs/+qgNaw+Ffrxrl q3sQ2yZ29JQYu/f5FkQ3B0IL716RtkOUwR64YqgapwYSMtPDOg9rqcBTX9wFOBMgKL7/ fQDAMEVQrI/c6dd2+ZFGNlHY9jemjqJyy6/+kVms98+fTLLpx5a5YQsFNBoFK0DgXz+Q pmNQkhpGfYZ+DSycMIESysJiej4oqbLhvUaobqKyQAmjaGLtJaD1wHpby4/9l1k9A09L WDkkkpGiFbLlzknKhnapprWOTQq+bttE173fNa/wEveP0cSPEIgcseabqM4LMvizwZls i0Mw== X-Gm-Message-State: ANhLgQ0VZV/28ECb60u8FulYsMo8zgqgul+cczJGaIiLm6R63B8EfJNW hwqYK1rvT9/yuzfJS0BthKo= X-Google-Smtp-Source: ADFU+vsX8ITn47HEixar4GwQHDh7QX0PW82O0+yT17UZn/149C5hjTybfpBiqRCc67jzM5E7hgDrFw== X-Received: by 2002:a2e:6c03:: with SMTP id h3mr829049ljc.8.1584279943011; Sun, 15 Mar 2020 06:45:43 -0700 (PDT) Received: from saturn.lan (18.158-248-194.customer.lyse.net. [158.248.194.18]) by smtp.gmail.com with ESMTPSA id a9sm23025212lfb.21.2020.03.15.06.45.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 15 Mar 2020 06:45:42 -0700 (PDT) From: Sam Ravnborg To: dri-devel@lists.freedesktop.org, Thierry Reding , Rob Herring , devicetree@vger.kernel.org Cc: Alexandre Courbot , Andrzej Hajda , Brian Masney , Chris Zhong , Douglas Anderson , Guido Gunther , Heiko Schocher , Nikolaus Schaller , Hoegeun Kwon , Jagan Teki , Jerry Han , Jonathan Bakker , Laurent Pinchart , Lin Huang , Linus Walleij , linux-spi@vger.kernel.org, Marco Franchi , Marek Belisko , Mark Brown , Maxime Ripard , Maxime Ripard , Nickey Yang , Paul Cercueil , Peter Rosin , Peter Ujfalusi , Purism Kernel Team , Robert Chiras , Sam Ravnborg , Sandeep Panda , Stefan Mavrodiev , Tomi Valkeinen , Tony Lindgren , Vinay Simha BN , Werner Johansson Subject: [PATCH v1 36/36] dt-bindings: display: convert olimex, lcd-olinuxino to DT Schema Date: Sun, 15 Mar 2020 14:44:16 +0100 Message-Id: <20200315134416.16527-37-sam@ravnborg.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200315134416.16527-1-sam@ravnborg.org> References: <20200315134416.16527-1-sam@ravnborg.org> MIME-Version: 1.0 Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Signed-off-by: Sam Ravnborg Cc: Stefan Mavrodiev Cc: Thierry Reding Cc: Sam Ravnborg --- .../display/panel/olimex,lcd-olinuxino.txt | 42 ----------- .../display/panel/olimex,lcd-olinuxino.yaml | 70 +++++++++++++++++++ 2 files changed, 70 insertions(+), 42 deletions(-) delete mode 100644 Documentation/devicetree/bindings/display/panel/olimex,lcd-olinuxino.txt create mode 100644 Documentation/devicetree/bindings/display/panel/olimex,lcd-olinuxino.yaml diff --git a/Documentation/devicetree/bindings/display/panel/olimex,lcd-olinuxino.txt b/Documentation/devicetree/bindings/display/panel/olimex,lcd-olinuxino.txt deleted file mode 100644 index a89f9c830a85..000000000000 --- a/Documentation/devicetree/bindings/display/panel/olimex,lcd-olinuxino.txt +++ /dev/null @@ -1,42 +0,0 @@ -Binding for Olimex Ltd. LCD-OLinuXino bridge panel. - -This device can be used as bridge between a host controller and LCD panels. -Currently supported LCDs are: - - LCD-OLinuXino-4.3TS - - LCD-OLinuXino-5 - - LCD-OLinuXino-7 - - LCD-OLinuXino-10 - -The panel itself contains: - - AT24C16C EEPROM holding panel identification and timing requirements - - AR1021 resistive touch screen controller (optional) - - FT5x6 capacitive touch screnn controller (optional) - - GT911/GT928 capacitive touch screen controller (optional) - -The above chips share same I2C bus. The EEPROM is factory preprogrammed with -device information (id, serial, etc.) and timing requirements. - -Touchscreen bingings can be found in these files: - - input/touchscreen/goodix.txt - - input/touchscreen/edt-ft5x06.txt - - input/touchscreen/ar1021.txt - -Required properties: - - compatible: should be "olimex,lcd-olinuxino" - - reg: address of the configuration EEPROM, should be <0x50> - - power-supply: phandle of the regulator that provides the supply voltage - -Optional properties: - - enable-gpios: GPIO pin to enable or disable the panel - - backlight: phandle of the backlight device attacked to the panel - -Example: -&i2c2 { - panel@50 { - compatible = "olimex,lcd-olinuxino"; - reg = <0x50>; - power-supply = <®_vcc5v0>; - enable-gpios = <&pio 7 8 GPIO_ACTIVE_HIGH>; - backlight = <&backlight>; - }; -}; diff --git a/Documentation/devicetree/bindings/display/panel/olimex,lcd-olinuxino.yaml b/Documentation/devicetree/bindings/display/panel/olimex,lcd-olinuxino.yaml new file mode 100644 index 000000000000..22d664abd552 --- /dev/null +++ b/Documentation/devicetree/bindings/display/panel/olimex,lcd-olinuxino.yaml @@ -0,0 +1,70 @@ +# SPDX-License-Identifier: GPL-2.0 +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/display/panel/olimex,lcd-olinuxino.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Binding for Olimex Ltd. LCD-OLinuXino bridge panel. + +maintainers: + - Stefan Mavrodiev + +description: | + This device can be used as bridge between a host controller and LCD panels. + Currently supported LCDs are: + - LCD-OLinuXino-4.3TS + - LCD-OLinuXino-5 + - LCD-OLinuXino-7 + - LCD-OLinuXino-10 + + The panel itself contains: + - AT24C16C EEPROM holding panel identification and timing requirements + - AR1021 resistive touch screen controller (optional) + - FT5x6 capacitive touch screnn controller (optional) + - GT911/GT928 capacitive touch screen controller (optional) + + The above chips share same I2C bus. The EEPROM is factory preprogrammed with + device information (id, serial, etc.) and timing requirements. + + Touchscreen bingings can be found in these files: + - input/touchscreen/goodix.yaml + - input/touchscreen/edt-ft5x06.txt + - input/touchscreen/ar1021.txt + +allOf: + - $ref: panel-common.yaml# + +properties: + compatible: + const: olimex,lcd-olinuxino + + backlight: true + enable-gpios: true + power-supply: true + reg: true + +required: + - compatible + - reg + - power-supply + +additionalProperties: false + +examples: + - | + #include + + i2c2 { + #address-cells = <1>; + #size-cells = <0>; + + panel@50 { + compatible = "olimex,lcd-olinuxino"; + reg = <0x50>; + power-supply = <®_vcc5v0>; + enable-gpios = <&pio 7 8 GPIO_ACTIVE_HIGH>; + backlight = <&backlight>; + }; + }; + +...