Signed-off-by: Andrey Smirnov <andrew.smirnov@xxxxxxxxx> --- arch/arm/dts/imx6qdl-zii-rdu2.dtsi | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/arch/arm/dts/imx6qdl-zii-rdu2.dtsi b/arch/arm/dts/imx6qdl-zii-rdu2.dtsi index bfc75ba60..937fc5d67 100644 --- a/arch/arm/dts/imx6qdl-zii-rdu2.dtsi +++ b/arch/arm/dts/imx6qdl-zii-rdu2.dtsi @@ -47,6 +47,12 @@ compatible = "barebox,environment"; device-path = &nor_flash, "partname:barebox-environment"; }; + + ubootenv { + compatible = "barebox,uboot-environment"; + device-path-0 = &usdhc4, "partname:uboot-environment-0"; + device-path-1 = &usdhc4, "partname:uboot-environment-1"; + }; }; device-info { @@ -249,6 +255,27 @@ dr_mode = "otg"; }; +&usdhc4 { + partitions { + compatible = "fixed-partitions"; + #address-cells = <1>; + #size-cells = <1>; + + /* + * Layout info is taken from /etc/fw_env.config + */ + partition@c0000 { + label = "uboot-environment-0"; + reg = <0xc0000 0x4000>; + }; + + partition@cc800 { + label = "uboot-environment-1"; + reg = <0xcc800 0x4000>; + }; + }; +}; + &gpio3 { pinctrl-names = "default"; pinctrl-0 = <&pinctrl_gpio3_hog>; -- 2.21.0 _______________________________________________ barebox mailing list barebox@xxxxxxxxxxxxxxxxxxx http://lists.infradead.org/mailman/listinfo/barebox