From patchwork Fri Jul 5 16:42:15 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: 168578 Delivered-To: patch@linaro.org Received: by 2002:a92:4782:0:0:0:0:0 with SMTP id e2csp3791717ilk; Fri, 5 Jul 2019 09:42:40 -0700 (PDT) X-Google-Smtp-Source: APXvYqycG9h7/bEzR6R93Em/tPS2pscx/jX2ARHTzrPf0+7dZ5ed2/H7cn0OVvlcevmSocKKLf0H X-Received: by 2002:a17:902:7887:: with SMTP id q7mr6777497pll.129.1562344960886; Fri, 05 Jul 2019 09:42:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562344960; cv=none; d=google.com; s=arc-20160816; b=en6WNK1uELfG1WQ+IzkFcbgEnWIFyOt3u9rJHPughuf2BN4LrWwfXEZRK3GY3DnoSh xNkqg9lQnkgZfWJDvhGNz8XlXluP7KsGl5eXs6/+KKrrhg0KtidlHgJjl8laveYvkjWe b3NlBRQZ32WI2BECzoebzn3A9+igVfDRXUC/Bfwy66ZNUWy/DjFRudR4Ua3/Vm3fXaAt ramfJ35iR1u0CxxUmBA+RHm688Ir7o1Yu0ZtOLTCwoA3wccoJRI8FJ6feliTzasxDIpi Yq0dzwh+i3op3Bd3NyEmVDgkgg0Wj3CtWcclvB59QBLLxLRyhAu+u4865g2dK2vSN6Si pEBw== 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=t0kCtvhimpM8vpKBQkNjRPtUEGOa0h0Y3z24ztAd/o0=; b=Fpl9vNzjbLTxtMD+GujDUEo2HFE9b4i0kDBhyoaf9RjxtvrlmjpARaxMIvPV0kgMgr 8h3YS29Gujyk2dz5MFG07FgG1OnAscxG0Weu84fexY8WYmg0JB5do/wAQuu5HNrtO+o7 P2w1YeULEN09BbD5bit5quC1+uZ7a4h4DSfDicnEC6851si7xlE9pgFbFk7An2UnGFzb lt4FGnRCo15nHJNnFuU5ERMDXInvzroDM4MCOEgO8qfpRCrhLbK5wfiF0Vy82caBzcZO soQDS5nObkrGXWvMo6yOfTwi6OjR1Bf25xjVMJrFt/LHqTIZeTon0G3RbLqHiIEiG6O/ P2Dw== 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 z14si8269153pju.64.2019.07.05.09.42.40 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 05 Jul 2019 09:42:40 -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 AB64B6E50C; Fri, 5 Jul 2019 16:42:39 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-io1-f51.google.com (mail-io1-f51.google.com [209.85.166.51]) by gabe.freedesktop.org (Postfix) with ESMTPS id 526B46E50C for ; Fri, 5 Jul 2019 16:42:37 +0000 (UTC) Received: by mail-io1-f51.google.com with SMTP id j5so973882ioj.8 for ; Fri, 05 Jul 2019 09:42:37 -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=XS98x+56z0gRiNEek56gSNwAwH+14pgGnF4eQrePkmg=; b=uZ9fkjAjFXSih/TcLJzUZo1bZNOVibs2hCoeP+tA2HeAWhPxyoKV4A5NwljwmgJTEH 731xmUUz2+7/m9Jn7K8WJHukEXcaAD6+3iRl2dMF6N51t6PDPfI49G+5xccj+XQXbejy hV4KadIFaS0T8aU2uNhHPtihXsw1uGr0aAs+yAzpTb0j7LlGDSgr33b0OrgU+kMjILmt vI9VryYuf928WfRxc3fIHC8ZN913hNnZe0Rnj8lNm5fGxRLGuhKDtCh3mCaprD9cMxnj GG4Lw9SzgG4CMyIV8FnbkogU6z4fS5vzncd7xrSuh97Jvsw/QZtt3AK5+ptDJmf4f1/N k2Fw== X-Gm-Message-State: APjAAAWKmmGRN2peC3lpqSxyGAAGQj+snorx4x1XJRY3OAS4ohe2vrIr ubkkm5tpEze/ST4NmM5UK4qa4jk= X-Received: by 2002:a6b:790a:: with SMTP id i10mr4957673iop.150.1562344956206; Fri, 05 Jul 2019 09:42:36 -0700 (PDT) Received: from xps15.herring.priv ([64.188.179.252]) by smtp.googlemail.com with ESMTPSA id b8sm6878104ioj.16.2019.07.05.09.42.34 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Fri, 05 Jul 2019 09:42:35 -0700 (PDT) From: Rob Herring To: dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org Subject: [PATCH v3 07/13] dt-bindings: display: Convert raspberrypi, 7inch-touchscreen panel to DT schema Date: Fri, 5 Jul 2019 10:42:15 -0600 Message-Id: <20190705164221.4462-8-robh@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190705164221.4462-1-robh@kernel.org> References: <20190705164221.4462-1-robh@kernel.org> MIME-Version: 1.0 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Maxime Ripard , 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: Laurent Pinchart Cc: dri-devel@lists.freedesktop.org Reviewed-by: Maxime Ripard 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>; + }; + }; + }; + }; + +...