Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp10641800rwd; Thu, 22 Jun 2023 02:48:36 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6LIqJfuxkYPHMMLKKz/LWImRFXCoiN8+e51YLAr9ktmWpD2NkMyO3ziKRriScykRsQ0os+ X-Received: by 2002:a05:6a00:b8f:b0:666:5fc4:36b1 with SMTP id g15-20020a056a000b8f00b006665fc436b1mr15413474pfj.26.1687427315962; Thu, 22 Jun 2023 02:48:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687427315; cv=none; d=google.com; s=arc-20160816; b=iosbOuka7bRy633VtXtgrIxNOYj58GP3spEaO7zEi7lNQjTpym4mBwGP38pZAZgsUw 3eUuBSY5mq+KDNwHKuLfcI2C1fKVCVQmYcvYCKpqtABmg6aUPTrWdJmS3wOp7vwSupMI 4iHbhycUz61I4NNG8a4mIzm9nyScBdxvJaTlR8SYaujMP9kcatW+ES4Q9jf4D4NLUe5C L1UYixf3llwvYHmPkZeqgShqISlieQyHACq36BP41691X7FfHVlHyHQrHyCr055v6IXN czr0AtoHIxZ9HMR5wS0u/nu4fvTHEGYw74Bd4uBgMunDWFMbNOOmitJT4X8C7skAVkgd MXxw== 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; bh=qSl/e4ygvgm7xXu0A1PnyaDgOqvkPQmc+jgmmz9We9E=; b=Pv5HzxGb2riC/F3iIyfsf5JTc6F+cjEi6n6UtyMGGSEvgsYNSLXJWtEE9FO+hOfvtF 3EaemnO6lxQCLSk3ZF9VeIzqSeQRc+udsopk/sW+Au507JT6TouWnTr5+xFAQgklVjlG sf1NOIVOgdf1bk1hWbKwTtYo4e8TNOJ1f5bcn/slmLUKkHy5CgBUQwaR2X9oV6fIJmjB PGlGCqxlIWnyHpEC2JeRVhrqidbyTGr5sqjgNxxv/wqPrnfE29qvEjuLvXoMVYdjFzMB 4oISU4KDvba7SD7L/k5LDr/VKac2zKKeXTerMxP26RKnJlI8E31UdG87ldqTM91Dar2Y Ts+A== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b14-20020a63340e000000b0054fb9698c4esi3669711pga.499.2023.06.22.02.48.24; Thu, 22 Jun 2023 02:48:35 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232319AbjFVJa4 (ORCPT + 99 others); Thu, 22 Jun 2023 05:30:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35038 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232317AbjFVJ3r (ORCPT ); Thu, 22 Jun 2023 05:29:47 -0400 Received: from baptiste.telenet-ops.be (baptiste.telenet-ops.be [IPv6:2a02:1800:120:4::f00:13]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 08BA04C31 for ; Thu, 22 Jun 2023 02:22:46 -0700 (PDT) Received: from ramsan.of.borg ([IPv6:2a02:1810:ac12:ed20:991a:a831:ea4b:6058]) by baptiste.telenet-ops.be with bizsmtp id C9Nj2A0041yfRTD019Njq9; Thu, 22 Jun 2023 11:22:43 +0200 Received: from rox.of.borg ([192.168.97.57]) by ramsan.of.borg with esmtp (Exim 4.95) (envelope-from ) id 1qCGWX-000Bvp-HC; Thu, 22 Jun 2023 11:22:43 +0200 Received: from geert by rox.of.borg with local (Exim 4.95) (envelope-from ) id 1qCGWZ-003VwF-3q; Thu, 22 Jun 2023 11:22:43 +0200 From: Geert Uytterhoeven To: Laurent Pinchart , Kieran Bingham , David Airlie , Daniel Vetter , Thomas Zimmermann , Magnus Damm Cc: dri-devel@lists.freedesktop.org, linux-renesas-soc@vger.kernel.org, linux-kernel@vger.kernel.org, Geert Uytterhoeven Subject: [PATCH 09/39] drm: renesas: shmobile: Add missing YCbCr formats Date: Thu, 22 Jun 2023 11:21:21 +0200 Message-Id: X-Mailer: git-send-email 2.34.1 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.4 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE,SPF_NONE, T_SCC_BODY_TEXT_LINE 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 The primary plane supports various YCbCr formats, and the CRTC code already knows how to handle them. Enable support for the missing formats by adding them to the table of supported modes. Signed-off-by: Geert Uytterhoeven --- drivers/gpu/drm/renesas/shmobile/shmob_drm_crtc.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/drivers/gpu/drm/renesas/shmobile/shmob_drm_crtc.c b/drivers/gpu/drm/renesas/shmobile/shmob_drm_crtc.c index 84dbf35025d7be63..cd492806105e5b5d 100644 --- a/drivers/gpu/drm/renesas/shmobile/shmob_drm_crtc.c +++ b/drivers/gpu/drm/renesas/shmobile/shmob_drm_crtc.c @@ -493,6 +493,12 @@ static const uint32_t modeset_formats[] = { DRM_FORMAT_RGB888, DRM_FORMAT_ARGB8888, DRM_FORMAT_XRGB8888, + DRM_FORMAT_NV12, + DRM_FORMAT_NV21, + DRM_FORMAT_NV16, + DRM_FORMAT_NV61, + DRM_FORMAT_NV24, + DRM_FORMAT_NV42, }; static const struct drm_plane_funcs primary_plane_funcs = { -- 2.34.1