Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp7152877rwp; Tue, 18 Jul 2023 10:47:56 -0700 (PDT) X-Google-Smtp-Source: APBJJlGWrzigZ0h8kFFcEsHFfMLuVk/VexUXBdD/rttZ91vMIyweZLSJvXLTuenkYOYSbubw6538 X-Received: by 2002:a17:907:6284:b0:992:13c7:560 with SMTP id nd4-20020a170907628400b0099213c70560mr636866ejc.38.1689702476011; Tue, 18 Jul 2023 10:47:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689702475; cv=none; d=google.com; s=arc-20160816; b=mAXJf33Zer5SMK91KrAJto8e4wDPySs+RUf/IPpP/bi/k50B9kjkqxcysL9RhlL0jn 6bO9CqB9uoal7IYVM3KdIIDemR0EIkRCbZVWRuck04oN+SI9OBech63LxCSZpioD9UTq qcW7/RkwSni/b44wPtbL2TbQix/8IQYd63Sg4P931NtILASb+eEh4hA5OS9P7gzCON2r PvtdiPpFs340pEgPg0+OOjVIyfr5erfLluGT69Hv3UwdajzVNbuVEx8vLzv/Sf/nvuJW rNysZRv+0Y9ctnbL7H4WO3BCg1XGCs9a5NokBOFIcOEi3kf5KzKRlLqwO2mhc7xZiBG1 czLw== 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=Vjv7F78xcbc5hOQ/CqHGsKvweTtxwiWt2/0K6VfLccQ=; fh=Ople2ijcDVdvBJwvAg2RvyZp0qNZK7It46SN0LxlrVk=; b=WkaCH4Sos92HL72bjCGHlUVnG++9Hp0mzMnS1kDcHekEo/wttHPxXiOtL508wxq369 RjZRHGj+Rrq8OB5VV/J5Wdh65vL6NRwI0UMOvGcl/lKmQd2gr4O2j96FQInWFtgdwfHo r8G30EPBBJDP3rpQRKv0LG5mO9Qu29ExCMDobIhoJ/CDFJzkACItq27/14fLKo2mrFjR 20pTTItTLNjgjqDMc03DGVBM5/HtCBHhycsjEto5YjWuibfxiz26c7cxBY7L+UPXI2Xd nYg+dQ9fIoFuwmBxP/LbaaYFAnNSIaZC6I23z8bIcOF5YsGJXULuULmaFxNqIQc7rqeP QWBA== 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 le11-20020a170907170b00b00991f96678cesi1598335ejc.615.2023.07.18.10.47.32; Tue, 18 Jul 2023 10:47:55 -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 S233111AbjGRQ5H (ORCPT + 99 others); Tue, 18 Jul 2023 12:57:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58034 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233151AbjGRQzI (ORCPT ); Tue, 18 Jul 2023 12:55:08 -0400 Received: from xavier.telenet-ops.be (xavier.telenet-ops.be [IPv6:2a02:1800:120:4::f00:14]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 04D191998 for ; Tue, 18 Jul 2023 09:54:54 -0700 (PDT) Received: from ramsan.of.borg ([IPv6:2a02:1810:ac12:ed40:5803:2d6d:5bbc:e252]) by xavier.telenet-ops.be with bizsmtp id Ngur2A00H0ucMBo01gur1R; Tue, 18 Jul 2023 18:54:52 +0200 Received: from rox.of.borg ([192.168.97.57]) by ramsan.of.borg with esmtp (Exim 4.95) (envelope-from ) id 1qLnyD-001nY4-6q; Tue, 18 Jul 2023 18:54:51 +0200 Received: from geert by rox.of.borg with local (Exim 4.95) (envelope-from ) id 1qLnyN-000gbs-86; Tue, 18 Jul 2023 18:54:51 +0200 From: Geert Uytterhoeven To: Laurent Pinchart , Kieran Bingham , David Airlie , Daniel Vetter , Thomas Zimmermann , Magnus Damm Cc: linux-renesas-soc@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, Geert Uytterhoeven , Laurent Pinchart Subject: [PATCH v2 10/41] drm: renesas: shmobile: Add missing YCbCr formats Date: Tue, 18 Jul 2023 18:54:15 +0200 Message-Id: <744ce1151d7d92ab0e28ab82d72a99097b03f935.1689698048.git.geert+renesas@glider.be> 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=unavailable 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 --- 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