This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Linux/AM3359: RTC issue in AM335x starter Kit

Part Number: AM3359

Tool/software: Linux

Hello Team

We are using Am335x Starter kit with linux kernel 4.14.0. We are trying to use on board RTC [rtc0] and want to create node in /dev directory [/dev/rtc0] but it seems error while opening rtc0 device.

Attached here with Dmesg log:

1.510849] vrtc: supplied by vbat
[ 1.518148] vio: supplied by vbat
[ 1.523048] vdd1: supplied by vbat
[ 1.528336] vdd2: supplied by vbat
[ 1.531854] random: fast init done
[ 1.538604] vdig1: supplied by vbat
[ 1.543565] vdig2: supplied by vbat
[ 1.548502] vpll: supplied by vbat
[ 1.553415] vdac: supplied by vbat
[ 1.558255] vaux1: supplied by vbat
[ 1.563177] vaux2: supplied by vbat
[ 1.568116] vaux33: supplied by vbat
[ 1.573172] vmmc: supplied by vbat
[ 1.578005] vbb: supplied by vbat
[ 1.583193] omap_i2c 44e0b000.i2c: bus 0 rev0.11 at 400 kHz
[ 1.591178] omap_hsmmc 48060000.mmc: Got CD GPIO
[ 1.763017] mmc0: host does not support reading read-only switch, assuming write-enable
[ 1.775776] mmc0: new high speed SDHC card at address aaaa
[ 1.782016] mmcblk0: mmc0:aaaa SC16G 14.8 GiB
[ 1.791243] mmcblk0: p1 p2 p3
[ 1.804683] input: gpio_buttons0 as /devices/platform/gpio_buttons0/input/input0
[ 1.816033] hctosys: unable to open rtc device (rtc0)
[ 1.821531] omap_hsmmc 481d8000.mmc: card claims to support voltages below defined range
[ 1.830130] lis3_reg: disabling
[ 1.833573] ALSA device list:
[ 1.833579] No soundcards found.
[ 1.855604] mmc1: new SDIO card at address 0001
[ 1.860656] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
[ 1.860744] VFS: Mounted root (ext4 filesystem) on device 179:2.
[ 1.877998] devtmpfs: mounted
[ 1.883925] Freeing unused kernel memory: 1024K
[ 2.196113] systemd[1]: System time before build time, advancing clock.
[ 2.259680] systemd[1]: systemd 234 running in system mode. (+PAM -AUDIT -SELINUX +IMA -APPARMOR +SMACK +SYSVINIT +UTMP -LIBCRYPTSETUP -GCRYPT -GNUTLS +ACL +XZ -LZ4 -S)
[ 2.281941] systemd[1]: Detected architecture arm.

dts and dtsi file are default and rtc is compitible for "ti,am3352-rtc", "ti,da830-rtc". 

In am33xx.dtsi:

===========

rtc: rtc@44e3e000 {
compatible = "ti,am3352-rtc", "ti,da830-rtc";
reg = <0x44e3e000 0x1000>;
interrupts = <75
76>;
ti,hwmods = "rtc";
clocks = <&clkdiv32k_ick>;
clock-names = "int-clk";
};

In am335x-evmsk.dts:

==================

vrtc_reg: regulator@0 {
regulator-always-on;
};

&rtc {
clocks = <&clk_32768_ck>, <&clkdiv32k_ick>;
clock-names = "ext-clk", "int-clk";
};

We are not getting any node in /sys/class/rtc even.

Can you please give your inputs to configure rtc0?

Let me know any further information required.