diff options
Diffstat (limited to 'arch/arm/dts/imx8mn-evk.dtsi')
-rw-r--r-- | arch/arm/dts/imx8mn-evk.dtsi | 43 |
1 files changed, 28 insertions, 15 deletions
diff --git a/arch/arm/dts/imx8mn-evk.dtsi b/arch/arm/dts/imx8mn-evk.dtsi index ceeb5f8b93..c23075216e 100644 --- a/arch/arm/dts/imx8mn-evk.dtsi +++ b/arch/arm/dts/imx8mn-evk.dtsi @@ -4,21 +4,42 @@ * Copyright (C) 2017 Pengutronix, Lucas Stach <kernel@pengutronix.de> */ +#include "imx8mn.dtsi" + / { chosen { environment-sd { compatible = "barebox,environment"; - device-path = &usdhc2, "partname:barebox-environment"; + device-path = &env_sd2; status = "disabled"; }; environment-emmc { compatible = "barebox,environment"; - device-path = &usdhc3, "partname:barebox-environment"; + device-path = &env_sd3; status = "disabled"; }; }; }; +&flash0 { + partitions { + compatible = "fixed-partitions"; + #address-cells = <1>; + #size-cells = <1>; + + partition@0 { + label = "barebox"; + reg = <0x0 0xe0000>; + }; + + partition@e0000 { + label = "barebox-environment"; + reg = <0xe0000 0x20000>; + }; + }; + +}; + &usdhc2 { #address-cells = <1>; #size-cells = <1>; @@ -28,7 +49,7 @@ reg = <0x0 0xe0000>; }; - partition@e0000 { + env_sd2: partition@e0000 { label = "barebox-environment"; reg = <0xe0000 0x20000>; }; @@ -43,7 +64,7 @@ reg = <0x0 0xe0000>; }; - partition@e0000 { + env_sd3: partition@e0000 { label = "barebox-environment"; reg = <0xe0000 0x20000>; }; @@ -67,17 +88,9 @@ }; &flexspi { - status = "okay"; - pinctrl-names = "default"; pinctrl-0 = <&pinctrl_flexspi0>; +}; - system_flash: flash@0 { - reg = <0>; - compatible = "jedec,spi-nor"; - spi-max-frequency = <80000000>; - spi-tx-bus-width = <4>; - spi-rx-bus-width = <4>; - #address-cells = <1>; - #size-cells = <1>; - }; +&flash0 { + spi-max-frequency = <80000000>; }; |