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

ARM: dts: meson: add support for the RTC

The 32-bit Meson SoCs have an RTC block in the AO (always on) area. The
RTC requires an external 32.768 kHz oscillator to work properly. Whether
or not this crystal exists depends on the board, so it has to be added
for each board.dts (instead of adding it somewhere in a generic .dtsi).

Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
Signed-off-by: Kevin Hilman <khilman@baylibre.com>

authored by

Martin Blumenstingl and committed by
Kevin Hilman
f6eb973d 07f9da29

+19
+9
arch/arm/boot/dts/meson.dtsi
··· 252 252 #size-cells = <0>; 253 253 status = "disabled"; 254 254 }; 255 + 256 + rtc: rtc@740 { 257 + compatible = "amlogic,meson6-rtc"; 258 + reg = <0x740 0x14>; 259 + interrupts = <GIC_SPI 72 IRQ_TYPE_EDGE_RISING>; 260 + #address-cells = <1>; 261 + #size-cells = <1>; 262 + status = "disabled"; 263 + }; 255 264 }; 256 265 257 266 usb0: usb@c9040000 {
+5
arch/arm/boot/dts/meson8.dtsi
··· 541 541 compatible = "amlogic,meson8-pwm", "amlogic,meson8b-pwm"; 542 542 }; 543 543 544 + &rtc { 545 + compatible = "amlogic,meson8-rtc"; 546 + resets = <&reset RESET_RTC>; 547 + }; 548 + 544 549 &saradc { 545 550 compatible = "amlogic,meson8-saradc", "amlogic,meson-saradc"; 546 551 clocks = <&clkc CLKID_XTAL>,
+5
arch/arm/boot/dts/meson8b.dtsi
··· 510 510 compatible = "amlogic,meson8b-pwm"; 511 511 }; 512 512 513 + &rtc { 514 + compatible = "amlogic,meson8b-rtc"; 515 + resets = <&reset RESET_RTC>; 516 + }; 517 + 513 518 &saradc { 514 519 compatible = "amlogic,meson8b-saradc", "amlogic,meson-saradc"; 515 520 clocks = <&clkc CLKID_XTAL>,