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: 120352 Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp1342289qgn; Fri, 1 Dec 2017 08:19:10 -0800 (PST) X-Google-Smtp-Source: AGs4zMY2MD9vxFxQ1MiRs1aOOfW4JDVxuqw9HQiG0eeD61MfY4GhArg7ug7u/i1eGucmm2aPjsFY X-Received: by 10.84.133.162 with SMTP id f31mr6846623plf.304.1512145150169; Fri, 01 Dec 2017 08:19:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1512145150; cv=none; d=google.com; s=arc-20160816; b=EovqmgrOamFmkZ7K33oxC5547XsyI3iiZgliRTtFtR4mkfCBbX0MHxH9LheEIU8Yvd 8e3E+fXwMhnsgXavygTOAE3jJam3Hl5rSzUXWup5gHnlpttO0SStgdaVFc2ebGK2l0Ax 5LkZmjp+WMjFivz8gtnhC+nqvpyiQzFd6EfgJZXGjxSKxtjDTk9LYtrw1yOIWNHIS8cX 48reIi2AhbaTQCPQU3sYtbhildtHgERI1Mc0/fV9KFwJ9TPDIJP6PCMQPGg9lSX8tpzs UWZUloYASrixFaq6rgtzcdvYmFwVzmORL7JVQB8zaIfj2dLLKwL2nfRFUSn9uSQxXxkf hqqQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=nbLqRHXpM5wXFqWN23dTWYk78EqNvklzC+QJ8P3HCq4=; b=yI/FZK9oVrEJffuQVqMFJwm8LoNDh6+K68CXUftCElr0zlSlMrxC2Gp1zDhB5ZxOHI 2kxRek54l/+kAKBTyBhzFYUwZnA2PPSROMth3+tPtNuKhUSCUZvxoxsxma1xLLIMg7IL ls46RVQML48jK/vl+3Yr3faQ1Yr14YVOl7vrmDKF+nOGmgXQIuBFRR9QuJ3Lot+sQcKY GwhqByAvGkTGu3jKJU/pyre6aYyuKVX20y6WAVFlTe4DIvIBUwzt/gTv5KK5HLhOlHZ4 aJYud3d1M65QL/OEtZ0UCV0OJbkg2AgC7ak7FTk1zSvcnpxL6Y1O1toK6Zrr/oaPYQYK w/4g== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=ev99cTYv; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f15si5164343plr.601.2017.12.01.08.19.09; Fri, 01 Dec 2017 08:19:10 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=ev99cTYv; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750768AbdLAQTJ (ORCPT + 6 others); Fri, 1 Dec 2017 11:19:09 -0500 Received: from mail-lf0-f65.google.com ([209.85.215.65]:45983 "EHLO mail-lf0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750742AbdLAQTI (ORCPT ); Fri, 1 Dec 2017 11:19:08 -0500 Received: by mail-lf0-f65.google.com with SMTP id f13so12261398lff.12 for ; Fri, 01 Dec 2017 08:19:07 -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=ctBcYv9dVampTF1WcbCVI55P0p40WGRuQOMWVlcjMroYnGOMG9BFf9uVG+sd5lYzeS be0nkxtRYQoZ3e4Fx05ainmtEGigmyfUCjFgNnb2x7/YoxOdEgMGGqUJOpP5NsTTLvcf Hf1LkJKoiE0sLnV2cn0nqOJ9UwNy4Rwz546Ccodz+uJtlnG1uIFgHRJtnm0Hvy/1Xr/2 aFskLJ/a3qSFjuDRLb3wHyAG1vW2cH3tsmHaMMoUokKamAuhOpjSP0BuP9kfljhbu1v8 ri3DNt4D1KDmTN39cIIZpp5g5dHSST+zx/DGtYoSEk5ITwOWfU7axaAHRlWlPuyQHLbD MsAw== X-Gm-Message-State: AJaThX5RWM9cgZIe0M9TYxInIKmJz/qcBwgzbv1xFE1EsYUe8RRoAyg6 0Blj/mI9kx+SiKo/P2Jp93wAAQ== 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 Cc: Linus Walleij , David Lechner , Stefano Babic , Ben Dooks , devicetree@vger.kernel.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 Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org 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 --- 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 -- 2.14.3 -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Reviewed-by: Rob Herring 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>; + }; + }; +};