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

[GH#567] I2C: Add AT24 compatible EEPROM #93

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

nandojve
Copy link

Add an AT24 I2C compatible EEPROM driver with below characteristics:

  • Variable page size
  • Capacity up to 512-Kbit (65536 x 8)
  • DumpMemory function
  • LoadMemory function
  • Not compatible with devices that extract P[1-0] bit address from Device Address Byte

Example of usage:

/* Zephyr devicetree */
&i2c1 {
	status = "okay";

	eeprom0: eeprom@50 {
		compatible = "atmel,at24";
		reg = <0x50>;
		status = "okay";
		size = <4096>;
		pagesize = <32>;
		address-width = <16>;
		timeout = <5>;
	};
};
/* repl file */
eeprom0: I2C.AT24_I2CEeprom @ i2c1 0x50
    size : 0x1000
    pageSize: 32

Add an AT24 I2C compatible EEPROM driver with below characteristics:

 - Variable page size
 - Capacity up to 512-Kbit (65536 x 8)
 - DumpMemory function
 - LoadMemory function
 - Not compatible with devices that extract P[1-0] bit address from
   Device Address Byte

Example of usage:

/* Zephyr devicetree */
&i2c1 {
	status = "okay";

	eeprom0: eeprom@50 {
		compatible = "atmel,at24";
		reg = <0x50>;
		status = "okay";
		size = <4096>;
		pagesize = <32>;
		address-width = <16>;
		timeout = <5>;
	};
};

/* repl file */
eeprom0: I2C.AT24_I2CEeprom @ i2c1 0x50
    size : 0x1000
    pageSize: 32

Signed-off-by: Gerson Fernando Budke <[email protected]>
@CLAassistant
Copy link

CLAassistant commented Dec 28, 2023

CLA assistant check
All committers have signed the CLA.

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

Successfully merging this pull request may close these issues.

2 participants