/ {
	chosen {
		nordic,pm-ext-flash = &w25q128;
	};
};

/ {
    soc {
        nordic_ram_flash_controller: nordic_ram-flash-controller@0 {
            compatible = "zephyr,sim-flash";
            reg = <0x00000000 DT_SIZE_K(40)>;
            #address-cells = <1>;
            #size-cells = <1>;
            erase-value = <0xff>;
            label = "nordic_ram_flash_flash_controller";

            flash_sim0: flash_sim@0 {
                status = "okay";
                compatible = "soc-nv-flash";
                label = "simulated_flash";
                erase-block-size = <4096>;
                write-block-size = <4>;
                reg = <0x00000000 DT_SIZE_K(256)>;

                partitions {
                    compatible = "fixed-partitions";
                    #address-cells = <1>;
                    #size-cells = <1>;

                    slot2_partition: partition@0 {
                        label = "image-2";
                        reg = <0x00000000 0x00000A000>;
                    };
                };
            };
        };
    };
};

&pinctrl {
    spi0_default_alt: spi0_default_alt {
        group1 {
            psels = <NRF_PSEL(SPIM_SCK, 0, 9)>,
                <NRF_PSEL(SPIM_MOSI, 0, 4)>,
                <NRF_PSEL(SPIM_MISO, 0, 5)>;
        };
    };

    spi0_sleep_alt: spi0_sleep_alt {
        group1 {
            psels = <NRF_PSEL(SPIM_SCK, 0, 9)>,
                <NRF_PSEL(SPIM_MOSI, 0, 4)>,
                <NRF_PSEL(SPIM_MISO, 0, 5)>;
            low-power-enable;
        };
    };
};

&spi1 {
    status = "okay";
    pinctrl-0 = <&spi0_default_alt>;
    pinctrl-1 = <&spi0_sleep_alt>;
    pinctrl-names = "default", "sleep";
    cs-gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
    w25q128: w25q128@0 {
        compatible = "jedec,spi-nor";
        reg = <0>;
        spi-max-frequency = <8000000>;
        label = "W25Q128";
        jedec-id = [ef 40 18];
        size = <0x4000000>;
    };
};

&qspi {
    status = "disabled";
};

&spi0 {
    status = "disabled";
};

&spi2 {
    status = "disabled";
};

&spi3 {
    status = "disabled";
};

&i2c0 {
    status = "disabled";
};

&i2c1 {
    status = "disabled";
};

&i2c2 {
    status = "disabled";
};

&i2c3 {
    status = "disabled";
};

&uart1 {
    status = "disabled";
};

&uart2 {
    status = "disabled";
};

&uart3 {
    status = "disabled";
};
