]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: dts: am33xx-l4: Add missing touchscreen clock properties
authorMiquel Raynal <miquel.raynal@bootlin.com>
Mon, 14 Mar 2022 16:34:45 +0000 (17:34 +0100)
committerTony Lindgren <tony@atomide.com>
Thu, 14 Apr 2022 08:38:44 +0000 (11:38 +0300)
commitc68187d5b94c7d7d6a45af6cdb3f6ffa51b6ee15
treeff5b4d786676d8a849a56eb451ce8d2a3f64cf09
parent39aca8e3cfc813c597dcab6e6b1462827ee21604
ARM: dts: am33xx-l4: Add missing touchscreen clock properties

When adding support for TI magadc (Magnetic Stripe Reader and ADC), the
MFD driver common to the touchscreen and the ADC got updated to ease the
insertion of a new DT node for the ADC, with its own compatible, clocks,
etc. Commit 521d9b4f1661 ("mfd: ti_am335x_tscadc: Don't search the tree
for our clock") removed one compatible specific information which was
the clock name, because the clock was looked up from scratch in the DT
while this hardware block was only fed by a single clock, already
defined and properly filled in the DT.

Problem is, this change was only validated with an am437x-based board,
where the clocks are effectively correctly defined and referenced. But
on am33xx, the ADC clock is also correctly defined but is not referenced
with a clock phandle as it ought to be.

The touchscreen bindings clearly state that the clocks/clock-names
properties are mandatory, but they have been forgotten in one DTSI. This
was probably not noticed in the first place because of the clock
actually existing and the clk_get() call going through all the tree
anyway.

Add the missing clock phandles in the am33xx touchscreen description.

Reported-by: H. Nikolaus Schaller <hns@goldelico.com>
Fixes: 521d9b4f1661 ("mfd: ti_am335x_tscadc: Don't search the tree for our clock")
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Tested-by: H. Nikolaus Schaller <hns@goldelico.com>
Message-Id: <20220314163445.79807-1-miquel.raynal@bootlin.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/boot/dts/am33xx-l4.dtsi