-
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: jcore: add J-Core SPI master bindings
Signed-off-by: Rich Felker <dalias@libc.org> Signed-off-by: Mark Brown <broonie@kernel.org>
- Loading branch information
Rich Felker
authored and
Mark Brown
committed
Aug 8, 2016
1 parent
29b4817
commit 7ed66c6
Showing
1 changed file
with
34 additions
and
0 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,34 @@ | ||
J-Core SPI master | ||
|
||
Required properties: | ||
|
||
- compatible: Must be "jcore,spi2". | ||
|
||
- reg: Memory region for registers. | ||
|
||
- #address-cells: Must be 1. | ||
|
||
- #size-cells: Must be 0. | ||
|
||
Optional properties: | ||
|
||
- clocks: If a phandle named "ref_clk" is present, SPI clock speed | ||
programming is relative to the frequency of the indicated clock. | ||
Necessary only if the input clock rate is something other than a | ||
fixed 50 MHz. | ||
|
||
- clock-names: Clock names, one for each phandle in clocks. | ||
|
||
See spi-bus.txt for additional properties not specific to this device. | ||
|
||
Example: | ||
|
||
spi@40 { | ||
compatible = "jcore,spi2"; | ||
#address-cells = <1>; | ||
#size-cells = <0>; | ||
reg = <0x40 0x8>; | ||
spi-max-frequency = <25000000>; | ||
clocks = <&bus_clk>; | ||
clock-names = "ref_clk"; | ||
} |