Received: by 2002:a05:7412:bb8d:b0:d7:7d3a:4fe2 with SMTP id js13csp1306662rdb; Wed, 16 Aug 2023 07:52:40 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHLy2350s3kGspOK4xqrbHUtaYhYTMIhDgWhZlLp2xdulEYv82+3z8J5JZGLdJRlBa6oU4N X-Received: by 2002:a54:488c:0:b0:3a1:e85f:33ee with SMTP id r12-20020a54488c000000b003a1e85f33eemr2165026oic.56.1692197559800; Wed, 16 Aug 2023 07:52:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1692197559; cv=none; d=google.com; s=arc-20160816; b=ufVokrDbzTv1yS++MQjhg2eejxTQVp8k1yriFizjK/q0tsadCzjNiqbftbgPpQ1dFI /6YFnYBeN5wJPROGFKCFHm/qD1UxdrFyNDxHATMFgUSXEvwdPFcX/7JV9mcbiR/5vfUw ZPkJ3ozvhLP/ptCKgu3JQAwHXbNlYW/ETLop+sPaLPsjBaShWT7Z86mzgwG7TobNlNN9 lR4ya1AWs/YZKzar6dk83pcKOmoXwESC+bye02TV2gf4fXnaus8+UJnYMx+togpGsHxc Z4ZWgYfXG89ZwmEw6h7Vb085A8bnkXL8tniH7yyqP7IJnRqU4YbfqaVTgWnGBIUFFaLw 39Lw== 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=ImiHQCTl78Rpg7uyrA3HkXgJ3FaVgvYzg3QpsIxBezg=; fh=OmmZDJEp3pl7jaFV8O2/yN66VkuJIFqajAiD2ZUHFno=; b=JEk7DSClQtwDaCHruIV53NuLC3RoaIkDmyV8rFFur0UJRfVB72n4UXIzLUcADcjkca EnrfpsRvWFg1Q/mnzL7gNWFTV8BNk5/ltyDStYg3IXR1vbRHHou2QG91Eg6auFwgRmh2 MSaTD8oxHp3TEAW8XHcpMRYjZdU5wUCoHvzx5v1PFeajbg8LfalYBaMs8NBh/j88AybK noSWbRroWEYnd0mig2g8ZE6cipid3kw1tGkKYfX+cvtyh3P2x9S7+ZFunoQH+x3yWxRL uWij8JbWiA9XbmUHfRKrJkUjG4bikeC5yCY5tXd621IPsh10D4xpCy80J0MXmEQ/tZyh xqOg== 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 b26-20020a6567da000000b00564b99f1275si11479953pgs.446.2023.08.16.07.52.21; Wed, 16 Aug 2023 07:52:39 -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 S244065AbjHPKqA (ORCPT + 99 others); Wed, 16 Aug 2023 06:46:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34712 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244122AbjHPKpS (ORCPT ); Wed, 16 Aug 2023 06:45:18 -0400 Received: from michel.telenet-ops.be (michel.telenet-ops.be [IPv6:2a02:1800:110:4::f00:18]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F3B1C26B9 for ; Wed, 16 Aug 2023 03:44:58 -0700 (PDT) Received: from ramsan.of.borg ([IPv6:2a02:1810:ac12:ed40:5d0c:f209:12a7:4ce5]) by michel.telenet-ops.be with bizsmtp id aAkh2A00y45ualL06Akh1v; Wed, 16 Aug 2023 12:44:43 +0200 Received: from rox.of.borg ([192.168.97.57]) by ramsan.of.borg with esmtp (Exim 4.95) (envelope-from ) id 1qWE0x-000ost-Dq; Wed, 16 Aug 2023 12:44:41 +0200 Received: from geert by rox.of.borg with local (Exim 4.95) (envelope-from ) id 1qWDAw-00674t-Hu; Wed, 16 Aug 2023 11:50:50 +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 , Laurent Pinchart Subject: [PATCH v3 10/41] drm: renesas: shmobile: Add missing YCbCr formats Date: Wed, 16 Aug 2023 11:50:17 +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=-1.6 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE, SPF_NONE autolearn=no 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 Reviewed-by: Laurent Pinchart --- v3: - No changes, v2: - Add Reviewed-by. --- 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 2d9ae0c6ab7b18a8..a0e1a49c84d5691a 100644 --- a/drivers/gpu/drm/renesas/shmobile/shmob_drm_crtc.c +++ b/drivers/gpu/drm/renesas/shmobile/shmob_drm_crtc.c @@ -460,6 +460,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