From patchwork Mon Jan 24 16:55:22 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chris Morgan X-Patchwork-Id: 534640 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 5B7F1C43217 for ; Mon, 24 Jan 2022 16:55:37 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243946AbiAXQzg (ORCPT ); Mon, 24 Jan 2022 11:55:36 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43230 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243945AbiAXQzf (ORCPT ); Mon, 24 Jan 2022 11:55:35 -0500 Received: from mail-oi1-x230.google.com (mail-oi1-x230.google.com [IPv6:2607:f8b0:4864:20::230]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5CEA8C06173B; Mon, 24 Jan 2022 08:55:35 -0800 (PST) Received: by mail-oi1-x230.google.com with SMTP id q186so26410235oih.8; Mon, 24 Jan 2022 08:55:35 -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=nWielQwKUjaGCDPYpC0qlz0e3JwhdCLUGqShkGf0aHY=; b=h+hswY34tTiBQRdRfR4z/MnDvgEdaNnaMK4+vS0/lTHghIOINgj6mwrPYUtBp0cOI+ 0ho/H+IesDBp9kv+M26m0nCRdKEPaoKURBadjIKegIKIK2R/yzZzpWS2WUVs4AM6QW3j hHvBzA8qke8fqodEShvMa5G8yv0IUNCeMrC3Wf2QFJ5qQPfwmGbeM5lKfddAyHttU2nm X5OoQ2ry826EZNCMPH103uZ0vJ3K2T3JM+d/e/DQw2heKA1IbbEygmtyIGtvbJKgZx57 OcMHm7q1wmn3516nKDRoWUDiKUbJrVT3CGakvbcBt1ng2UvXdH4ZOmOEif9qzfaBC4nR O1rw== 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=nWielQwKUjaGCDPYpC0qlz0e3JwhdCLUGqShkGf0aHY=; b=iQlpRdqcODuY0M7OtUokIBzX6HP0QZDc6kLU1EMB94kEGoAQ/YXwP7M16w4/8dMJMk 3j3tRMAqcCWjVPr5ozsWZ4zo1Djb+JQbCIumB1ewgsmAujQHmDFgQaRofAWWW55BlTxP 2KdP+Yu2omss8Jk54W31UHUaVjMMI3gJZX5PEW+jzxjc6BtY8P8ovTBg9pjOnYqj3PfE cCOj0Hn+v52MosRSTuLvNlYNlDxq0d7pRxdQcS5PDHsa7HEbfpqEpRzsP7ebfUswpymi EIIU+jaZPoFMaUbQ2TBKHL/YVqicyj8v9Dvj33k44CILRl+wlaA51zK5ZvcNZulpWy5k iqfw== X-Gm-Message-State: AOAM530ZkjCVTtjCWqbn00K7wyOEu5N3dQAgCT3q3Hv9Zf4mTA4vJruo p++6s6emNTrGEVz4xDH3slM= X-Google-Smtp-Source: ABdhPJy/1yAGdMKJKSdjdUxUW9xJlLSFlDoY1QhGMleFmeJlbWzWMbDHIQsTsKlDKhJGW/gI2WqcvA== X-Received: by 2002:a05:6808:1a19:: with SMTP id bk25mr2154728oib.26.1643043334776; Mon, 24 Jan 2022 08:55:34 -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 v22sm4418370oot.10.2022.01.24.08.55.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 24 Jan 2022 08:55:34 -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/6 v2] media: uapi: Document format MEDIA_BUS_FMT_RGB565_1X24_CPADHI Date: Mon, 24 Jan 2022 10:55:22 -0600 Message-Id: <20220124165526.1104-3-macroalpha82@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220124165526.1104-1-macroalpha82@gmail.com> References: <20220124165526.1104-1-macroalpha82@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@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 0cbc045d5..e43e07634 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 24 16:55:24 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chris Morgan X-Patchwork-Id: 534639 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 AD053C4332F for ; Mon, 24 Jan 2022 16:55:39 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243973AbiAXQzi (ORCPT ); Mon, 24 Jan 2022 11:55:38 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43246 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243965AbiAXQzi (ORCPT ); Mon, 24 Jan 2022 11:55:38 -0500 Received: from mail-ot1-x32c.google.com (mail-ot1-x32c.google.com [IPv6:2607:f8b0:4864:20::32c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CD91AC06173B; Mon, 24 Jan 2022 08:55:37 -0800 (PST) Received: by mail-ot1-x32c.google.com with SMTP id o9-20020a9d7189000000b0059ee49b4f0fso5946082otj.2; Mon, 24 Jan 2022 08:55:37 -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=AX9/X1WhGwP2sW6zC/gqprghPkVPPG9iN/vljmKSmiY=; b=FgzaUXmypV3YeAIfgGVpijUhyc60TGq2ToNV/Neau6pnsdwqhRAz90rLlT6+4KHKhs +xK+TIrXHlVQZOF/MQ5p0d7T1fbPqw8woSNqTG/zbW6avLTkS/4fe0SM8ciQThSlFKoH wdU2F+KMcYHa1WRUpkeCVpAgyAyyVBO60vFL9V5ogbI02LAI5zVTsU/FNGCdHNMeW+mk kU+eRwL6afo5WPXTpmfy3RL5fE9VACLPVgJGCPi01bgDeQHyxghTCnP5v8+h2ec87HGF 73dcVb0Uoaztz/g3K2q7Pq0LWEpjN3F8PHgeK7MD2UJnwq6MRTm5HvEfOSHCQntMJJ8I zSNw== 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=AX9/X1WhGwP2sW6zC/gqprghPkVPPG9iN/vljmKSmiY=; b=C7xWk1z1aNZf+b6LXN8UP5byOreatJio1+rCpS9TxmHPPRrVNwnEpMawVQLdaIk/lu 4MvRsdJbVABP/XeGDKhOZalmc+tEeq8rOZQQtLwpyzidKt5BNDL/1/wC9RV9TiHCEsGP xAA4w9XwxDkTvoNnmbe13Ne6VsHmeXDrO1BbtEBNbezh5dbHr3hANi4T+dbuM0XtIkVB 7dWalmXjRWz2TuPMTsICXI5l1q2XGV562zz5Fzx8hdsnS5532jstvEUXIHJ3l7ZYbHvY 1Gwe49pzpdXPUs1wJsJYyBLoueF7b4i6NPAu9tQ5FCOYmMjVu9tGzHiKE/w3qfnG8Ra9 gBwQ== X-Gm-Message-State: AOAM5329nQouNkHHpKGMhgZIDUpRFffwQiYq3QIItbAYBW3awiPsUW4/ Sfq9ckMT/VhqCUcEJses0Es= X-Google-Smtp-Source: ABdhPJzTycVD+fT17ONLf05HsIjgUbYM0QDZTOZuMTDXij/vPYP0gqVUGR0KxqWR9rpe33WLQmcR5w== X-Received: by 2002:a9d:f24:: with SMTP id 33mr12204646ott.282.1643043337224; Mon, 24 Jan 2022 08:55:37 -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 v22sm4418370oot.10.2022.01.24.08.55.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 24 Jan 2022 08:55:36 -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/6 v2] dt-bindings: display: simple: add Geekworm MZP280 Panel Date: Mon, 24 Jan 2022 10:55:24 -0600 Message-Id: <20220124165526.1104-5-macroalpha82@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220124165526.1104-1-macroalpha82@gmail.com> References: <20220124165526.1104-1-macroalpha82@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@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 62f5f050c..3d03d8276 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 24 16:55:26 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chris Morgan X-Patchwork-Id: 534638 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 EB214C4321E for ; Mon, 24 Jan 2022 16:55:41 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243978AbiAXQzl (ORCPT ); Mon, 24 Jan 2022 11:55:41 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43270 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241260AbiAXQzk (ORCPT ); Mon, 24 Jan 2022 11:55:40 -0500 Received: from mail-ot1-x330.google.com (mail-ot1-x330.google.com [IPv6:2607:f8b0:4864:20::330]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5C31BC06173B; Mon, 24 Jan 2022 08:55:40 -0800 (PST) Received: by mail-ot1-x330.google.com with SMTP id z25-20020a0568301db900b005946f536d85so23039068oti.9; Mon, 24 Jan 2022 08:55:40 -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=eDj9YtrL+ME/X2nogJu52e1JjwHXOpFB8AWWGPpN1JI=; b=mFvJkRflVMDxfhilop3n9rxvfDmP9BLPXOUunIlHCZ0Xb9y9Ct8IxqFF8rwK469lCm KNd50fy+6iX6SJc4AnCBNCrWinPWrZllHsjTCq/S2JBPLb1Fh0Xi6tATKKE7erd/KEop Q895XDQnVqwakbu7dAG+gaEyBVuv5/uHjtGQquhJ0ZAuMd8FGRlNp3JsZ+WddCEvdc2o SA4cUOrs3H6g5jKBY4lJc0Byhcri9T6H5g0YhQIrR/7VCnw3atyr03X9NzMu8tURvqBm KgSjAKpZXzdR18JFpsLFpX2/2YiqEPZAATvRYBEx3OhedscwGW4cfcSYTbOEvCE2AhDD D3VQ== 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=eDj9YtrL+ME/X2nogJu52e1JjwHXOpFB8AWWGPpN1JI=; b=IV1mKm2BcHE/LJs/RA0nn9YWaQ8NqTWGPx+9Q8nfx62gaVP5MzZwUJCft7i0VzvFbE WZgM4Pw3GWq9kXrllCkUDoXSJTSnt0iYkG4NGBBu6U18QhKTWvoPAdpQQf7btv4oDE9g TeCyZN7BnZ13J8zhz5viA66PKWIbwzNViQ5gjBsKUpSZW2NIRBfgTTjOQdhgiCeTSKmB 1IJ18koBdcxzlCduLx6wmwhVEDsQUX0vCmUrQvgz7qD6atKas5dQ2S13jr5bUQwbHKBr mJdcZ/1dpIOOr5Jt9vfNn+5p3aHUl1W5e6Ath13opcXJy0tywISf0wmlmGrHqm2BDdW4 5zhg== X-Gm-Message-State: AOAM533sW4sdDBclaU9u+uwvVMJeQzxTUKDaB0mIm2+tnUghzsfZzqd8 /4LrAnLbGao8XH3RTwvDCh0= X-Google-Smtp-Source: ABdhPJxc+R5TUybGMgkLTdOCbd88m7UuIygCYWDxjJSp/RRfiTE1CbDPHurAbusUCHTR37gsZpmKdw== X-Received: by 2002:a05:6830:2461:: with SMTP id x33mr2805442otr.368.1643043339780; Mon, 24 Jan 2022 08:55:39 -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 v22sm4418370oot.10.2022.01.24.08.55.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 24 Jan 2022 08:55:39 -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 , Dave Stevenson Subject: [PATCH 6/6 v2] drm/vc4: dpi: Support DPI interface in mode3 for RGB565 Date: Mon, 24 Jan 2022 10:55:26 -0600 Message-Id: <20220124165526.1104-7-macroalpha82@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220124165526.1104-1-macroalpha82@gmail.com> References: <20220124165526.1104-1-macroalpha82@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@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 c180eb60b..3c58ade25 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;