enabling atmel AT25 SPI EEPROM SUPPORT

Hi, 

   I'm trying to use an AT25 SPI EEPROM. I have built and modified the example in "..zephyr\samples\drivers\eeprom" adding the following node to the dts file shown below...

&spi3 {
	pinctrl-0 = <&spi3_default>;
	pinctrl-1 = <&spi3_sleep>;
	pinctrl-names = "default", "sleep";
	cs-gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
    status = "okay";

	at25db0: at25db041e@0 {
		compatible = "atmel,at25";
		reg = <0>;
		spi-max-frequency = <8000000>;
        size = <DT_SIZE_K(512)>;
		pagesize = <512>;
        address-width = <24>;
		timeout = <5>;
		status = "ok";
	};

It builds and reports no errors on reading or writing but does not actually write data to the at25.,

If I open Kconfig from VSCODE ACTIONS menu (Guiconfig) then under EEPROM there is an option for Atmel AT25 SPI EEPROM support, however it will not let me select it. I have tried adding 

CONFIG_EEPROM_AT25=y
and
CONFIG_EEPROM_AT2X=y
to prj.conf but get a warning that says...
CONFIG_EEPROM_AT25 was assigned the value y, but got the value n. Missing dependencies:
DT_HAS_ATMEL_AT25_ENABLED
I guess that DT_HAS_ATMEL_AT25_ENABLED refers to the device tree node?? 
I've spent hours trying to get the at25 drivers working but have lost the will to live now and might try to write the drivers myself!
HELP!
Using an Nrf9160 and nrk connect SDK2.3.0
Cheers
Duncan
Related