Skip to content

Commit 8120393

Browse files
vpelletierpalmer-dabbelt
authored andcommitted
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>
1 parent ea81b91 commit 8120393

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

arch/riscv/boot/dts/sifive/hifive-unmatched-a00.dts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,16 @@
5959
interrupts = <6 IRQ_TYPE_LEVEL_LOW>;
6060
};
6161

62+
eeprom@54 {
63+
compatible = "microchip,24c02", "atmel,24c02";
64+
reg = <0x54>;
65+
vcc-supply = <&vdd_bpro>;
66+
label = "board-id";
67+
pagesize = <16>;
68+
read-only;
69+
size = <256>;
70+
};
71+
6272
pmic@58 {
6373
compatible = "dlg,da9063";
6474
reg = <0x58>;

0 commit comments

Comments
 (0)