avionic design with actual uboot and tooling
submodule of avionic design uboot bootloader and with included tools to get you started , read readme.md and readme-tk1-loader.md
This commit is contained in:
35
u-boot/doc/device-tree-bindings/mtd/altera_qspi.txt
Normal file
35
u-boot/doc/device-tree-bindings/mtd/altera_qspi.txt
Normal file
@@ -0,0 +1,35 @@
|
||||
Altera QUADSPI driver
|
||||
|
||||
Required properties:
|
||||
- compatible: Should be "altr,quadspi-1.0"
|
||||
- reg: Address and length of the register set for the device. It contains
|
||||
the information of registers in the same order as described by reg-names
|
||||
- reg-names: Should contain the reg names
|
||||
"avl_csr": Should contain the register configuration base address
|
||||
"avl_mem": Should contain the data base address
|
||||
- #address-cells: Must be <1>.
|
||||
- #size-cells: Must be <0>.
|
||||
- flash device tree subnode, there must be a node with the following fields:
|
||||
- compatible: Should contain the flash name:
|
||||
1. EPCS: epcs16, epcs64, epcs128
|
||||
2. EPCQ: epcq16, epcq32, epcq64, epcq128, epcq256, epcq512, epcq1024
|
||||
3. EPCQ-L: epcql256, epcql512, epcql1024
|
||||
- #address-cells: please refer to /mtd/partition.txt
|
||||
- #size-cells: please refer to /mtd/partition.txt
|
||||
For partitions inside each flash, please refer to /mtd/partition.txt
|
||||
|
||||
Example:
|
||||
|
||||
quadspi_controller_0: quadspi@0x180014a0 {
|
||||
compatible = "altr,quadspi-1.0";
|
||||
reg = <0x180014a0 0x00000020>,
|
||||
<0x14000000 0x04000000>;
|
||||
reg-names = "avl_csr", "avl_mem";
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
flash0: epcq512@0 {
|
||||
compatible = "altr,epcq512";
|
||||
#address-cells = <1>;
|
||||
#size-cells = <1>;
|
||||
};
|
||||
};
|
||||
88
u-boot/doc/device-tree-bindings/mtd/mtd-physmap.txt
Normal file
88
u-boot/doc/device-tree-bindings/mtd/mtd-physmap.txt
Normal file
@@ -0,0 +1,88 @@
|
||||
CFI or JEDEC memory-mapped NOR flash, MTD-RAM (NVRAM...)
|
||||
|
||||
Flash chips (Memory Technology Devices) are often used for solid state
|
||||
file systems on embedded devices.
|
||||
|
||||
- compatible : should contain the specific model of mtd chip(s)
|
||||
used, if known, followed by either "cfi-flash", "jedec-flash",
|
||||
"mtd-ram" or "mtd-rom".
|
||||
- reg : Address range(s) of the mtd chip(s)
|
||||
It's possible to (optionally) define multiple "reg" tuples so that
|
||||
non-identical chips can be described in one node.
|
||||
- bank-width : Width (in bytes) of the bank. Equal to the
|
||||
device width times the number of interleaved chips.
|
||||
- device-width : (optional) Width of a single mtd chip. If
|
||||
omitted, assumed to be equal to 'bank-width'.
|
||||
- #address-cells, #size-cells : Must be present if the device has
|
||||
sub-nodes representing partitions (see below). In this case
|
||||
both #address-cells and #size-cells must be equal to 1.
|
||||
- no-unaligned-direct-access: boolean to disable the default direct
|
||||
mapping of the flash.
|
||||
On some platforms (e.g. MPC5200) a direct 1:1 mapping may cause
|
||||
problems with JFFS2 usage, as the local bus (LPB) doesn't support
|
||||
unaligned accesses as implemented in the JFFS2 code via memcpy().
|
||||
By defining "no-unaligned-direct-access", the flash will not be
|
||||
exposed directly to the MTD users (e.g. JFFS2) any more.
|
||||
- linux,mtd-name: allow to specify the mtd name for retro capability with
|
||||
physmap-flash drivers as boot loader pass the mtd partition via the old
|
||||
device name physmap-flash.
|
||||
- use-advanced-sector-protection: boolean to enable support for the
|
||||
advanced sector protection (Spansion: PPB - Persistent Protection
|
||||
Bits) locking.
|
||||
|
||||
For JEDEC compatible devices, the following additional properties
|
||||
are defined:
|
||||
|
||||
- vendor-id : Contains the flash chip's vendor id (1 byte).
|
||||
- device-id : Contains the flash chip's device id (1 byte).
|
||||
|
||||
For ROM compatible devices (and ROM fallback from cfi-flash), the following
|
||||
additional (optional) property is defined:
|
||||
|
||||
- erase-size : The chip's physical erase block size in bytes.
|
||||
|
||||
The device tree may optionally contain sub-nodes describing partitions of the
|
||||
address space. See partition.txt for more detail.
|
||||
|
||||
Example:
|
||||
|
||||
flash@ff000000 {
|
||||
compatible = "amd,am29lv128ml", "cfi-flash";
|
||||
reg = <ff000000 01000000>;
|
||||
bank-width = <4>;
|
||||
device-width = <1>;
|
||||
#address-cells = <1>;
|
||||
#size-cells = <1>;
|
||||
fs@0 {
|
||||
label = "fs";
|
||||
reg = <0 f80000>;
|
||||
};
|
||||
firmware@f80000 {
|
||||
label ="firmware";
|
||||
reg = <f80000 80000>;
|
||||
read-only;
|
||||
};
|
||||
};
|
||||
|
||||
Here an example with multiple "reg" tuples:
|
||||
|
||||
flash@f0000000,0 {
|
||||
#address-cells = <1>;
|
||||
#size-cells = <1>;
|
||||
compatible = "intel,pc48f4400p0vb", "cfi-flash";
|
||||
reg = <0 0x00000000 0x02000000
|
||||
0 0x02000000 0x02000000>;
|
||||
bank-width = <2>;
|
||||
partition@0 {
|
||||
label = "test-part1";
|
||||
reg = <0 0x04000000>;
|
||||
};
|
||||
};
|
||||
|
||||
An example using SRAM:
|
||||
|
||||
sram@2,0 {
|
||||
compatible = "samsung,k6f1616u6a", "mtd-ram";
|
||||
reg = <2 0 0x00200000>;
|
||||
bank-width = <2>;
|
||||
};
|
||||
25
u-boot/doc/device-tree-bindings/mtd/spi/spi-flash.txt
Normal file
25
u-boot/doc/device-tree-bindings/mtd/spi/spi-flash.txt
Normal file
@@ -0,0 +1,25 @@
|
||||
* MTD SPI driver for serial flash chips
|
||||
|
||||
Required properties:
|
||||
- #address-cells, #size-cells : Must be present if the device has sub-nodes
|
||||
representing partitions.
|
||||
- compatible : Should be the manufacturer and the name of the chip. Bear in
|
||||
mind that the DT binding is not U-Boot-only, but in case of
|
||||
U-Boot, see spi_flash_params_table table in
|
||||
drivers/mtd/spi/sf_params.c for the list of supported chips.
|
||||
- reg : Chip-Select number
|
||||
- spi-max-frequency : Maximum frequency of the SPI bus the chip can operate at
|
||||
|
||||
Optional properties:
|
||||
- memory-map : Address and size of the flash, if memory mapped. This may
|
||||
apply to Intel chipsets, which tend to memory-map flash.
|
||||
|
||||
Example:
|
||||
|
||||
flash: m25p80@0 {
|
||||
#address-cells = <1>;
|
||||
#size-cells = <1>;
|
||||
compatible = "spansion,m25p80";
|
||||
reg = <0>;
|
||||
spi-max-frequency = <40000000>;
|
||||
};
|
||||
Reference in New Issue
Block a user