Skip to content

Commit 6f7549b

Browse files
Wolfram Sangclaudiubeznea
authored andcommitted
ARM: dts: at91: usb_a9g20: add SPI EEPROM
Schematics and board layout indicate that versions with a dataflash instead of an EEPROM might exist. Let's handle that once we have hardware to test. Signed-off-by: Wolfram Sang <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Claudiu Beznea <[email protected]>
1 parent 0af2f6b commit 6f7549b

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

arch/arm/boot/dts/microchip/usb_a9g20.dts

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,17 @@
1111
model = "Calao USB A9G20";
1212
compatible = "calao,usb-a9g20", "atmel,at91sam9g20", "atmel,at91sam9";
1313
};
14+
15+
&spi0 {
16+
cs-gpios = <&pioC 11 GPIO_ACTIVE_LOW>;
17+
status = "okay";
18+
/* TODO: Some revisions might have a dataflash here instead of an EEPROM */
19+
eeprom@0 {
20+
compatible = "st,m95640", "atmel,at25";
21+
reg = <0>;
22+
spi-max-frequency = <2000000>;
23+
size = <8192>;
24+
pagesize = <32>;
25+
address-width = <16>;
26+
};
27+
};

0 commit comments

Comments
 (0)