Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ARM: dts: ux500: Use "arm,pl031" compatible for PL031

The Ux500 device tree uses "arm,rtc-pl031" as compatible for PL031.
All other boards in Linux describe it using "arm,pl031" instead.
This works because the compatible is not actually used in Linux:
AMBA devices get probed based on "arm,primecell" and their peripheral ID.

Nevertheless, some other projects (e.g. U-Boot) rely on the compatible
to probe the device with the correct driver. Those will look for
"arm,pl031" instead of "arm,rtc-pl031", preventing the RTC from being
probed.

Change it to "arm,pl031" to match all other boards.

Signed-off-by: Stephan Gerhold <stephan@gerhold.net>
Link: https://lore.kernel.org/r/20191124205110.48031-1-stephan@gerhold.net
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>

authored by

Stephan Gerhold and committed by
Linus Walleij
b2ee5877 02234ee9

+1 -1
+1 -1
arch/arm/boot/dts/ste-dbx5x0.dtsi
··· 340 340 }; 341 341 342 342 rtc@80154000 { 343 - compatible = "arm,rtc-pl031", "arm,primecell"; 343 + compatible = "arm,pl031", "arm,primecell"; 344 344 reg = <0x80154000 0x1000>; 345 345 interrupts = <GIC_SPI 18 IRQ_TYPE_LEVEL_HIGH>; 346 346