spi-davinci.txt 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. Davinci SPI controller device bindings
  2. Required properties:
  3. - #address-cells: number of cells required to define a chip select
  4. address on the SPI bus. Should be set to 1.
  5. - #size-cells: should be zero.
  6. - compatible:
  7. - "ti,dm6441-spi" for SPI used similar to that on DM644x SoC family
  8. - "ti,da830-spi" for SPI used similar to that on DA8xx SoC family
  9. - reg: Offset and length of SPI controller register space
  10. - num-cs: Number of chip selects. This includes internal as well as
  11. GPIO chip selects.
  12. - ti,davinci-spi-intr-line: interrupt line used to connect the SPI
  13. IP to the interrupt controller within the SoC. Possible values
  14. are 0 and 1. Manual says one of the two possible interrupt
  15. lines can be tied to the interrupt controller. Set this
  16. based on a specifc SoC configuration.
  17. - interrupts: interrupt number mapped to CPU.
  18. - clocks: spi clk phandle
  19. Optional:
  20. - cs-gpios: gpio chip selects
  21. For example to have 3 internal CS and 2 GPIO CS, user could define
  22. cs-gpios = <0>, <0>, <0>, <&gpio1 30 0>, <&gpio1 31 0>;
  23. where first three are internal CS and last two are GPIO CS.
  24. Example of a NOR flash slave device (n25q032) connected to DaVinci
  25. SPI controller device over the SPI bus.
  26. spi0:spi@20BF0000 {
  27. #address-cells = <1>;
  28. #size-cells = <0>;
  29. compatible = "ti,dm6446-spi";
  30. reg = <0x20BF0000 0x1000>;
  31. num-cs = <4>;
  32. ti,davinci-spi-intr-line = <0>;
  33. interrupts = <338>;
  34. clocks = <&clkspi>;
  35. flash: n25q032@0 {
  36. #address-cells = <1>;
  37. #size-cells = <1>;
  38. compatible = "st,m25p32";
  39. spi-max-frequency = <25000000>;
  40. reg = <0>;
  41. partition@0 {
  42. label = "u-boot-spl";
  43. reg = <0x0 0x80000>;
  44. read-only;
  45. };
  46. partition@1 {
  47. label = "test";
  48. reg = <0x80000 0x380000>;
  49. };
  50. };
  51. };