Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp1942937rwb; Thu, 17 Nov 2022 04:31:51 -0800 (PST) X-Google-Smtp-Source: AA0mqf5969tms70Vq7Q7myhFP29WprKl/3d5zY6Ys9ToEMOJe0Lleefr0EuJ/EMnKi4xvwgoisKy X-Received: by 2002:a17:90a:2c0a:b0:212:cd9c:b44f with SMTP id m10-20020a17090a2c0a00b00212cd9cb44fmr8467267pjd.14.1668688311247; Thu, 17 Nov 2022 04:31:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668688311; cv=none; d=google.com; s=arc-20160816; b=CMSVt/2p2hYOuiGvahmRJHZZm8OgVOocedDfLsEQbPo1a5uyfy0MzlNf9ypIcBO89b Xdtclq3+pdBfkU34ykB6Ue/grCvG2iPtqcmzYl15HRDNcJuXrSu1El6BZ3MY66meQGoE 8FOjByzGs3b5NhT5tD6Qp6QVXKltqn9hdpbVBFtS8kWteIp2Z0O4sQ49IBAA2j+Wp6I/ wsUNTuw5xdHSE5hLh6WhI1RsMHbLFcDNeCWt6QTS2e/3wLgZ5zBu/46TmWgfWWC2L/Ch ovNPob6jouE/dq4Ya5hd2E3EH+ckk+pT+m2rZjH4YxTccxxxGWz4H9wrlqtSObNdNFPA M3GQ== 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 Return-Path: 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.31.38; Thu, 17 Nov 2022 04:31:51 -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 + 92 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 Content-Transfer-Encoding: 8bit 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 From: Tomi Valkeinen Add support for DU on r8a779g0, which is identical to DU on r8a779a0. Signed-off-by: Tomi Valkeinen --- 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 }, { } }; -- 2.34.1