Table continued from the previous page...
Option Values Default Value Description
CONFIG_RTC_INTF_PROC y/m/n y Use RTC through the proc
interface
CONFIG_RTC_INTF_DEV y/m/n y Enable RTC to use /dev
interface
Source Files
The driver source is maintained in the Linux kernel source tree.
Source File Description
drivers/rtc/ Linux RTC driver
Device Tree Binding
Preferred node name: rtc
Property Type Status Description
compatible string Required Should be "dallas,ds3232"
Default node:
i2c@3000 {
#address-cells = <1>;
#size-cells = <0>;
compatible = "fsl-i2c";
reg = <0x3000 0x100>;
interrupts = <43 2>;
interrupt-parent = <&mpic>;
dfsrr;
rtc@68 {
compatible = "dallas,ds3232";
reg = <0x68>;
};
};
Verification in Linux
Here is the rtc booting log
...
rtc-ds3232 1-0068: rtc core: registered ds3232 as rtc0
MC object device driver dpaa2_rtc registered
rtc-ds3232 0-0068: setting system clock to 2000-01-01 00:00:51 UTC (946684851)
...
NOTE: Please refer to the related DTS file to enable the RTC driver before building.
Device Drivers
Layerscape LS1028A BSP User Guide, Rev. 0.3, 04/2019
NXP Semiconductors
57