From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 931A7C433FE for ; Sat, 15 Oct 2022 21:49:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:Content-Type: Content-Transfer-Encoding:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:In-Reply-To:From:References:Cc:To:Subject: MIME-Version:Date:Message-ID:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=EQQZbDGwiuCeXjzezFhPSmxZ17lCUD/ymUJhIrWX49M=; b=N7H9H7SteXoaew goVG4Q17icR/JaAnKoyw/YxtnpD8P+UWnt7YSFpp/X+9RKT1oNYgadGFOkPNo8h+PQF4DhnvURdYs J7e6mRb3WTSOtI5vP02wPs8yBCoZ52wiy8UKEsUeRdAAbdtwOhkOQ/imXATidYzm6qrALPmm2XK6+ RMS/cBbRjHA6Pot/MwCkV1M/K8p5EX6A9fVzSUTCKvKgmKhdFCkRUu422VZIPRnuGvseQrUPuobdZ 8xcvnY4h+dn1TJ07Ac5EtvPIm95AhFjPLPSwSXfoJryrshpeIqyDkNiaLsUf5VotUzk9dLWq+GGJ6 d9mNVnjDrhmMOagX+BYw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1ojp1d-0006d2-T5; Sat, 15 Oct 2022 21:48:58 +0000 Received: from phobos.denx.de ([2a01:238:438b:c500:173d:9f52:ddab:ee01]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1ojp1Z-0006cA-RG for linux-arm-kernel@lists.infradead.org; Sat, 15 Oct 2022 21:48:55 +0000 Received: from [127.0.0.1] (p578adb1c.dip0.t-ipconnect.de [87.138.219.28]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: marex@denx.de) by phobos.denx.de (Postfix) with ESMTPSA id ED7C884D45; Sat, 15 Oct 2022 23:48:50 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1665870532; bh=efO60EAuF7m+5LLMLcJOL1METMAdjZQ8wq2m3JU0vKQ=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=oREpGIvumacvfwdguePBsTQ1frq46oe3uDW6qcHDHYfrwaqwNGeky4IvtRXRT53VP i9t1ks2E9s99KFNGBCVHOQxbC+/o6n/Xrv88LfqwAv/5ESmbViVj/qNFmpsCYy83ZM UKKhB+tG3uWRAH6mBTQuyhlBAY70GAaTrvByOGHMoelh83HOM/zFkjXCtVjZzhtxp8 v7VtoU/5KqAcgvTXRQW9V5IR1iX0IE1splCTxh0pqoUFCeh7NXUsVoNfEdbN9qzy/J VE2w22APX6rAKrA/2LilLoQCD/UpVTKrLbeonSiN0OjuEZJdD6/ZHCML8hKY8VKwca SnNa02nfdXlAA== Message-ID: <45f9065d-7257-1050-2664-5ad55d8c14ae@denx.de> Date: Sat, 15 Oct 2022 23:48:50 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.3.2 Subject: Re: [PATCH v7 02/10] drm: bridge: samsung-dsim: Lookup OF-graph or Child node devices Content-Language: en-US To: Jagan Teki , Andrzej Hajda , Inki Dae , Marek Szyprowski , Joonyoung Shim , Seung-Woo Kim , Kyungmin Park , Frieder Schrempf , Fancy Fang , Tim Harvey , Michael Nazzareno Trimarchi , Adam Ford , Neil Armstrong , Robert Foss , Laurent Pinchart , Tommaso Merciai Cc: Matteo Lisi , dri-devel@lists.freedesktop.org, linux-samsung-soc@vger.kernel.org, linux-arm-kernel@lists.infradead.org, NXP Linux Team , linux-amarula References: <20221005151309.7278-1-jagan@amarulasolutions.com> <20221005151309.7278-3-jagan@amarulasolutions.com> From: Marek Vasut In-Reply-To: <20221005151309.7278-3-jagan@amarulasolutions.com> X-Virus-Scanned: clamav-milter 0.103.6 at phobos.denx.de X-Virus-Status: Clean X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20221015_144854_079658_9D44DF30 X-CRM114-Status: GOOD ( 10.10 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On 10/5/22 17:13, Jagan Teki wrote: > The child devices in MIPI DSI can be binding with OF-graph > and also via child nodes. > > The OF-graph interface represents the child devices via > remote and associated endpoint numbers like > > dsi { > compatible = "fsl,imx8mm-mipi-dsim"; > > ports { > port@0 { > reg = <0>; > > dsi_in_lcdif: endpoint@0 { > reg = <0>; > remote-endpoint = <&lcdif_out_dsi>; > }; > }; > > port@1 { > reg = <1>; > > dsi_out_bridge: endpoint { > remote-endpoint = <&bridge_in_dsi>; > }; > }; > }; > > The child node interface represents the child devices via > conventional child nodes on given DSI parent like > > dsi { > compatible = "samsung,exynos5433-mipi-dsi"; > > ports { > port@0 { > reg = <0>; > > dsi_to_mic: endpoint { > remote-endpoint = <&mic_to_dsi>; > }; > }; > }; > > panel@0 { > reg = <0>; > }; > }; > > As Samsung DSIM bridge is common DSI IP across all Exynos DSI > and NXP i.MX8M host controllers, this patch adds support to > lookup the child devices whether its bindings on the associated > host represent OF-graph or child node interfaces. This looks like a good candidate for common/helper code which can be reused by other similar drivers. _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel