mirror of
https://github.com/torvalds/linux.git
synced 2024-12-26 12:52:30 +00:00
22a85e4cd5
It adds device tree probe support for spi-imx driver. Signed-off-by: Shawn Guo <shawn.guo@linaro.org> Cc: Grant Likely <grant.likely@secretlab.ca> Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
23 lines
680 B
Plaintext
23 lines
680 B
Plaintext
* 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 */
|
|
};
|