From patchwork Mon Jun 24 21:56:42 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Rob Herring \(Arm\)" X-Patchwork-Id: 167660 Delivered-To: patch@linaro.org Received: by 2002:a92:4782:0:0:0:0:0 with SMTP id e2csp4733538ilk; Mon, 24 Jun 2019 14:59:24 -0700 (PDT) X-Google-Smtp-Source: APXvYqy6RwQmyebTJYugAZvOcJ2HTGUjxwHNWDgD1raXbTQpobQJBrIuVtRENs+pdOO2WMTOlAxh X-Received: by 2002:a63:e057:: with SMTP id n23mr8612348pgj.228.1561413564341; Mon, 24 Jun 2019 14:59:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561413564; cv=none; d=google.com; s=arc-20160816; b=XFI1G9QU4r0HyplG3pe3So4R2AIHlyMkwgTUnjiVTe2lU0QyKcHq7Ld/834xaym1qD wjC5wBh6AHWpK/nsE+8WPQZvbCWWAKYHzbNQuLQr8zrPdCipJOFlAA0stVNAwfo8DttO mfn8cHagd5JBEXIoYS9bGg4oiJpL+QM+lXQU3/5lHHfvho7LE6KrciLq4kxKYQ3ipnqi uYLuuoCpvrSEvYBbTSt+kZ9iX9C0RNaqH2YLnmfq2nGB9wgWJ5es3rspy7XisrIwpj9O wbW2G7df/7L+FDSO121yFvtzNeJflo8LkWCeAZCsXd2MxEkk5zt1l1GQr/EbykyopVmv IPEA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:cc:list-subscribe :list-help:list-post:list-archive:list-unsubscribe:list-id :precedence:mime-version:references:in-reply-to:message-id:date :subject:to:from:delivered-to; bh=WG84it6khxH5FDY8foDGKL6c7JEftHFVhqekO37ta+0=; b=0TYo6guztDqOWuC3hqmvizs1/rhHEzXJC/lZP/IB2ZeCugjo9HpX1g6LdRUfU6EFmH adZN9WETWvSeG+SL7cUbD15xLbdK3R6SxlvNEeHDDKidT2aPRGB2JbQgls+tTYUJp7xu 2Fi5d/Y1aJalf4tqsp4+UUGCNJf4hT6+nn4chqDvjUfGyLtbDufZVszAnIpr8vhOK3tQ YS2E+twmuCXrkPwRpCxQcrPcfz3dsxH0/kSdvVGMBw+NAClDw2XuP4SkzbDFdwzkz1+V 9y4TfWL3qxc+NbDTXriy4rTL0cpOux+tYlEvo+HEqHZkKB/nhXk9kDr1FQqUnWO6bbR6 5iMQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from gabe.freedesktop.org (gabe.freedesktop.org. [131.252.210.177]) by mx.google.com with ESMTPS id f89si685578pje.50.2019.06.24.14.59.24 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 24 Jun 2019 14:59:24 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) client-ip=131.252.210.177; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 2D61089BFF; Mon, 24 Jun 2019 21:59:20 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-io1-f53.google.com (mail-io1-f53.google.com [209.85.166.53]) by gabe.freedesktop.org (Postfix) with ESMTPS id D2FAE89E19 for ; Mon, 24 Jun 2019 21:59:05 +0000 (UTC) Received: by mail-io1-f53.google.com with SMTP id e3so556692ioc.12 for ; Mon, 24 Jun 2019 14:59:05 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=R/fpUXKWtDJj+GJwzBf/JS6ePSNt/GKGHFOmlkyQ0hI=; b=jIPaV/2n8g9W4i8QOmkQK9GaF5wPNOum7de7fwEgKI0E6CNq6zzBZiq2B7zMNC/U+h glHRz6iADvVZn0ApFR66yHw3UXCOUz+MzD5xDM1OOUWtiS+Q/0CtPKE3Ft3YngP1zE7A Rxa+UFrJPZPqOll+kYApPIM23wFOlhyTo2p7at8Efmh8j0LHWQlLThsVdP/XlqXKCDlH gFBxDhSc2bUwrYNzDYo+ZgQ6IuQWubZZBqJ1rtXkHt+kOWR/dtAVckZ36AX02k4Ky6P8 x7BwYCPSEaJBh9mfEUHOBaTUncnCIn1RQCmpYclDA+E2NKBu4WtS+GygE6ppDrZ4mkUJ KLuA== X-Gm-Message-State: APjAAAUkDlPYdM9TPyMQXRujh+WRTRG3731xKKl0g0hfieoDYEUovTvz hgcgiFGv4uXarfqJ8FvaKIsSKiw= X-Received: by 2002:a5d:9703:: with SMTP id h3mr23310932iol.152.1561413544689; Mon, 24 Jun 2019 14:59:04 -0700 (PDT) Received: from localhost.localdomain ([64.188.179.247]) by smtp.googlemail.com with ESMTPSA id l5sm14717301ioq.83.2019.06.24.14.59.03 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Mon, 24 Jun 2019 14:59:04 -0700 (PDT) From: Rob Herring To: dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org Subject: [PATCH v2 08/15] dt-bindings: display: Convert raspberrypi, 7inch-touchscreen panel to DT schema Date: Mon, 24 Jun 2019 15:56:42 -0600 Message-Id: <20190624215649.8939-9-robh@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190624215649.8939-1-robh@kernel.org> References: <20190624215649.8939-1-robh@kernel.org> MIME-Version: 1.0 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Maxime Ripard , linux-kernel@vger.kernel.org, Thierry Reding , Laurent Pinchart , Sam Ravnborg Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Convert the raspberrypi,7inch-touchscreen panel binding to DT schema. Cc: Eric Anholt Cc: Thierry Reding Cc: Sam Ravnborg Cc: Maxime Ripard Cc: Laurent Pinchart Cc: dri-devel@lists.freedesktop.org Signed-off-by: Rob Herring --- .../panel/raspberrypi,7inch-touchscreen.txt | 49 ------------- .../panel/raspberrypi,7inch-touchscreen.yaml | 71 +++++++++++++++++++ 2 files changed, 71 insertions(+), 49 deletions(-) delete mode 100644 Documentation/devicetree/bindings/display/panel/raspberrypi,7inch-touchscreen.txt create mode 100644 Documentation/devicetree/bindings/display/panel/raspberrypi,7inch-touchscreen.yaml diff --git a/Documentation/devicetree/bindings/display/panel/raspberrypi,7inch-touchscreen.txt b/Documentation/devicetree/bindings/display/panel/raspberrypi,7inch-touchscreen.txt deleted file mode 100644 index e9e19c059260..000000000000 --- a/Documentation/devicetree/bindings/display/panel/raspberrypi,7inch-touchscreen.txt +++ /dev/null @@ -1,49 +0,0 @@ -This binding covers the official 7" (800x480) Raspberry Pi touchscreen -panel. - -This DSI panel contains: - -- TC358762 DSI->DPI bridge -- Atmel microcontroller on I2C for power sequencing the DSI bridge and - controlling backlight -- Touchscreen controller on I2C for touch input - -and this binding covers the DSI display parts but not its touch input. - -Required properties: -- compatible: Must be "raspberrypi,7inch-touchscreen-panel" -- reg: Must be "45" -- port: See panel-common.txt - -Example: - -dsi1: dsi@7e700000 { - #address-cells = <1>; - #size-cells = <0>; - <...> - - port { - dsi_out_port: endpoint { - remote-endpoint = <&panel_dsi_port>; - }; - }; -}; - -i2c_dsi: i2c { - compatible = "i2c-gpio"; - #address-cells = <1>; - #size-cells = <0>; - gpios = <&gpio 28 0 - &gpio 29 0>; - - lcd@45 { - compatible = "raspberrypi,7inch-touchscreen-panel"; - reg = <0x45>; - - port { - panel_dsi_port: endpoint { - remote-endpoint = <&dsi_out_port>; - }; - }; - }; -}; diff --git a/Documentation/devicetree/bindings/display/panel/raspberrypi,7inch-touchscreen.yaml b/Documentation/devicetree/bindings/display/panel/raspberrypi,7inch-touchscreen.yaml new file mode 100644 index 000000000000..22a083f7bc8e --- /dev/null +++ b/Documentation/devicetree/bindings/display/panel/raspberrypi,7inch-touchscreen.yaml @@ -0,0 +1,71 @@ +# SPDX-License-Identifier: GPL-2.0 +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/display/panel/raspberrypi,7inch-touchscreen.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: The official 7" (800x480) Raspberry Pi touchscreen + +maintainers: + - Eric Anholt + - Thierry Reding + +description: |+ + This DSI panel contains: + + - TC358762 DSI->DPI bridge + - Atmel microcontroller on I2C for power sequencing the DSI bridge and + controlling backlight + - Touchscreen controller on I2C for touch input + + and this binding covers the DSI display parts but not its touch input. + +properties: + compatible: + const: raspberrypi,7inch-touchscreen-panel + + reg: + const: 0x45 + + port: true + +required: + - compatible + - reg + - port + +additionalProperties: false + +examples: + - |+ + dsi1: dsi { + #address-cells = <1>; + #size-cells = <0>; + + port { + dsi_out_port: endpoint { + remote-endpoint = <&panel_dsi_port>; + }; + }; + }; + + i2c_dsi: i2c { + compatible = "i2c-gpio"; + #address-cells = <1>; + #size-cells = <0>; + scl-gpios = <&gpio 28 0>; + sda-gpios = <&gpio 29 0>; + + lcd@45 { + compatible = "raspberrypi,7inch-touchscreen-panel"; + reg = <0x45>; + + port { + panel_dsi_port: endpoint { + remote-endpoint = <&dsi_out_port>; + }; + }; + }; + }; + +...