Skip to content
/ m24lc512 Public

Microchip 24LC512 EEPROM I2C linux kernel module

License

Notifications You must be signed in to change notification settings

artms/m24lc512

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

STOP!!!

Caution

If you're looking for Microchip 24LC512 linux kernel module - use upstream at24 module instead.

This module is strictly for learning purposes!

Device Tree section for 24LC512 using at24 module, make sure to put it into appropriate i2c section:

m24lc512_eeprom: eeprom@50 {
	compatible = "microchip,24lc512", "atmel,24c512";
	reg = <0x50>;
	size = 65536;
	address-width = 16;
	pagesize = 128;
};

Compilation

Install linux kernel headers, gcc, make on your favorite linux distribution and then run make. Module can be inserted using insmod and remove rmmod. Do keep in mind you will need to have device tree configured to make sure module detects hw. Device tree can be used the same as above though other than reg and compatible the rest of parameters are ignored.

About

Microchip 24LC512 EEPROM I2C linux kernel module

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published