Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Info on how to modify device tree for EEPROM driver support #6

Open
zsaleeba opened this issue Nov 28, 2022 · 3 comments
Open

Info on how to modify device tree for EEPROM driver support #6

zsaleeba opened this issue Nov 28, 2022 · 3 comments

Comments

@zsaleeba
Copy link

Thanks for this very handy program. I want to use it to write to the EEPROM and I've configured my kernel with CONFIG_AT24=m. I've looked through the dts files and I'm uncertain about the changes I should make to enable the driver. Would it be possible to add an example in the README.md of the device tree changes necessary to enable it?

I'm using a TX2 NX (soc type 186) for what it's worth, which I believe has the EEPROM on i2c bus 7 at address 0x50.

Thanks

@madisongh
Copy link
Member

I didn't include those details because they are different for each of the modules, and they can change across Linux kernel versions.

This is what I use in the device tree for my custom TX2-based device with the 4.9 kernel:

	i2c@c250000 {
		eeprom@50 {
			compatible = "atmel,24c02";
			reg = <0x50>;
		};
	};

This should work for the TX2-NX as well, since the CVM EEPROM is on the same I2C bus.

@zsaleeba
Copy link
Author

Thanks. That's super useful to me.

I still think it'd be handy to include it in the README.md, even if just as an example. But whatever you think.

@Aufschlauer
Copy link

This is what I use in the device tree for my custom TX2-based device with the 4.9 kernel:

	i2c@c250000 {
		eeprom@50 {
			compatible = "atmel,24c02";
			reg = <0x50>;
		};
	};

Just to add another Jetson device:
I've successfully modified the Jetson Nano EEPROM with Kernel 4.9 with this device-tree patch:

+       i2c@7000c500 {
+               eeprom@50 {
+                       compatible = "atmel,24c02";
+                       reg = <0x50>;
+               };
+       };

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants