提交 f6eb973d 编写于 作者: M Martin Blumenstingl 提交者: 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: NMartin Blumenstingl <martin.blumenstingl@googlemail.com>
Signed-off-by: NKevin Hilman <khilman@baylibre.com>
上级 07f9da29
......@@ -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 {
......
......@@ -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>,
......
......@@ -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>,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册