From mboxrd@z Thu Jan 1 00:00:00 1970 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=-8.7 required=3.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=unavailable 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 B8BA3C4338F for ; Fri, 23 Jul 2021 04:15:15 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (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 7B2CA60E76 for ; Fri, 23 Jul 2021 04:15:15 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 7B2CA60E76 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:List-Subscribe:List-Help: List-Post:List-Archive:List-Unsubscribe:List-Id:Message-Id:Date:Subject:Cc:To :From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=zPykXD7eMe27aO+JC4wh69YEcqS3WDsfD+5mD3SHHvw=; b=WWsjEnQj80Eo8A R+DwUlz6HRcW2TBM+adRyzKSJz96LJIiXc4GwfkmvCpyHN9RKNx8+y8lONg/Nea4i3pXMzVj3WHO0 CxlyTi3XS9WxFZpeCxjsY+yBe+HVLfhmQlcS20YuwlTCoT3/DWIpfL/MvbM2oju22nQYB1HzJsTNx nYXEubT+BuZCP9zXqCPUva1USM4n6MCqsLGlSuomdNXq1snyKDV6unqKUjy16hn9pE5zcjF5jGDKg VbJwDZ1MDPzi2zQ+Byv/MrwTJEBZ50CxP4NZ62IXoj2X+N1TblFhl8bnjwOuApe7erd0s+d5+Qca6 KFyYtVGiL3lVTICuRUBg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1m6mYs-003KS7-74; Fri, 23 Jul 2021 04:13:23 +0000 Received: from mail-pl1-x62b.google.com ([2607:f8b0:4864:20::62b]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1m6mSh-003Hvq-SJ for linux-arm-kernel@lists.infradead.org; Fri, 23 Jul 2021 04:07:01 +0000 Received: by mail-pl1-x62b.google.com with SMTP id k1so1594315plt.12 for ; Thu, 22 Jul 2021 21:06:50 -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; bh=RKdaEsPfAlKUYrkBK+n66uijIOWgcmdfoucBJb81UlI=; b=JlI8qQBVsqJolo4J6+lssAhVLAW4WI0h44RDmyWUIozpf+HOYMa6oBPQY1CYaiETlJ e0p86s7S0YEN67eYMoIL15B+yq73t8iZ2B1TS4Mt68w8NCbsCDQgCYD5NoQMX8Q/yFd7 jLFu7ikQ7oHqAbsSavkh78zOBk+wGcGqGUQHmiViMybrCSnku6302tIgpPX/KakAGv3P 7SyQ7QMGWrrYhdcT70+tQwFpqylL89y4fD72k9u3B2/UKDFohUYhUBaG92avHjQwYlAw mIa8fRBZRpH3chTO8D5m7mSFqhNVESnOh2YHa/806R7tW+ymgaHxrT9fVuGf82ZJo7i0 A77Q== 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=RKdaEsPfAlKUYrkBK+n66uijIOWgcmdfoucBJb81UlI=; b=bGkQRqaj9nZmu+JSgb7zaEldVoMylj/cXO7TLy2UE99hF0WQPd8wl8LlfVQAPl57rN P6HB3xbWN66AMYyZmQhEQA5pMS2IlNykxaDXLRaF3bboRN85xoI5Ff7uz2OEo04jnQaK BMiVK6u2fuOmA9ClvyRx8OceeRIfY63rDzQaEnLGNw+weEmJFHEmNJSo/q7QvGh2iQ3D 7IKw3qeJ56aLVJJ8DrPkaTgAzdPQBqtb+7hK7vztYL3dloZVgE6F4Ugsc2LGORLkvxD5 LN6vLlmeQ6rf+8S3vIcx+dapXKD6d5KiyPxw9XGePzaF0d/uAxFd9uDTho+8d/EfQZfY nBZA== X-Gm-Message-State: AOAM532fj/vzU2JkVhKkK3zhupbkfO6piTAfEhAhu5Y/q9UqCGOrUjXc X2EVLH/qY8s7uWz/yRl/yKM= X-Google-Smtp-Source: ABdhPJwNAAij7z5rx88FKTHLGOz5rOgz5z1mKMYlcOKEJ1KRn7lreB7XIeJuFyi4DPC2Jc0gvis/mg== X-Received: by 2002:a63:1d47:: with SMTP id d7mr3132259pgm.44.1627013209715; Thu, 22 Jul 2021 21:06:49 -0700 (PDT) Received: from fmin-OptiPlex-7060.nreal.work ([137.59.103.165]) by smtp.gmail.com with ESMTPSA id p3sm35474910pgi.20.2021.07.22.21.06.45 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 22 Jul 2021 21:06:49 -0700 (PDT) From: dillon.minfei@gmail.com To: laurent.pinchart@ideasonboard.com, 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 Cc: noralf@tronnes.org, dianders@chromium.org, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Dillon Min Subject: [PATCH v3 0/3] Add ilitek ili9341 panel driver Date: Fri, 23 Jul 2021 12:06:40 +0800 Message-Id: <1627013203-23099-1-git-send-email-dillon.minfei@gmail.com> X-Mailer: git-send-email 2.7.4 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210722_210659_981258_4403B8F2 X-CRM114-Status: GOOD ( 17.96 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Dillon Min Since the st,sf-tc240t-9370-t dts binding already exist in stm32f429-disco.dts but, the panel driver didn't get accepted from mainline. it's time to submit patch fot it. This driver can support two different interface by different dts bindings: - spi+dpi, use spi to configure register, dpi for graphic data. st,sf-tc240t-9370-t - only spi, just like tiny/ili9341.c (actually, this part is copy from tiny) adafruit,yx240qv29 I submited the first patch last year, you can find it at [1]. this patch has one major difference from that one, which is replace the low level communication way, from spi_sync() to mipi_dbi_{command, command_stackbuf}() interface, referred from Linus's patch [2]. both the two dpi/dbi interface was tested on stm32f429-disco board, if anyone want to verify this patch, you need apply the clk patch for this board first, you can get it from [3] [1] "drm/panel: Add ilitek ili9341 panel driver" https://lore.kernel.org/lkml/1590378348-8115-7-git-send-email-dillon.minfei@gmail.com/ [2] "drm/panel: s6e63m0: Switch to DBI abstraction for SPI" https://lore.kernel.org/dri-devel/20210611214243.669892-1-linus.walleij@linaro.org/ [3] https://lore.kernel.org/lkml/1590378348-8115-6-git-send-email-dillon.minfei@gmail.com/ v3: - add Fixes tags. - collect reviewed-by tags from linus and jagan. - replace DRM_ERROR() with dev_err() or drm_err(). - remove kernel-doc markers from struct ili9341_config{}. - reorder include headers. - remove the struct device *dev from struct ili9341{}. - restructure the ili9341_probe() function, add two ili9341_{dbi,dpi)_probe() to make it more readable according to jagan's suggestion, thanks. for the full drm driver exist in drm/panel need Sam and Laurent's feedback. so, not cover this part at this time, will be update in v4. v2 link: https://lore.kernel.org/lkml/1626853288-31223-1-git-send-email-dillon.minfei@gmail.com/ v2: - replace vcc regulator to bulk regulators in driver, from linus suggestion. - fix dtbs_check warnings on ili9341 dts binding check. - add bulk regulation node in ilitek,ili9341.yaml. v1 link: https://lore.kernel.org/lkml/1626430843-23823-1-git-send-email-dillon.minfei@gmail.com/ Dillon Min (3): dt-bindings: display: panel: Add ilitek ili9341 panel bindings ARM: dts: stm32: fix dtbs_check warning on ili9341 dts binding drm/panel: Add ilitek ili9341 panel driver .../bindings/display/panel/ilitek,ili9341.yaml | 78 ++ arch/arm/boot/dts/stm32f429-disco.dts | 2 +- drivers/gpu/drm/panel/Kconfig | 12 + drivers/gpu/drm/panel/Makefile | 1 + drivers/gpu/drm/panel/panel-ilitek-ili9341.c | 786 +++++++++++++++++++++ 5 files changed, 878 insertions(+), 1 deletion(-) create mode 100644 Documentation/devicetree/bindings/display/panel/ilitek,ili9341.yaml create mode 100644 drivers/gpu/drm/panel/panel-ilitek-ili9341.c -- 2.7.4 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel