From patchwork Thu Aug 10 14:41:14 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Luca Ceresoli X-Patchwork-Id: 134034 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b824:0:b0:3f2:4152:657d with SMTP id z4csp486849vqi; Thu, 10 Aug 2023 08:09:38 -0700 (PDT) X-Google-Smtp-Source: AGHT+IF9j3Jk16/TFg0T2B2lSo5WmL5gAuDsGrhHdMhQ509dQmYpyxF35I+Kcr13YmCMly6/1KGm X-Received: by 2002:a05:6a00:3116:b0:686:32aa:e72f with SMTP id bi22-20020a056a00311600b0068632aae72fmr2617517pfb.14.1691680177339; Thu, 10 Aug 2023 08:09:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691680177; cv=none; d=google.com; s=arc-20160816; b=VEH5yCRS3u640CM0LqaUfuQT5FsGgVLPCpPrrF/tCQUUDj4Ab9IW2huT/Vwvk8GdTO W5VljhyTww6By4N2wMx4hRLfU/W+NqNHW0Erqwn7+030vkhfc6Q/FgovM9hgsWBSsvLS AUOvc3vh2+7Peh2yjIZVhwsjpMu+8V4NQ7Ppcy1rgYfHNQ1fg6GEjNwu5SzluIX7BjPU ZmsuZpjNxw7AFUgF+QRUMCRUtUYpYornc2dCZJLrUKQKP/61+La4wzFuqM0g0gWX7Mq9 yKd1IYFJqmTmvBFyz7t/LXvULQLP8PmJR7LN32sdv0MdGWeMSYllkxigoLjKqDEeqg1C nDSA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=IyUXDREdoK5KpDJLjt4F6V+kTmb3e3jKUO9hAJV9buU=; fh=HcbfsntMiBBz8gizMGA0MXARb+41J9wGABY3u2xI0pA=; b=EyJbjcPFzs8i7e4ngtd8IE/Hf2364R5uKpIEIYCI6RS9e/j/wb+Ask8VlHSra9p8uf i2qEmZIRwHQnbt3+zbXMQuOY3XD5VE5pLwjBf9jfwqSl297HvdEwZFx8vCyvuqOTVoez s1JsV5Zqijj0URA2oTTXgzrAGhPSq90JPzS6xjiIk7VGIJ7znIVon2nBIX3zZwMrH288 SEijpJ9WyLZXUq9MHUAacjFhd6hw5L2YP3/9+H6FdaJR64dyXsM/jd9TDly9ubAMo2XQ /ltEwHTyQDBmijbsWH/SbCwwf0BzTMRHfNeW//clOroY63v8+PvhCH3rEkrKfNzxBGFX 6gbw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b="ZgLU/UZ/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k3-20020a633d03000000b00563fe2f03edsi1811343pga.93.2023.08.10.08.09.21; Thu, 10 Aug 2023 08:09:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b="ZgLU/UZ/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235836AbjHJOl3 (ORCPT + 99 others); Thu, 10 Aug 2023 10:41:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38176 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233066AbjHJOl1 (ORCPT ); Thu, 10 Aug 2023 10:41:27 -0400 Received: from relay9-d.mail.gandi.net (relay9-d.mail.gandi.net [IPv6:2001:4b98:dc4:8::229]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 209C7D7; Thu, 10 Aug 2023 07:41:26 -0700 (PDT) Received: by mail.gandi.net (Postfix) with ESMTPA id E806AFF803; Thu, 10 Aug 2023 14:41:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1691678485; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=IyUXDREdoK5KpDJLjt4F6V+kTmb3e3jKUO9hAJV9buU=; b=ZgLU/UZ/OL7yBVxcfBH1xx7n+TJz4FIl8iltYgWqaAbmmkVE/41YRFMp+FPBkYeIu9k6Ez oRsKvAJno8tFLB4ykSuflOaLZf0GB+mpatdZHXl8ztIWkQTkjFHj4c87uUiLNodvy0z8Rn syEXlTdUw52bxhIDi35AtwEneFHwNGQXjNa7gK9eeVeLcWGrQEWCgZSZyBsY2y+MQdBF4b Y65dPOzdskTjPyJ20YrvGCO/OaKBv8mwyGGEdsEmZIDtwJyUvMdlD086bbz8clRd01LA3b B4NvKq25S7CLwBGBssD713B9P9fQ1piNf3KVK6lYJd+yQQx7ngV1XOFBt3Ogjw== From: Luca Ceresoli To: Neil Armstrong , Sam Ravnborg , David Airlie , Daniel Vetter , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: Luca Ceresoli , dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Thomas Petazzoni , Paul Kocialkowski Subject: [PATCH v2 1/3] dt-bindings: vendor-prefixes: add ShenZhen New Display Co. Date: Thu, 10 Aug 2023 16:41:14 +0200 Message-Id: <20230810144116.855951-1-luca.ceresoli@bootlin.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-GND-Sasl: luca.ceresoli@bootlin.com X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_PASS,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1773855233529541124 X-GMAIL-MSGID: 1773855233529541124 ShenZhen New Display Co., Limited is the manufacturer of the NDS040480800-V3 LCD panel according the datasheet. Signed-off-by: Luca Ceresoli Acked-by: Conor Dooley Acked-by: Rob Herring --- Changes in v2: none --- Documentation/devicetree/bindings/vendor-prefixes.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/vendor-prefixes.yaml b/Documentation/devicetree/bindings/vendor-prefixes.yaml index af60bf1a6664..f73d6d4eabbe 100644 --- a/Documentation/devicetree/bindings/vendor-prefixes.yaml +++ b/Documentation/devicetree/bindings/vendor-prefixes.yaml @@ -929,6 +929,8 @@ patternProperties: description: Netronix, Inc. "^netxeon,.*": description: Shenzhen Netxeon Technology CO., LTD + "^newdisplay,.*": + description: ShenZhen New Display Co., Limited "^neweast,.*": description: Guangdong Neweast Optoelectronics CO., LTD "^newhaven,.*": From patchwork Thu Aug 10 14:41:15 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Luca Ceresoli X-Patchwork-Id: 134056 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b824:0:b0:3f2:4152:657d with SMTP id z4csp513056vqi; Thu, 10 Aug 2023 08:52:33 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGzgBEprnIjhIPTh0sW379TRGgMYxHGYJfhc3EYqc5eS1YAjeb04Cj54ElU9A7KTTNDXZ4h X-Received: by 2002:a05:6808:2022:b0:3a7:8e1b:9d65 with SMTP id q34-20020a056808202200b003a78e1b9d65mr4202372oiw.47.1691682753279; Thu, 10 Aug 2023 08:52:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691682753; cv=none; d=google.com; s=arc-20160816; b=IY/63zmKgYwwJN3GMVc+nSE2cUROyTVmpzpjjylCA9chuOKmyVTJhiNpleV0HYxbv5 YUyTqE+2hgQWRGy6p9tRvF0k1nFUyK7VRFhKnpbCJfnu0G3dWPyMMhh47dSs3p7RMdBF ZnaVYdhKNbaful/KQHJ+nqwLanvSB32lsMseUVFo1dCy5lzCXLmkvO0agw1JMuO3/mZw VdPDR/A85Kejm7mWFivRpQa4ifq3MPv8lkjguGRbxkr8JloAex6YmpoMnlWan9IHldMf /xjLaQtXqZa0XL7RtQx/i+mxftopL2x5jgQMvrc6gJ8iCDT6fd1bOYDGM3ECAMxVxxOe kd0g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=43vnQBR2KS8SqaomNNWpPAxrNsBiEbiI0oMhAMJc4f8=; fh=HcbfsntMiBBz8gizMGA0MXARb+41J9wGABY3u2xI0pA=; b=C+1LMEnh6ZaHIW+QkIlDKYEp5pcxqnHJYyHV7aURqzFRICnC4cyZ2UurPJcFUH+JMy O1bky3R7oC8MWf94ZVFiRorwtqS469d2n9h+wtotepcMsxFw/GatRjzkBkoOEH/oTG23 RqF2ilchFchJbvDfl7AlcFYbi9/2Q9PrhKrgAYJIBDVurgbyLagEkoBK7amKc2l0LkeJ eQCAJwmUlKorP/yH21e3ATCBxOMQ9Q9dhsR1DAwkVV9N7CzC4rgJ00HW+nlbW6X5YpM4 oiQc9evAnK6ohacbWNdz839Y03p9SvlSW14MS54Vcc4R5R5zv1ihcPnrtaCpfyVcXiBE fjsg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=PtpWr7bs; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n190-20020a6340c7000000b0055c0477e26dsi1771947pga.475.2023.08.10.08.52.15; Thu, 10 Aug 2023 08:52:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=PtpWr7bs; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235855AbjHJOlb (ORCPT + 99 others); Thu, 10 Aug 2023 10:41:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38226 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235839AbjHJOl3 (ORCPT ); Thu, 10 Aug 2023 10:41:29 -0400 Received: from relay9-d.mail.gandi.net (relay9-d.mail.gandi.net [IPv6:2001:4b98:dc4:8::229]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 78750D7; Thu, 10 Aug 2023 07:41:28 -0700 (PDT) Received: by mail.gandi.net (Postfix) with ESMTPA id DDBB6FF808; Thu, 10 Aug 2023 14:41:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1691678487; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=43vnQBR2KS8SqaomNNWpPAxrNsBiEbiI0oMhAMJc4f8=; b=PtpWr7bsRF04hV2V7F4lz5rDT+aPb9VSIG0T5EuvMg1Use6IFBC77u7cPz17+APSkwEfW8 ArOj9WmvtLiw+dSQSMw9vmx4JY2Vp3iRLs7xD2/R4aJNzqVuqhFvXNpyPsOAyJcGK1jq1w pPBDx9J22d/ORYUlyRuFC0lin98QeXvXETq+TOgmvmhQWC3wp8BQc9IVNtJK2vlnkExueh 1ZF+j0unyhIAQfb2ZYfiEYtatARGAlkUw/lUAEJ0jt8GWVG41GKX6w52AztCJqjVnnKofG /hMG7j7JDduQSTHXhCygxnuYyuwNvJqI7tCE5CUYeIVFJXVu3yMGtFa18rDw3g== From: Luca Ceresoli To: Neil Armstrong , Sam Ravnborg , David Airlie , Daniel Vetter , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: Luca Ceresoli , dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Thomas Petazzoni , Paul Kocialkowski Subject: [PATCH v2 2/3] dt-bindings: display: panel: Add panels based on ILITEK ILI9806E Date: Thu, 10 Aug 2023 16:41:15 +0200 Message-Id: <20230810144116.855951-2-luca.ceresoli@bootlin.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230810144116.855951-1-luca.ceresoli@bootlin.com> References: <20230810144116.855951-1-luca.ceresoli@bootlin.com> MIME-Version: 1.0 X-GND-Sasl: luca.ceresoli@bootlin.com X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_PASS,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1773857934618304984 X-GMAIL-MSGID: 1773857934618304984 Add bindings for LCD panels based on the ILITEK ILI9806E RGB controller connected over SPI and the "ShenZhen New Display Co NDS040480800-V3" 480x800 panel based on it. Signed-off-by: Luca Ceresoli Reviewed-by: Rob Herring --- Changes in v2: - remove T: line form MAINTAINERS entry - reference spi-peripheral-props.yaml - add 'maxItems: 1' to reg - use unevaluatedProperties - remove out of scope backlight node --- .../display/panel/ilitek,ili9806e.yaml | 63 +++++++++++++++++++ MAINTAINERS | 5 ++ 2 files changed, 68 insertions(+) create mode 100644 Documentation/devicetree/bindings/display/panel/ilitek,ili9806e.yaml diff --git a/Documentation/devicetree/bindings/display/panel/ilitek,ili9806e.yaml b/Documentation/devicetree/bindings/display/panel/ilitek,ili9806e.yaml new file mode 100644 index 000000000000..83d177be4e7d --- /dev/null +++ b/Documentation/devicetree/bindings/display/panel/ilitek,ili9806e.yaml @@ -0,0 +1,63 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/display/panel/ilitek,ili9806e.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Ilitek ILI9806E display panels + +maintainers: + - Luca Ceresoli + +description: + This binding is for display panels using an Ilitek ILI9806E controller in + SPI mode. + +allOf: + - $ref: panel-common.yaml# + - $ref: /schemas/spi/spi-peripheral-props.yaml# + +properties: + compatible: + items: + - enum: + # ShenZhen New Display Co 3.97" 480x800 RGB a-SI TFT LCD + - newdisplay,nds040480800-v3 + - const: ilitek,ili9806e + + reg: + maxItems: 1 + +required: + - compatible + - reg + - port + +unevaluatedProperties: false + +examples: + - | + #include + + spi { + #address-cells = <1>; + #size-cells = <0>; + + display@0 { + compatible = "newdisplay,nds040480800-v3", "ilitek,ili9806e"; + reg = <0>; + spi-max-frequency = <1000000>; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_lcdgpios>; + reset-gpios = <&gpio 26 GPIO_ACTIVE_LOW>; + backlight = <&backlight>; + + port { + ili9806e_in: endpoint { + remote-endpoint = <&lcdif_out>; + }; + }; + }; + }; + +... diff --git a/MAINTAINERS b/MAINTAINERS index 0f966f05fb0d..085e44a7b5e1 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -6516,6 +6516,11 @@ T: git git://anongit.freedesktop.org/drm/drm-misc F: Documentation/devicetree/bindings/display/ilitek,ili9486.yaml F: drivers/gpu/drm/tiny/ili9486.c +DRM DRIVER FOR ILITEK ILI9806E PANELS +M: Luca Ceresoli +S: Maintained +F: Documentation/devicetree/bindings/display/panel/ilitek,ili9806e.yaml + DRM DRIVER FOR JADARD JD9365DA-H3 MIPI-DSI LCD PANELS M: Jagan Teki S: Maintained From patchwork Thu Aug 10 14:41:16 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Luca Ceresoli X-Patchwork-Id: 134057 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b824:0:b0:3f2:4152:657d with SMTP id z4csp514313vqi; Thu, 10 Aug 2023 08:54:39 -0700 (PDT) X-Google-Smtp-Source: AGHT+IESo3mfQv0rwneIuvdXUQnk6GmOkW/Ppr3qQv4zwnLXNviLcbtrZX10wNA3FOXwxsqw8Xoy X-Received: by 2002:a17:903:454:b0:1b8:b29e:b47b with SMTP id iw20-20020a170903045400b001b8b29eb47bmr2777561plb.44.1691682879541; Thu, 10 Aug 2023 08:54:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691682879; cv=none; d=google.com; s=arc-20160816; b=Suq3m+T6ylfjN+MsNtBf7/1+k2Vw8lhf6qje3T1YdUUMsVDumlMWc2RJrYi5YFa9z4 3hVHDS0klQ0XIMC/hT8TCyP/gAyoiV7Ec70tZ8+ntSh7DyQSEZ7DlmmPml9RwBVn6NBV 8nnDuA3aOloHnoCeJPSpK/E0cZowJQZ2kRkMlnS7bySMScTrg3x7p4dz0r35WepMTApW INTHeJNQo9KcT/mN58X7UZG92BOF1kHecHMYKaj6zAZiGKM5ockKBojAb21qwvkivDph q3D/avQLZj9ueOEFCKnRcRZxvSar5sMCVpWrgCqN2svmMfjb4ESNvAG+CKDcCvkkqPj+ rGnQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=zecAnGqNYL9W689TKu6oPFuP711Ik4h3jwBO02soAIo=; fh=HcbfsntMiBBz8gizMGA0MXARb+41J9wGABY3u2xI0pA=; b=z9qFtS9VaZGYgzns9by5y0Gs3vR97YcO4N7kqEvsf3sbSniwyTkmvM6yQqKIBQ+2mX 6v/6aF9OTtO7IXGnU1yGpsyj5SCkE3P5J2WHGXQGifitaahoTsvtJ54dVwf292IAXBwl BGi8+9u0TCf/F6xURVu91ZBfSAqwmI3/UMfR5Sn7G4EHNtSGjhTujGuoixclKr9U4PdU NU4iX/wLTgI7zRx/lt/p5aqTZHl+piME1q1l0fkJFiP3EmpEcdpbtCpYuM92xr1Q5e4X vFyfLEY/PoZ+Mjex22hf76zCBnOcagGNbYSlHA78wEOEehtEhCGQuUkMWdJuACKFeJ01 xV9w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=Tm4N9Drc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id p17-20020a170902e75100b001b894687ec9si1737332plf.462.2023.08.10.08.54.26; Thu, 10 Aug 2023 08:54:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=Tm4N9Drc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235873AbjHJOll (ORCPT + 99 others); Thu, 10 Aug 2023 10:41:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37564 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235851AbjHJOlb (ORCPT ); Thu, 10 Aug 2023 10:41:31 -0400 Received: from relay9-d.mail.gandi.net (relay9-d.mail.gandi.net [217.70.183.199]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B86192684; Thu, 10 Aug 2023 07:41:29 -0700 (PDT) Received: by mail.gandi.net (Postfix) with ESMTPA id 42499FF802; Thu, 10 Aug 2023 14:41:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1691678488; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=zecAnGqNYL9W689TKu6oPFuP711Ik4h3jwBO02soAIo=; b=Tm4N9DrcYtgUVAPmlBdkOozCUk/y/F9Jo69fmj0W8QeIXTUj8xPUv1qeUviRx/yoeu0xI4 OHPYppAOX/JkRn+PV6HWOSy/mhfzbLlaGJ9IwhOyDlnEewN9DD1bQhZrHaGKqNe2155eNa VpG4X4vkbk8MeBl+NOR1h/Eyg7WHX3d3XTVLbmHv1JNUS0FXr1xXGGln7U0BPJPbg8J4kv onVrMX7GOSw/DW6RwOuXQkWjnrPbd6Ei2l56MARPwWb7ADB54TA2YDQ0oRZaudNE7bKBmk T2Wl4HRs9/DFLHINfZzfuF0tnSAanxGzKl31P5akE92YGVo/Ejy2qRc+c4huvw== From: Luca Ceresoli To: Neil Armstrong , Sam Ravnborg , David Airlie , Daniel Vetter , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: Luca Ceresoli , dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Thomas Petazzoni , Paul Kocialkowski Subject: [PATCH v2 3/3] DRM: panel: add Ilitek ILI9806E driver Date: Thu, 10 Aug 2023 16:41:16 +0200 Message-Id: <20230810144116.855951-3-luca.ceresoli@bootlin.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230810144116.855951-1-luca.ceresoli@bootlin.com> References: <20230810144116.855951-1-luca.ceresoli@bootlin.com> MIME-Version: 1.0 X-GND-Sasl: luca.ceresoli@bootlin.com X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1773858067360112318 X-GMAIL-MSGID: 1773858067360112318 Add a driver for the ILITEK ILI9806E 480x864 RGB LCD controller connected over SPI, and implement the ShenZhen New Display Co NDS040480800-V3 480x800 panel. Signed-off-by: Luca Ceresoli --- Changes in v2: - add ILI9806E_P1_DISCTRL1 bit description --- MAINTAINERS | 1 + drivers/gpu/drm/panel/Kconfig | 13 + drivers/gpu/drm/panel/Makefile | 1 + drivers/gpu/drm/panel/panel-ilitek-ili9806e.c | 385 ++++++++++++++++++ 4 files changed, 400 insertions(+) create mode 100644 drivers/gpu/drm/panel/panel-ilitek-ili9806e.c diff --git a/MAINTAINERS b/MAINTAINERS index 085e44a7b5e1..602dc866c2e3 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -6520,6 +6520,7 @@ DRM DRIVER FOR ILITEK ILI9806E PANELS M: Luca Ceresoli S: Maintained F: Documentation/devicetree/bindings/display/panel/ilitek,ili9806e.yaml +F: drivers/gpu/drm/panel/panel-ilitek-ili9806e.c DRM DRIVER FOR JADARD JD9365DA-H3 MIPI-DSI LCD PANELS M: Jagan Teki diff --git a/drivers/gpu/drm/panel/Kconfig b/drivers/gpu/drm/panel/Kconfig index 203c0ef0bbfd..e3e89d86668a 100644 --- a/drivers/gpu/drm/panel/Kconfig +++ b/drivers/gpu/drm/panel/Kconfig @@ -194,6 +194,19 @@ config DRM_PANEL_ILITEK_ILI9341 QVGA (240x320) RGB panels. support serial & parallel rgb interface. +config DRM_PANEL_ILITEK_ILI9806E + tristate "Ilitek ILI9806E panel" + depends on OF + depends on BACKLIGHT_CLASS_DEVICE + select VIDEOMODE_HELPERS + select DRM_MIPI_DBI + help + Say Y here if you want to enable support for LCD panels connected + over SPI and based on the Ilitek ILI9806E controller. + + The ILI9806E is an LCD controller capable of driving 18-bit a-Si + TFT LCDs up to a resolution of 480x800. + 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 30cf553c8d1d..f465140ae7df 100644 --- a/drivers/gpu/drm/panel/Makefile +++ b/drivers/gpu/drm/panel/Makefile @@ -17,6 +17,7 @@ obj-$(CONFIG_DRM_PANEL_FEIYANG_FY07024DI26A30D) += panel-feiyang-fy07024di26a30d obj-$(CONFIG_DRM_PANEL_HIMAX_HX8394) += panel-himax-hx8394.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_ILI9806E) += panel-ilitek-ili9806e.o obj-$(CONFIG_DRM_PANEL_ILITEK_ILI9881C) += panel-ilitek-ili9881c.o obj-$(CONFIG_DRM_PANEL_INNOLUX_EJ030NA) += panel-innolux-ej030na.o obj-$(CONFIG_DRM_PANEL_INNOLUX_P079ZCA) += panel-innolux-p079zca.o diff --git a/drivers/gpu/drm/panel/panel-ilitek-ili9806e.c b/drivers/gpu/drm/panel/panel-ilitek-ili9806e.c new file mode 100644 index 000000000000..ffc60d924e63 --- /dev/null +++ b/drivers/gpu/drm/panel/panel-ilitek-ili9806e.c @@ -0,0 +1,385 @@ +// SPDX-License-Identifier: GPL-2.0 +/* + * Driver for the Ilitek ILI9806E a-Si TFT LCD controller. + * + * Copyright (c) 2023 Delcon SRL + * Luca Ceresoli + */ + +#include +#include +#include + +#include +#include +#include +#include +#include + +#include