Commit f6eb973d authored by Martin Blumenstingl's avatar Martin Blumenstingl Committed by Kevin Hilman

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: default avatarMartin Blumenstingl <martin.blumenstingl@googlemail.com>
Signed-off-by: default avatarKevin Hilman <khilman@baylibre.com>
parent 07f9da29
......@@ -252,6 +252,15 @@ i2c_AO: i2c@500 {
#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 {
......
......@@ -541,6 +541,11 @@ &pwm_cd {
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>,
......
......@@ -510,6 +510,11 @@ &pwm_cd {
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>,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment