From patchwork Thu May 19 16:29:30 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chris Morgan X-Patchwork-Id: 12855778 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 gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id CB8E8C4332F for ; Thu, 19 May 2022 16:30:00 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 97BD210F1ED; Thu, 19 May 2022 16:29:59 +0000 (UTC) Received: from mail-oi1-x22a.google.com (mail-oi1-x22a.google.com [IPv6:2607:f8b0:4864:20::22a]) by gabe.freedesktop.org (Postfix) with ESMTPS id 52D6D10F1ED for ; Thu, 19 May 2022 16:29:53 +0000 (UTC) Received: by mail-oi1-x22a.google.com with SMTP id y66so1036170oia.1 for ; Thu, 19 May 2022 09:29:53 -0700 (PDT) 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=rU7StC0vWHC6lDgyRB9OrYSRZCxJxqMjaJg6rAe9Yu8=; b=I6imaRrfGnZliOI69/LwjY0OorZ3F7ezKE/07z/jV5EhH/5ay2ypwNz8GeRjsqTc3C Qcp0Xv7cf1asBOHcy/1xF1bpujjPBb/e2jYz62I0AI2fArRfY5tNPBb7KHdibOpEOFiA vQd0jpq5B1tMNAk/IqR3ux5jRwvl4Ze6dzqixMXZWY8qcMqwKYQEwlUru9458f91HrJQ qVB4U8555+SZ9kPU50Krq1hzllXHxHY0uBgm04cfUsQnhvQdwcBD4HUcOJLYI0D1l9iz 4jl8ttgynxGv44A5BRgNgDfANXr2h0QI9GQd8WjCQo3Qo/cfZmQtaVxTTrwi3Sz2OWl5 EF3A== 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=rU7StC0vWHC6lDgyRB9OrYSRZCxJxqMjaJg6rAe9Yu8=; b=BfjFN/urY4YYCgISh4wsQ/OjTNJKDnMP+NyuIPDfXzMonR6RqSaRub9Y6tQ8eSI3xD My6CbHt1UbRVdhb3PULezUwUFXJQsE2P8ov8Lp6Abp/h4ZWqhSD6OSBVuhE2V27wr5VG mnHosP/ziaffaNDJe/Vyr+eb4i4IkB7+H+De7ccc2dI9JRNhRELC0kPgyxJ0uhwLRHAK u4vrLil85k3aeu2ybeUloVbqLp6L6XkbKcY8jd40K5GiFLRazoVhui7U6ya43YtpPgjl xPNVyNeTmVTr92DeQzmu2owBiYMtqbYffNQnvzmBE/cVQk4KB8zbRiNNg4T7ysSlXDJb y/UA== X-Gm-Message-State: AOAM5316KMjw+Mu2+FdFhQs2xbPQiVnBb5Co7CyouWm8NKO1r9rT/QQ1 cT3fGx6pOYoZT5ExakKjQCzoULfCBZOo8Q== X-Google-Smtp-Source: ABdhPJxvaEapVVMCSpa9P/lKDR01HM552ZAL24tsPY0z1yBhN8SghENEDuiSNbss5XiE7D5Mc1gRRQ== X-Received: by 2002:a05:6808:1813:b0:326:a3fe:2259 with SMTP id bh19-20020a056808181300b00326a3fe2259mr3104120oib.292.1652977790795; Thu, 19 May 2022 09:29:50 -0700 (PDT) Received: from wintermute.localdomain (cpe-76-183-134-35.tx.res.rr.com. [76.183.134.35]) by smtp.gmail.com with ESMTPSA id n4-20020a056870844400b000e92295f8acsm36562oak.2.2022.05.19.09.29.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 19 May 2022 09:29:50 -0700 (PDT) From: Chris Morgan To: dri-devel@lists.freedesktop.org Subject: [RESEND 1/6 v2] dt-bindings: vendor-prefixes: Add Geekworm Date: Thu, 19 May 2022 11:29:30 -0500 Message-Id: <20220519162935.1585-2-macroalpha82@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220519162935.1585-1-macroalpha82@gmail.com> References: <20220519162935.1585-1-macroalpha82@gmail.com> MIME-Version: 1.0 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, krzysztof.kozlowski+dt@linaro.org, emma@anholt.net, airlied@linux.ie, Chris Morgan , robh+dt@kernel.org, thierry.reding@gmail.com, mchehab@kernel.org, sam@ravnborg.org, linux-media@vger.kernel.org Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" From: Chris Morgan Add vendor prefix for Geekworm (https://geekworm.com). Signed-off-by: Chris Morgan 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/Documentation/devicetree/bindings/vendor-prefixes.yaml index 294093d45..c0c7627c6 100644 --- a/Documentation/devicetree/bindings/vendor-prefixes.yaml +++ b/Documentation/devicetree/bindings/vendor-prefixes.yaml @@ -455,6 +455,8 @@ patternProperties: description: General Electric Company "^geekbuying,.*": description: GeekBuying + "^geekworm,.*": + description: Geekworm "^gef,.*": description: GE Fanuc Intelligent Platforms Embedded Systems, Inc. "^GEFanuc,.*": From patchwork Thu May 19 16:29:31 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chris Morgan X-Patchwork-Id: 12855777 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 gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id AE22AC433FE for ; Thu, 19 May 2022 16:29:56 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 0B37B10EB5A; Thu, 19 May 2022 16:29:56 +0000 (UTC) Received: from mail-oi1-x235.google.com (mail-oi1-x235.google.com [IPv6:2607:f8b0:4864:20::235]) by gabe.freedesktop.org (Postfix) with ESMTPS id 878B910EB5A for ; Thu, 19 May 2022 16:29:54 +0000 (UTC) Received: by mail-oi1-x235.google.com with SMTP id e189so7075245oia.8 for ; Thu, 19 May 2022 09:29:54 -0700 (PDT) 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=fKpqUT7H7BdkIbUfBb4GLkjD1bN9SIqIy7m9m5WOhDZHoiHnMmWZsaSheN572PWzqF kp8DP8En68d5EPuf0GiF6YBioPYQ2aNoqcNsx5x7QhpIwtmqIf2i0ygaU79bBCNX1awA /WYZTg7jisNrmr8Mr33FBWjoXTJZuzwbvPEmYGbPUQuCneGLqDdDR7DnjjL14yOvS4+F kalzy1U002ceRd6QSBU/2FcW7eVnl/BZkktShPBGxJEy0EUhVzVY7SzveusSAkNgXwUy vd4GDZx3qR2yb47RBDNbiqAqI2m/Ik9WL5oc4KiGasqoKjzMmGl0QwUrRVZ/hh+QDouS 55IQ== 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=iiJ4O2RyYLmALEMVRO3xoPPjHN3If9H6h6pujcnL7SDePKUhKzmCSdKRJuP4zXIYdq 76FjxkwLrD2bXcljCBHFzjx99dmQ6hIPePRH9xSipGzDjApYUPfXkZ+saQCA5zfJbcRh ZIWzvoVeQwvshCnZY3F8Hkp5pf+QW1IQQzQO/QZB8FUrxZoLFFjp+78OP9FxT7wOS0x6 nApcXO/FTY4kpu07mmx1MXqRJWpaVjPNa0SSqEKbheMAeOcZzrbM9wJOmQXPFwj+Jint j3MPXtiYcUF0/FTCEHda3qPdm5rVUfil5CXCqQY2lst6xMhXveS8fhLdiSqR6+DliVZt 0lXg== X-Gm-Message-State: AOAM531RQaKoJ/PCQFC2AHzrk508w9il/l8qwVnffQTrmb41oAaOZ5Nx uLyxM9Nd1PiK9zknT9opLxOqOavOqoZ8oQ== X-Google-Smtp-Source: ABdhPJwyUBkfMLQeVNxghJT+ulgz5YHDxLS03g5x9fK3VD+DVNDzCSSRXmI3ieSkGIl1/RUzeFwJbg== X-Received: by 2002:aca:c1c2:0:b0:328:e69b:d725 with SMTP id r185-20020acac1c2000000b00328e69bd725mr2990064oif.266.1652977792109; Thu, 19 May 2022 09:29:52 -0700 (PDT) Received: from wintermute.localdomain (cpe-76-183-134-35.tx.res.rr.com. [76.183.134.35]) by smtp.gmail.com with ESMTPSA id n4-20020a056870844400b000e92295f8acsm36562oak.2.2022.05.19.09.29.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 19 May 2022 09:29:51 -0700 (PDT) From: Chris Morgan To: dri-devel@lists.freedesktop.org Subject: [RESEND 2/6 v2] media: uapi: Document format MEDIA_BUS_FMT_RGB565_1X24_CPADHI Date: Thu, 19 May 2022 11:29:31 -0500 Message-Id: <20220519162935.1585-3-macroalpha82@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220519162935.1585-1-macroalpha82@gmail.com> References: <20220519162935.1585-1-macroalpha82@gmail.com> MIME-Version: 1.0 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, krzysztof.kozlowski+dt@linaro.org, emma@anholt.net, airlied@linux.ie, Chris Morgan , robh+dt@kernel.org, thierry.reding@gmail.com, mchehab@kernel.org, sam@ravnborg.org, linux-media@vger.kernel.org Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" 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 Acked-by: Hans Verkuil --- .../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 Thu May 19 16:29:32 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chris Morgan X-Patchwork-Id: 12855782 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 gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id DD5A7C433EF for ; Thu, 19 May 2022 16:30:10 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 6C5DF10F1CF; Thu, 19 May 2022 16:30:08 +0000 (UTC) Received: from mail-oi1-x235.google.com (mail-oi1-x235.google.com [IPv6:2607:f8b0:4864:20::235]) by gabe.freedesktop.org (Postfix) with ESMTPS id 97E6F10EB5A for ; Thu, 19 May 2022 16:29:55 +0000 (UTC) Received: by mail-oi1-x235.google.com with SMTP id q8so7037016oif.13 for ; Thu, 19 May 2022 09:29:55 -0700 (PDT) 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=BWDg9SYEC+Mkg9KQnlntZ124XiWBKPicMuFquWJ2wyc=; b=TnW9KOItijvRkPW8zIQNgsLbUoppuc5z0udA2UQl1e4Of5rBSUBLWK9r8if4LgCM/G uH1mfldzCezGhWfjyZxiyJxOo2/t8hL5RwJfkZTJ+EsspUYhPa/WmcbALC7x32D1VEsY zEUXvvbBE9DGgBTCsifdHCY4ZSFSVLZbVrb7zy/MABAaD53d9eoWzws21MvKmYD7BAs/ NV/VLEduZuP7yL6Q/cBYquie1/iDy3NoqDnBs3NiFx51qjYwasz2Rk5rp3FeX7bk3bt4 RKuT7+iIIeoLKhZrWI9xHbDnmXTy2VKOV0HRYrKmKlBTygcDTYqBz1lUcosY9VF63Syh kqkQ== 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=BWDg9SYEC+Mkg9KQnlntZ124XiWBKPicMuFquWJ2wyc=; b=E0zgvsAEEtD3nWFmffXvUOHPKKS4/53nGe0fkBDclpTwGDR0ladinVh7+r2SVr2rlO 7/j3uH24eGzBQiBQNiwWY/t3K09qRWfS1Ecw8HJPfeCSzzboKPAHELNi3T7EHMPkWNSp f2+72zwIYHCiH61ZdzRQZNxNcu7wwlFXgwQffjds8+9gt1dsjaKpXK/YoDfNSjgMKL3w 4joBImE+PUYG2sPuLQFjlKO8zKuY8UNB5n+0rNeQb/XvHwPVC9HLWAFf7fypw0218K/x Ys5yske+z+/nlrc6lJzflRNfoJgm4AGICUT26VIRsuvKl/+A8ZlyaNkGi8LtUga1DPSh ryoQ== X-Gm-Message-State: AOAM531yKhNXh0oFXECQseMi4xyG0S7cVCr7BUydfmU7FLnsb2VIZdct 0yag31clCsWaqUyVIy5c8tmZMObyJ0l/tw== X-Google-Smtp-Source: ABdhPJyGJUhU0e2OH+bkv9xAh0j0WZ/OUKDCSttYlF+cQ98VH3au6L7Ttsra47TeN1Zq/IJqqyLwag== X-Received: by 2002:a05:6808:e89:b0:2f7:34db:6915 with SMTP id k9-20020a0568080e8900b002f734db6915mr3052967oil.284.1652977793212; Thu, 19 May 2022 09:29:53 -0700 (PDT) Received: from wintermute.localdomain (cpe-76-183-134-35.tx.res.rr.com. [76.183.134.35]) by smtp.gmail.com with ESMTPSA id n4-20020a056870844400b000e92295f8acsm36562oak.2.2022.05.19.09.29.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 19 May 2022 09:29:52 -0700 (PDT) From: Chris Morgan To: dri-devel@lists.freedesktop.org Subject: [RESEND 3/6 v2] media: uapi: add MEDIA_BUS_FMT_RGB565_1X24_CPADHI Date: Thu, 19 May 2022 11:29:32 -0500 Message-Id: <20220519162935.1585-4-macroalpha82@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220519162935.1585-1-macroalpha82@gmail.com> References: <20220519162935.1585-1-macroalpha82@gmail.com> MIME-Version: 1.0 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, krzysztof.kozlowski+dt@linaro.org, emma@anholt.net, airlied@linux.ie, Chris Morgan , robh+dt@kernel.org, thierry.reding@gmail.com, mchehab@kernel.org, sam@ravnborg.org, linux-media@vger.kernel.org Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" 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 Acked-by: Hans Verkuil --- 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 0dfc11ee2..a7b765498 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 Thu May 19 16:29:33 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chris Morgan X-Patchwork-Id: 12855780 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 gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 9B45FC433EF for ; Thu, 19 May 2022 16:30:04 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id C01AA10F1F7; Thu, 19 May 2022 16:29:59 +0000 (UTC) Received: from mail-oi1-x236.google.com (mail-oi1-x236.google.com [IPv6:2607:f8b0:4864:20::236]) by gabe.freedesktop.org (Postfix) with ESMTPS id 77BF710F1F7 for ; Thu, 19 May 2022 16:29:56 +0000 (UTC) Received: by mail-oi1-x236.google.com with SMTP id n24so7038961oie.12 for ; Thu, 19 May 2022 09:29:56 -0700 (PDT) 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=nLnb8w0IzSBYnMFzS1IhicdSlHzUYxbCMFGJqvuo3m0qXA3QcbrkQSeM7hM/8rK4jx mOx0UMUO9KnSM6hNGlqxJASOqn1tgaXLJ7vbQK8PwHUEUZLZmkjoaCM0UFTwjf78AcEf kfyiz35sSW2yKYyJSx++g+0D/1OZ2DuGobKmGDEx/tMPpqwO89kffjyvEcMxC1jc46ME T4qySg2xC1Y6M7+0dvElqsgGg9ZAJoJbG3Sbcinz0FaBx36RjsfPrPJN3aWjyFzJ0bJc cIOYzng97MKpxDSJAKHga30m357aP2nrP/NuGO6V0nNFVI+4WpT7OGJmBzAyXn/cWUfq 3uGA== 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=bxXOWPZ/o0k1mHPoObOnFmPakWSkOc7MbzIrxIQJAaWhVcsT7mdgousiae/1ncHjj+ HLaxW3TLmphByomK4/VcgunUYi2G4nmMsY451eQickYyK/FAOHoK+vVQOVRhJJKnEIQ5 /b65TABzOSIcndPvX09DjJTlkTVmN/GG3yzuK9a+uFQxhX/XzN6k063i5fM+d5CsTF+V bTSYgCPvzYWQYZBNU62ScnWgwv/hXgJjmppoTKmZPtvH2lJ3y5C+XuGvArJeN8Tc+QtO y4VqOCGjMo2AdGf0LkcXxxpkGkau5ysAqZ/lCH77l3eEF6VLJyoZy0nAba780jj8F+Sp hbEQ== X-Gm-Message-State: AOAM530sGLDNTJRrLjtsxWjNQdh+E+5kC1aXFPUyilwBaCKirzgLuLzL //gWEBCfKUDa+6IIAsBfXtuoup0Pjrr9mg== X-Google-Smtp-Source: ABdhPJwc6e4QT4kM6B3yl+F2WyUKXDcuVoQUxVTEAxOVOcdgzYKTKKLYDQK8HOqGTWd10+5x83QWrg== X-Received: by 2002:a05:6808:bcf:b0:329:867:a994 with SMTP id o15-20020a0568080bcf00b003290867a994mr2791869oik.249.1652977794485; Thu, 19 May 2022 09:29:54 -0700 (PDT) Received: from wintermute.localdomain (cpe-76-183-134-35.tx.res.rr.com. [76.183.134.35]) by smtp.gmail.com with ESMTPSA id n4-20020a056870844400b000e92295f8acsm36562oak.2.2022.05.19.09.29.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 19 May 2022 09:29:54 -0700 (PDT) From: Chris Morgan To: dri-devel@lists.freedesktop.org Subject: [RESEND 4/6 v2] dt-bindings: display: simple: add Geekworm MZP280 Panel Date: Thu, 19 May 2022 11:29:33 -0500 Message-Id: <20220519162935.1585-5-macroalpha82@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220519162935.1585-1-macroalpha82@gmail.com> References: <20220519162935.1585-1-macroalpha82@gmail.com> MIME-Version: 1.0 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, krzysztof.kozlowski+dt@linaro.org, emma@anholt.net, airlied@linux.ie, Chris Morgan , robh+dt@kernel.org, thierry.reding@gmail.com, mchehab@kernel.org, sam@ravnborg.org, linux-media@vger.kernel.org Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" 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 Acked-by: Krzysztof Kozlowski --- .../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 Thu May 19 16:29:34 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chris Morgan X-Patchwork-Id: 12855779 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 gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 38E58C4321E for ; Thu, 19 May 2022 16:30:02 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id E8ACD10F213; Thu, 19 May 2022 16:29:59 +0000 (UTC) Received: from mail-oo1-xc32.google.com (mail-oo1-xc32.google.com [IPv6:2607:f8b0:4864:20::c32]) by gabe.freedesktop.org (Postfix) with ESMTPS id 8D4F610F213 for ; Thu, 19 May 2022 16:29:56 +0000 (UTC) Received: by mail-oo1-xc32.google.com with SMTP id s11-20020a4ab54b000000b0035f0178dfcfso1082697ooo.7 for ; Thu, 19 May 2022 09:29:56 -0700 (PDT) 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=sJZWCWBHIS8OyZEeA82nz/0fHFZSXZpGhVz4hbd1tCU=; b=Zy0e0jaIz3/kOZQl0yiKnsVUnNJLmZJUA3DOmJAwVwoOE/iDucxc244U+6MTtP/H1i sBlI1raTgMuODdiJZql81w//3SZl8N960K24YeJjjDhxcfd0O/DNiKwNPE6B6F1v1x3x UZG9rONkgr7M9hCuxVWUGeEpI3D9cYZI5GvWGPIxpVDkzvTwKQJRAi+M0fSCH2JiM49d w/7ykfu4HGBOQay4LbAkmgDsA2UNwCN5G3W7PN4hQr3SLiRDLjwXSmhqiBK7gRxeD4pC kKdzSSC4EsPRLdZzPuOqbItD+q2EI1ZkjDUmo1aIUJGPb7DVekKWaPSO2RA3esfpxZz0 58bQ== 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=sJZWCWBHIS8OyZEeA82nz/0fHFZSXZpGhVz4hbd1tCU=; b=tV286tX7rxt8tHdZEvomoP+r3+iRzoLf5pDkQ8fNWl/Aw6b/Yb9ZklMtX+Io21Pt0V HQCwygOX7Ky89PSzq00Ax0WsJPThd5glGh/fVJ8CNGNPnHTjJF4dL1AMpCok5hb0mR++ 7j9pTCDiC0crjm4X3f6FIm8jZREV//D5Id32waEOd9k9LKN3s79DJ7sBdjp7tNVZD9+1 2V917sgMEJWfahTOIpxs+9wKxT/jcJYEPc7DUNB5zgZLfzj7BKX7uPlCn/RfzgOmbBzP j4xiNcV01h/CIBFczwRVc5S0S7PqCBv9S0O5ZQHOF1JQLRpmdMOF91ARsiIZB1HdcWwT qOxA== X-Gm-Message-State: AOAM530jSgkfIi+GZAAdbEaAJuceyOS9p81MddMrrFRsl+jDPhLsoEYL UWgfALXAIcvt2hHan1BYaVxC9+4noEPXgA== X-Google-Smtp-Source: ABdhPJxJjU2pH6l+o2xDYzsp8fe9RBPxDDkaTo4MTaGjXFoHYtrRz/E7SW8maQfxG+inGcRuRX/oJg== X-Received: by 2002:a4a:a6c8:0:b0:35f:7a3a:77c6 with SMTP id i8-20020a4aa6c8000000b0035f7a3a77c6mr2357115oom.11.1652977795608; Thu, 19 May 2022 09:29:55 -0700 (PDT) Received: from wintermute.localdomain (cpe-76-183-134-35.tx.res.rr.com. [76.183.134.35]) by smtp.gmail.com with ESMTPSA id n4-20020a056870844400b000e92295f8acsm36562oak.2.2022.05.19.09.29.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 19 May 2022 09:29:55 -0700 (PDT) From: Chris Morgan To: dri-devel@lists.freedesktop.org Subject: [RESEND 5/6 v2] drm/panel: simple: add Geekworm MZP280 Panel Date: Thu, 19 May 2022 11:29:34 -0500 Message-Id: <20220519162935.1585-6-macroalpha82@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220519162935.1585-1-macroalpha82@gmail.com> References: <20220519162935.1585-1-macroalpha82@gmail.com> MIME-Version: 1.0 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, krzysztof.kozlowski+dt@linaro.org, emma@anholt.net, airlied@linux.ie, Chris Morgan , robh+dt@kernel.org, thierry.reding@gmail.com, Maxime Ripard , mchehab@kernel.org, sam@ravnborg.org, linux-media@vger.kernel.org Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" 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 9e46db5e3..cbc1a4fd1 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, @@ -3790,6 +3816,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 Thu May 19 16:29:35 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chris Morgan X-Patchwork-Id: 12855781 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 gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 95F3EC433F5 for ; Thu, 19 May 2022 16:30:09 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 8646410E478; Thu, 19 May 2022 16:30:08 +0000 (UTC) Received: from mail-oi1-x22c.google.com (mail-oi1-x22c.google.com [IPv6:2607:f8b0:4864:20::22c]) by gabe.freedesktop.org (Postfix) with ESMTPS id 5F38610F1EF for ; Thu, 19 May 2022 16:29:59 +0000 (UTC) Received: by mail-oi1-x22c.google.com with SMTP id i66so7050993oia.11 for ; Thu, 19 May 2022 09:29:59 -0700 (PDT) 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=GopHsktLl1FQHiOTG2Rcl7tq6cJcuAMLUPz/tIktAVi4pFMYnsHSyGZ/yNj18WFDUC qVvLfkJjJBsrQ9FK3hKmBv/G2kWYIIGctov/JcnxBJpj6Fo2Dq5vH+K+7J1L7e3ChsVa oAlXRfBGdaapF58zbqZnvfDY2J/15YRO/sx91miCOxpNhbrH1aACE9iUw3kp/XAd/jXG ofWGsCWs9xkx9zdWP8X82Sp5A10NP+d+jfb8DWv6t59TgMlOZBxPdhYxOKuSVmklg2NU v+UThHdaGO4a2MCA1BahEdkdwuOOSV8jATDUHhwsurxzLnXZY8qRsUj4SWzrHpMK2+LW wt6g== 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=Ecb50NubpG4SRyF8hsmn25EfJppD5kUm0npDouskaWWYT1zPGjJAHSOMzODWjkvzIL 4ro5FD44wtdBxxzvuOIfW8WbMtLdgesQuO59n+oy5WITAfzhnNYRz/0iCd46NEYiwKJj uVPwmLM9QESNcsCv/YwbDd+7sO2IxiRjhMqxkTDNwcQo+HgTbqEQJdxNIVXNJT26nkrt xEaw+D9uchhottdm4M5JcXMybcRcqGOWbBmjAT9cvBR+6UO5MnUHWXDSBGp+uA0ucrsH fXdnmJ66Jgc70HalRjirV/SnQU4ntafEpy3yT0g285rxVmo7/j9mz585VZXKbGv/C1Xl f2fA== X-Gm-Message-State: AOAM533DnC3D9ViGRoSUrNRah/uDcKBCRRrY1VOXZ9tpt+vedx+eclcK ZO4G8cJtddgFEAWiA34lrl2MhwOrc8EpLw== X-Google-Smtp-Source: ABdhPJyRSED3NYB6g3npUapZBROIw+TePvZdH0R/K6jTKuECnoY/NSeSywuMIYCDp1g99Vxzp2Wo5Q== X-Received: by 2002:a05:6808:ec7:b0:322:2bcc:42c2 with SMTP id q7-20020a0568080ec700b003222bcc42c2mr3283588oiv.168.1652977796926; Thu, 19 May 2022 09:29:56 -0700 (PDT) Received: from wintermute.localdomain (cpe-76-183-134-35.tx.res.rr.com. [76.183.134.35]) by smtp.gmail.com with ESMTPSA id n4-20020a056870844400b000e92295f8acsm36562oak.2.2022.05.19.09.29.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 19 May 2022 09:29:56 -0700 (PDT) From: Chris Morgan To: dri-devel@lists.freedesktop.org Subject: [RESEND 6/6 v2] drm/vc4: dpi: Support DPI interface in mode3 for RGB565 Date: Thu, 19 May 2022 11:29:35 -0500 Message-Id: <20220519162935.1585-7-macroalpha82@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220519162935.1585-1-macroalpha82@gmail.com> References: <20220519162935.1585-1-macroalpha82@gmail.com> MIME-Version: 1.0 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, krzysztof.kozlowski+dt@linaro.org, emma@anholt.net, Dave Stevenson , airlied@linux.ie, Chris Morgan , robh+dt@kernel.org, thierry.reding@gmail.com, mchehab@kernel.org, sam@ravnborg.org, linux-media@vger.kernel.org Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" 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;