From patchwork Thu May 11 23:56:23 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Eric Anholt X-Patchwork-Id: 9723277 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id A81326031B for ; Thu, 11 May 2017 23:56:43 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id AC8C228762 for ; Thu, 11 May 2017 23:56:43 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9FFCD28764; Thu, 11 May 2017 23:56:43 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 417F528762 for ; Thu, 11 May 2017 23:56:43 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 019286E60A; Thu, 11 May 2017 23:56:41 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from anholt.net (anholt.net [50.246.234.109]) by gabe.freedesktop.org (Postfix) with ESMTP id 3ACEA6E604 for ; Thu, 11 May 2017 23:56:33 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by anholt.net (Postfix) with ESMTP id 13F4D10A1F12; Thu, 11 May 2017 16:56:33 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at anholt.net Received: from anholt.net ([127.0.0.1]) by localhost (kingsolver.anholt.net [127.0.0.1]) (amavisd-new, port 10024) with LMTP id EzRVY4gb_T6z; Thu, 11 May 2017 16:56:31 -0700 (PDT) Received: from eliezer.anholt.net (localhost [127.0.0.1]) by anholt.net (Postfix) with ESMTP id 441D910A21CF; Thu, 11 May 2017 16:56:27 -0700 (PDT) Received: by eliezer.anholt.net (Postfix, from userid 1000) id 02CDF2E287E; Thu, 11 May 2017 16:56:26 -0700 (PDT) From: Eric Anholt To: dri-devel@lists.freedesktop.org, Thierry Reding , Rob Herring , Mark Rutland , Archit Taneja , Andrzej Hajda , Laurent Pinchart , devicetree@vger.kernel.org Subject: [PATCH 2/4] dt-bindings: Document the Raspberry Pi Touchscreen nodes. Date: Thu, 11 May 2017 16:56:23 -0700 Message-Id: <20170511235625.22427-3-eric@anholt.net> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20170511235625.22427-1-eric@anholt.net> References: <20170511235625.22427-1-eric@anholt.net> Cc: linux-kernel@vger.kernel.org X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP The Raspberry Pi 7" Touchscreen is a DPI touchscreen panel with DSI->DPI bridge and touchscreen controller integrated, that connects to the Raspberry Pi through its 15-pin "DSI" connector (some lines are DSI, some lines are I2C). This device is represented in the DT as three nodes (DSI device, I2C device, panel). Input will be left to a separate binding later, as it will be a basic I2C client device. Signed-off-by: Eric Anholt --- .../raspberrypi,7inch-touchscreen-bridge.txt | 68 ++++++++++++++++++++++ .../panel/raspberrypi,7inch-touchscreen-panel.txt | 7 +++ 2 files changed, 75 insertions(+) create mode 100644 Documentation/devicetree/bindings/display/bridge/raspberrypi,7inch-touchscreen-bridge.txt create mode 100644 Documentation/devicetree/bindings/display/panel/raspberrypi,7inch-touchscreen-panel.txt diff --git a/Documentation/devicetree/bindings/display/bridge/raspberrypi,7inch-touchscreen-bridge.txt b/Documentation/devicetree/bindings/display/bridge/raspberrypi,7inch-touchscreen-bridge.txt new file mode 100644 index 000000000000..a5669beaf68f --- /dev/null +++ b/Documentation/devicetree/bindings/display/bridge/raspberrypi,7inch-touchscreen-bridge.txt @@ -0,0 +1,68 @@ +Official 7" (800x480) Raspberry Pi touchscreen panel's bridge. + +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 covers the TC358762 bridge and Atmel microcontroller, while +../panel/raspberrypi,7inch-touchscreen-panel.txt covers the panel. + +Required properties: +- compatible: Must be "raspberrypi,7inch-touchscreen-bridge" +- raspberrypi,touchscreen-bridge: + Handle to the I2C device for Atmel microcontroller + +Example: + +dsi1: dsi@7e700000 { + #address-cells = <1>; + #size-cells = <0>; + <...> + + lcd-bridge@0 { + compatible = "raspberrypi,7inch-touchscreen-bridge"; + reg = <0>; + + raspberrypi,touchscreen-bridge = <&pitouchscreen_bridge>; + ports { + #address-cells = <1>; + #size-cells = <0>; + port@0 { + reg = <0>; + pitouchscreen_bridge_port: endpoint { + remote-endpoint = <&pitouchscreen_panel_port>; + }; + }; + }; + }; +}; + +i2c_dsi: i2c { + compatible = "i2c-gpio"; + #address-cells = <1>; + #size-cells = <0>; + gpios = <&gpio 28 0 + &gpio 29 0>; + + pitouchscreen_bridge: bridge@45 { + compatible = "raspberrypi,touchscreen-bridge-i2c"; + reg = <0x45>; + }; +}; + +lcd { + compatible = "raspberrypi,7inch-touchscreen-panel"; + ports { + #address-cells = <1>; + #size-cells = <0>; + port@0 { + reg = <0>; + pitouchscreen_panel_port: endpoint { + remote-endpoint = <&pitouchscreen_bridge_port>; + }; + }; + }; +}; diff --git a/Documentation/devicetree/bindings/display/panel/raspberrypi,7inch-touchscreen-panel.txt b/Documentation/devicetree/bindings/display/panel/raspberrypi,7inch-touchscreen-panel.txt new file mode 100644 index 000000000000..1e84f97b3b20 --- /dev/null +++ b/Documentation/devicetree/bindings/display/panel/raspberrypi,7inch-touchscreen-panel.txt @@ -0,0 +1,7 @@ +Official 7" (800x480) Raspberry Pi touchscreen panel's panel. + +This binding is compatible with the simple-panel binding, which is specified +in simple-panel.txt in this directory. + +Required properties: +- compatible: Must be "raspberrypi,7inch-touchscreen-panel"