1
0
Fork 0

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>
hifive-unleashed-5.2
Martin Blumenstingl 2019-04-13 18:34:21 +02:00 committed by Kevin Hilman
parent 07f9da2900
commit f6eb973db2
3 changed files with 19 additions and 0 deletions

View File

@ -252,6 +252,15 @@
#size-cells = <0>;
status = "disabled";
};
rtc: rtc@740 {
compatible = "amlogic,meson6-rtc";
reg = <0x740 0x14>;
interrupts = <GIC_SPI 72 IRQ_TYPE_EDGE_RISING>;
#address-cells = <1>;
#size-cells = <1>;
status = "disabled";
};
};
usb0: usb@c9040000 {

View File

@ -541,6 +541,11 @@
compatible = "amlogic,meson8-pwm", "amlogic,meson8b-pwm";
};
&rtc {
compatible = "amlogic,meson8-rtc";
resets = <&reset RESET_RTC>;
};
&saradc {
compatible = "amlogic,meson8-saradc", "amlogic,meson-saradc";
clocks = <&clkc CLKID_XTAL>,

View File

@ -510,6 +510,11 @@
compatible = "amlogic,meson8b-pwm";
};
&rtc {
compatible = "amlogic,meson8b-rtc";
resets = <&reset RESET_RTC>;
};
&saradc {
compatible = "amlogic,meson8b-saradc", "amlogic,meson-saradc";
clocks = <&clkc CLKID_XTAL>,