From: Tomi Valkeinen <tomi.valkeinen@ideasonboard.com>
To: Aradhya Bhatia <aradhya.bhatia@linux.dev>
Cc: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>,
Thomas Zimmermann <tzimmermann@suse.de>,
Maxime Ripard <mripard@kernel.org>,
David Airlie <airlied@gmail.com>,
Laurent Pinchart <laurent.pinchart@ideasonboard.com>,
Simona Vetter <simona@ffwll.ch>, Nishanth Menon <nm@ti.com>,
Vignesh Raghavendra <vigneshr@ti.com>,
Devarsh Thakkar <devarsht@ti.com>,
Praneeth Bajjuri <praneeth@ti.com>, Udit Kumar <u-kumar1@ti.com>,
Jayesh Choudhary <j-choudhary@ti.com>,
Francesco Dolcini <francesco@dolcini.it>,
DRI Development List <dri-devel@lists.freedesktop.org>,
Devicetree List <devicetree@vger.kernel.org>,
Linux Kernel List <linux-kernel@vger.kernel.org>,
Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>,
Jyri Sarha <jyri.sarha@iki.fi>
Subject: Re: [PATCH v5 2/3] dt-bindings: display: ti: Add schema for AM625 OLDI Transmitter
Date: Thu, 13 Feb 2025 15:20:48 +0200 [thread overview]
Message-ID: <cd62bf21-adad-4422-8fac-ebd20e8b39a5@ideasonboard.com> (raw)
In-Reply-To: <8c6e790e-f1b6-46ab-9acf-bdea8076405b@linux.dev>
Hi,
On 13/02/2025 14:33, Aradhya Bhatia wrote:
>>> + ti,companion-oldi:
>>> + $ref: /schemas/types.yaml#/definitions/phandle
>>> + description:
>>> + phandle to companion OLDI transmitter. This property is
>>> mandatory for the
>>> + primarty OLDI TX if the OLDI TXes are expected to work either
>>> in dual-lvds
>>> + mode or in clone mode. This property should point to the
>>> secondary OLDI
>>> + TX.
>>> +
>>> + ti,secondary-oldi:
>>> + type: boolean
>>> + description:
>>> + Boolean property to mark the OLDI transmitter as the secondary
>>> one, when the
>>> + OLDI hardware is expected to run as a companion HW, in cases of
>>> dual-lvds
>>> + mode or clone mode. The primary OLDI hardware is responsible
>>> for all the
>>> + hardware configuration.
>>
>> I think these work, but I'm wondering if we would ever need to check
>> something from the main oldi from the secondary oldi. In that case
>> "crossed phandles" would be better, i.e. something like:
>>
>> (in the first oldi:)
>> ti,slave-oldi = <phandle-to-second-oldi>
>>
>> (in the second oldi:)
>> ti,master-oldi = <phandle-to-first-oldi>
>
> When I had first designed the code and the devicetree for OLDI, it was
> done so with the belief that we wouldn't reqiure a bridge instance for
> the secondary OLDI, at all.
>
> While that idea holds true for dual-lvds configuration, it doesn't so
> for the clone mode configuration. For clone mode, as you pointed out, we
> will require a 2nd bridge instance to configure any of the bridges and
> panels that come after the 2nd OLDI.
>
>
>>
>> Then again, if we ever need that, even with these bindings the driver
>> could find the first oldi, but needs to go via the dss's node.
>
> While it is possible to do it this way, it might not be the cleanest
> one. And _if_ there is a ever a DSS in future with more than 2 OLDI
> TXes, say 4, then the decipher logic may get too complicated.
>
> While I cannot think of any case where the secondary OLDI bridge DT
> might need to access the primary OLDI bridge at the moment, I wonder if
> we should play it safer and have this option anyway.
>
> Maybe something like this?
>
> (primary OLDI)
> ti,primary-oldi;
> ti,companion-oldi = <phandle-to-secondary-oldi>;
>
> (secondary OLDI)
> ti,secondary-oldi;
> ti,companion-oldi = <phandle-to-primary-oldi>;
How is this different than my proposal, except a bit more verbose?
If you're thinking about a 4-OLDI hardware, how would this work there?
(but I want to say that even if it's good to plan for the future, we
shouldn't plan too much based on imaginary hardware =).
Tomi
next prev parent reply other threads:[~2025-02-13 13:20 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-02-09 16:09 [PATCH v5 0/3] drm/tidss: Add OLDI bridge support Aradhya Bhatia
2025-02-09 16:09 ` [PATCH v5 1/3] dt-bindings: display: ti,am65x-dss: Re-indent the example Aradhya Bhatia
2025-02-09 16:09 ` [PATCH v5 2/3] dt-bindings: display: ti: Add schema for AM625 OLDI Transmitter Aradhya Bhatia
2025-02-11 12:24 ` Tomi Valkeinen
2025-02-13 12:33 ` Aradhya Bhatia
2025-02-13 13:20 ` Tomi Valkeinen [this message]
2025-02-14 12:41 ` Aradhya Bhatia
2025-02-19 14:20 ` Rob Herring
2025-02-19 14:22 ` Rob Herring (Arm)
2025-02-09 16:09 ` [PATCH v5 3/3] drm/tidss: Add OLDI bridge support Aradhya Bhatia
2025-02-11 10:57 ` Tomi Valkeinen
2025-02-11 12:25 ` Tomi Valkeinen
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=cd62bf21-adad-4422-8fac-ebd20e8b39a5@ideasonboard.com \
--to=tomi.valkeinen@ideasonboard.com \
--cc=airlied@gmail.com \
--cc=aradhya.bhatia@linux.dev \
--cc=conor+dt@kernel.org \
--cc=devarsht@ti.com \
--cc=devicetree@vger.kernel.org \
--cc=dri-devel@lists.freedesktop.org \
--cc=francesco@dolcini.it \
--cc=j-choudhary@ti.com \
--cc=jyri.sarha@iki.fi \
--cc=krzk+dt@kernel.org \
--cc=laurent.pinchart@ideasonboard.com \
--cc=linux-kernel@vger.kernel.org \
--cc=maarten.lankhorst@linux.intel.com \
--cc=mripard@kernel.org \
--cc=nm@ti.com \
--cc=praneeth@ti.com \
--cc=robh@kernel.org \
--cc=simona@ffwll.ch \
--cc=tzimmermann@suse.de \
--cc=u-kumar1@ti.com \
--cc=vigneshr@ti.com \
/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®