Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp2246665pxa; Mon, 3 Aug 2020 11:05:53 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzWwuLEjggbH62sGZpAWl/bA+hj+234GxAzd7PI7RV4+oBeq4T1qyv43ceF2CQ1Y4u3A0l6 X-Received: by 2002:a50:dacf:: with SMTP id s15mr17645765edj.136.1596477953552; Mon, 03 Aug 2020 11:05:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596477953; cv=none; d=google.com; s=arc-20160816; b=BTWEkeb8T5ek0aw/Png0kySzB9Q69FOYXNgdBRxTGmenpgKTz0iHiMIdaMSkqNX8Co P0caIKMdHOgqeDHDVEEZOozl6aTJOrioJYEaZvZXAZapojEci7vwkqDvf+VY6r9MzH2F GQ1uaIkwT6TB5q/z5wXh+vzNRWNkIlcxsJX7pO2vtz7UsR4xBTLUi4jbr2oD61oxZSwQ RobodEZ32Q1H0Yn7m/WDZg6OvyZ8EffH8Pd4nSvRu8QnnSwWH6MD8oFw4bNGveDNLkpJ 6L5G/9VPv43I9Dtk1uCPMBhYqwivMUkkYHzijtM27K317L7mWBGDEOEUrurE/J7r4Sft pKdA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:from:cc:to:reply-to:subject :content-transfer-encoding:mime-version:references:in-reply-to :user-agent:date:dkim-signature; bh=WNXI86vfROuOzPq/dXCVW8J3uOIoaE0haKDu52wWTzk=; b=IeiyZtLNc8FIVjKErIMIwmqi5UcdDLR/NaBQEQbgBfdRDD2OuGp49aotjUXONc8VxO VXao+uw4sQYoAg+hfzZNeri6ksXOT5cLmK8XvrQ76f2MfA2lx5tNt2lp8aI2mlK/vAUL MCzYLzF+QkYx0YTaxb9ZFSkCDP5UdiuuJpb4tAuItAqZHJOFHNqRl92PhbNCyR0wYmRH L9Rg91hZWbierKRsBHscDO8OpYxg6MMKHqKv6c4lEHnL6S0cEtt7kStw6hbLmX0hcm8B aK5RKt2adnUpXUVbheF8mZCk88NLt4PDN0TmaoO+uMxcBWIwYO0lyy9zrngqWnxQLs0c 4gdg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmx.net header.s=badeba3b8450 header.b=UTAFAQAz; 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 g8si9660765ejs.512.2020.08.03.11.05.26; Mon, 03 Aug 2020 11:05:53 -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=fail header.i=@gmx.net header.s=badeba3b8450 header.b=UTAFAQAz; 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 S1727088AbgHCSDO (ORCPT + 99 others); Mon, 3 Aug 2020 14:03:14 -0400 Received: from mout.gmx.net ([212.227.17.20]:46191 "EHLO mout.gmx.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726130AbgHCSDM (ORCPT ); Mon, 3 Aug 2020 14:03:12 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1596477768; bh=BBa3NSjXaC3TQAHSDrvm2A0DeRZLmH0CWpxHTLdlYjs=; h=X-UI-Sender-Class:Date:In-Reply-To:References:Subject:Reply-to:To: CC:From; b=UTAFAQAzApPZZ0flsN9S1yEnccWgfdgX7V9WZUnOsUBFIqOuXwq3VHF97JnHS2iUf kG+viCGPchkFkwExep2S5/u0UME9TcEfaeyT1JeSfrM1uBULYdrccAGh9PS7OOO5RT 543q1lHNvfC35ZsMYpalHjQ4lz9/DkIeEjLRi02I= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from frank-s9 ([217.61.148.26]) by mail.gmx.com (mrgmx105 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MmlXK-1kUsso2yBS-00juVp; Mon, 03 Aug 2020 20:02:48 +0200 Date: Mon, 03 Aug 2020 20:02:38 +0200 User-Agent: K-9 Mail for Android In-Reply-To: References: <20200728111800.77641-1-frank-w@public-files.de> <20200728111800.77641-2-frank-w@public-files.de> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Subject: Re: Re: Re: [PATCH v2 1/5] drm/mediatek: config component output by device node port Reply-to: frank-w@public-files.de To: linux-mediatek@lists.infradead.org, Chun-Kuang Hu , ryder.lee@mediatek.com CC: Daniel Vetter , David Airlie , linux-kernel , DRI Development , "moderated list:ARM/Mediatek SoC support" , Philipp Zabel , Matthias Brugger , Bibby Hsieh , Linux ARM From: Frank Wunderlich Message-ID: X-Provags-ID: V03:K1:WAQfzGVjSkS/16yz9r7IpNOuSlMl2BMKsoaMRRAoP3sVBH84qNq wD261Oq8/ov+9nxyiq1n/yjiI8bous5siv81EUe0lDdC9apZwvIfi//d2RQVhmg/5lFA683 eKifWM6puhV8WX6izdjWHwl8PERQlm8PXD7uwIsSjbGuzFloLAdV9Z2Zd1l8AbB9pcv2dZN 6qiuH0R+YQg36uqjHpCsA== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:bv0vMe1HGgs=:Ot2Dri9B6JRi7gkA5+I8B+ PkMBVJDfumgzFBC3CAldXejaKPq/gpCzWuT3RtgtVVFXdmR5m3flZOp6k5exj3VBkPa8JxIA9 DrQrWK6khzrvwaWTrGJOEmFAfUhnickZo96K9r8xubioKh6F1+NQw+raMXePuDtkFHP0uy/au 0PdQ5f+q2IUCXAOVfUwTeyCDuMSmIDSBIoezxbnZFHc1SiuJ3yuty8m8eA0OKGiO69fyfDlPW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kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Am 3=2E August 2020 18:27:02 MESZ schrieb Chun-Kuang Hu : >But now I have a solution that you need not to modify binding document=2E >Because now mt7623 has a different routing than mt2701, and this >patch's approach is to use different port setting in each device tree=2E >My solution is that these two SoC has different compatible string: >"mediatek,mt7623-mmsys" and "mediatek,mt2701-mmsys"=2E For now, >"mediatek,mt2701-mmsys" has its data as > >static const struct mtk_mmsys_driver_data mt2701_mmsys_driver_data =3D { >=2Emain_path =3D mt2701_mtk_ddp_main, >=2Emain_len =3D ARRAY_SIZE(mt2701_mtk_ddp_main), >=2Eext_path =3D mt2701_mtk_ddp_ext, >=2Eext_len =3D ARRAY_SIZE(mt2701_mtk_ddp_ext), >=2Eshadow_register =3D true, >}; > >I think you could create a data for "mediatek,mt7623-mmsys" which has >a different routing=2E The paths are defined as this: static enum mtk_ddp_comp_id mt2701_mtk_ddp_main[] =3D { DDP_COMPONENT_OVL0= , DDP_COMPONENT_RDMA0, DDP_COMPONENT_COLOR0, DDP_COMPONENT_BLS, DDP_COMPONE= NT_DSI0,}; static enum mtk_ddp_comp_id mt2701_mtk_ddp_ext[] =3D { DDP_COMPONENT_RDMA1= , DDP_COMPONENT_DPI0,}; First thing i notice is that main=3Ddsi and ext=3Ddpi (hdmi)=2E I guess dp= i should be main,right? And bls is actually routed to dpi=2E=2E=2Ehow about= the other components? The 2 loops are not really clear to me (except 1st overwrites mt2701 main-= path and second ext_path based on ports/endpoints) but this only applies fr= om bls-dpi-hdmi-connector,not xdma/color or similar=2E Or should be main-path (or external) only bls and dpi? It looks like it on= ly swappes dpi and dsi in my case=2E @Ryder Lee can you explain it? regards Frank