forked from torvalds/linux
-
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.
spi/imx: add device tree probe support
It adds device tree probe support for spi-imx driver. Signed-off-by: Shawn Guo <[email protected]> Cc: Grant Likely <[email protected]> Signed-off-by: Grant Likely <[email protected]>
- Loading branch information
Showing
2 changed files
with
53 additions
and
7 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 |
---|---|---|
@@ -0,0 +1,22 @@ | ||
* Freescale (Enhanced) Configurable Serial Peripheral Interface | ||
(CSPI/eCSPI) for i.MX | ||
|
||
Required properties: | ||
- compatible : Should be "fsl,<soc>-cspi" or "fsl,<soc>-ecspi" | ||
- reg : Offset and length of the register set for the device | ||
- interrupts : Should contain CSPI/eCSPI interrupt | ||
- fsl,spi-num-chipselects : Contains the number of the chipselect | ||
- cs-gpios : Specifies the gpio pins to be used for chipselects. | ||
|
||
Example: | ||
|
||
ecspi@70010000 { | ||
#address-cells = <1>; | ||
#size-cells = <0>; | ||
compatible = "fsl,imx51-ecspi"; | ||
reg = <0x70010000 0x4000>; | ||
interrupts = <36>; | ||
fsl,spi-num-chipselects = <2>; | ||
cs-gpios = <&gpio3 24 0>, /* GPIO4_24 */ | ||
<&gpio3 25 0>; /* GPIO4_25 */ | ||
}; |
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