Commit c03635c3d14c5402229fcfacedbbdff48f3de221

Authored by Wadim Egorov
Committed by Philipp Tomsich
1 parent 3641d346ea

rockchip: phycore: Add ID page of M24C32-D EEPROM

The Identification Page (32 byte) is an additional page which can be written
and (later) permanently locked in Read-only mode.

phyCORE-RK3288 SoMs are using this page to describe the module variant.
This page also contains a MAC.

Our boards can be equipped with a different amount of EEPROMs. To make
this more transparent let's add an alias for the eeprom which stores the
module variant.

Signed-off-by: Wadim Egorov <w.egorov@phytec.de>
Acked-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
Reviewed-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>

Showing 1 changed file with 8 additions and 0 deletions Side-by-side Diff

arch/arm/dts/rk3288-phycore-som.dtsi
... ... @@ -61,6 +61,7 @@
61 61 aliases {
62 62 rtc0 = &i2c_rtc;
63 63 rtc1 = &rk818;
  64 + eeprom0 = &i2c_eeprom_id;
64 65 };
65 66  
66 67 ext_gmac: external-gmac-clock {
... ... @@ -380,6 +381,13 @@
380 381 i2c_eeprom: eeprom@50 {
381 382 compatible = "atmel,24c32";
382 383 reg = <0x50>;
  384 + pagesize = <32>;
  385 + };
  386 +
  387 + /* M24C32-D Identification page */
  388 + i2c_eeprom_id: eeprom@58 {
  389 + compatible = "atmel,24c32";
  390 + reg = <0x58>;
383 391 pagesize = <32>;
384 392 };
385 393