-
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.
Use the newly introduce cs-gpios dt support on atmel. We do not use the hardware cs as it's wired and has bugs and limitations. As the controller believes that only active-low devices/systems exists. Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Acked-by: Nicolas Ferre <nicolas.ferre@atmel.com> Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
- Loading branch information
Jean-Christophe PLAGNIOL-VILLARD
authored and
Grant Likely
committed
Dec 17, 2012
1 parent
cb71941
commit 850a5b6
Showing
2 changed files
with
42 additions
and
1 deletion.
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 |
---|---|---|
@@ -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