From nobody Fri Dec 19 17:26:47 2025 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 093A0ECAAD5 for ; Sat, 3 Sep 2022 18:40:50 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231880AbiICSkp (ORCPT ); Sat, 3 Sep 2022 14:40:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59040 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231592AbiICSke (ORCPT ); Sat, 3 Sep 2022 14:40:34 -0400 Received: from out1-smtp.messagingengine.com (out1-smtp.messagingengine.com [66.111.4.25]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3D02B27DCF; Sat, 3 Sep 2022 11:40:32 -0700 (PDT) Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id 72DE65C00F2; Sat, 3 Sep 2022 14:40:31 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute3.internal (MEProxy); Sat, 03 Sep 2022 14:40:31 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=maxfierke.com; h=cc:cc:content-transfer-encoding:date:date:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to; s=fm1; t=1662230431; x= 1662316831; bh=piNgzvHSj4JEWJsVB08bq+orA413gDpxIity4wOa2Lc=; b=K V4w0Xr4pHx9XO0eiVFm/ibG6sXKB+EpNtkkNTYDBPy8H3CoXgTNpPyAnsA9vih5t VcGitEUs0FkdFCCtAlIln0f+ebm+FZivwVTG6GmUN93xYx/hQXgBShU2DpxERjZI Yytjzp+3R8ch5IBrcdiFsFw/90aV/O46zqWa/KgMIxT29j9Wa8AWi8qwBPfS1gDr gzF8bIsbK6YOx+Tn+eW4C/+acm6CekLuv0kxZ00iiwP7dlMRgFdmUvxKIID+Mpm7 GbGJgFXZZLgpSTv/1odC9pjzZYJ1J2KZhTQm572kMEvKch2JQA74niFdpadcaYsS fekLEYMYJOwykdbw8Qtfw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm1; t=1662230431; x=1662316831; bh=piNgzvHSj4JEW JsVB08bq+orA413gDpxIity4wOa2Lc=; b=p/g2XW67O22lzgEmKvEk7PGCxtMqa zubW9iITdsSBSVP0Mc67WR/u0IF4Mxb6IIT4VAMC+trWWdLcucsnn+/Xj878wJ+Q 3vHzeHw6IGIc5AVMwt3/8i/a20VMOL6vGFSiOLAGXaTj72ZQhkw4rqbYgMrLEeSv UxKacvvg51hyE8BQCBU1qSp7jtwutguUkngPoeyUepxQfA67KTDXHh0rtk7NFQHj rSzxvaXjcaAXmgvpux08z8OPgxs88lMYXBb/mwAhEvPVr1/MHPYNM+Mf10CAPprj zMH0jp+CK3pw8fjhqpAIMVR4ypWu6B9NTSOEg+LelW9Cur/4Rsp/KvIZQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrvdelvddgudefudcutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpefhvfevufffkffojghfggfgsedtkeertdertddtnecuhfhrohhmpeforgig ucfhihgvrhhkvgcuoehmrgigsehmrgigfhhivghrkhgvrdgtohhmqeenucggtffrrghtth gvrhhnpeduleevvddtfffhuefgleeiveevvdehgfevtdetfeekvedvhfeikeduueetfeeg keenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehmrg igsehmrgigfhhivghrkhgvrdgtohhm X-ME-Proxy: Feedback-ID: idee9475d:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sat, 3 Sep 2022 14:40:30 -0400 (EDT) From: Max Fierke To: thierry.reding@gmail.com, sam@ravnborg.org, airlied@linux.ie, daniel@ffwll.ch, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org Cc: dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Max Fierke , Krzysztof Kozlowski Subject: [PATCH v2 1/4] dt-bindings: vendor-prefixes: Add prefix for ClockworkPi Date: Sat, 3 Sep 2022 13:37:50 -0500 Message-Id: <20220903183753.25736-2-max@maxfierke.com> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220903183753.25736-1-max@maxfierke.com> References: <20220903183753.25736-1-max@maxfierke.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" Add a prefix for Clockwork Tech LLC, known as ClockworkPi. They produce a number of hobbyist devices, including the ClockworkPi DevTerm and GameShell. Signed-off-by: Max Fierke Acked-by: Krzysztof Kozlowski --- Documentation/devicetree/bindings/vendor-prefixes.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/vendor-prefixes.yaml b/Docum= entation/devicetree/bindings/vendor-prefixes.yaml index 7a326168d1d2..b9cf4f02c362 100644 --- a/Documentation/devicetree/bindings/vendor-prefixes.yaml +++ b/Documentation/devicetree/bindings/vendor-prefixes.yaml @@ -254,6 +254,8 @@ patternProperties: description: Cirrus Logic, Inc. "^cisco,.*": description: Cisco Systems, Inc. + "^clockworkpi,.*": + description: Clockwork Tech LLC "^cloudengines,.*": description: Cloud Engines, Inc. "^cnm,.*": --=20 2.37.1 From nobody Fri Dec 19 17:26:47 2025 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 35C6FECAAD4 for ; Sat, 3 Sep 2022 18:40:55 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232484AbiICSkx (ORCPT ); Sat, 3 Sep 2022 14:40:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59360 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232351AbiICSkf (ORCPT ); Sat, 3 Sep 2022 14:40:35 -0400 Received: from out1-smtp.messagingengine.com (out1-smtp.messagingengine.com [66.111.4.25]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1420727FDA; Sat, 3 Sep 2022 11:40:33 -0700 (PDT) Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id 757965C00D6; Sat, 3 Sep 2022 14:40:32 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute2.internal (MEProxy); Sat, 03 Sep 2022 14:40:32 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=maxfierke.com; h=cc:cc:content-transfer-encoding:date:date:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to; s=fm1; t=1662230432; x= 1662316832; bh=XzLw5vYcr1J4oSmZ5M3XQeQrDLvf7gMoOQ4jx6zOY60=; b=s C+FPLJ0eOjaLCkYP4fG37p5rRR1nj8q8wk3+jCgAHPgUtOFqEEj03XOZX8LrnZLX 3LSvZfcHl+BPtg5qewjPT/RH/S9V1VK3QcFaiOADHAS010w3RmB2yjPilgf9I96n mcNS5U3hC1CeJLUrPIktPZF3+K4v1GZZU+/5agL/ZGtbcxkuGcmuiOD47IXmzjyC OVez5R4Q5qcAGFduV/Mg6q+vqtspJEcpyeY9bUvsYmdx6HcUhVZ9dvSNiZDSZAwx 0r9jQrBIZfQclEjRfs+Qgb/EP+D3t5ZQxkqZztpuBhGZ3FTyZeikQmr4hoT/LaMU e8ylCgZiIxbh5indk4d4g== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm1; t=1662230432; x=1662316832; bh=XzLw5vYcr1J4o SmZ5M3XQeQrDLvf7gMoOQ4jx6zOY60=; b=loCfU8GZJYU/y2e67TGJwyitiL+Wd pvqr2ndpkTcmyGGUB/AePBqXTK9a/oJ6ru2XvLG96WblIG5gCv7rpVF9voWdh07u KkokTLLnhvZqq8Q2ldgibeF8625KA8SkUWlsCyxp9HMLNWux8qMb9rU/0emGWkqy hDyksJna0U6hMPIXYROjVA5Z2zt+exEK24GHt5vWjeE/4Vn+XG/x2V10dB+nBxAP NrAKBfu6UnOIsSXkySdzp4gAWkoo04+mRxILJm6R2e8ncao8uU/amgrPfpNAMqS6 c6n3BGZ2GXOH7FQzKn7k1/2WRF+IAk6UbFBA8l8PRU/ojL+NyiR8Sd2VQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrvdelvddgudefudcutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpefhvfevufffkffojghfggfgsedtkeertdertddtnecuhfhrohhmpeforgig ucfhihgvrhhkvgcuoehmrgigsehmrgigfhhivghrkhgvrdgtohhmqeenucggtffrrghtth gvrhhnpeejuefghffgjeekfefhueeglefggeetieejheehfffhkedtueffheehledvvdek feenucffohhmrghinhepuggvvhhitggvthhrvggvrdhorhhgnecuvehluhhsthgvrhfuih iivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepmhgrgiesmhgrgihfihgvrhhkvgdr tghomh X-ME-Proxy: Feedback-ID: idee9475d:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sat, 3 Sep 2022 14:40:31 -0400 (EDT) From: Max Fierke To: thierry.reding@gmail.com, sam@ravnborg.org, airlied@linux.ie, daniel@ffwll.ch, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org Cc: dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Max Fierke , Krzysztof Kozlowski Subject: [PATCH v2 2/4] dt-bindings: display: Add ClockworkPi CWD686 panel Date: Sat, 3 Sep 2022 13:37:51 -0500 Message-Id: <20220903183753.25736-3-max@maxfierke.com> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220903183753.25736-1-max@maxfierke.com> References: <20220903183753.25736-1-max@maxfierke.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" The CWD686 is a 6.86" IPS LCD panel used as the primary display in the ClockworkPi DevTerm portable (all cores) Signed-off-by: Max Fierke Reviewed-by: Krzysztof Kozlowski --- Changes in v2 (Krzysztof Kozlowski and Rob Herring's Suggestions) - remove redundant backlight example - add missing regulators .../display/panel/clockworkpi,cwd686.yaml | 63 +++++++++++++++++++ 1 file changed, 63 insertions(+) create mode 100644 Documentation/devicetree/bindings/display/panel/clockwo= rkpi,cwd686.yaml diff --git a/Documentation/devicetree/bindings/display/panel/clockworkpi,cw= d686.yaml b/Documentation/devicetree/bindings/display/panel/clockworkpi,cwd= 686.yaml new file mode 100644 index 000000000000..eaf55d629266 --- /dev/null +++ b/Documentation/devicetree/bindings/display/panel/clockworkpi,cwd686.ya= ml @@ -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/clockworkpi,cwd686.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: ClockworkPi CWD686 6.86" IPS LCD panel + +maintainers: + - Max Fierke + +description: | + The ClockworkPi CWD686 is a 6.86" ICNL9707-based IPS LCD panel used with= in the + ClockworkPi DevTerm series of portable devices. The panel has a 480x1280 + resolution and uses 24 bit RGB per pixel. + +allOf: + - $ref: panel-common.yaml# + +properties: + compatible: + const: clockworkpi,cwd686 + + reg: + description: DSI virtual channel used by that screen + maxItems: 1 + iovcc-supply: + description: regulator that supplies the iovcc voltage + vci-supply: + description: regulator that supplies the vci voltage + + reset-gpios: true + rotation: true + backlight: true + +required: + - compatible + - reg + - backlight + - reset-gpios + - iovcc-supply + - vci-supply + +additionalProperties: false + +examples: + - | + #include + + dsi { + #address-cells =3D <1>; + #size-cells =3D <0>; + + panel@0 { + compatible =3D "clockworkpi,cwd686"; + reg =3D <0>; + backlight =3D <&backlight>; + reset-gpios =3D <&gpio2 28 GPIO_ACTIVE_HIGH>; + rotation =3D <90>; + iovcc-supply =3D <&vcc_1v8>; + vci-supply =3D <&vcc3v3_sys>; + }; + }; --=20 2.37.1 From nobody Fri Dec 19 17:26:47 2025 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6BA46ECAAD5 for ; Sat, 3 Sep 2022 18:41:03 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232815AbiICSlB (ORCPT ); Sat, 3 Sep 2022 14:41:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59156 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232026AbiICSkg (ORCPT ); Sat, 3 Sep 2022 14:40:36 -0400 Received: from out1-smtp.messagingengine.com (out1-smtp.messagingengine.com [66.111.4.25]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1AF9725283; Sat, 3 Sep 2022 11:40:34 -0700 (PDT) Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id 5AF885C0102; Sat, 3 Sep 2022 14:40:33 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute5.internal (MEProxy); Sat, 03 Sep 2022 14:40:33 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=maxfierke.com; h=cc:cc:content-transfer-encoding:date:date:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to; s=fm1; t=1662230433; x= 1662316833; bh=Vmp/m2SOSrYeg1NPC14JnXeYfJ66hVvqGFqVu2RV7w0=; b=R w2WCoLYRY3mg2hmeqyG5sFx20wyf1rVAbU/4jBUikeGyUYwdpFdr5WiC6Xigxqni NUvfFPAfSd5+dN267dzwVfrpwNQdlvm5bdLm1b+QxRCXLkCAleHsOZJKkwJVmIbp pciYrHiQurzsXM93csP4/s1G0+sAYDGyj/By4Gw4F3cKkzA9/FU6t2w/pjxDcztY dfyNf/hryROfm65b9zZ/lLYDJPZjmhv2MfI3cjdkPn6ln56VJIoKt037Z85Ad9Zo o85DmZ+/KkaHe/1MBJJDvV5lI9bWHFUE5DH43LySNvYBqr9/6ANfa9XYCQa2JFrK aa8W69HnQTQzLMS88KnaQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm1; t=1662230433; x=1662316833; bh=Vmp/m2SOSrYeg 1NPC14JnXeYfJ66hVvqGFqVu2RV7w0=; b=AXxXI+QQyVMjU/Q8K3rmx2R44iq4j c2nU7yQtjb4/vgelsL3p2En93c+Ul+K7WeXLqDznDNwEKAUrqTiLobFDQuOIqxc1 2VMpyk8WUlRSfWnJrY2wiKNsJDOv4QZ1rAX9/lXIxItLJwHe6uKPkGaEVwCH6KOe 7GSmPN178D8SD0TJkpujix9xjDllOst3v2smzprtn2dldlUAUje7MhciOA620Qsk lG74Di+p25mxxJVIi7GjWrqxQqnGKHUYJ9wwBwF3D14iBDGjWd2qKHsEW5WT5hqa lQ2oEwqIFNJklKW6kDJbueVjwkqKoWKuQUYrv5GuWelhXi5B/xQyjao2A== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrvdelvddgudefudcutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecunecujfgurhephffvvefufffkofgjfhgggfestd ekredtredttdenucfhrhhomhepofgrgicuhfhivghrkhgvuceomhgrgiesmhgrgihfihgv rhhkvgdrtghomheqnecuggftrfgrthhtvghrnhepjeelkeeluddtieegheduvdetudejie dvfeevkeeuhedvueeuudefueetfeefvedvnecuffhomhgrihhnpehgihhthhhusgdrtgho mhenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehmrg igsehmrgigfhhivghrkhgvrdgtohhm X-ME-Proxy: Feedback-ID: idee9475d:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sat, 3 Sep 2022 14:40:32 -0400 (EDT) From: Max Fierke To: thierry.reding@gmail.com, sam@ravnborg.org, airlied@linux.ie, daniel@ffwll.ch, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org Cc: dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Max Fierke Subject: [PATCH v2 3/4] drm: panel: Add driver for ClockworkPi cwd686 panel Date: Sat, 3 Sep 2022 13:37:52 -0500 Message-Id: <20220903183753.25736-4-max@maxfierke.com> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220903183753.25736-1-max@maxfierke.com> References: <20220903183753.25736-1-max@maxfierke.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" The ClockworkPi DevTerm (all models) uses a 6.86" IPS display of unknown provenance, which uses the Chipone ICNL9707 IC driver. The display panel I have has two model numbers: TXW686001 and WTL068601G, but cannot find any manufacturer associated with either, so opting for the ClockworkPi model number. This driver is based on the GPL-licensed driver released by ClockworkPi, authored by Pinfan Zhu, with some additional cleanup, rotation support, and display sleep re-enabling done by me. Original driver here for reference: https://github.com/clockworkpi/DevTerm/= blob/main/Code/patch/armbian_build_a06/patch/kernel-004-panel.patch Display IC datasheet provided here: https://github.com/clockworkpi/DevTerm/= blob/main/Schematics/ICNL9707_Datasheet.pdf Signed-off-by: Max Fierke --- Changes in v2: (Sam Ravnborg's suggestions) - remove some unused properties from definition (e.g. enable_gpio, supply) - add missing regulators - reorder includes - remove redundant ctx->backlight in favor of backlight through drm_panel_= of_backlight - remove now-unneeded ctx->enabled and enable/disable hooks - replace ICNL9707_DCS macro with mipi_dsi_dcs_write_seq - use dev_err_probe instead of checking EPROBE_DEFER - fixed return type of cwd686_remove to be void following changes to mipi_= dsi_driver drivers/gpu/drm/panel/Kconfig | 12 + drivers/gpu/drm/panel/Makefile | 1 + .../gpu/drm/panel/panel-clockworkpi-cwd686.c | 445 ++++++++++++++++++ 3 files changed, 458 insertions(+) create mode 100644 drivers/gpu/drm/panel/panel-clockworkpi-cwd686.c diff --git a/drivers/gpu/drm/panel/Kconfig b/drivers/gpu/drm/panel/Kconfig index 584a69f99af6..a93c697867f9 100644 --- a/drivers/gpu/drm/panel/Kconfig +++ b/drivers/gpu/drm/panel/Kconfig @@ -68,6 +68,18 @@ config DRM_PANEL_BOE_TV101WUM_NL6 Say Y here if you want to support for BOE TV101WUM and AUO KD101N80 45NA WUXGA PANEL DSI Video Mode panel =20 +config DRM_PANEL_CLOCKWORKPI_CWD686 + tristate "ClockworkPi CWD686 panel" + depends on OF + depends on DRM_MIPI_DSI + depends on BACKLIGHT_CLASS_DEVICE + help + Say Y here if you want to enable support for the ClockworkPi CWD686 + ICNL9707-based panel, e.g. as used within the ClockworkPi DevTerm. + The panel has a 480x1280 resolution and uses 24 bit RGB per pixel. + + To compile this driver as a module, choose M here. + config DRM_PANEL_DSI_CM tristate "Generic DSI command mode panels" depends on OF diff --git a/drivers/gpu/drm/panel/Makefile b/drivers/gpu/drm/panel/Makefile index 34e717382dbb..6c3ed2acaa6b 100644 --- a/drivers/gpu/drm/panel/Makefile +++ b/drivers/gpu/drm/panel/Makefile @@ -5,6 +5,7 @@ obj-$(CONFIG_DRM_PANEL_ASUS_Z00T_TM5P5_NT35596) +=3D panel-= asus-z00t-tm5p5-n35596. obj-$(CONFIG_DRM_PANEL_BOE_BF060Y8M_AJ0) +=3D panel-boe-bf060y8m-aj0.o obj-$(CONFIG_DRM_PANEL_BOE_HIMAX8279D) +=3D panel-boe-himax8279d.o obj-$(CONFIG_DRM_PANEL_BOE_TV101WUM_NL6) +=3D panel-boe-tv101wum-nl6.o +obj-$(CONFIG_DRM_PANEL_CLOCKWORKPI_CWD686) +=3D panel-clockworkpi-cwd686.o obj-$(CONFIG_DRM_PANEL_DSI_CM) +=3D panel-dsi-cm.o obj-$(CONFIG_DRM_PANEL_LVDS) +=3D panel-lvds.o obj-$(CONFIG_DRM_PANEL_SIMPLE) +=3D panel-simple.o diff --git a/drivers/gpu/drm/panel/panel-clockworkpi-cwd686.c b/drivers/gpu= /drm/panel/panel-clockworkpi-cwd686.c new file mode 100644 index 000000000000..87d20d784596 --- /dev/null +++ b/drivers/gpu/drm/panel/panel-clockworkpi-cwd686.c @@ -0,0 +1,445 @@ +// SPDX-License-Identifier: GPL-2.0+ +/* + * Copyright (c) 2021 Clockwork Tech LLC + * Copyright (c) 2021-2022 Max Fierke + * + * Based on Pinfan Zhu's work on panel-cwd686.c for ClockworkPi's 5.10 BSP + */ + +#include +#include +#include +#include +#include + +#include