-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Olof Johansson
committed
Dec 20, 2012
1 parent
6e3b545
commit 2e8ba62
Showing
569 changed files
with
9,391 additions
and
5,838 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
--- | ||
refs/heads/master: fb0a20594787f8a1f10389eec46a2cd51fa6a533 | ||
refs/heads/master: f438a830fa21b14efe973500f482e39f793456fa |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 23 additions & 0 deletions
23
trunk/Documentation/devicetree/bindings/mtd/denali-nand.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
* Denali NAND controller | ||
|
||
Required properties: | ||
- compatible : should be "denali,denali-nand-dt" | ||
- reg : should contain registers location and length for data and reg. | ||
- reg-names: Should contain the reg names "nand_data" and "denali_reg" | ||
- interrupts : The interrupt number. | ||
- dm-mask : DMA bit mask | ||
|
||
The device tree may optionally contain sub-nodes describing partitions of the | ||
address space. See partition.txt for more detail. | ||
|
||
Examples: | ||
|
||
nand: nand@ff900000 { | ||
#address-cells = <1>; | ||
#size-cells = <1>; | ||
compatible = "denali,denali-nand-dt"; | ||
reg = <0xff900000 0x100000>, <0xffb80000 0x10000>; | ||
reg-names = "nand_data", "denali_reg"; | ||
interrupts = <0 144 4>; | ||
dma-mask = <0xffffffff>; | ||
}; |
49 changes: 49 additions & 0 deletions
49
trunk/Documentation/devicetree/bindings/mtd/flctl-nand.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
FLCTL NAND controller | ||
|
||
Required properties: | ||
- compatible : "renesas,shmobile-flctl-sh7372" | ||
- reg : Address range of the FLCTL | ||
- interrupts : flste IRQ number | ||
- nand-bus-width : bus width to NAND chip | ||
|
||
Optional properties: | ||
- dmas: DMA specifier(s) | ||
- dma-names: name for each DMA specifier. Valid names are | ||
"data_tx", "data_rx", "ecc_tx", "ecc_rx" | ||
|
||
The DMA fields are not used yet in the driver but are listed here for | ||
completing the bindings. | ||
|
||
The device tree may optionally contain sub-nodes describing partitions of the | ||
address space. See partition.txt for more detail. | ||
|
||
Example: | ||
|
||
flctl@e6a30000 { | ||
#address-cells = <1>; | ||
#size-cells = <1>; | ||
compatible = "renesas,shmobile-flctl-sh7372"; | ||
reg = <0xe6a30000 0x100>; | ||
interrupts = <0x0d80>; | ||
|
||
nand-bus-width = <16>; | ||
|
||
dmas = <&dmac 1 /* data_tx */ | ||
&dmac 2;> /* data_rx */ | ||
dma-names = "data_tx", "data_rx"; | ||
|
||
system@0 { | ||
label = "system"; | ||
reg = <0x0 0x8000000>; | ||
}; | ||
|
||
userdata@8000000 { | ||
label = "userdata"; | ||
reg = <0x8000000 0x10000000>; | ||
}; | ||
|
||
cache@18000000 { | ||
label = "cache"; | ||
reg = <0x18000000 0x8000000>; | ||
}; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
* MTD SPI driver for ST M25Pxx (and similar) 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 | ||
the DT binding is not Linux-only, but in case of Linux, see the | ||
"m25p_ids" table in drivers/mtd/devices/m25p80.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: | ||
- m25p,fast-read : Use the "fast read" opcode to read data from the chip instead | ||
of the usual "read" opcode. This opcode is not supported by | ||
all chips and support for it can not be detected at runtime. | ||
Refer to your chips' datasheet to check if this is supported | ||
by your chip. | ||
|
||
Example: | ||
|
||
flash: m25p80@0 { | ||
#address-cells = <1>; | ||
#size-cells = <1>; | ||
compatible = "spansion,m25p80"; | ||
reg = <0>; | ||
spi-max-frequency = <40000000>; | ||
m25p,fast-read; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
Atmel SPI device | ||
|
||
Required properties: | ||
- compatible : should be "atmel,at91rm9200-spi". | ||
- reg: Address and length of the register set for the device | ||
- interrupts: Should contain spi interrupt | ||
- cs-gpios: chipselects | ||
|
||
Example: | ||
|
||
spi1: spi@fffcc000 { | ||
compatible = "atmel,at91rm9200-spi"; | ||
reg = <0xfffcc000 0x4000>; | ||
interrupts = <13 4 5>; | ||
#address-cells = <1>; | ||
#size-cells = <0>; | ||
cs-gpios = <&pioB 3 0>; | ||
status = "okay"; | ||
|
||
mmc-slot@0 { | ||
compatible = "mmc-spi-slot"; | ||
reg = <0>; | ||
gpios = <&pioC 4 0>; /* CD */ | ||
spi-max-frequency = <25000000>; | ||
}; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
We Have Atomic Operation Control (ATOMCTL) Register. | ||
This register determines the effect of using a S32C1I instruction | ||
with various combinations of: | ||
|
||
1. With and without an Coherent Cache Controller which | ||
can do Atomic Transactions to the memory internally. | ||
|
||
2. With and without An Intelligent Memory Controller which | ||
can do Atomic Transactions itself. | ||
|
||
The Core comes up with a default value of for the three types of cache ops: | ||
|
||
0x28: (WB: Internal, WT: Internal, BY:Exception) | ||
|
||
On the FPGA Cards we typically simulate an Intelligent Memory controller | ||
which can implement RCW transactions. For FPGA cards with an External | ||
Memory controller we let it to the atomic operations internally while | ||
doing a Cached (WB) transaction and use the Memory RCW for un-cached | ||
operations. | ||
|
||
For systems without an coherent cache controller, non-MX, we always | ||
use the memory controllers RCW, thought non-MX controlers likely | ||
support the Internal Operation. | ||
|
||
CUSTOMER-WARNING: | ||
Virtually all customers buy their memory controllers from vendors that | ||
don't support atomic RCW memory transactions and will likely want to | ||
configure this register to not use RCW. | ||
|
||
Developers might find using RCW in Bypass mode convenient when testing | ||
with the cache being bypassed; for example studying cache alias problems. | ||
|
||
See Section 4.3.12.4 of ISA; Bits: | ||
|
||
WB WT BY | ||
5 4 | 3 2 | 1 0 | ||
2 Bit | ||
Field | ||
Values WB - Write Back WT - Write Thru BY - Bypass | ||
--------- --------------- ----------------- ---------------- | ||
0 Exception Exception Exception | ||
1 RCW Transaction RCW Transaction RCW Transaction | ||
2 Internal Operation Exception Reserved | ||
3 Reserved Reserved Reserved |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.