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

ARM: dts: meson8b: odroid-c1: prepare support for the RTC

The Odroid-C1 has the 32.768 kHz oscillator (X3 in the schematics) which
is required for the RTC. A battery can be connected separately (to the
BT1 header) - then the "rtc" node can be enabled manually. By default
the RTC is disabled because the boards typically come without the RTC
battery.

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
09ee9516 6ffdc473

+14
+14
arch/arm/boot/dts/meson8b-odroidc1.dts
··· 124 124 io-channels = <&saradc 8>; 125 125 }; 126 126 127 + rtc32k_xtal: rtc32k-xtal-clk { 128 + /* X3 in the schematics */ 129 + compatible = "fixed-clock"; 130 + clock-frequency = <32768>; 131 + clock-output-names = "RTC32K"; 132 + #clock-cells = <0>; 133 + }; 134 + 127 135 vcc_1v8: regulator-vcc-1v8 { 128 136 /* 129 137 * RICHTEK RT9179 configured for a fixed output voltage of ··· 351 343 pinctrl-names = "default"; 352 344 clocks = <&clkc CLKID_XTAL>; 353 345 clock-names = "clkin0"; 346 + }; 347 + 348 + &rtc { 349 + /* needs to be enabled manually when a battery is connected */ 350 + clocks = <&rtc32k_xtal>; 351 + vdd-supply = <&vdd_rtc>; 354 352 }; 355 353 356 354 &uart_AO {