From patchwork Thu Nov 17 12:25:45 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tomi Valkeinen X-Patchwork-Id: 21622 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp371450wrr; Thu, 17 Nov 2022 04:31:08 -0800 (PST) X-Google-Smtp-Source: AA0mqf4P+XRUmnG/76zkZc9+A4s0NAhQ/v1HgRdaYM7q3utAEbqxWkGzxtq2LcZhjGxZszA5FVyv X-Received: by 2002:a17:902:7686:b0:186:75f0:331c with SMTP id m6-20020a170902768600b0018675f0331cmr2460391pll.161.1668688268690; Thu, 17 Nov 2022 04:31:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668688268; cv=none; d=google.com; s=arc-20160816; b=a7BWahssN1cR7BzZGhOmMueua3ho/6bcEJU2F4FaEjcKEIsMNAiRvOXvYgY7GWTwGs nRABxLnO9nKWwndOPCSHCZ8ilzbC6cQ7l07A8iEFtEthb3LDcCWHyVY7OGOOgAsDwFO2 JgVvQztIWyvn49qAsm0kHAzlxjCBdN9oAhSR3TkUJ9SA1F3tlhWBkz8qo59Lww1X9F/r RnraQbtxnAzc9QVqpG1U1xArUA6UwwmEejJuq2uc05epwa7bfybaNYtYJNnuH/E8OnTG dQ1t9C903bjqCVAYR5sukNdzsvH4Xwt4cR2TyZEYIlP1eD50/gFb6m81gRyqhM2VLWMS IPjA== 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 :dkim-signature; bh=WVwU20W9zq+mNIhRf8nEfs21RAkAH6b/bJzypZEoEhs=; b=zfX2JzfgOW17mY6Gw83FoFMM/ToLvD3JYzHbLBXLsZyL0m2Ezf0XpD0kJkHfzaqCie jnx+jX2i9rAogbKhlhMgDuZLQbJUbXhAaxa56mxMnl4oKcWA8cVUZRBKVmB3aPoiVZ2Y JQwGRRw7RGVyTegUuiY8JHsvBYmjnORkCoxBv6agRtFY0OrbZckwAwyKZo9nPhESXUF6 tcV0jvw06E9T+1GiyAm6++tZLj0XOBjs5d/tvKVG2hFpr1CJnAgz9sXRzNm0q8maUeLI xdkADdIcwURFfnaCmh9X54OJNpd0JRp6UyUa/0voyqA5v9kqvXQ4EHUOAHlVypKxohgT ff1Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=WHgu2B9C; 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: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id m17-20020a056a00165100b0056c747dac83si725209pfc.62.2022.11.17.04.30.56; Thu, 17 Nov 2022 04:31:08 -0800 (PST) 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; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=WHgu2B9C; 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 S240116AbiKQM0e (ORCPT + 99 others); Thu, 17 Nov 2022 07:26:34 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51412 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240071AbiKQM0R (ORCPT ); Thu, 17 Nov 2022 07:26:17 -0500 Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [213.167.242.64]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F11EB193C3; Thu, 17 Nov 2022 04:26:16 -0800 (PST) Received: from desky.lan (91-154-32-225.elisa-laajakaista.fi [91.154.32.225]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 5D5A8197F; Thu, 17 Nov 2022 13:26:12 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1668687973; bh=WiUnCyTksJ9pQDgTE9uy2b5EpMuW4jwLoprmCYdi+B4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=WHgu2B9CRasYIafbeF6mkJFdtB1P+ldZpVWZyZZ+sIffn8kDt0QVngEcfxV0vpI+f 0KKfyNA/Z+sTLSdZKcuTiIx+Lp4RaOoDCVWEXwQs7Y9puxzIkZts4EX5E2/1qeSC2i hfBqFwrJ7TreLmyS4f0OUmyRRuTjz6KaSLvoazLE= From: Tomi Valkeinen To: Laurent Pinchart , Kieran Bingham , Rob Herring , Krzysztof Kozlowski , Geert Uytterhoeven , Magnus Damm , dri-devel@lists.freedesktop.org, linux-renesas-soc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Andrzej Hajda , Neil Armstrong , Robert Foss , Jonas Karlman , Jernej Skrabec , Tomi Valkeinen Subject: [PATCH v1 6/8] drm: rcar-du: Add r8a779g0 support Date: Thu, 17 Nov 2022 14:25:45 +0200 Message-Id: <20221117122547.809644-7-tomi.valkeinen@ideasonboard.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221117122547.809644-1-tomi.valkeinen@ideasonboard.com> References: <20221117122547.809644-1-tomi.valkeinen@ideasonboard.com> MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,SPF_PASS 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1749746470032304026?= X-GMAIL-MSGID: =?utf-8?q?1749746470032304026?= From: Tomi Valkeinen Add support for DU on r8a779g0, which is identical to DU on r8a779a0. Signed-off-by: Tomi Valkeinen Reviewed-by: Kieran Bingham Reviewed-by: Laurent Pinchart --- drivers/gpu/drm/rcar-du/rcar_du_drv.c | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/drivers/gpu/drm/rcar-du/rcar_du_drv.c b/drivers/gpu/drm/rcar-du/rcar_du_drv.c index d003e8d9e7a2..b1761d4ec4e5 100644 --- a/drivers/gpu/drm/rcar-du/rcar_du_drv.c +++ b/drivers/gpu/drm/rcar-du/rcar_du_drv.c @@ -524,6 +524,27 @@ static const struct rcar_du_device_info rcar_du_r8a779a0_info = { .dsi_clk_mask = BIT(1) | BIT(0), }; +static const struct rcar_du_device_info rcar_du_r8a779g0_info = { + .gen = 3, + .features = RCAR_DU_FEATURE_CRTC_IRQ + | RCAR_DU_FEATURE_VSP1_SOURCE + | RCAR_DU_FEATURE_NO_BLENDING, + .channels_mask = BIT(1) | BIT(0), + .routes = { + /* R8A779G0 has two MIPI DSI outputs. */ + [RCAR_DU_OUTPUT_DSI0] = { + .possible_crtcs = BIT(0), + .port = 0, + }, + [RCAR_DU_OUTPUT_DSI1] = { + .possible_crtcs = BIT(1), + .port = 1, + }, + }, + .num_rpf = 5, + .dsi_clk_mask = BIT(1) | BIT(0), +}; + static const struct of_device_id rcar_du_of_table[] = { { .compatible = "renesas,du-r8a7742", .data = &rcar_du_r8a7790_info }, { .compatible = "renesas,du-r8a7743", .data = &rzg1_du_r8a7743_info }, @@ -549,6 +570,7 @@ static const struct of_device_id rcar_du_of_table[] = { { .compatible = "renesas,du-r8a77990", .data = &rcar_du_r8a7799x_info }, { .compatible = "renesas,du-r8a77995", .data = &rcar_du_r8a7799x_info }, { .compatible = "renesas,du-r8a779a0", .data = &rcar_du_r8a779a0_info }, + { .compatible = "renesas,du-r8a779g0", .data = &rcar_du_r8a779g0_info }, { } };