From: Jean-Francois Moine <moinejf@free.fr>
To: Russell King - ARM Linux <linux@arm.linux.org.uk>
Cc: Liviu Dudau <Liviu.Dudau@arm.com>,
linux-rockchip <linux-rockchip@lists.infradead.org>,
Daniel Vetter <daniel.vetter@ffwll.ch>,
LKML <linux-kernel@vger.kernel.org>,
dri-devel <dri-devel@lists.freedesktop.org>,
LAKML <linux-arm-kernel@lists.infradead.org>,
devicetree@vger.kernel.org
Subject: Re: [PATCH v2 0/2] Improve drm_of_component_probe() and move rockchip to use it
Date: Fri, 25 Dec 2015 10:38:17 +0100 [thread overview]
Message-ID: <20151225103817.3aa1d89433607ee7fbf5181f@free.fr> (raw)
In-Reply-To: <20151224123610.GE8644@n2100.arm.linux.org.uk>
On Thu, 24 Dec 2015 12:36:10 +0000
Russell King - ARM Linux <linux@arm.linux.org.uk> wrote:
> It seems that you're trying to work around a limitation in Linux by
> modifying the hardware representation...
Sorry to come back to this topic, but I think you are wrong.
Looking at the imx6 DTs, the problem comes from the display-subsystem
node which is a pure Linux specific software entity.
If you want to describe only the hardware in the DT, everything is
simple.
A IPU is a image controller with its sub-devices. Seen from the system, it
is like a 'board' with its devices (LCDs, camera...).
When 2 IPUs, there are 2 independant boards.
Here is what could be a pure hardware DT:
/* no display-subsystem */
ipu1: ipu@02400000 { /* image controller / board 1 */
compatible = "fsl,imx6q-ipu";
...
ports = <&ipu1_di0>, <&ipu1_di1>;
};
ipu1_di0: di@0 { /* display interface / crtc 1 */
compatible = "fsl,imx6q-di";
...
ipu1_di0_hdmi: endpoint@1 {
remote-endpoint = <&hdmi_mux_0>;
};
ipu1_di0_mipi: endpoint@2 {
remote-endpoint = <&mipi_mux_0>;
}
...
};
ipu1_di1: di@1 { /* display interface / crtc 2 */
compatible = "fsl,imx6q-di";
...
ipu1_di1_hdmi: endpoint@1 {
remote-endpoint = <&hdmi_mux_1>;
};
ipu1_di1_mipi: endpoint@2 {
remote-endpoint = <&mipi_mux_1>;
}
...
};
ipu2: ipu@02800000 { /* image controller / board 2 */
compatible = "fsl,imx6q-ipu";
...
ports = <&ipu2_di0>, <&ipu2_di1>;
};
ipu2_di0: di@0 { /* display interface / crtc 1 */
compatible = "fsl,imx6q-di";
...
ipu2_di0_hdmi: endpoint@1 {
remote-endpoint = <&hdmi_mux_2>;
};
ipu2_di0_mipi: endpoint@2 {
remote-endpoint = <&mipi_mux_2>;
}
...
};
ipu2_di1: di@1 { /* display interface / crtc 2 */
compatible = "fsl,imx6q-di";
...
ipu2_di1_hdmi: endpoint@1 {
remote-endpoint = <&hdmi_mux_3>;
};
ipu2_di1_mipi: endpoint@2 {
remote-endpoint = <&mipi_mux_3>;
}
...
};
Then, a standard component binding (port->parent) works fine...
(you may note that the same problem exists with audio: the
'simple-card' is also a pure Linux specific software entity)
--
Merry Christmas | ** Breizh ha Linux atav! **
Jef | http://moinejf.free.fr/
prev parent reply other threads:[~2015-12-25 9:38 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-11-20 14:22 Liviu Dudau
2015-11-20 14:22 ` [PATCH v2 1/2] drm: Improve drm_of_component_probe() to correctly handle ports and remote ports Liviu Dudau
2016-02-22 11:51 ` Liviu Dudau
2016-02-22 15:51 ` Russell King - ARM Linux
2016-02-22 15:57 ` Liviu Dudau
2015-11-20 14:22 ` [PATCH v2 2/2] drm/rockchip: Convert the probe function to the generic drm_of_component_probe() Liviu Dudau
2015-11-23 9:39 ` Mark yao
2015-11-23 23:20 ` [PATCH v2 0/2] Improve drm_of_component_probe() and move rockchip to use it Heiko Stübner
2015-12-12 13:29 ` Heiko Stübner
2015-12-22 17:38 ` Liviu Dudau
2015-12-23 1:33 ` Dave Airlie
2015-12-23 9:39 ` Jean-Francois Moine
2015-12-23 10:05 ` Liviu Dudau
2015-12-23 17:20 ` Jean-Francois Moine
2015-12-23 18:59 ` Russell King - ARM Linux
2015-12-24 8:15 ` Jean-Francois Moine
2015-12-24 10:52 ` Russell King - ARM Linux
2015-12-24 12:27 ` Jean-Francois Moine
2015-12-24 12:36 ` Russell King - ARM Linux
2015-12-25 9:38 ` Jean-Francois Moine [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20151225103817.3aa1d89433607ee7fbf5181f@free.fr \
--to=moinejf@free.fr \
--cc=Liviu.Dudau@arm.com \
--cc=daniel.vetter@ffwll.ch \
--cc=devicetree@vger.kernel.org \
--cc=dri-devel@lists.freedesktop.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-rockchip@lists.infradead.org \
--cc=linux@arm.linux.org.uk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®