diff mbox

[U-Boot,1/2] rockchip: phycore: Add ID page of M24C32-D EEPROM

Message ID 1500371591-44762-1-git-send-email-w.egorov@phytec.de
State Accepted
Commit c03635c3d14c5402229fcfacedbbdff48f3de221
Delegated to: Philipp Tomsich
Headers show

Commit Message

Wadim Egorov July 18, 2017, 9:53 a.m. UTC
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>
---
 arch/arm/dts/rk3288-phycore-som.dtsi | 8 ++++++++
 1 file changed, 8 insertions(+)

Comments

Philipp Tomsich July 19, 2017, 7:57 a.m. UTC | #1
> 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>
> ---
>  arch/arm/dts/rk3288-phycore-som.dtsi | 8 ++++++++
>  1 file changed, 8 insertions(+)
> 

Acked-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
Philipp Tomsich July 26, 2017, 4:52 p.m. UTC | #2
> 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>
> ---
>  arch/arm/dts/rk3288-phycore-som.dtsi | 8 ++++++++
>  1 file changed, 8 insertions(+)
> 

Reviewed-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
Philipp Tomsich July 27, 2017, 8:31 a.m. UTC | #3
> 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>
> ---
>  arch/arm/dts/rk3288-phycore-som.dtsi | 8 ++++++++
>  1 file changed, 8 insertions(+)
> 

Applied to u-boot-rockchip, thanks!
diff mbox

Patch

diff --git a/arch/arm/dts/rk3288-phycore-som.dtsi b/arch/arm/dts/rk3288-phycore-som.dtsi
index fd463f4..02d1196 100644
--- a/arch/arm/dts/rk3288-phycore-som.dtsi
+++ b/arch/arm/dts/rk3288-phycore-som.dtsi
@@ -61,6 +61,7 @@ 
 	aliases {
 		rtc0 = &i2c_rtc;
 		rtc1 = &rk818;
+		eeprom0 = &i2c_eeprom_id;
 	};
 
 	ext_gmac: external-gmac-clock {
@@ -383,6 +384,13 @@ 
 		pagesize = <32>;
 	};
 
+	/* M24C32-D Identification page */
+	i2c_eeprom_id: eeprom@58 {
+		compatible = "atmel,24c32";
+		reg = <0x58>;
+		pagesize = <32>;
+	};
+
 	vdd_cpu: regulator@60 {
 		compatible = "fcs,fan53555";
 		reg = <0x60>;