From patchwork Wed Jul 21 07:41:26 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dillon Min X-Patchwork-Id: 12390223 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-13.6 required=3.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED,DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FORGED_FROMDOMAIN, FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0A833C12002 for ; Wed, 21 Jul 2021 07:41:42 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id BF589611C1 for ; Wed, 21 Jul 2021 07:41:41 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org BF589611C1 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 3BCF96E874; Wed, 21 Jul 2021 07:41:41 +0000 (UTC) Received: from mail-pj1-x102c.google.com (mail-pj1-x102c.google.com [IPv6:2607:f8b0:4864:20::102c]) by gabe.freedesktop.org (Postfix) with ESMTPS id 7B0336E874 for ; Wed, 21 Jul 2021 07:41:39 +0000 (UTC) Received: by mail-pj1-x102c.google.com with SMTP id o3-20020a17090a6783b0290173ce472b8aso3502535pjj.2 for ; Wed, 21 Jul 2021 00:41:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=n6ei/14DVfwbmyUg2CaUeORvt7ARyvKM0pVLkX4lBpQ=; b=dh8NNOGfvF4zrfy/ykeWjlLud5qJzKqOnfZOMsJp9rSFYQlln9F4uXJr0+E4N7xXJJ vbH0VPWIX7ubrcelc7b4dCNVSFtO2m8SJHFLkLJW1/eYs5GD9iE7OxInaQVmz1xmUygH ZVv5N203A/MZkzz2Lx/LrZBQjnyYSe7hum5KG+t4NCAPDn5oJ8jtI1zANR+pRMa3EbEm eewpWGg5ZfvEMmkOn6zoxrGSKNOCNCwzM6pjXYlX1NBFr9x/AetKJbivzFe11OefpGeR zlulxJUMKmMv6tf7QngOmKdSOMzQ7usC+rMCRx+2wwHeiTsBeMeSXOGxDVK4C3BjYzap dQlg== 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; bh=n6ei/14DVfwbmyUg2CaUeORvt7ARyvKM0pVLkX4lBpQ=; b=prHrQ0AkfFzaPejNO47KgEZvKMNaiEuZm4AkZMy6rHJcUDnqI4OarmqkCuwujVTD+2 V5dH6w9rGqEm2YshYM2jIdzOoS2Kdp6tdFqHIUf9QcjMRcQvbP9KTLS0cGSqqm79eXHx k18dJ7bji5vPUNbPli7LhGR2qFUf1QQQPbI9BltXhZzwbgKKJuTsSvx/xaz/euAOjqnQ DvRWflpQzgnaePp2g/T+5n8hYCPvFtpyTvYJ62R1QQtBxXV+JP/AhZoEn51ywh+Hd9Uq l7kx8HBIpKd+0UkYjWNNzx9ADhMgkxVczsDK4mZE3aDOq5NoawHNH6bgMLcBeWe9ua3U ZNTw== X-Gm-Message-State: AOAM5303r7JnBHN3cq1Tbib9A7T5ehmo+Vo/bwhPzKvtz8G6zvx0g4LB VwJNA/TXk+ywL8ygCEwyaPQ= X-Google-Smtp-Source: ABdhPJxsZm8Qd4VqoHrvx4ByRo/6aWAjSbf8dp+znoR9PjhsDNuBu6wI/rzIMOmgA8f3cZ7A9s2Uew== X-Received: by 2002:a17:902:c105:b029:12a:5a94:6c3a with SMTP id 5-20020a170902c105b029012a5a946c3amr26833710pli.14.1626853299153; Wed, 21 Jul 2021 00:41:39 -0700 (PDT) Received: from fmin-OptiPlex-7060.nreal.work ([137.59.103.165]) by smtp.gmail.com with ESMTPSA id i8sm4841867pjh.36.2021.07.21.00.41.35 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 21 Jul 2021 00:41:38 -0700 (PDT) From: dillon.minfei@gmail.com To: thierry.reding@gmail.com, sam@ravnborg.org, airlied@linux.ie, daniel@ffwll.ch, robh+dt@kernel.org, linus.walleij@linaro.org, alexandre.torgue@foss.st.com, mcoquelin.stm32@gmail.com Subject: [PATCH v2 1/3] dt-bindings: display: panel: Add ilitek ili9341 panel bindings Date: Wed, 21 Jul 2021 15:41:26 +0800 Message-Id: <1626853288-31223-2-git-send-email-dillon.minfei@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1626853288-31223-1-git-send-email-dillon.minfei@gmail.com> References: <1626853288-31223-1-git-send-email-dillon.minfei@gmail.com> X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, dianders@chromium.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, noralf@tronnes.org, Dillon Min , linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" From: Dillon Min Add documentation for "ilitek,ili9341" panel. Cc: Linus Walleij Signed-off-by: Dillon Min Reviewed-by: Rob Herring Reviewed-by: Linus Walleij --- changes in v2: - add {vci, vddi, vddi-led}-supply bulk regulator according to linus suggestion, thanks. - add DBI panel in D/CX description. .../bindings/display/panel/ilitek,ili9341.yaml | 78 ++++++++++++++++++++++ 1 file changed, 78 insertions(+) create mode 100644 Documentation/devicetree/bindings/display/panel/ilitek,ili9341.yaml diff --git a/Documentation/devicetree/bindings/display/panel/ilitek,ili9341.yaml b/Documentation/devicetree/bindings/display/panel/ilitek,ili9341.yaml new file mode 100644 index 000000000000..2ed010f91e2d --- /dev/null +++ b/Documentation/devicetree/bindings/display/panel/ilitek,ili9341.yaml @@ -0,0 +1,78 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/display/panel/ilitek,ili9341.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Ilitek-9341 Display Panel + +maintainers: + - Dillon Min + +description: | + Ilitek ILI9341 TFT panel driver with SPI control bus + This is a driver for 320x240 TFT panels, accepting a rgb input + streams with 16 bits or 18 bits. + +allOf: + - $ref: panel-common.yaml# + +properties: + compatible: + items: + - enum: + # ili9341 240*320 Color on stm32f429-disco board + - st,sf-tc240t-9370-t + - const: ilitek,ili9341 + + reg: true + + dc-gpios: + maxItems: 1 + description: Display data/command selection (D/CX) of this DBI panel + + spi-3wire: true + + spi-max-frequency: + const: 10000000 + + port: true + + vci-supply: + description: Analog voltage supply (2.5 .. 3.3V) + + vddi-supply: + description: Voltage supply for interface logic (1.65 .. 3.3 V) + + vddi-led-supply: + description: Voltage supply for the LED driver (1.65 .. 3.3 V) + +additionalProperties: false + +required: + - compatible + - reg + - dc-gpios + - port + +examples: + - |+ + spi { + #address-cells = <1>; + #size-cells = <0>; + panel: display@0 { + compatible = "st,sf-tc240t-9370-t", + "ilitek,ili9341"; + reg = <0>; + spi-3wire; + spi-max-frequency = <10000000>; + dc-gpios = <&gpiod 13 0>; + port { + panel_in: endpoint { + remote-endpoint = <&display_out>; + }; + }; + }; + }; +... + From patchwork Wed Jul 21 07:41:27 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dillon Min X-Patchwork-Id: 12390225 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-13.6 required=3.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED,DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FORGED_FROMDOMAIN, FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id BE100C12002 for ; Wed, 21 Jul 2021 07:41:45 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 9552E611C1 for ; Wed, 21 Jul 2021 07:41:45 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 9552E611C1 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 1BE926E8A7; Wed, 21 Jul 2021 07:41:45 +0000 (UTC) Received: from mail-pg1-x534.google.com (mail-pg1-x534.google.com [IPv6:2607:f8b0:4864:20::534]) by gabe.freedesktop.org (Postfix) with ESMTPS id 3AB706E8A7 for ; Wed, 21 Jul 2021 07:41:44 +0000 (UTC) Received: by mail-pg1-x534.google.com with SMTP id 70so1103201pgh.2 for ; Wed, 21 Jul 2021 00:41:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=+x+f7PVXVcjHLEa5oy45MfmPR9ugBPOg1ZaiimxyB3U=; b=jKVLhLjvLVl7Wec2cQKnTeigp+0iVu7nuEaJ3MBEjV0ohly6Ehi639hu0Qzu7aIPX8 W79uGjJptJZvaf0LJitfBFQ4RnohYxegnaJF/NzoG9Y/1UNyv9/5Xrt1CZ27UsnQgZUN mSHLOtDCUqR4gofeY6zRttrvLlhbyMrDd03QrDmOE//F3MAjiHmMxBkmwnUHdM3ieHXi 31szerUxwpEAPWRlIWcbcWBwJygCfuuJmiKvDO7yXbaLdqIPqOr2XTdwpZNivaMyoBvV IVuSS3Sfa0UEyTycIjqQOimgcjHbbC9jJp5LJrN775RLr9u3CCSXCneF+lAJM14miNHp DGlA== 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; bh=+x+f7PVXVcjHLEa5oy45MfmPR9ugBPOg1ZaiimxyB3U=; b=hqInPfUiCbucU/0CbUGTAU0FRm5UNPOyql9+3849lf4yVY1Ed2uN7VAADaT7WqC3/F yZkyOWZ62ZqEKlT/SHfaS9eAZngJugqiKbZ51xxiiaYgFWGdd8JMN9UIHWhC5H1+neNt wPzS2IlgVa7IZ5tRtGEs0nV0MWEtwDE1nQ4FJrqONOq5C3A4GUYQluJ/qEQY2+KSkl0V /mfKRG+VKNkeCvlE5jkTGXUBWy3ZXdve2uqk+P5nSjyiHuQXsY1ylQgvp2IBFniyf7e8 WH/xGVfHToFNKbpkz06xmfbLbCEyhArev8VXcwEwbv9+/Eo14tECvQVMGj+AzTNAdabQ KQBA== X-Gm-Message-State: AOAM531688FaOmM2QAj3DH5Lp6WQdWVWuJNWGIzF+Dn3FspXihUYXAw+ CVqtTdTO6NaJvr9BYuVB43M= X-Google-Smtp-Source: ABdhPJwm/gorGk3PKzcSSUiK20jrDXjD35yudvyAPAcVMS7CyY9Wf44Ly7TLgQ6i2zj1IskD7/4ubA== X-Received: by 2002:a63:5c04:: with SMTP id q4mr34409484pgb.127.1626853303934; Wed, 21 Jul 2021 00:41:43 -0700 (PDT) Received: from fmin-OptiPlex-7060.nreal.work ([137.59.103.165]) by smtp.gmail.com with ESMTPSA id i8sm4841867pjh.36.2021.07.21.00.41.39 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 21 Jul 2021 00:41:42 -0700 (PDT) From: dillon.minfei@gmail.com To: thierry.reding@gmail.com, sam@ravnborg.org, airlied@linux.ie, daniel@ffwll.ch, robh+dt@kernel.org, linus.walleij@linaro.org, alexandre.torgue@foss.st.com, mcoquelin.stm32@gmail.com Subject: [PATCH v2 2/3] ARM: dts: stm32: fix dtbs_check warning on ili9341 dts binding Date: Wed, 21 Jul 2021 15:41:27 +0800 Message-Id: <1626853288-31223-3-git-send-email-dillon.minfei@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1626853288-31223-1-git-send-email-dillon.minfei@gmail.com> References: <1626853288-31223-1-git-send-email-dillon.minfei@gmail.com> X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, dianders@chromium.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, noralf@tronnes.org, Dillon Min , linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" From: Dillon Min Since the compatible string defined from ilitek,ili9341.yaml is "st,sf-tc240t-9370-t", "ilitek,ili9341" so, append "ilitek,ili9341" to avoid below dtbs_check warning. arch/arm/boot/dts/stm32f429-disco.dt.yaml: display@1: compatible: ['st,sf-tc240t-9370-t'] is too short Signed-off-by: Dillon Min Reported-by: kernel test robot --- arch/arm/boot/dts/stm32f429-disco.dts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/stm32f429-disco.dts b/arch/arm/boot/dts/stm32f429-disco.dts index 075ac57d0bf4..6435e099c632 100644 --- a/arch/arm/boot/dts/stm32f429-disco.dts +++ b/arch/arm/boot/dts/stm32f429-disco.dts @@ -192,7 +192,7 @@ display: display@1{ /* Connect panel-ilitek-9341 to ltdc */ - compatible = "st,sf-tc240t-9370-t"; + compatible = "st,sf-tc240t-9370-t", "ilitek,ili9341"; reg = <1>; spi-3wire; spi-max-frequency = <10000000>; From patchwork Wed Jul 21 07:41:28 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dillon Min X-Patchwork-Id: 12390227 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-13.6 required=3.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED,DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FORGED_FROMDOMAIN, FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 53583C12002 for ; Wed, 21 Jul 2021 07:41:50 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 239ED61181 for ; Wed, 21 Jul 2021 07:41:50 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 239ED61181 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id A3D266E8B7; Wed, 21 Jul 2021 07:41:49 +0000 (UTC) Received: from mail-pg1-x532.google.com (mail-pg1-x532.google.com [IPv6:2607:f8b0:4864:20::532]) by gabe.freedesktop.org (Postfix) with ESMTPS id 8096D6E8B7 for ; Wed, 21 Jul 2021 07:41:48 +0000 (UTC) Received: by mail-pg1-x532.google.com with SMTP id u14so1068630pga.11 for ; Wed, 21 Jul 2021 00:41:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=EHrMYnmrqqps7KOsbQ+zFfjy1540sLGCjNN4no0R6dc=; b=ae57HW7kcFptNiRrnwFFXWx0zWINl/dooiA0FotW58YpUUrl7UK8y3DhbqWU4bcHl6 VWnb744kJu48bZFP/4V+zRfOE3aTPidXn/ozRy8HM7oo+xptW3zFKLi4HXvBgJiHSa47 U4jWvkbgPHnQw11TDv6LKfoPQwqh3q1Vb+FzumOMaattsg+mNLb6Byz83Z4vRBZ1efUh T8Dtw2aU3VJlHIV75Upm/JcEIjFI4jLWNpqIDPM+BpqYbUnhnvqaLJRyCO9nReLeE2Ck Hzh5BiSa1BabBuTL+LFEGlMsAYsH9sfsZ0HZ8mqxAqaBsKLWJo9bAyvl95wiBTUyeQLc sdXQ== 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; bh=EHrMYnmrqqps7KOsbQ+zFfjy1540sLGCjNN4no0R6dc=; b=IvvWGmM4dz+Ij4QHb1Ii9QF1hrUKibRoNiwYbH5V/6Wy84JdKup01pGpXAyE2wJe0/ jpGJKEIr6g4N6wVrtDH+A7tCiAocqfkVsyoad6BWw2sOsxoIgwSrxy+cjszz5drUkMWd jyNo7QHYoPXYd/bVL+71TuYTVAWV6GN8B3+lB+GGZxL/yzn/o3I0QnmXTpKl4cPVfYUS +y4bFWQReNAXcXR99vuEyQzhQxnehr12gnLin98P7C6kr8TJThQH7TNN0nPdgeowVMLY ja22PAhwYpmTyI7PKRvwFqu9L71eho2n5FUfP9Sbu3nkycQWE90RzNjOfI3zq6ttvO9Y NfCg== X-Gm-Message-State: AOAM531iL4uG1q45i5ttoWHbbQVMALo9daU51/gnv1YvXcmOe5kwzRXg bUN3amftKsZF192BiwVgJ4c= X-Google-Smtp-Source: ABdhPJw+3ppVMsdVk3HkWvXD4RIXRLHbraq26VqRGVt+zhZiw3NgUc5g8Pl6uJrq74M/8vjkcxF5Iw== X-Received: by 2002:a65:578e:: with SMTP id b14mr34778556pgr.117.1626853308000; Wed, 21 Jul 2021 00:41:48 -0700 (PDT) Received: from fmin-OptiPlex-7060.nreal.work ([137.59.103.165]) by smtp.gmail.com with ESMTPSA id i8sm4841867pjh.36.2021.07.21.00.41.44 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 21 Jul 2021 00:41:47 -0700 (PDT) From: dillon.minfei@gmail.com To: thierry.reding@gmail.com, sam@ravnborg.org, airlied@linux.ie, daniel@ffwll.ch, robh+dt@kernel.org, linus.walleij@linaro.org, alexandre.torgue@foss.st.com, mcoquelin.stm32@gmail.com Subject: [PATCH v2 3/3] drm/panel: Add ilitek ili9341 panel driver Date: Wed, 21 Jul 2021 15:41:28 +0800 Message-Id: <1626853288-31223-4-git-send-email-dillon.minfei@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1626853288-31223-1-git-send-email-dillon.minfei@gmail.com> References: <1626853288-31223-1-git-send-email-dillon.minfei@gmail.com> X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, dianders@chromium.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, noralf@tronnes.org, Dillon Min , linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" From: Dillon Min This driver combine tiny/ili9341.c mipi_dbi_interface driver with mipi_dpi_interface driver, can support ili9341 with serial mode or parallel rgb interface mode by register configuration. Cc: Linus Walleij Signed-off-by: Dillon Min Reviewed-by: Linus Walleij Reviewed-by: Jagan Teki --- changes in v2: - replace vcc regulator to three bulk regulators(vci, vddi, vddi-led) according to linus suggestion, thanks. drivers/gpu/drm/panel/Kconfig | 12 + drivers/gpu/drm/panel/Makefile | 1 + drivers/gpu/drm/panel/panel-ilitek-ili9341.c | 778 +++++++++++++++++++++++++++ 3 files changed, 791 insertions(+) create mode 100644 drivers/gpu/drm/panel/panel-ilitek-ili9341.c diff --git a/drivers/gpu/drm/panel/Kconfig b/drivers/gpu/drm/panel/Kconfig index ef87d92cdf49..eb34b8d1b19a 100644 --- a/drivers/gpu/drm/panel/Kconfig +++ b/drivers/gpu/drm/panel/Kconfig @@ -124,6 +124,18 @@ config DRM_PANEL_ILITEK_IL9322 Say Y here if you want to enable support for Ilitek IL9322 QVGA (320x240) RGB, YUV and ITU-T BT.656 panels. +config DRM_PANEL_ILITEK_ILI9341 + tristate "Ilitek ILI9341 240x320 QVGA panels" + depends on OF && SPI + depends on DRM_KMS_HELPER + depends on DRM_KMS_CMA_HELPER + depends on BACKLIGHT_CLASS_DEVICE + select DRM_MIPI_DBI + help + Say Y here if you want to enable support for Ilitek IL9341 + QVGA (240x320) RGB panels. support serial & parallel rgb + interface. + config DRM_PANEL_ILITEK_ILI9881C tristate "Ilitek ILI9881C-based panels" depends on OF diff --git a/drivers/gpu/drm/panel/Makefile b/drivers/gpu/drm/panel/Makefile index cae4d976c069..0ecde184665d 100644 --- a/drivers/gpu/drm/panel/Makefile +++ b/drivers/gpu/drm/panel/Makefile @@ -11,6 +11,7 @@ obj-$(CONFIG_DRM_PANEL_ELIDA_KD35T133) += panel-elida-kd35t133.o obj-$(CONFIG_DRM_PANEL_FEIXIN_K101_IM2BA02) += panel-feixin-k101-im2ba02.o obj-$(CONFIG_DRM_PANEL_FEIYANG_FY07024DI26A30D) += panel-feiyang-fy07024di26a30d.o obj-$(CONFIG_DRM_PANEL_ILITEK_IL9322) += panel-ilitek-ili9322.o +obj-$(CONFIG_DRM_PANEL_ILITEK_ILI9341) += panel-ilitek-ili9341.o obj-$(CONFIG_DRM_PANEL_ILITEK_ILI9881C) += panel-ilitek-ili9881c.o obj-$(CONFIG_DRM_PANEL_INNOLUX_P079ZCA) += panel-innolux-p079zca.o obj-$(CONFIG_DRM_PANEL_JDI_LT070ME05000) += panel-jdi-lt070me05000.o diff --git a/drivers/gpu/drm/panel/panel-ilitek-ili9341.c b/drivers/gpu/drm/panel/panel-ilitek-ili9341.c new file mode 100644 index 000000000000..717b0b930e2f --- /dev/null +++ b/drivers/gpu/drm/panel/panel-ilitek-ili9341.c @@ -0,0 +1,778 @@ +// SPDX-License-Identifier: GPL-2.0-only +/* + * Ilitek ILI9341 TFT LCD drm_panel driver. + * + * This panel can be configured to support: + * - 16-bit parallel RGB interface + * - 18-bit parallel RGB interface + * - 4-line serial spi interface + * + * Copyright (C) 2021 Dillon Min + * Derived from drivers/drm/gpu/panel/panel-ilitek-ili9322.c + * the reuse of DBI abstraction part referred from Linus's patch + * "drm/panel: s6e63m0: Switch to DBI abstraction for SPI" + */ + +#include +#include +#include +#include +#include +#include +#include +#include