mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-28 15:41:40 +00:00
cdc9dd0750
Now zynq spi driver platform data is controlled by devicetree, enable the status by saying "okay" on respective board dts to use the devicetree generated platdata. Ex: &spi1 { status = "okay"; }; Signed-off-by: Jagan Teki <jteki@openedev.com> Acked-by: Simon Glass <sjg@chromium.org> Cc: Michal Simek <michal.simek@xilinx.com> Cc: Siva Durga Prasad Paladugu <sivadur@xilinx.com> Tested-by: Jagan Teki <jteki@openedev.com>
29 lines
964 B
Text
29 lines
964 B
Text
Zynq SPI controller Device Tree Bindings
|
|
----------------------------------------
|
|
|
|
Required properties:
|
|
- compatible : Should be "xlnx,spi-zynq".
|
|
- reg : Physical base address and size of SPI registers map.
|
|
- status : Status will be disabled in dtsi and enabled in required dts.
|
|
- interrupt-parent : Must be core interrupt controller.
|
|
- interrupts : Property with a value describing the interrupt
|
|
number.
|
|
- clocks : Clock phandles (see clock bindings for details).
|
|
- clock-names : List of input clock names - "ref_clk", "pclk"
|
|
(See clock bindings for details).
|
|
- spi-max-frequency : Maximum SPI clocking speed of device in Hz
|
|
|
|
Example:
|
|
|
|
spi@e0006000 {
|
|
compatible = "xlnx,zynq-spi";
|
|
reg = <0xe0006000 0x1000>;
|
|
status = "disabled";
|
|
interrupt-parent = <&intc>;
|
|
interrupts = <0 26 4>;
|
|
clocks = <&clkc 25>, <&clkc 34>;
|
|
clock-names = "ref_clk", "pclk";
|
|
spi-max-frequency = <166666700>;
|
|
#address-cells = <1>;
|
|
#size-cells = <0>;
|
|
} ;
|