linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] ARM: dts: at91: usb_a9g20: add SPI EEPROM
@ 2025-04-03  6:43 Wolfram Sang
  2025-04-11 14:31 ` Claudiu Beznea
  0 siblings, 1 reply; 2+ messages in thread
From: Wolfram Sang @ 2025-04-03  6:43 UTC (permalink / raw)
  To: linux-arm-kernel
  Cc: Wolfram Sang, Nicolas Ferre, Alexandre Belloni, Claudiu Beznea,
	Rob Herring, Krzysztof Kozlowski, Conor Dooley, devicetree

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 <wsa+renesas@sang-engineering.com>
---
 arch/arm/boot/dts/microchip/usb_a9g20.dts | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

diff --git a/arch/arm/boot/dts/microchip/usb_a9g20.dts b/arch/arm/boot/dts/microchip/usb_a9g20.dts
index bdaf35c6526e..555291cd30b3 100644
--- a/arch/arm/boot/dts/microchip/usb_a9g20.dts
+++ b/arch/arm/boot/dts/microchip/usb_a9g20.dts
@@ -12,3 +12,17 @@ / {
 	model = "Calao USB A9G20";
 	compatible = "calao,usb-a9g20", "atmel,at91sam9g20", "atmel,at91sam9";
 };
+
+&spi0 {
+	cs-gpios = <&pioC 11 GPIO_ACTIVE_LOW>;
+	status = "okay";
+	/* TODO: Some revisions might have a dataflash here instead of an EEPROM */
+	eeprom@0 {
+		compatible = "st,m95640", "atmel,at25";
+		reg = <0>;
+		spi-max-frequency = <2000000>;
+		size = <8192>;
+		pagesize = <32>;
+		address-width = <16>;
+	};
+};
-- 
2.47.2



^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] ARM: dts: at91: usb_a9g20: add SPI EEPROM
  2025-04-03  6:43 [PATCH] ARM: dts: at91: usb_a9g20: add SPI EEPROM Wolfram Sang
@ 2025-04-11 14:31 ` Claudiu Beznea
  0 siblings, 0 replies; 2+ messages in thread
From: Claudiu Beznea @ 2025-04-11 14:31 UTC (permalink / raw)
  To: Wolfram Sang, linux-arm-kernel
  Cc: Nicolas Ferre, Alexandre Belloni, Rob Herring,
	Krzysztof Kozlowski, Conor Dooley, devicetree



On 03.04.2025 09:43, Wolfram Sang wrote:
> 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 <wsa+renesas@sang-engineering.com>

Applied to at91-dt, thanks!


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2025-04-11 14:44 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-04-03  6:43 [PATCH] ARM: dts: at91: usb_a9g20: add SPI EEPROM Wolfram Sang
2025-04-11 14:31 ` Claudiu Beznea

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).