From patchwork Fri Dec 1 16:16:57 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 10087397 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 8804A60327 for ; Fri, 1 Dec 2017 16:19:12 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 770E829682 for ; Fri, 1 Dec 2017 16:19:12 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6BCD52A58B; Fri, 1 Dec 2017 16:19:12 +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.1 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,T_DKIM_INVALID 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 C771229682 for ; Fri, 1 Dec 2017 16:19:10 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 6FD926ED85; Fri, 1 Dec 2017 16:19:09 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-lf0-x244.google.com (mail-lf0-x244.google.com [IPv6:2a00:1450:4010:c07::244]) by gabe.freedesktop.org (Postfix) with ESMTPS id C560C6ED85 for ; Fri, 1 Dec 2017 16:19:08 +0000 (UTC) Received: by mail-lf0-x244.google.com with SMTP id t197so12294109lfe.7 for ; Fri, 01 Dec 2017 08:19:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=kf0fD16W80Gz9qT7Cw49fTCnX3Lfim4OcP2IdW1oSxQ=; b=ev99cTYvE79hnzsm499sxKf+4HjdVYhf/v6HzzGkvMj7V14IlJKE5Fzs/DRxjMTPHw 5fDzPVAEasVGpzZzy7BC4xLL8Rd+NA2NwxXIduoFnLoEK2uKjkqidBv2eRldcO4EIOeh Tqxecgw9C8mAaKzofhRYKBqu/K7PxrMY0mcvA= 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; bh=kf0fD16W80Gz9qT7Cw49fTCnX3Lfim4OcP2IdW1oSxQ=; b=DF/YId+2HMhrOQi9bvVhzI5bovWeoDX/gj75y5N/JYE9y5DLrltXwl70q5VeEGipcY JmQ0Pk3t6E1ZkTlHybOd7nyx8VTBEo2ZO961Fnyp3MSgYidS6CQ7geImdFbrtKoBPWCb U7rMxlyJxe73rb/lbzmN9NUC1+r5lXaTymjT2swpIpdOjWkM3G4q1Ix5OK2vJP9mfIPp W7NNV4B8uWkREa3Kc1bU5XwRARwe1auJca+f8DKsbk3QchVEgwaJmgNm7FaA3Vjl/PKd HAoIdZT/10SHfEsYp9oaFIUDVtoV42nr783hSPnMsqEk6wPmuFVQGMKUZFNcKwTYJ7JJ U09A== X-Gm-Message-State: AJaThX5je7ai5pjXcZDSTUBt5KiXZnGA+MDURxd0d+q4Im597o9S01hY puwxTmwuDvTxWXe/QJ7h/R6hThnMgR0= X-Google-Smtp-Source: AGs4zMYTgHTrsWp88hX12JW4OOWgKFsTAFzkYOZYBrrp6QTg2Rd7kuJ4uE38GFFeo3lVAl4tXdgpZA== X-Received: by 10.25.87.210 with SMTP id l201mr4272339lfb.101.1512145146931; Fri, 01 Dec 2017 08:19:06 -0800 (PST) Received: from localhost.localdomain (c-567171d5.014-348-6c756e10.cust.bredbandsbolaget.se. [213.113.113.86]) by smtp.gmail.com with ESMTPSA id t16sm1374814lje.81.2017.12.01.08.19.05 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 01 Dec 2017 08:19:06 -0800 (PST) From: Linus Walleij To: Thierry Reding , dri-devel@lists.freedesktop.org Subject: [PATCH 1/3] drm/panel: Add DT bindings for Ilitek ILI9322 Date: Fri, 1 Dec 2017 17:16:57 +0100 Message-Id: <20171201161659.9588-1-linus.walleij@linaro.org> X-Mailer: git-send-email 2.14.3 Cc: devicetree@vger.kernel.org, Ben Dooks , David Lechner , Stefano Babic 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 This adds device tree bindings for the Ilitek ILI9322 320x240 TFT panel driver. Cc: David Lechner Cc: Stefano Babic Cc: Ben Dooks Cc: devicetree@vger.kernel.org Signed-off-by: Linus Walleij Reviewed-by: Rob Herring --- ChangeLog v1->v2: - Add explicit requirement to specify the system type so the driver can look up the display configuration from the compatible string. - Dropped all display-specific configuration data I could in favor of open coding it all in a per-system config struct in the driver. - Now only regulators and GPIO lines remain as DT resources. --- .../bindings/display/panel/ilitek,ili9322.txt | 49 ++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 Documentation/devicetree/bindings/display/panel/ilitek,ili9322.txt diff --git a/Documentation/devicetree/bindings/display/panel/ilitek,ili9322.txt b/Documentation/devicetree/bindings/display/panel/ilitek,ili9322.txt new file mode 100644 index 000000000000..3d5ce6ad6ec7 --- /dev/null +++ b/Documentation/devicetree/bindings/display/panel/ilitek,ili9322.txt @@ -0,0 +1,49 @@ +Ilitek ILI9322 TFT panel driver with SPI control bus + +This is a driver for 320x240 TFT panels, accepting a variety of input +streams that get adapted and scaled to the panel. The panel output has +960 TFT source driver pins and 240 TFT gate driver pins, VCOM, VCOML and +VCOMH outputs. + +Required properties: + - compatible: "dlink,dir-685-panel", "ilitek,ili9322" + (full system-specific compatible is always required to look up configuration) + - reg: address of the panel on the SPI bus + +Optional properties: + - vcc-supply: core voltage supply, see regulator/regulator.txt + - iovcc-supply: voltage supply for the interface input/output signals, + see regulator/regulator.txt + - vci-supply: voltage supply for analog parts, see regulator/regulator.txt + - reset-gpios: a GPIO spec for the reset pin, see gpio/gpio.txt + + The following optional properties only apply to RGB and YUV input modes and + can be omitted for BT.656 input modes: + + - pixelclk-active: see display/panel/display-timing.txt + - de-active: see display/panel/display-timing.txt + - hsync-active: see display/panel/display-timing.txt + - vsync-active: see display/panel/display-timing.txt + +The panel must obey the rules for a SPI slave device as specified in +spi/spi-bus.txt + +The device node can contain one 'port' child node with one child +'endpoint' node, according to the bindings defined in +media/video-interfaces.txt. This node should describe panel's video bus. + +Example: + +panel: display@0 { + compatible = "dlink,dir-685-panel", "ilitek,ili9322"; + reg = <0>; + vcc-supply = <&vdisp>; + iovcc-supply = <&vdisp>; + vci-supply = <&vdisp>; + + port { + panel_in: endpoint { + remote-endpoint = <&display_out>; + }; + }; +};