Hello all.<div><br></div><div>1) Is there an ability to specify in .dts an mtd_concat partition that consists of several parts of a same flash drive?</div><div>For example, let there be 2MB flash drive and for some hardware limitations u-boot can be stored only at 1MB offset. So, can I specify an mtd device to own [0 -- 1MB] and [1.5MB -- 2MB]? As far as I can see (from the drivers/mtd/ofpart.c) there is no support for such a feature.</div>
<div><br></div><div>2) If the answer on the previous question is "no". What shall be the most natural way to enhance the dts format? As for me it seems to be reasonable to allow partition regs description to consists more then of 2 values (N pairs). Example is below:</div>
<div><br></div><div>nor-flash@0,0 {</div><div> compatible = "amd,s29gl01gp", "cfi-flash";</div><div> bank-width = <2>;</div><div> reg = <0x0 0x200000>;</div><div> #address-cells = <1>;</div>
<div> #size-cells = <1>;</div><div><br></div><div> partition@100000 {</div><div> label = "uboot";</div><div> reg = <0x100000 0x80000>;</div><div> read-only;</div><div> };</div>
<div><br></div><div> partition@0 {</div><div> label = "user";</div><div> reg = <0x000000 0x100000</div><div> 0x180000 0x80000>;</div><div> };</div><div>};<br>-- <br>Regards,<div>
Stas.</div><br>
</div>