Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp477032pxa; Tue, 4 Aug 2020 09:59:05 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxR2VP9FXFKrzx491g8C3ofsV3+WU4Mt88K9t2khnrDA1RPlPVjk4TAyoTd9/NsRXMT965K X-Received: by 2002:a17:906:dbd8:: with SMTP id yc24mr8943738ejb.176.1596560345273; Tue, 04 Aug 2020 09:59:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596560345; cv=none; d=google.com; s=arc-20160816; b=O2D9JWXNJNORANJaQKB6fLSEJoMnBka8xIl2EP4C0D+GXbO2KBkMCwoXLTlRMc2J97 rBIJ0N6ydxGK79+Y2iPzlYM+88J4817KrYDwK6uCRg7l2oR+xcYwkccsJ9r4im+rmmFj vp7MYMqisiCPch5GxOmsLEVnxwAU6TaamgacpzbI1fLhw+olqhnduw3zovZAnirukTnx ktdazVyyNG3h7ve6GuxxftAuSwE2o+7EzE8cGheYNznEPjzADZtGaxPt3pyD9Y8rAzQw a5CwkMYAfC09qWcqZnwguFmRn0aP9ogjb/++QGzhgxC2ZCwmTfB9tkLNW+qwYVUPh2qt cQyg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=fAxB8FMw1RdmCyat0mKDQj17vHc5n1XZwQpV53Cpf1Y=; b=M7TYyPQCGbHPQdsg42YRn+/i5kZcj5wRMeJX2D27BhaumJbnsOUx9PRVHq45fp8C+F Sw6RFmTsZLKhs9EF0/M9q5eNN7/uquDWXNAad/M5NCWk7cSCIIpjonmEGSQ7I7tN4kPp rL1jeaWJdPlqMIiQtG96TihzAJ567qpQ9xBMDu6Jw0+YVIQXSHLtTJdvQzeBM8IOKNdp fD6YB0hCNb/7F+gWq1yYxFEziqLNlP9XAbIpSqAeVjEaCBeiiX0llwHifhlUSdAX8wOf jcPndqtEWrYawPRZnlQbsx/LimDyk3HEhn8bqsDKsPftQYRa/rNBRdesC9pRpb5BzgSX C1Dw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mailerdienst.de header.s=20200217 header.b=rxR7PRph; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t3si11666351edq.511.2020.08.04.09.58.42; Tue, 04 Aug 2020 09:59:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@mailerdienst.de header.s=20200217 header.b=rxR7PRph; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728412AbgHDQ40 (ORCPT + 99 others); Tue, 4 Aug 2020 12:56:26 -0400 Received: from mxwww.masterlogin.de ([95.129.51.220]:46124 "EHLO mxwww.masterlogin.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726536AbgHDQ4P (ORCPT ); Tue, 4 Aug 2020 12:56:15 -0400 Received: from mxout2.routing.net (unknown [192.168.10.82]) by forward.mxwww.masterlogin.de (Postfix) with ESMTPS id 3BAA496148; Tue, 4 Aug 2020 16:56:11 +0000 (UTC) Received: from mxbox3.masterlogin.de (unknown [192.168.10.78]) by mxout2.routing.net (Postfix) with ESMTP id 09E0A5FA21; Tue, 4 Aug 2020 16:56:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailerdienst.de; s=20200217; t=1596560171; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=fAxB8FMw1RdmCyat0mKDQj17vHc5n1XZwQpV53Cpf1Y=; b=rxR7PRph6EoO/i7t+XmJVhi+FTTq75/xxVcYLFMVjan2HNNbjK8dMftAyWXPR1W0C4A6YC o4gEh9HKno+xzwhUjQG5QVPZRdOO82v77Oh70Tn6serRYxMBPK3c7nYTKy0hVrurwNBSPU W6PiT/kJjJi1anZzh8+38XUGGakqlv8= Received: from localhost.localdomain (fttx-pool-217.61.144.119.bambit.de [217.61.144.119]) by mxbox3.masterlogin.de (Postfix) with ESMTPSA id 57CA73605F9; Tue, 4 Aug 2020 16:56:10 +0000 (UTC) From: Frank Wunderlich To: linux-mediatek@lists.infradead.org Cc: Frank Wunderlich , Chun-Kuang Hu , Philipp Zabel , David Airlie , Daniel Vetter , Matthias Brugger , dri-devel@lists.freedesktop.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH v4 2/6] drm/mediatek: add ddp routing for mt7623 Date: Tue, 4 Aug 2020 18:55:51 +0200 Message-Id: <20200804165555.75159-4-linux@fw-web.de> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200804165555.75159-1-linux@fw-web.de> References: <20200804165555.75159-1-linux@fw-web.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Frank Wunderlich on BPi-R2/mt7623 main-path have to be routed to DPI0 (hdmi) instead of DSI0 using compatible "mt7623-mmsys" already defined in dts Signed-off-by: Frank Wunderlich --- drivers/gpu/drm/mediatek/mtk_drm_drv.c | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/drivers/gpu/drm/mediatek/mtk_drm_drv.c b/drivers/gpu/drm/mediatek/mtk_drm_drv.c index 6bd369434d9d..11e3752c670d 100644 --- a/drivers/gpu/drm/mediatek/mtk_drm_drv.c +++ b/drivers/gpu/drm/mediatek/mtk_drm_drv.c @@ -74,6 +74,19 @@ static const enum mtk_ddp_comp_id mt2701_mtk_ddp_ext[] = { DDP_COMPONENT_DPI0, }; +static const enum mtk_ddp_comp_id mt7623_mtk_ddp_main[] = { + DDP_COMPONENT_OVL0, + DDP_COMPONENT_RDMA0, + DDP_COMPONENT_COLOR0, + DDP_COMPONENT_BLS, + DDP_COMPONENT_DPI0, +}; + +static const enum mtk_ddp_comp_id mt7623_mtk_ddp_ext[] = { + DDP_COMPONENT_RDMA1, + DDP_COMPONENT_DSI0, +}; + static const enum mtk_ddp_comp_id mt2712_mtk_ddp_main[] = { DDP_COMPONENT_OVL0, DDP_COMPONENT_COLOR0, @@ -127,6 +140,14 @@ static const struct mtk_mmsys_driver_data mt2701_mmsys_driver_data = { .shadow_register = true, }; +static const struct mtk_mmsys_driver_data mt7623_mmsys_driver_data = { + .main_path = mt7623_mtk_ddp_main, + .main_len = ARRAY_SIZE(mt7623_mtk_ddp_main), + .ext_path = mt7623_mtk_ddp_ext, + .ext_len = ARRAY_SIZE(mt7623_mtk_ddp_ext), + .shadow_register = true, +}; + static const struct mtk_mmsys_driver_data mt2712_mmsys_driver_data = { .main_path = mt2712_mtk_ddp_main, .main_len = ARRAY_SIZE(mt2712_mtk_ddp_main), @@ -422,6 +443,8 @@ static const struct of_device_id mtk_ddp_comp_dt_ids[] = { static const struct of_device_id mtk_drm_of_ids[] = { { .compatible = "mediatek,mt2701-mmsys", .data = &mt2701_mmsys_driver_data}, + { .compatible = "mediatek,mt7623-mmsys", + .data = &mt7623_mmsys_driver_data}, { .compatible = "mediatek,mt2712-mmsys", .data = &mt2712_mmsys_driver_data}, { .compatible = "mediatek,mt8173-mmsys", -- 2.25.1