From patchwork Mon Jan 3 17:41:02 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chris Morgan X-Patchwork-Id: 12702706 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 904F0C4332F for ; Mon, 3 Jan 2022 17:41:14 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233277AbiACRlO (ORCPT ); Mon, 3 Jan 2022 12:41:14 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56092 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232029AbiACRlN (ORCPT ); Mon, 3 Jan 2022 12:41:13 -0500 Received: from mail-ot1-x32f.google.com (mail-ot1-x32f.google.com [IPv6:2607:f8b0:4864:20::32f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 803E8C061761; Mon, 3 Jan 2022 09:41:13 -0800 (PST) Received: by mail-ot1-x32f.google.com with SMTP id o3-20020a9d4043000000b0058f31f4312fso42239994oti.1; Mon, 03 Jan 2022 09:41:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=/Pzkzaoed+K47iHzaJqEhqLiGfQj1VjXXbz9ZoyhQM0=; b=N6L2Ul7QUEenkPjRRgv/l6IEDTgLVat5tiL3JhKcO8EN6eyPC7yPPDb7ClKjbX8fL1 TlGaFOd4Rb2+njXayCuojgatKJz1pwthpsDRtO/keYimWZUqLGmeRgC3v3IxurUrRnDY PUQ2VKcvLz35Kq/8CRoBJidQHfPE8xHLXMD/uJ5b30RaOSwPSWwDqG6uACd7rgcJQTHI NrE/Gg2Lz89JIkWScXtLslDMrKKyoiwDIeHhzO2lIFsv068fMowOl6yx6zvnTH52ES4e SlqOUlPRZQEoqGptgSUcrE75VwooWfQ1I6T9RMgFEC9FQfLOZJvutqj2m4n3gMx3drTY lULA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=/Pzkzaoed+K47iHzaJqEhqLiGfQj1VjXXbz9ZoyhQM0=; b=7RV/mNOWLqOz/ypwz5PsMWHMOatvI4WrA/kQYKB4snPTAzCBv+/QtzTJkU1GIVpBJG 4qk5zkI6fXiL3NcyAa1MXe5yxyXbMl2GUKMMmB+YmjKdS8py2wZ1rvKzvymfBGe2TqvL xWv1gD6G3KNDRXG6siDGvqqcRu9OXwksd5UHTiJy3E7RUOuRtJjwxanttwQDPfdhW3Dq BpcdNCXKwAUBSRsjLgw2v6cgcjrGXm8KQMzx8Bhc0Ub3ron20Gyq/Ge4OmLrQBscwaFY bMaknPo5/eYFdNaoyt8mO81TxYdDl6OLX/zukVKZujZc+fr/OgD6+grh3yi2GBGrsFv8 bZ0w== X-Gm-Message-State: AOAM532X3fFXgljNdpB3iOSX3Rm2BqpatE0zD+ZUR4JzER/hpZ27NYoT KbIC6qen4ElqMLg1gDkkse4= X-Google-Smtp-Source: ABdhPJzzHFYQdiomeKRM6SW3QFSrviE/xKfuh0Ybmx4FgCL4JPezJHvj5LjmALlzjT8DjqAchO4GMg== X-Received: by 2002:a05:6830:1d45:: with SMTP id p5mr33263761oth.350.1641231672859; Mon, 03 Jan 2022 09:41:12 -0800 (PST) Received: from wintermute.localdomain (cpe-76-183-134-35.tx.res.rr.com. [76.183.134.35]) by smtp.gmail.com with ESMTPSA id s6sm9368864ois.3.2022.01.03.09.41.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 03 Jan 2022 09:41:12 -0800 (PST) From: Chris Morgan To: dri-devel@lists.freedesktop.org Cc: devicetree@vger.kernel.org, thierry.reding@gmail.com, sam@ravnborg.org, airlied@linux.ie, daniel@ffwll.ch, robh+dt@kernel.org, mchehab@kernel.org, emma@anholt.net, mripard@kernel.org, linux-media@vger.kernel.org, Chris Morgan Subject: [PATCH 1/5] media: uapi: Document format MEDIA_BUS_FMT_RGB565_1X24_CPADHI Date: Mon, 3 Jan 2022 11:41:02 -0600 Message-Id: <20220103174106.907-2-macroalpha82@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220103174106.907-1-macroalpha82@gmail.com> References: <20220103174106.907-1-macroalpha82@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org From: Chris Morgan Add support for MEDIA_BUS_FMT_RGB565_1X24_CPADHI. This format is used by the Geekworm MZP280 panel which interfaces with the Raspberry Pi. Signed-off-by: Chris Morgan --- .../media/v4l/subdev-formats.rst | 37 +++++++++++++++++++ 1 file changed, 37 insertions(+) diff --git a/Documentation/userspace-api/media/v4l/subdev-formats.rst b/Documentation/userspace-api/media/v4l/subdev-formats.rst index bd68588b2683..f3dcfa763ebc 100644 --- a/Documentation/userspace-api/media/v4l/subdev-formats.rst +++ b/Documentation/userspace-api/media/v4l/subdev-formats.rst @@ -624,6 +624,43 @@ The following tables list existing packed RGB formats. - b\ :sub:`2` - b\ :sub:`1` - b\ :sub:`0` + * .. _MEDIA_BUS_FMT_RGB565_1X24_CPADHI: + + - MEDIA_BUS_FMT_RGB565_1X24_CPADHI + - 0x101e + - + - + - + - + - + - + - + - + - + - 0 + - 0 + - 0 + - r\ :sub:`4` + - r\ :sub:`3` + - r\ :sub:`2` + - r\ :sub:`1` + - r\ :sub:`0` + - 0 + - 0 + - g\ :sub:`5` + - g\ :sub:`4` + - g\ :sub:`3` + - g\ :sub:`2` + - g\ :sub:`1` + - g\ :sub:`0` + - 0 + - 0 + - 0 + - b\ :sub:`4` + - b\ :sub:`3` + - b\ :sub:`2` + - b\ :sub:`1` + - b\ :sub:`0` * .. _MEDIA-BUS-FMT-BGR565-2X8-BE: - MEDIA_BUS_FMT_BGR565_2X8_BE From patchwork Mon Jan 3 17:41:03 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chris Morgan X-Patchwork-Id: 12702707 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 218C9C433F5 for ; Mon, 3 Jan 2022 17:41:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233393AbiACRlP (ORCPT ); Mon, 3 Jan 2022 12:41:15 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56096 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232029AbiACRlO (ORCPT ); Mon, 3 Jan 2022 12:41:14 -0500 Received: from mail-oi1-x234.google.com (mail-oi1-x234.google.com [IPv6:2607:f8b0:4864:20::234]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6D186C061761; Mon, 3 Jan 2022 09:41:14 -0800 (PST) Received: by mail-oi1-x234.google.com with SMTP id i9so47690053oih.4; Mon, 03 Jan 2022 09:41:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=VZ4pKJgHsszMmcqxTz1e+5J5GZb7zq4y2dI8h4ugrSY=; b=YqgRNy3e/LDUOv8XRjOC5UCx/aMjg8XEFlch8mDRHtVonQ0ZV8/jgNeUhfCGanH6Yo PolYxAhADfVX5zn+L85oXP59jRHEH3OWIw0ra72++3eNKCE5loKqmsGcSJskgE/gEkdB y0xq40RazAiQZkwllA3+Z2UsswfVL7W+LDSVEkuaoPhhBvZM0dVi+3AgZCwQBD9V6Jb8 obDSQuc9G2neTlnpkfLf40Zh0/pg59s5SDjvWMmBA8rlr+bgJvBbX8z/m72Gw91BMxIQ qONRiHNhAEwXx6f1qtoPyRR4/kVh5pohN4of1ICA4zT+wmu75SrDOVSmPB1kG+ANKahv uGpg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=VZ4pKJgHsszMmcqxTz1e+5J5GZb7zq4y2dI8h4ugrSY=; b=a/6k5+SI3mh9hMMVdMm8CP7lfsJySfL2oS3sxusiUbnSqPz0JmaHRnDFwUl/BpwTPV ZEHZWhDlOcivsnJatwq2hNokwZQ21boEp4a68W5IomI6kuiWKncYegy21h0y/DV+gNJG sHX93Lih5XcsaTgzd51z8N++7oXR62wjpRq/nhaLjyO639Yeaj+aiwLSClv5skeBWZcp 6S2rwL3f+dHSTvaW2TYyb8d4vB35ecpCUTat2pxsdRZfW4bDJ5qQdDGZ6vXPGvemmeq8 bJ4iWIj5W5iyf153szrAwhDSck8KEBjHbyCzvN/ukMO3AVyT93f+ksyGvMDnx99JeRlz HRTQ== X-Gm-Message-State: AOAM53232aSfG1C2F0bxERmiWore9jwS1qKlC2WYdRyzb931mRGJMPWw 7YbAJBVuvxU9Ni8ZaYRycGU= X-Google-Smtp-Source: ABdhPJzeYvLlwXl15IEw/VEUtGL2Fa1RxgEybGYDznRop7dqPJrIOeGezTOjoXD8KXTfOj0biVEzOQ== X-Received: by 2002:a54:4710:: with SMTP id k16mr34933036oik.32.1641231673843; Mon, 03 Jan 2022 09:41:13 -0800 (PST) Received: from wintermute.localdomain (cpe-76-183-134-35.tx.res.rr.com. [76.183.134.35]) by smtp.gmail.com with ESMTPSA id s6sm9368864ois.3.2022.01.03.09.41.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 03 Jan 2022 09:41:13 -0800 (PST) From: Chris Morgan To: dri-devel@lists.freedesktop.org Cc: devicetree@vger.kernel.org, thierry.reding@gmail.com, sam@ravnborg.org, airlied@linux.ie, daniel@ffwll.ch, robh+dt@kernel.org, mchehab@kernel.org, emma@anholt.net, mripard@kernel.org, linux-media@vger.kernel.org, Chris Morgan Subject: [PATCH 2/5] media: uapi: add MEDIA_BUS_FMT_RGB565_1X24_CPADHI Date: Mon, 3 Jan 2022 11:41:03 -0600 Message-Id: <20220103174106.907-3-macroalpha82@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220103174106.907-1-macroalpha82@gmail.com> References: <20220103174106.907-1-macroalpha82@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org From: Chris Morgan Add the MEDIA_BUS_FMT_RGB565_1X24_CPADHI format used by the Geekworm MZP280 panel for the Raspberry Pi. Signed-off-by: Chris Morgan --- include/uapi/linux/media-bus-format.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/uapi/linux/media-bus-format.h b/include/uapi/linux/media-bus-format.h index 0dfc11ee243a..a7b7654985ee 100644 --- a/include/uapi/linux/media-bus-format.h +++ b/include/uapi/linux/media-bus-format.h @@ -34,13 +34,14 @@ #define MEDIA_BUS_FMT_FIXED 0x0001 -/* RGB - next is 0x101e */ +/* RGB - next is 0x101f */ #define MEDIA_BUS_FMT_RGB444_1X12 0x1016 #define MEDIA_BUS_FMT_RGB444_2X8_PADHI_BE 0x1001 #define MEDIA_BUS_FMT_RGB444_2X8_PADHI_LE 0x1002 #define MEDIA_BUS_FMT_RGB555_2X8_PADHI_BE 0x1003 #define MEDIA_BUS_FMT_RGB555_2X8_PADHI_LE 0x1004 #define MEDIA_BUS_FMT_RGB565_1X16 0x1017 +#define MEDIA_BUS_FMT_RGB565_1X24_CPADHI 0x101e #define MEDIA_BUS_FMT_BGR565_2X8_BE 0x1005 #define MEDIA_BUS_FMT_BGR565_2X8_LE 0x1006 #define MEDIA_BUS_FMT_RGB565_2X8_BE 0x1007 From patchwork Mon Jan 3 17:41:04 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chris Morgan X-Patchwork-Id: 12702708 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 205BDC43219 for ; Mon, 3 Jan 2022 17:41:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233475AbiACRlQ (ORCPT ); Mon, 3 Jan 2022 12:41:16 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56106 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233427AbiACRlP (ORCPT ); Mon, 3 Jan 2022 12:41:15 -0500 Received: from mail-oo1-xc31.google.com (mail-oo1-xc31.google.com [IPv6:2607:f8b0:4864:20::c31]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 584CBC061761; Mon, 3 Jan 2022 09:41:15 -0800 (PST) Received: by mail-oo1-xc31.google.com with SMTP id n3-20020a4a3443000000b002dad63979b8so9657138oof.4; Mon, 03 Jan 2022 09:41:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=F97Z9MZZpfYYxOf9tOkgxm3NqcNPkDJulog1JYW2wkA=; b=dOtxezKa29TR5UHXkO0ngMZqU94ibNi/K3SMr2BwvdmXMEcuDpozQZ0ff+rGyk8QHf c90HT7xjFDAzAh3bKvKZnZMZ8oN58RRqt5TOUdrsWPz1fIc5dgXRGw4OVCuBBABOIjtp qw6zn4WvaDh6Fd/pS8T9N1WA1IEv7QYVs954yLO7DNFPVClvx/aea97kafU9UpIHD4RA HpugxMhyOKayXf1vlEoHxeFzp8TFzmVKIiMJG0N2yVAfCtOjei+yTXgqksP4AbqDoM87 j1WXrlzE4QbnH2IgdhwM8RRR9r/FeI9+PFTojQZ056Pxz8K0d6Nv/TgdJokiolKS+ZMz wh+A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=F97Z9MZZpfYYxOf9tOkgxm3NqcNPkDJulog1JYW2wkA=; b=kJRIwlMmCpl+LdZ10oLH4M1zxyaf4ti5P6u4PseYdIuBMbFRWf/E3VLLbzar69j7bc kzSJD963wqe/8eTEdepcFY7TrtYwvVZr2C2L90IwoSwCwlstx6O4QvvCKWUOQRDcEWqj PA+7UiPcEXtF7BciXu2PZo4zRf2xVhtC3xPjYIBzKPfcNR0C5eY/331YNFXxk+/XnYbT w0I1KNYd2BygsscBVoFNdD87nS/28wejYIvrTDHT9CFC3XjtnS7gjaw9+SEXS4xTZOPh 7KYRu2bY5nDg6deAoKOZFSNlWtY7P7maghnEuVifAIOCkYdi+5+viK4ryTzEWwf6Y7s+ lydg== X-Gm-Message-State: AOAM530s3xeJR/yK2s4m2ibBOCNSw+atpPjU/GUBCKfDrUgbpLCeS/Zz jjjfKpaNuHjBIeRNGcAZQNY= X-Google-Smtp-Source: ABdhPJwhLZm58BF48DzWth3dk9AzV0nqspsGlOg2xF4GseTe775h725SnrX2OOATigfI2ja3r0QI6A== X-Received: by 2002:a4a:ab05:: with SMTP id i5mr29072440oon.61.1641231674801; Mon, 03 Jan 2022 09:41:14 -0800 (PST) Received: from wintermute.localdomain (cpe-76-183-134-35.tx.res.rr.com. [76.183.134.35]) by smtp.gmail.com with ESMTPSA id s6sm9368864ois.3.2022.01.03.09.41.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 03 Jan 2022 09:41:14 -0800 (PST) From: Chris Morgan To: dri-devel@lists.freedesktop.org Cc: devicetree@vger.kernel.org, thierry.reding@gmail.com, sam@ravnborg.org, airlied@linux.ie, daniel@ffwll.ch, robh+dt@kernel.org, mchehab@kernel.org, emma@anholt.net, mripard@kernel.org, linux-media@vger.kernel.org, Chris Morgan Subject: [PATCH 3/5] dt-bindings: display: simple: add Geekworm MZP280 Panel Date: Mon, 3 Jan 2022 11:41:04 -0600 Message-Id: <20220103174106.907-4-macroalpha82@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220103174106.907-1-macroalpha82@gmail.com> References: <20220103174106.907-1-macroalpha82@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org From: Chris Morgan The Geekworm MZP280 panel is a 480x640 (portrait) panel with a capacitive touch interface and a 40 pin header meant to interface directly with the Raspberry Pi. The screen is 2.8 inches diagonally, and there appear to be at least 4 distinct versions all with the same panel timings. Timings were derived from drivers posted on the github located here: https://github.com/tianyoujian/MZDPI/tree/master/vga Additional details about this panel family can be found here: https://wiki.geekworm.com/2.8_inch_Touch_Screen_for_Pi_zero Signed-off-by: Chris Morgan --- .../devicetree/bindings/display/panel/panel-simple.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/display/panel/panel-simple.yaml b/Documentation/devicetree/bindings/display/panel/panel-simple.yaml index f3c9395d23b6..659db7206c96 100644 --- a/Documentation/devicetree/bindings/display/panel/panel-simple.yaml +++ b/Documentation/devicetree/bindings/display/panel/panel-simple.yaml @@ -148,6 +148,8 @@ properties: - frida,frd350h54004 # FriendlyELEC HD702E 800x1280 LCD panel - friendlyarm,hd702e + # Geekworm MZP280 2.8" 480x640 LCD panel with capacitive touch + - geekworm,mzp280 # GiantPlus GPG48273QS5 4.3" (480x272) WQVGA TFT LCD panel - giantplus,gpg48273qs5 # GiantPlus GPM940B0 3.0" QVGA TFT LCD panel From patchwork Mon Jan 3 17:41:05 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chris Morgan X-Patchwork-Id: 12702709 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 620FEC433EF for ; Mon, 3 Jan 2022 17:41:18 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233479AbiACRlR (ORCPT ); Mon, 3 Jan 2022 12:41:17 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56116 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233427AbiACRlQ (ORCPT ); Mon, 3 Jan 2022 12:41:16 -0500 Received: from mail-oi1-x22d.google.com (mail-oi1-x22d.google.com [IPv6:2607:f8b0:4864:20::22d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B0BD6C061785; Mon, 3 Jan 2022 09:41:16 -0800 (PST) Received: by mail-oi1-x22d.google.com with SMTP id j185so55822107oif.8; Mon, 03 Jan 2022 09:41:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=PdtXppYqsetXpW/uTb4lADvDktzu31SRTwb5UgROFro=; b=HTvd/0eoSMO64/CqOjjXMwPDjVWr7Pvf5LW/l14oLAP8b8DlP5d9hOfHwxP9uCDaVT cFQitwzw+5L/HxCe0FD8sn68DeaRCGmbgHXhVht81Y0+0jsBecg5DYKp6R3TXRkaTFcc b70BzZqYIw7z7sw19Yk56uI3LrJdoRDYKqHy4cOIJLiArV3jaDM+Mk7HtiiXXXOuC4ME Y2H6OOBGfLUwE/UtwwLfB9rLfmP4/ysRSVSOFHsDgrjX6afFd/Zy7CRnR74d7p9pe721 ceb3lcxDDsEDWq/WepVbLjj2MUIpAZ4PH8rP/eZlc76Xgv4NX8nnzEdtvCxr82aDd4Wf 2cbw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=PdtXppYqsetXpW/uTb4lADvDktzu31SRTwb5UgROFro=; b=jsr8lsfx1AnVCGPnDXiFR/3sRdserkvUQ7rvcI5wVAKiaBazsI6X4G/d/uauHq5gkz 4NXB2OUtq7pkNFZqlo0Qs07CYaCeTRaGlLb85OI2zZRc6VmxnQzxJs/ePart++AhwhnJ H0gqHtkcR1KbylO9tg3GN2LKonOG7uY1BV0Qaazwr2NSXpsSIzvvBUx31L18uPAf365C RrSKPfPQAfzpMmDJpL/TPhshS6aaD00Zgg8KhpCsEvYQAusrRzsOD11GPMa8BFiFHCSe /cFPY81uMcNEdQ7dhrQKPMtAIgzIy0Ly+Q7fKH3JqpTH6KYnQ+q9cXuWN6usprkCmLb6 CR3g== X-Gm-Message-State: AOAM5333N2TUMfZbM3ZOkmkFyXJ0c0MAzDa0jYKIOLuz+dhC9QF5pUG2 8z+ehi2RRnzj8IgSZt90e9k= X-Google-Smtp-Source: ABdhPJxv12SBhIQegsP8WBo7Udu7BUNWbG0MjTL0nrGxkn9RYsLEGc8l03LxlMyDJxQzvpOH/Ag5Vw== X-Received: by 2002:a05:6808:1202:: with SMTP id a2mr36469392oil.57.1641231675781; Mon, 03 Jan 2022 09:41:15 -0800 (PST) Received: from wintermute.localdomain (cpe-76-183-134-35.tx.res.rr.com. [76.183.134.35]) by smtp.gmail.com with ESMTPSA id s6sm9368864ois.3.2022.01.03.09.41.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 03 Jan 2022 09:41:15 -0800 (PST) From: Chris Morgan To: dri-devel@lists.freedesktop.org Cc: devicetree@vger.kernel.org, thierry.reding@gmail.com, sam@ravnborg.org, airlied@linux.ie, daniel@ffwll.ch, robh+dt@kernel.org, mchehab@kernel.org, emma@anholt.net, mripard@kernel.org, linux-media@vger.kernel.org, Chris Morgan Subject: [PATCH 4/5] drm/panel: simple: add Geekworm MZP280 Panel Date: Mon, 3 Jan 2022 11:41:05 -0600 Message-Id: <20220103174106.907-5-macroalpha82@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220103174106.907-1-macroalpha82@gmail.com> References: <20220103174106.907-1-macroalpha82@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org From: Chris Morgan Add support for the Geekworm MZP280 Panel Signed-off-by: Chris Morgan Acked-by: Maxime Ripard --- drivers/gpu/drm/panel/panel-simple.c | 29 ++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/drivers/gpu/drm/panel/panel-simple.c b/drivers/gpu/drm/panel/panel-simple.c index eb475a3a774b..f40f4e9a0e08 100644 --- a/drivers/gpu/drm/panel/panel-simple.c +++ b/drivers/gpu/drm/panel/panel-simple.c @@ -1824,6 +1824,32 @@ static const struct panel_desc friendlyarm_hd702e = { }, }; +static const struct drm_display_mode geekworm_mzp280_mode = { + .clock = 32000, + .hdisplay = 480, + .hsync_start = 480 + 41, + .hsync_end = 480 + 41 + 20, + .htotal = 480 + 41 + 20 + 60, + .vdisplay = 640, + .vsync_start = 640 + 5, + .vsync_end = 640 + 5 + 10, + .vtotal = 640 + 5 + 10 + 10, + .flags = DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_NHSYNC, +}; + +static const struct panel_desc geekworm_mzp280 = { + .modes = &geekworm_mzp280_mode, + .num_modes = 1, + .bpc = 6, + .size = { + .width = 47, + .height = 61, + }, + .bus_format = MEDIA_BUS_FMT_RGB565_1X24_CPADHI, + .bus_flags = DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_PIXDATA_DRIVE_NEGEDGE, + .connector_type = DRM_MODE_CONNECTOR_DPI, +}; + static const struct drm_display_mode giantplus_gpg482739qs5_mode = { .clock = 9000, .hdisplay = 480, @@ -3713,6 +3739,9 @@ static const struct of_device_id platform_of_match[] = { }, { .compatible = "friendlyarm,hd702e", .data = &friendlyarm_hd702e, + }, { + .compatible = "geekworm,mzp280", + .data = &geekworm_mzp280, }, { .compatible = "giantplus,gpg482739qs5", .data = &giantplus_gpg482739qs5 From patchwork Mon Jan 3 17:41:06 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chris Morgan X-Patchwork-Id: 12702710 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 C5366C433F5 for ; Mon, 3 Jan 2022 17:41:19 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233537AbiACRlT (ORCPT ); Mon, 3 Jan 2022 12:41:19 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56126 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233427AbiACRlS (ORCPT ); Mon, 3 Jan 2022 12:41:18 -0500 Received: from mail-oi1-x22f.google.com (mail-oi1-x22f.google.com [IPv6:2607:f8b0:4864:20::22f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CB414C061761; Mon, 3 Jan 2022 09:41:17 -0800 (PST) Received: by mail-oi1-x22f.google.com with SMTP id s73so55960135oie.5; Mon, 03 Jan 2022 09:41:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=PX+r/4GPJoULnjzCN3QguRNvA76vq0GHYjHcEMnDNHk=; b=QBo8FGPIErTnDaPOUO+V1UZUpJmBN53itHS+ssQgzOvdbuVVhdiyFARdcyeXo/lNXk FsBuO7Xa5qG1lzoeu6E6NSsGrc0GKKLyVN3BUAw6Fx1todd+8EEcXH9ZCxOc5F63c9KU GNGb6SgzpoUivRh3RuufBcjEI17yqA7sLo5x8fDmpzma1isfHjID4qbqZOaO+2x6Ddl2 rSLjF1m4/LfZ/OJsXQCd7SHO2klLD4MGu16fA/EoHCfijEpSoDbR9nGFGZR1Qd3ywzU1 /cBbukM6edQ4rFOSXyoYrSD8/DV8q80HTQhV6phUTZzMfMKMaHr7UD8uLQ4WkoW+bBYC 0iOg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=PX+r/4GPJoULnjzCN3QguRNvA76vq0GHYjHcEMnDNHk=; b=3hc2Lvdr7IzEN6JUnp18ZR/7UUZOVdmAQ0HQsRFH8suO0dCfpCUKDkSp1T/a6/Nj99 VERPsGMi5wZ1ZijDsllsADBuwPeFwoIxRH2BDWVt4RHVR0UJbJAQMi1ufvVscgRSt/kT B8f7HjQ+KnIJp+JlGU0y8HCiDK3gaVjrIpFbRf3Fzc/TokJepkK35zpQ1JzZGV8bWdbP MwJuvoJQz/DXiiRt0jYbdmqcRIEACgBI3D/a8CAGUQXCmgL1VrhvNVxuNHmcwwshR//G wz69zWmVdekTtgxXe5UqhMQNPrJhw/PkM3Ctdm5vYuqOsXpzpxdBD8FS94YNMZpEetiJ xP7Q== X-Gm-Message-State: AOAM533F0AfXUVrta740ECPwY868MLG4V5PHbJF5+vUYh7eNuB3zq7I7 K5Q7u3ve6REcv9ornBzzVFfgV5IURTk= X-Google-Smtp-Source: ABdhPJwvw6H+cCKImuwiy6SfQz3ArlRSXHygzeGhqXXrh+/vi/d0nJ/jRgUGZ2x8fh5iIJfMbwmkAQ== X-Received: by 2002:aca:44c5:: with SMTP id r188mr38082488oia.177.1641231676809; Mon, 03 Jan 2022 09:41:16 -0800 (PST) Received: from wintermute.localdomain (cpe-76-183-134-35.tx.res.rr.com. [76.183.134.35]) by smtp.gmail.com with ESMTPSA id s6sm9368864ois.3.2022.01.03.09.41.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 03 Jan 2022 09:41:16 -0800 (PST) From: Chris Morgan To: dri-devel@lists.freedesktop.org Cc: devicetree@vger.kernel.org, thierry.reding@gmail.com, sam@ravnborg.org, airlied@linux.ie, daniel@ffwll.ch, robh+dt@kernel.org, mchehab@kernel.org, emma@anholt.net, mripard@kernel.org, linux-media@vger.kernel.org, Chris Morgan Subject: [PATCH 5/5] drm/vc4: dpi: Support DPI interface in mode3 for RGB565 Date: Mon, 3 Jan 2022 11:41:06 -0600 Message-Id: <20220103174106.907-6-macroalpha82@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220103174106.907-1-macroalpha82@gmail.com> References: <20220103174106.907-1-macroalpha82@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org From: Chris Morgan Add support for the VC4 DPI driver to utilize DPI mode 3. This is defined here as xxxRRRRRxxGGGGGGxxxBBBBB: https://www.raspberrypi.com/documentation/computers/raspberry-pi.html#parallel-display-interface-dpi This mode is required to use the Geekworm MZP280 DPI display. Signed-off-by: Chris Morgan Reviewed-by: Dave Stevenson --- drivers/gpu/drm/vc4/vc4_dpi.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/gpu/drm/vc4/vc4_dpi.c b/drivers/gpu/drm/vc4/vc4_dpi.c index c180eb60bee8..3c58ade2549e 100644 --- a/drivers/gpu/drm/vc4/vc4_dpi.c +++ b/drivers/gpu/drm/vc4/vc4_dpi.c @@ -173,6 +173,10 @@ static void vc4_dpi_encoder_enable(struct drm_encoder *encoder) dpi_c |= VC4_SET_FIELD(DPI_FORMAT_16BIT_565_RGB_3, DPI_FORMAT); break; + case MEDIA_BUS_FMT_RGB565_1X24_CPADHI: + dpi_c |= VC4_SET_FIELD(DPI_FORMAT_16BIT_565_RGB_2, + DPI_FORMAT); + break; default: DRM_ERROR("Unknown media bus format %d\n", bus_format); break;