Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp2184835pxa; Mon, 3 Aug 2020 09:28:17 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxBzQppaL0j2RYRVxhOD2S9Q5rUBsnPvlgOqDFWcwTfMScXfxRyjWVPAELZfJfFEP33r1l8 X-Received: by 2002:a17:906:65b:: with SMTP id t27mr18253349ejb.457.1596472097308; Mon, 03 Aug 2020 09:28:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596472097; cv=none; d=google.com; s=arc-20160816; b=SDcJvwrzhgOyT1vqjpTsGfKg+eJgHDWu0g1MLYVK8oR67HTzfNHLwKrXuzOCDXZWJV rS4Bg+bbmc84rfE5rIva8iguKGTIL+9JRoHSrHpOdSuXlHvD5nSZ8UpFLx6rdqqLgSIs NOdIbW+yLCk74o33RN2jihQ5UQLPV2jr1sE3egXkunadhbaSximdluWuETf6iWFkbf+5 3c1fggRUHhytktIQrp7qP4A52rd1x05sQIY+ULu/URUMI9yCipC0iOj6UWWdgAHcExNc oeu4Hy3SZCy1RZpROa51gC2I8If/3vAmB41GhOmV5rvwH6TYfHUcAJSGzHoRj3AS4kha qn3Q== 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:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=ll7GktKmfBwm38P47vxPYNyerbVaAbRhJQHGKTNr3f4=; b=hwUIXj4vlhQ62OyiLA+g+PCLQ8+qW57g7yYl8JoxTjNYoZTqU6ELNpqeGL5bnXZSAV 0x7MPcfc0KMsAsJCtCC1NH48PiIxq/GFbtqmlkMcvsnzDmGBwbC4ipYTdN/opFiDX9QU 2eGx1wMUtAeZE28MONWuwqisgtw16f5lcG8c55+xT8/GQF2QJH1f6HTQJ7Bfq/AddaBc E9nwo+enjp95N2xiFfRvmKHxq5SD1wqhTKf5LsAap9zwf6y5l1L4podnyS4eBySc266C t/SBw8KxkSe8ih87R5FCfDmGlznkMhcUwBhL2zNsl64kvuLjWoEtFRT1czUxLFw6c/8y InJw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=PdX1ab29; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id k17si10174250edf.284.2020.08.03.09.27.54; Mon, 03 Aug 2020 09:28:17 -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=@kernel.org header.s=default header.b=PdX1ab29; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728285AbgHCQ1R (ORCPT + 99 others); Mon, 3 Aug 2020 12:27:17 -0400 Received: from mail.kernel.org ([198.145.29.99]:53302 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726878AbgHCQ1R (ORCPT ); Mon, 3 Aug 2020 12:27:17 -0400 Received: from mail-ed1-f43.google.com (mail-ed1-f43.google.com [209.85.208.43]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 9782F20719 for ; Mon, 3 Aug 2020 16:27:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1596472035; bh=8fGI175POQSwr9vMdcHAJq6mcS1esJVi8AWo2KENfmI=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=PdX1ab29lzG1sPjm+H96BcPsJTriqK7IyQxiIfS7V5jeLMaEA1FceH6auAq8Y58vC DpmuSPvSa9LvqkNK+ktA7f84GAI+UbcvGFa3Bbzf3LInrqFWj9+QKKylcWaPIG2bgh l9DrNQp5I/I92OP9QiTCZdRYabluFANNGQAI8WH4= Received: by mail-ed1-f43.google.com with SMTP id m20so18187814eds.2 for ; Mon, 03 Aug 2020 09:27:16 -0700 (PDT) X-Gm-Message-State: AOAM532jzWxIBT1CZ3F2W9TcB4ZvcYD5iz9dFpDNqmzkoAZxhpwbn6KU GBZFmkJSCXI5nlRdnSBJivDWmio7kW9CNsw8lA== X-Received: by 2002:a50:ccd0:: with SMTP id b16mr16302641edj.148.1596472035168; Mon, 03 Aug 2020 09:27:15 -0700 (PDT) MIME-Version: 1.0 References: <20200728111800.77641-1-frank-w@public-files.de> <20200728111800.77641-2-frank-w@public-files.de> In-Reply-To: From: Chun-Kuang Hu Date: Tue, 4 Aug 2020 00:27:02 +0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: Re: Re: [PATCH v2 1/5] drm/mediatek: config component output by device node port To: Frank Wunderlich Cc: Chun-Kuang Hu , Philipp Zabel , David Airlie , linux-kernel , DRI Development , "moderated list:ARM/Mediatek SoC support" , Daniel Vetter , Matthias Brugger , Bibby Hsieh , Linux ARM Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, Frank: Frank Wunderlich =E6=96=BC 2020=E5=B9=B48=E6=9C= =883=E6=97=A5 =E9=80=B1=E4=B8=80 =E4=B8=8B=E5=8D=886:43=E5=AF=AB=E9=81=93= =EF=BC=9A > > Hi > > Gesendet: Montag, 03. August 2020 um 01:47 Uhr > > Von: "Chun-Kuang Hu" > > > Now I just care about the bls to dpi. So in mediatek,disp.txt, you > > just need to add a Optional properties - port (input and output), and > > modify mediatek,dpi.txt for its input port. > > you mean something like this is enough: > > Documentation/devicetree/bindings/display/mediatek/mediatek,disp.txt > > argument, see Documentation/devicetree/bindings/iommu/mediatek,iommu.t= xt > for details. > > +Optional properties: > +- port (input and output) see ../../media/video-interfaces.txt > + > Examples: > > Documentation/devicetree/bindings/display/mediatek/mediatek,dpi.txt: > > Optional properties: > - pinctrl-names: Contain "default" and "sleep". > +- port: Input port node with endpoint definition, this can be connected = to -disp-pwm > > Example: > > should i link to pwm/pwm-mtk-disp.txt in doc? > > regards Frank Yes, this is what I mean, but I think it need not output to pmw. But now I have a solution that you need not to modify binding document. Because now mt7623 has a different routing than mt2701, and this patch's approach is to use different port setting in each device tree. My solution is that these two SoC has different compatible string: "mediatek,mt7623-mmsys" and "mediatek,mt2701-mmsys". For now, "mediatek,mt2701-mmsys" has its data as static const struct mtk_mmsys_driver_data mt2701_mmsys_driver_data =3D { .main_path =3D mt2701_mtk_ddp_main, .main_len =3D ARRAY_SIZE(mt2701_mtk_ddp_main), .ext_path =3D mt2701_mtk_ddp_ext, .ext_len =3D ARRAY_SIZE(mt2701_mtk_ddp_ext), .shadow_register =3D true, }; I think you could create a data for "mediatek,mt7623-mmsys" which has a different routing. Regards, Chun-Kuang.