Describe memory-mapped RAM&ROM chips of bindings
Subsystems (2)
PATCH 2/2 Describe memory-mapped RAM&ROM chips of bindings
--- Documentation/powerpc/booting-without-of.txt | 31 +++++++++++++++++++++++++- 1 files changed, 30 insertions(+), 1 deletions(-)
Documentation/powerpc/booting-without-of.txt +30 -1
@@ -57,7 +57,8 @@ Table of Contents n) 4xx/Axon EMAC ethernet nodes o) Xilinx IP cores p) Freescale Synchronous Serial Interface - q) USB EHCI controllers + q) USB EHCI controllers + r) Memory-mapped RAM & ROM VII - Specifying interrupt information for devices 1) interrupts property
@@ -2816,6 +2817,34 @@ platforms are moved over to use the flattened-device-tree model. big-endian; }; + r) Memory-mapped RAM & ROM + + Dedicated RAM and ROM chips are often used as storage for temporary or + permanent data in embedded devices. Possible usage include non-volatile + storage in battery-backed SRAM, semi-permanent storage in dedicated SRAM + to preserve data accross reboots and firmware storage in dedicated ROM. + + - compatible : should contain the specific model of RAM/ROM chip(s) + used, if known, followed by either "physmap-ram" or "physmap-rom" + - reg : Address range of the RAM/ROM chip + - bank-width : Width (in bytes) of the RAM/ROM bank. Equal to the + device width times the number of interleaved chips. + - device-width : (optional) Width of a single RAM/ROM chip. If + omitted, assumed to be equal to 'bank-width'. + + Similarly to memory-mapped NOR flash, memory-mapped RAM & ROM chips + can be partionned. See the "j) CFI and JEDEC memory-mapped NOR flash" + section for information about how to represent partitions in the + device tree. + + Example: + + mmram@f2000000 { + compatible = "renesas,m5m5w816", "physmap-ram"; + reg = <f2000000 00100000>; + bank-width = <2>; + }; + More devices will be defined as this spec matures.
Signature · 13 lines
1.5.0 -- Laurent Pinchart CSE Semaphore Belgium Chaussée de Bruxelles, 732A B-1410 Waterloo Belgium T +32 (2) 387 42 59 F +32 (2) 387 42 75
Quoted 13 lines
+ Dedicated RAM and ROM chips are often used as storage for
temporary or
+ permanent data in embedded devices. Possible usage include
non-volatile
+ storage in battery-backed SRAM, semi-permanent storage in
dedicated SRAM
+ to preserve data accross reboots and firmware storage in
dedicated ROM.(quoted diff) +2
-0+ + - compatible : should contain the specific model of RAM/ROMchip(s)
+ used, if known, followed by either "physmap-ram" or
"physmap-rom"
Documentation/powerpc/booting-without-of.txt platforms are moved over to use the flattened-device-tree model. · line 2833
Quoted 5 lines
Documentation/powerpc/booting-without-of.txt +5
-0+ - reg : Address range of the RAM/ROM chip + - bank-width : Width (in bytes) of the RAM/ROM bank. Equal to the + device width times the number of interleaved chips. + - device-width : (optional) Width of a single RAM/ROM chip. If + omitted, assumed to be equal to 'bank-width'.
Maybe I'm rehashing some old discussion here, if so, sorry; but why do you have bank-width and device-width here? What useful information does it provide? If this is about saying what the preferred (or only possible) access width is, better names are in order.
Segher
Quoted 19 lines · Segher Boessenkool
Quoted 13 lines
+ Dedicated RAM and ROM chips are often used as storage for
temporary or
+ permanent data in embedded devices. Possible usage include
non-volatile
+ storage in battery-backed SRAM, semi-permanent storage in
dedicated SRAM
+ to preserve data accross reboots and firmware storage in
dedicated ROM.(quoted diff) +2
-0+ + - compatible : should contain the specific model of RAM/ROMchip(s)
+ used, if known, followed by either "physmap-ram" or
"physmap-rom"Documentation/powerpc/booting-without-of.txt platforms are moved over to use the flattened-device-tree model. · line 2833
Quoted 5 lines
Documentation/powerpc/booting-without-of.txt +5
-0+ - reg : Address range of the RAM/ROM chip + - bank-width : Width (in bytes) of the RAM/ROM bank. Equal to the + device width times the number of interleaved chips. + - device-width : (optional) Width of a single RAM/ROM chip. If + omitted, assumed to be equal to 'bank-width'.
Quoted 4 lines
Maybe I'm rehashing some old discussion here, if so, sorry; but why do you have bank-width and device-width here? What useful information does it provide? If this is about saying what the preferred (or only possible) access width is, better names are in order.
device-width isn't used so we can get rid of it. bank-width is used by the map_ram driver for erase operations (mapram_erase in drivers/mtd/chips/map_ram.c). To be honest I'm not sure why it uses such an inefficient approach instead of memsetting the whole area.
Signature · 9 lines
Laurent Pinchart CSE Semaphore Belgium Chaussée de Bruxelles, 732A B-1410 Waterloo Belgium T +32 (2) 387 42 59 F +32 (2) 387 42 75
Quoted 25 lines · Laurent Pinchart
Quoted 19 lines · Segher Boessenkool
Quoted 13 lines
+ Dedicated RAM and ROM chips are often used as storage for
temporary or
+ permanent data in embedded devices. Possible usage include
non-volatile
+ storage in battery-backed SRAM, semi-permanent storage in
dedicated SRAM
+ to preserve data accross reboots and firmware storage in
dedicated ROM.(quoted diff) +2
-0+ + - compatible : should contain the specific model of RAM/ROMchip(s)
+ used, if known, followed by either "physmap-ram" or
"physmap-rom"Documentation/powerpc/booting-without-of.txt platforms are moved over to use the flattened-device-tree model. · line 2833
Quoted 5 lines
Documentation/powerpc/booting-without-of.txt +5
-0+ - reg : Address range of the RAM/ROM chip + - bank-width : Width (in bytes) of the RAM/ROM bank. Equal to the + device width times the number of interleaved chips. + - device-width : (optional) Width of a single RAM/ROM chip. If + omitted, assumed to be equal to 'bank-width'.Quoted 4 lines
Maybe I'm rehashing some old discussion here, if so, sorry; but why do you have bank-width and device-width here? What useful information does it provide? If this is about saying what the preferred (or only possible) access width is, better names are in order.
Quoted 4 lines
device-width isn't used so we can get rid of it. bank-width is used by the
map_ramdriver for erase operations (mapram_eraseindrivers/mtd/chips/map_ram.c). To be honest I'm not sure why it uses such an inefficient approach instead of memsetting the whole area.
Sounds like bank-width is meaningless then, and doesn't belong in the device tree. The shim which instantiates the mtd device from the device tree can make something up.
Signature · 4 lines
David Gibson | I'll have my music baroque, and my code david AT gibson.dropbear.id.au | minimalist, thank you. NOT _the_ _other_ | _way_ _around_! http://www.ozlabs.org/~dgibson