Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp1258712pxa; Sun, 2 Aug 2020 01:07:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyCmjGZXCV9We3MTKRkzivj19aXjCLWWvnx3kqZKXPNdoXFCdX4xQE5+WtgFLa2/VG1WP0o X-Received: by 2002:a17:906:8318:: with SMTP id j24mr11116690ejx.409.1596355640020; Sun, 02 Aug 2020 01:07:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596355640; cv=none; d=google.com; s=arc-20160816; b=COeNyNoBFZFqrexXbtZDl1R/6qXOnh5DKiA06pvn8ytggfms402mtfItDE1faBocqn 4BSFBiMV6vG7ODPEm6I5/MSllzT3J8Ubz4zpqBNr86OLR9mBSlS2cJMrLuMxjq1RjbKD mNMJWOFNBO6XpIvsJS7MlKR0iHdmVNa4eS7pjt6knBupsQB877zECU5FZJbmaQQjfzX5 Hi1XiBM1e+Pyay0gsLxZ908EAp+x8LzrZzA2PooxhL/7I6uvKh2pLMnfZY4ZtPGg93ON 6yBqHDKtJBGc2fi1YVblqUJjLMiBAyMqkf1qPSy59/GaRDPsxigST/585iR/d/hrGh2C QuiQ== 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:references :in-reply-to:sensitivity:importance:date:subject:cc:to:from :message-id:mime-version:dkim-signature; bh=69l2+KBPN1LW5IL/oskL3n3qJchFAyeC6bqhE8krFS4=; b=qaTwnowk6wL4CMC7av1bdC402iE2Qm1mZplYE8xeckrWVJN9ze9KjJ/sIEv8vhcAYL gjRWOaTQlW3Ozipc6zAL3l0tPpiovNEfBdZaHTJXxtroNxfpAR/GooTaxNj1INcwuKlY kk85q6w7J10WSB9VuuPdNr1J8/fxrE6cMOCOgkhMrq6WhOQVNHDV5xyPZ7rl3tOv/IIl i/cormdRJW1eo4NWpkBNJIhf1Ih90BT2k3xv9gHM7dBS6JApeW2SUcsm0FvlTiH21l2F 94yOz2fU1YPonRp9FIlZR9P+AiqiyeRrSeKNjv+6yc9FnNi+MBc1LwpyXdx4baPwFLa8 oK4w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmx.net header.s=badeba3b8450 header.b=aeaoKctD; 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 m24si1571707edr.211.2020.08.02.01.06.57; Sun, 02 Aug 2020 01:07:20 -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=@gmx.net header.s=badeba3b8450 header.b=aeaoKctD; 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 S1726479AbgHBIGU (ORCPT + 99 others); Sun, 2 Aug 2020 04:06:20 -0400 Received: from mout.gmx.net ([212.227.15.15]:43787 "EHLO mout.gmx.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725819AbgHBIGT (ORCPT ); Sun, 2 Aug 2020 04:06:19 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1596355539; bh=sc1Lq8EFToHTdK5q+UaOStFQfDdgf714wGLLqZKqwoY=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=aeaoKctDVpeUHPAmtcFrKdeq51XDI04xweIWl2F16QHXj9PmHwY7ImtuqtLcQ404L ZoNSNQG3KA50dtvgCtU3Sh8dACc3/CYmOvLgNAIR7un4M5zeHT9eH4XV3eW4tfT8pq WFguTteyX8Q+x4g2QdmmWWHKRpLq8IBxeg0j0CPs= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from [217.61.148.8] ([217.61.148.8]) by web-mail.gmx.net (3c-app-gmx-bs58.server.lan [172.19.170.142]) (via HTTP); Sun, 2 Aug 2020 10:05:39 +0200 MIME-Version: 1.0 Message-ID: From: Frank Wunderlich To: Chun-Kuang Hu 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 Subject: Aw: Re: [PATCH v2 1/5] drm/mediatek: config component output by device node port Content-Type: text/plain; charset=UTF-8 Date: Sun, 2 Aug 2020 10:05:39 +0200 Importance: normal Sensitivity: Normal In-Reply-To: References: <20200728111800.77641-1-frank-w@public-files.de> <20200728111800.77641-2-frank-w@public-files.de> X-UI-Message-Type: mail X-Priority: 3 X-Provags-ID: V03:K1:4FFi9HpCe8lkGtx3qVv8hooKf3hnYGPUlAK5sb6D1cx9f6AKs2Zij3fJVX8u1Kn3vQNVq ghyk4N2d0ZnEQ1NBl8Lfkgj5ykKuJZKEOM8PbRHm6zEs1Uir8L3aD8gL7eR7RNmMSZemBSbCpXq9 u3EFJ4ekTCJo6getq8QxyK/kTZVWz4gM05LhHUOTvEbpq/7bwjk2dCpa0ROeR5Lwdww/Uy7/n1Af K1q4PEkOEZregQweoK9VKFwmdH1ziDxUfRSxr6A0VKOv3Qqwt7P78lG5lH1DNZ9xCt8W3qrspwOq wY= X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:EVjTvshynRM=:oj6gH32Ie0JMk3jwUU7SjQ L9uQMqjJ5k3YEPDEMXJ6rAjz0+sMxc6rVyEAHpHI1BvB4nFrXBvkvBbchQUq5t7mAFxIgdg08 ddelQW0Vr16/2ejszizw8Rq4iNbq0jyPXkhgobAtzpXyUn7mpsq58LWHaIKklHI333JX+MLiG EQh/VS9Pi6WyoS7/yP9Hw/NGisyRiBwn0pNUf2cx/ok4WFwhUXjcDHxsUq5HUnvEqKZmsIaIE VZa5IZBI6DIodDEPHSn9+ov/XZ/VVIO5h49CQTGMh38HIU9xbwNWOyeGAH6UgmjJx5Iww6hah awZfuWpOtcon+pq+ByqGNjgQxbwfUliM0boJGG9ODSBLfz8ik146F2K6kEfXMoXmUHAmvzabo 1qshB/tGhETBWT+fG/c6HaVevZQ7RGHsZ7BjcejSu+LD8tBllAfDz8Hh2cQQJ4mviEWAh8h7J Br+88lsiRUgf0imkfW07or2Dov+yJS3D5ewypGtvxHfUqPOSBtuOdJZyMen0goNF6Dc9WbLqn acd6E4eSrWANevczDyij3ZOXsdnhit+400o/KqjRiFN39XlWTRbsMAdBPytmY4UDCEhKyQEKq csFR+nzSGWIUIcDzGgWP764XbAh4TLQQsxFETrfoCX8GqlMm9dFCpxTfZl8Ha6USHfYwxxnpw zONgSdrYR1KLIUqM4NdBfgV4rSLUlTJE0TWLSoPN4zTfAALibdJbrPmFslogGHrLMLOE= Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > Gesendet: Sonntag, 02. August 2020 um 02:03 Uhr > Von: "Chun-Kuang Hu" > An: "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" > Betreff: Re: [PATCH v2 1/5] drm/mediatek: config component output by dev= ice node port > > + > > + if (comp_type !=3D MTK_DSI && comp_type !=3D MTK_DPI) = { > > + port =3D of_graph_get_port_by_id(node, 0); > > + if (!port) > > + continue; > > + ep =3D of_get_child_by_name(port, "endpoint"); > > + of_node_put(port); > > + if (!ep) > > + continue; > > + remote =3D of_graph_get_remote_port_parent(ep)= ; > > + of_node_put(ep); > > + if (!remote) > > + continue; > > + of_id =3D of_match_node(mtk_ddp_comp_dt_ids, r= emote); > > + if (!of_id) > > + continue; > > + comp_type =3D (enum mtk_ddp_comp_type)of_id->d= ata; > > + for (i =3D 0; i < private->data->main_len - 1;= i++) > > + if (private->data->main_path[i] =3D=3D= comp_id) > > + private->data->main_path[i + 1= ] =3D > > + mtk_ddp_comp_get_id(node, comp= _type); > > + for (i =3D 0; i < private->data->ext_len - 1; = i++) > > + if (private->data->ext_path[i] =3D=3D = comp_id) > > + private->data->ext_path[i + 1]= =3D > > + mtk_ddp_comp_get_id(node, comp= _type); > > + } > > The port property is not defined in binding document [1], so define it > in binding document first. > > [1] https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/t= ree/Documentation/devicetree/bindings/display/mediatek/mediatek,disp.txt?h= =3Dv5.8-rc7 hi, would be the following enough for describing the ports? Port binding =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D some nodes like - connector (e.g. hdmi-connector) - bls (mediatek,mt7623-disp-pwm) - hdmix (mediatek,mt7623-hdmi) can have port bindings to connect each other. Each port can have only 1 en= dpoint more detail about ports/endpoints in ../../media/video-interfaces.txt hdmi-connector is described here: ../connector/hdmi-connector.txt example: connector { compatible =3D "hdmi-connector"; port { hdmi_connector_in: endpoint { remote-endpoint =3D <&hdmi0_out>; }; }; }; &bls { status =3D "okay"; port { bls_out: endpoint { remote-endpoint =3D <&dpi0_in>; }; }; }; &dpi0 { status =3D "okay"; ports { #address-cells =3D <1>; #size-cells =3D <0>; port@0 { reg =3D <0>; dpi0_out: endpoint { remote-endpoint =3D <&hdmi0_in>; }; }; port@1 { reg =3D <1>; dpi0_in: endpoint { remote-endpoint =3D <&bls_out>; }; }; }; }; &hdmi0 { ports { #address-cells =3D <1>; #size-cells =3D <0>; port@0 { reg =3D <0>; hdmi0_in: endpoint { remote-endpoint =3D <&dpi0_out>; }; }; port@1 { reg =3D <1>; hdmi0_out: endpoint { remote-endpoint =3D <&hdmi_connector_in>; }; }; }; }; regards Frank