summary refs log tree commit diff
path: root/arch
diff options
context:
space:
mode:
authorVincent Pelletier <plr.vincent@gmail.com>2021-11-16 23:57:38 +0000
committerPalmer Dabbelt <palmer@rivosinc.com>2021-12-16 21:27:21 -0800
commit8120393b74b31bbaf293f59896de6b0d50febc48 (patch)
tree2de2ffd779b12b49ba2810dd185fb7892a7276f3 /arch
parentea81b91e4e256b0bb75d47ad3a5c230b2171a005 (diff)
downloadlinux-8120393b74b31bbaf293f59896de6b0d50febc48.tar.gz
riscv: dts: sifive unmatched: Expose the board ID eeprom
Mark it as read-only as it is factory-programmed with identifying
information, and no executable nor configuration:
- eth MAC address
- board model (PCB version, BoM version)
- board serial number
Accidental modification would cause misidentification which could brick
the board, so marking read-only seem like both a safe and non-constraining
choice.

Signed-off-by: Vincent Pelletier <plr.vincent@gmail.com>
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
Diffstat (limited to 'arch')
-rw-r--r--arch/riscv/boot/dts/sifive/hifive-unmatched-a00.dts10
1 files changed, 10 insertions, 0 deletions
diff --git a/arch/riscv/boot/dts/sifive/hifive-unmatched-a00.dts b/arch/riscv/boot/dts/sifive/hifive-unmatched-a00.dts
index f8648ee1785a..d1f2289e529b 100644
--- a/arch/riscv/boot/dts/sifive/hifive-unmatched-a00.dts
+++ b/arch/riscv/boot/dts/sifive/hifive-unmatched-a00.dts
@@ -59,6 +59,16 @@
 		interrupts = <6 IRQ_TYPE_LEVEL_LOW>;
 	};
 
+	eeprom@54 {
+		compatible = "microchip,24c02", "atmel,24c02";
+		reg = <0x54>;
+		vcc-supply = <&vdd_bpro>;
+		label = "board-id";
+		pagesize = <16>;
+		read-only;
+		size = <256>;
+	};
+
 	pmic@58 {
 		compatible = "dlg,da9063";
 		reg = <0x58>;