From patchwork Wed Jul 19 15:21:45 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Luca Ceresoli X-Patchwork-Id: 122694 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:c923:0:b0:3e4:2afc:c1 with SMTP id j3csp2524882vqt; Wed, 19 Jul 2023 08:40:38 -0700 (PDT) X-Google-Smtp-Source: APBJJlG1ANfoXubvd/B9XsqrOGdQFoI23ncpUUzBmHILkd22H4G9mzBHsSgsdghi78WSWMsvSA2+ X-Received: by 2002:a05:6402:1355:b0:51e:4bc7:3976 with SMTP id y21-20020a056402135500b0051e4bc73976mr3257098edw.10.1689781238030; Wed, 19 Jul 2023 08:40:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689781238; cv=none; d=google.com; s=arc-20160816; b=a42jNV0Duh1btX99uOJFiivVLQBqK/6OCsxZbmFMmuhm4KHVzKkQ0kCIFkHoTzINGW PXa8DUAJcQpW61SFAo35xmHJcgXKyB7JGEdKWhGXoCpQxZxWeS+2oJU+Vq3JInQAHALU pQCjrV1oP4N9g86DP+4NNgEuqnNNMXzdtIqWL68hy0XNUGKuYPwItYzN+R9YYaIphZgd 1RtAtLfzJXSm0b7DVwekM2CLpduOOCTFqti8CgHucdjksgjzc9dP3ffL9HZSH0q9725e CLqRX2eoPiQYrtFlXdI9vpoNjRfT7B/jICWPPA4tI4N+iTnd9DunWtFucn9GZekifHDU kGGQ== 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=z7LeJpkpUdhoFv0e9eqWbQ9CWTKgq+xXZByhqOo66tA=; fh=HcbfsntMiBBz8gizMGA0MXARb+41J9wGABY3u2xI0pA=; b=EbFh1jEEA/zGW1RS92VieHqlhtqh9eGQrmyNt2xSJ+wAsnA4UWRzgmSY5Ri6mlOZIK Qh57D4/++5JHUQ8G5JGoSe28u3NF5bmMLAV50Nj5JDioQZukjLphmIbXbezsRjWweqzI +X4WpVFYwx8kv/XohxQG91ajAylaVqs2zE9fiNSq7gLitElMiE2aZY/mNoQtwYSf8vVI UdWogEIlPo3vgJ7w9LFPKpKgw6NGVt0+WEuTF8rw2D+xhPY13q5FIGB7ncjyBk4x6v8k U12lwFBuUb4heg500Hxd8fmhZq2IdNYnshvZIBzdp0opQeYMCoKDnzE+KezPX6MSy9Jp SPEg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=bAexir4V; 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 l12-20020aa7d94c000000b0051a27469761si3058985eds.123.2023.07.19.08.40.13; Wed, 19 Jul 2023 08:40:38 -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=bAexir4V; 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 S231699AbjGSPWE (ORCPT + 99 others); Wed, 19 Jul 2023 11:22:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59210 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231124AbjGSPWD (ORCPT ); Wed, 19 Jul 2023 11:22:03 -0400 Received: from relay5-d.mail.gandi.net (relay5-d.mail.gandi.net [217.70.183.197]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 88185CC; Wed, 19 Jul 2023 08:22:00 -0700 (PDT) Received: by mail.gandi.net (Postfix) with ESMTPA id 537981C000B; Wed, 19 Jul 2023 15:21:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1689780119; 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=z7LeJpkpUdhoFv0e9eqWbQ9CWTKgq+xXZByhqOo66tA=; b=bAexir4VCi2pGfTcj5tOmnZu6VIjuODeLgGTSBy2VUTxxTDAf+urTgSkc7PNv121vRpzSy AfvLGVlGOWnN4QwnFGha/P8JRiy/hEnqcw6gs5ihCFv20rVYz027F1plsQV79uzNxdZDOR dp/QOIMoUXb3FWzJAsJWeT1CP9LchtejpJ58/ZfzOaxLN0a2GQfKuvi7DlL3Ghq7f2cg91 uFrwE1Hwhuh9tlSpRCAAFilVkDKXbfvUEWlpKskt/Xb+EjZHyTejI0TRsMiSfqmqkM0Ya8 c4JFZXe6Tze3bC76bwqrcYOoxP+6vVBV5WcoiUSCB6z1puHE3+jjz2FYbFj3Tg== 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 1/3] dt-bindings: vendor-prefixes: add ShenZhen New Display Co. Date: Wed, 19 Jul 2023 17:21:45 +0200 Message-Id: <20230719152147.355486-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, RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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: 1771864051333479600 X-GMAIL-MSGID: 1771864051333479600 ShenZhen New Display Co., Limited is the manufacturer of the NDS040480800-V3 LCD panel according the datasheet. Signed-off-by: Luca Ceresoli --- 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 Wed Jul 19 15:21:46 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Luca Ceresoli X-Patchwork-Id: 122689 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:c923:0:b0:3e4:2afc:c1 with SMTP id j3csp2519906vqt; Wed, 19 Jul 2023 08:32:29 -0700 (PDT) X-Google-Smtp-Source: APBJJlH9IXAEybz3vWDO+u9DYPCR5S5PugqE5N/JatSkaQFt+pJm+2XeiO0nAQCS+cBuOYgmQG4B X-Received: by 2002:a17:902:ea82:b0:1ad:f138:b2f6 with SMTP id x2-20020a170902ea8200b001adf138b2f6mr16211084plb.16.1689780748935; Wed, 19 Jul 2023 08:32:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689780748; cv=none; d=google.com; s=arc-20160816; b=P9VLg1x2jJne+uWvKjO9dBNQmIp0wifr9uzCiCqZ1ALeRFu9hY99bAu0T5KG6f7qLT fgg/D8j4jpwp3XeIj8nFgn6NKwBKPSxTMIjyWWffeI/1wrt6MroJCtJUx1iPkY90uJ6I Uh/gIHIH5hGhRAsp/1CSUVYeVHfKofY+UPQzcd8yLGxruw11iDBFosW+eBXqfkhzGZFN joe8LpDC4NcXbMtIkL8TXXLAe8xA6VYSC7yWyZyEQ2qDvz48+5XSqcTgDTr1oDE7a+VI NWrfEGzRvYmietbKo3KxRzJa7RfSe935pWlW+dol5UclQVlJ26VEtdhfPS/X8u6a+q9/ AiMQ== 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=99wH+vey50DngufvBEte5SfRinX7I5E5R5JRlIDEi1s=; fh=HcbfsntMiBBz8gizMGA0MXARb+41J9wGABY3u2xI0pA=; b=Y/biVCvHdFncgNz2yFSFcF0yD5Ub4p/Q9rk8GSmAdM+1x1fUXJOc+f3xqEnxpox6M0 MHqsd1kH5qqWcJNNmBZK3gTRH2hmPT7jPuTntgYTB2gUAwkxleCvtK9R6y1DBDnjow9X xUyfVjQsmSDAtlaSpTlJUYpN66JNiE8E2c/af7dqkO6iSPbIgJJjf9RLl1dv/k7booW7 nBHO8OARmIvGPxTLzIMK2u3bTg8cz2ljg+fIcs6zEIgGeN28seIffFl0LXufNW26Dn2w /uQjQlfR0wk0mG905FkJ1yrrncYdBT9PbP78olX9n/3dYtPBHZlF60FbiFQ6U3DYLEmI WwSw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=U9DkZbPD; 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 y8-20020a17090a86c800b0026370caa5c5si1526677pjv.75.2023.07.19.08.32.15; Wed, 19 Jul 2023 08:32:28 -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=U9DkZbPD; 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 S231670AbjGSPWG (ORCPT + 99 others); Wed, 19 Jul 2023 11:22:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59224 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231696AbjGSPWE (ORCPT ); Wed, 19 Jul 2023 11:22:04 -0400 Received: from relay5-d.mail.gandi.net (relay5-d.mail.gandi.net [217.70.183.197]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6981CC1; Wed, 19 Jul 2023 08:22:02 -0700 (PDT) Received: by mail.gandi.net (Postfix) with ESMTPA id B481B1C0006; Wed, 19 Jul 2023 15:21:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1689780121; 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=99wH+vey50DngufvBEte5SfRinX7I5E5R5JRlIDEi1s=; b=U9DkZbPDgqJw5yvQZnLPqRpyfLrpUQV3Tuckf19C7rBPjMvtD5TWzeSh7/y7a/BGEHYqrv qxVjrZV76FMvhtYwLMfxPTOsWPpTsPJyTQQAHyMZlCLZ+gqWk7NQO4iU6Hyzrn4qDLggTT Xx1USkh+ftS/34NfF8rztyErvPYrBZK2Bamk+w/gNOLZsednmEbIRY32MBfIsKojEBdbSS E0iuBzgcMSQF6PAzfZjCkJEClSB9wKACCZaqET40hFfIzvBYyyF8uymvoG5Ml874Urvx0z rX56v9HyN0G7sArJwwLYAlpc8YQF028V3uD+B8eDszArWgleLnw+uNR99fxcnA== 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 2/3] dt-bindings: display: panel: Add panels based on ILITEK ILI9806E Date: Wed, 19 Jul 2023 17:21:46 +0200 Message-Id: <20230719152147.355486-2-luca.ceresoli@bootlin.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230719152147.355486-1-luca.ceresoli@bootlin.com> References: <20230719152147.355486-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, RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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: 1771863538824037866 X-GMAIL-MSGID: 1771863538824037866 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: Conor Dooley --- .../display/panel/ilitek,ili9806e.yaml | 69 +++++++++++++++++++ MAINTAINERS | 6 ++ 2 files changed, 75 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..42abc6923065 --- /dev/null +++ b/Documentation/devicetree/bindings/display/panel/ilitek,ili9806e.yaml @@ -0,0 +1,69 @@ +# 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# + +properties: + compatible: + items: + - enum: + # ShenZhen New Display Co 3.97" 480x800 RGB a-SI TFT LCD + - newdisplay,nds040480800-v3 + - const: ilitek,ili9806e + + reg: true + spi-max-frequency: true + reset-gpios: true + backlight: true + port: true + +required: + - compatible + - reg + - port + +additionalProperties: false + +examples: + - | + #include + + backlight: backlight { + compatible = "gpio-backlight"; + gpios = <&gpio 22 GPIO_ACTIVE_HIGH>; + }; + 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 aee340630eca..3c38699ee821 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -6515,6 +6515,12 @@ 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 +T: git git://anongit.freedesktop.org/drm/drm-misc +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 Wed Jul 19 15:21:47 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Luca Ceresoli X-Patchwork-Id: 122683 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:c923:0:b0:3e4:2afc:c1 with SMTP id j3csp2515802vqt; Wed, 19 Jul 2023 08:25:57 -0700 (PDT) X-Google-Smtp-Source: APBJJlERjrteM2R0aBzx0ly/aggBr7oEyc7hkv1dCKvdy4TvsQKV8iseQV+E2BL6YF8oNqNC0gcp X-Received: by 2002:a05:6a20:7289:b0:12f:405d:c4d0 with SMTP id o9-20020a056a20728900b0012f405dc4d0mr23859255pzk.54.1689780357626; Wed, 19 Jul 2023 08:25:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689780357; cv=none; d=google.com; s=arc-20160816; b=mb4CzKwjjmrkfz1cmPPunGFDY17BoMo07BQj5j+LULdka2qBOcYIPmEjLYVrBIl7BV D30JjqFP4Wk6xk/hzxEwFg+vQFuC8Uxk78Kq8w/3euXGkqCBCLg0BM6YdzbNDPkxM1b7 RPL3Ag9y0zmHDF5+j+KYKEQAaSYuOEEUUR4DKKafvrfd7iAXX3xVmdjBdMtTqeyzc/cx Dh8wkrmG8NUeVO1pFpmCKXfinBAIdsF7XFrDyVdRNRUOSSbkZjVb1tLS5VujLwNJw3x0 voU90ADjnhz7QAZvRq5YOXgwHEAPFs0hNn38oE0UwLR/oLZr5JgYnbvvR0h/Z3z+lC23 ZwOw== 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=CBg6tMAdVYwms8PoDmVDoX4vd6DGK68Jkg1jw+ADWwM=; fh=HcbfsntMiBBz8gizMGA0MXARb+41J9wGABY3u2xI0pA=; b=q/iWRF05hLWkBZs7oK6OlB8TJ4TYKepiRNFPyD8sPMqzTir4vEDqI1ThCS16xQwpm4 /630qAR1p0dVkIFEC2MozteFkbhIDg2Eihc/D5SBsS44uUjDmHe8f2iePDv7ozThJwqD EtQ6YtTUxtgZqsKU4btjKBd9RWd8u21KSNyJG0CFNLxzDlS1uOWP0sEIWvwL2RTOPjBJ BwDziltJrxMSUljUIvKSk5PDadOnUgTHNw6tirwxq4NPmjGP9i+Ti6Vv4WkVKOivA1Lb +xYr/mB7udQfzgh8SFsGPDAYyh+muEyLY15gzvtuCZkb+p6xZEhHI9GjT9ua7KmLIvpp 0Gog== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b="aR/SHyNS"; 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 g30-20020a63201e000000b0055acc7f8097si3636465pgg.364.2023.07.19.08.25.43; Wed, 19 Jul 2023 08:25:57 -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="aR/SHyNS"; 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 S231705AbjGSPWM (ORCPT + 99 others); Wed, 19 Jul 2023 11:22:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59298 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231702AbjGSPWH (ORCPT ); Wed, 19 Jul 2023 11:22:07 -0400 Received: from relay5-d.mail.gandi.net (relay5-d.mail.gandi.net [217.70.183.197]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D4712CC; Wed, 19 Jul 2023 08:22:04 -0700 (PDT) Received: by mail.gandi.net (Postfix) with ESMTPA id D8D241C0004; Wed, 19 Jul 2023 15:22:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1689780123; 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=CBg6tMAdVYwms8PoDmVDoX4vd6DGK68Jkg1jw+ADWwM=; b=aR/SHyNSTmmLtcNqB+J3ayR5nChFZV5WIIyU8NdO1DcHd5j80flvY2QDdSPni84XjSGeDo 46eiLd5R4x1b5doItnVZA4Ivvbbfpr/VZ1o9nqw1SPGZdL3RBbbkRv0NGh3GNFSrSc4h3k UskcvhjiS3knW6+l0tV6OOGPOlqlHLtEUmllA+rm+yQEZr8HI/khOaBvtWQYENgVKuBCBS 3tF0DTr/q+2k0TmY8IXiYwtMhCzC3YjJeg6pskSXeTnh9R58Ng1NrjFEOeYlRBrj6XrtnE FJ7bLk1uYtaZi2yaJH7cbi776JNbguv/4ud9i2F6hZ7pecEehFiNr0PazpLxxA== 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 3/3] DRM: panel: add Ilitek ILI9806E driver Date: Wed, 19 Jul 2023 17:21:47 +0200 Message-Id: <20230719152147.355486-3-luca.ceresoli@bootlin.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230719152147.355486-1-luca.ceresoli@bootlin.com> References: <20230719152147.355486-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, RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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: 1771863128147999550 X-GMAIL-MSGID: 1771863128147999550 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 --- MAINTAINERS | 1 + drivers/gpu/drm/panel/Kconfig | 13 + drivers/gpu/drm/panel/Makefile | 1 + drivers/gpu/drm/panel/panel-ilitek-ili9806e.c | 384 ++++++++++++++++++ 4 files changed, 399 insertions(+) create mode 100644 drivers/gpu/drm/panel/panel-ilitek-ili9806e.c diff --git a/MAINTAINERS b/MAINTAINERS index 3c38699ee821..4d657a049acc 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -6520,6 +6520,7 @@ M: Luca Ceresoli S: Maintained T: git git://anongit.freedesktop.org/drm/drm-misc 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..57c12bff70f8 --- /dev/null +++ b/drivers/gpu/drm/panel/panel-ilitek-ili9806e.c @@ -0,0 +1,384 @@ +// 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