diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2023-04-28 10:55:52 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2023-05-02 11:25:36 +0200 |
commit | 374e66c1d4b0d82056e6d8bf9f2c37cef6203549 (patch) | |
tree | f8b6f6550cd65508593518b2e657149c39306199 /arch/arm/dts | |
parent | 211004b11f71ca16a5d007a8aa2bbc2ef88f1514 (diff) | |
download | barebox-374e66c1d4b0d82056e6d8bf9f2c37cef6203549.tar.gz barebox-374e66c1d4b0d82056e6d8bf9f2c37cef6203549.tar.xz |
ARM: versatile: Use flash from device tree
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/arm/dts')
-rw-r--r-- | arch/arm/dts/versatile-pb.dts | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/arch/arm/dts/versatile-pb.dts b/arch/arm/dts/versatile-pb.dts index d374f54291..31af9d5e73 100644 --- a/arch/arm/dts/versatile-pb.dts +++ b/arch/arm/dts/versatile-pb.dts @@ -3,8 +3,34 @@ / { model = "ARM Versatile PB"; compatible = "arm,versatile-pb"; + + chosen { + environment-nor { + compatible = "barebox,environment"; + device-path = &env_nor; + }; + }; }; &{/memory} { reg = <0x0 0x04000000>; }; + +&{/flash@34000000} { + partitions { + compatible = "fixed-partitions"; + + #address-cells = <1>; + #size-cells = <1>; + + partition@0 { + label = "barebox"; + reg = <0x0 0x400000>; + }; + + env_nor: partition@400000 { + label = "bareboxenv"; + reg = <0x400000 0x400000>; + }; + }; +}; |