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

ARM: dts: meson8b: ec100: enable the RTC

The RTC is always enabled on this board since the battery is already
connected in the factory.
According to the schematics the VCC_RTC regulator (which is either
powered by the internal 3.3V or a battery) is connected to the 0.9V
RTC_VDD input of the SoCs.

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
6ffdc473 f6eb973d

+14
+14
arch/arm/boot/dts/meson8b-ec100.dts
··· 88 88 }; 89 89 }; 90 90 91 + rtc32k_xtal: rtc32k-xtal-clk { 92 + /* X2 in the schematics */ 93 + compatible = "fixed-clock"; 94 + clock-frequency = <32768>; 95 + clock-output-names = "RTC32K"; 96 + #clock-cells = <0>; 97 + }; 98 + 91 99 usb_vbus: regulator-usb-vbus { 92 100 /* 93 101 * Silergy SY6288CCAC-GP 2A Power Distribution Switch. ··· 353 345 pinctrl-names = "default"; 354 346 clocks = <&clkc CLKID_XTAL>; 355 347 clock-names = "clkin0"; 348 + }; 349 + 350 + &rtc { 351 + status = "okay"; 352 + clocks = <&rtc32k_xtal>; 353 + vdd-supply = <&vcc_rtc>; 356 354 }; 357 355 358 356 /* exposed through the pin headers labeled "URDUG1" on the top of the PCB */