Hi ufnguru,
since I have some troubles on LVDS of iMX8MP board, I am navigating on several source of information, this thread included.
As suggestion, I recommend to you read the following documentation on kernel sources (repo is https://github.com/nxp-real-time-edge-sw/real-time-edge-linux, branch is linux_6.1.22):
[1] - $ROOT/Documentation/devicetree/bindings/display/imx/ldb.txt
[2] - $ROOT/Documentation/devicetree/bindings/display/bridge/fsl,ldb.yaml
They refers to two different kernel configuration options, hence two different source files, but with the same "compatible" property ""
In a short sentences dotted list list I understood the followings:
a- ldb component has 3 ports:
port@0 is the input port, linked with lcdif2 module
port@1 is an output port, linked with lvds0 phy and external module
port@2 is an other output port, linked with lvds1 phy and external module
b- ldb component has two channel
c- each ldb channel, imx8mp, has an output port linked to panlel/displayexternal-bridge
Hence, I suppose
- for LVDS0 output, the node "lvds-channel@0" shall have defined two subnodes: port@0 and port@1
- for LVDS1 output, the node "lvds-channel@1" shall have defined two subnodes: port@0 and port@2
I hope some NXP people can confirm (or not) my assertions.
Hoping to be useful.