]> git.apps.os.sepia.ceph.com Git - ceph-client.git/commitdiff
ARM: dts: at91: usb_a9g20: add SPI EEPROM
authorWolfram Sang <wsa+renesas@sang-engineering.com>
Thu, 3 Apr 2025 06:43:37 +0000 (08:43 +0200)
committerClaudiu Beznea <claudiu.beznea@tuxon.dev>
Fri, 11 Apr 2025 07:39:33 +0000 (10:39 +0300)
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>
Link: https://lore.kernel.org/r/20250403064336.4846-2-wsa+renesas@sang-engineering.com
Signed-off-by: Claudiu Beznea <claudiu.beznea@tuxon.dev>
arch/arm/boot/dts/microchip/usb_a9g20.dts

index a2f748141d4b514b28f8c9d44b16b487fccdeda5..16caca3ec00d1a223500af2d3d5f19c3d26af18e 100644 (file)
        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>;
+       };
+};