Platform:
-
Jetson AGX ORIN 64G
-
JetPack version: 6.2.1 (R36.4.4)
-
RTC chip: YSN8025TS (compatible with EPSON RX8025)
-
I2C bus: I2C7 (address 0x32)
Issue Description:
I am trying to add an external RTC (YSN8025TS) to my Jetson AGX ORIN via I2C7. The device is detected on the I2C bus and I can read data from it, but the RTC device does not appear in /sys/class/rtc/.
- I2C detection works - the device is visible at address 0x32,I2C register dump works - I can read data from the chip:
fk@tegra-ubuntu:~$ sudo i2cdetect -r -y 7
[sudo] password for fk:
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
30: -- -- 32 -- -- -- -- -- -- -- -- -- -- -- -- --
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
70: -- -- -- -- -- -- -- --
fk@tegra-ubuntu:~$ sudo i2cdump -f -y 7 0x32
No size specified (using byte-data access)
0 1 2 3 4 5 6 7 8 9 a b c d e f 0123456789abcdef
00: 11 23 17 7f 18 06 26 61 1d 37 00 00 a0 00 23 40 ?#????&a?7..?.#@
10: XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XXXXXXXXXXXXXXXX
20: XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XXXXXXXXXXXXXXXX
30: XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XXXXXXXXXXXXXXXX
40: XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XXXXXXXXXXXXXXXX
50: XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XXXXXXXXXXXXXXXX
60: XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XXXXXXXXXXXXXXXX
70: XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XXXXXXXXXXXXXXXX
80: XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XXXXXXXXXXXXXXXX
90: XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XXXXXXXXXXXXXXXX
a0: XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XXXXXXXXXXXXXXXX
b0: XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XXXXXXXXXXXXXXXX
c0: XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XXXXXXXXXXXXXXXX
d0: XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XXXXXXXXXXXXXXXX
e0: XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XXXXXXXXXXXXXXXX
f0: XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XXXXXXXXXXXXXXXX
What I have done:
- Created a device tree overlay:
/dts-v1/;
/plugin/;
#include <dt-bindings/gpio/tegra234-gpio.h>
#include <dt-bindings/interrupt-controller/irq.h>
/ {
overlay-name = "Jetson RTC ysn8025ts";
jetson-header-name = "Jetson AGX rtc Connector";
compatible = "nvidia,p3737-0000", "nvidia,p3701-0000", "nvidia,tegra234";
fragment@0 {
target-path = "/bus@0/i2c@c250000";
__overlay__ {
status = "okay";
#address-cells = <1>;
#size-cells = <0>;
ysn8025ts: rtc@32 {
compatible = "epson,rx8025", "yxc,ysn8025ts";
reg = <0x32>;
status = "okay";
};
};
};
};
2Applied the overlay using fdtoverlay:
fk@tegra-ubuntu:~$ sudo fdtoverlay -i /boot/dtb/kernel_tegra234-p3737-0000+p3701-0005-nv-back.dtb -o /boot/dtb/kernel_tegra234-p3737-0000+p3701-0005-nv.dtb ./tegra234-p3737-camera-fr_fpa_4a_agx-overlay.dtbo -v
input = /boot/dtb/kernel_tegra234-p3737-0000+p3701-0005-nv-back.dtb
output = /boot/dtb/kernel_tegra234-p3737-0000+p3701-0005-nv.dtb
overlay[0] = ./tegra234-p3737-camera-fr_fpa_4a_agx-overlay.dtbo
3Verified the merged DTB contains the node:
/{
bus@0 {
.....
i2c@c250000 {
compatible = "nvidia,tegra194-i2c";
reg = <0x00 0xc250000 0x00 0x100>;
interrupts = <0x00 0x20 0x04>;
#address-cells = <0x01>;
#size-cells = <0x00>;
status = "okay";
clock-frequency = <0x61a80>;
clocks = <0x03 0x36 0x03 0x66>;
clock-names = "div-clk\0parent";
assigned-clocks = <0x03 0x36>;
assigned-clock-parents = <0x03 0x66>;
resets = <0x03 0x22>;
reset-names = "i2c";
dmas = <0xee 0x00 0xee 0x00>;
dma-names = "rx\0tx";
nvidia,hw-instance-id = <0x07>;
iommus = <0x04 0x04>;
dma-coherent;
phandle = <0x243>;
rtc@32 {
phandle = <0x37d>;
status = "okay";
reg = <0x32>;
compatible = "epson,rx8025\0yxc,ysn8025ts";
};
````
};
__symbols__ {
ysn8025ts = "/bus@0/i2c@c250000/rtc@32";
········
The problem:
The RTC node does not appear under /sys/firmware/devicetree/base/:
fk@tegra-ubuntu:~$ ls /sys/firmware/devicetree/base/bus@0/i2c@c250000/
'#address-cells' clock-frequency compatible dmas name prod-settings resets
assigned-clock-parents clock-names dma-coherent interrupts nvidia,hw-instance-id reg '#size-cells'
assigned-clocks clocks dma-names iommus phandle reset-names status
fk@tegra-ubuntu:~$
The rtc@32 node is missing in the live device tree, even though it exists in the DTB file.
Additionally, /sys/class/rtc/ does not show the new RTC device.
Questions:
-
Why is the device tree node not being recognized by the kernel even though it exists in the merged DTB?
-
Is there any additional driver configuration or kernel config required for the RX8025/YSN8025TS RTC?
-
Is the
epson,rx8025compatible string fully supported in JetPack 6.2.1 (R36.4.4)? -
Does the YSN8025TS require additional properties (e.g., interrupts, clock, wakeup-source) to be properly probed?
Request:
Could you please help me understand why the RTC node is not being instantiated and how to fix this issue? Any guidance on debugging this further would be greatly appreciated.