1# Copyright (c) 2019 Vestas Wind Systems A/S 2# Copyright (c) 2018, Nordic Semiconductor 3# SPDX-License-Identifier: Apache-2.0 4 5description: | 6 I2C EEPROMs compatible with Atmel's AT24 family 7 8 There are multiple vendors manufacturing I2C EEPROMs compatible with the programming model of the 9 Atmel AT24. 10 11 Examples of compatible EEPROM families: 12 - Microchip AT24xxx 13 - ST M24xxx 14 15 Each of these can be represented by a set of common parameters (EEPROM size, page size, address 16 width, and timeout) available from the datasheet of the specific EEPROM. The compatible string for 17 these can list the specific EEPROM vendor and model along with the vendor EEPROM family as long as 18 the least-specific compatible entry is "atmel,at24". 19 20 Example devicetree node describing a ST M24M01 EEPROM on the i2c0 bus: 21 22 &i2c0 { 23 status = "okay"; 24 clock-frequency = <I2C_BITRATE_FAST>; 25 26 eeprom@56 { 27 compatible = "st,m24m01", "st,m24xxx", "atmel,at24"; 28 reg = <0x56>; 29 size = <DT_SIZE_K(128)>; 30 pagesize = <256>; 31 address-width = <16>; 32 timeout = <5>; 33 }; 34 }; 35 36compatible: "atmel,at24" 37 38include: ["atmel,at2x-base.yaml", i2c-device.yaml] 39