spi-fsl-dspi.txt 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. ARM Freescale DSPI controller
  2. Required properties:
  3. - compatible : "fsl,vf610-dspi", "fsl,ls1021a-v1.0-dspi", "fsl,ls2085a-dspi"
  4. - reg : Offset and length of the register set for the device
  5. - interrupts : Should contain SPI controller interrupt
  6. - clocks: from common clock binding: handle to dspi clock.
  7. - clock-names: from common clock binding: Shall be "dspi".
  8. - pinctrl-0: pin control group to be used for this controller.
  9. - pinctrl-names: must contain a "default" entry.
  10. - spi-num-chipselects : the number of the chipselect signals.
  11. - bus-num : the slave chip chipselect signal number.
  12. Optional property:
  13. - big-endian: If present the dspi device's registers are implemented
  14. in big endian mode, otherwise in native mode(same with CPU), for more
  15. detail please see: Documentation/devicetree/bindings/regmap/regmap.txt.
  16. Optional SPI slave node properties:
  17. - fsl,spi-cs-sck-delay: a delay in nanoseconds between activating chip
  18. select and the start of clock signal, at the start of a transfer.
  19. - fsl,spi-sck-cs-delay: a delay in nanoseconds between stopping the clock
  20. signal and deactivating chip select, at the end of a transfer.
  21. Example:
  22. dspi0@4002c000 {
  23. #address-cells = <1>;
  24. #size-cells = <0>;
  25. compatible = "fsl,vf610-dspi";
  26. reg = <0x4002c000 0x1000>;
  27. interrupts = <0 67 0x04>;
  28. clocks = <&clks VF610_CLK_DSPI0>;
  29. clock-names = "dspi";
  30. spi-num-chipselects = <5>;
  31. bus-num = <0>;
  32. pinctrl-names = "default";
  33. pinctrl-0 = <&pinctrl_dspi0_1>;
  34. big-endian;
  35. status = "okay";
  36. sflash: at26df081a@0 {
  37. #address-cells = <1>;
  38. #size-cells = <1>;
  39. compatible = "atmel,at26df081a";
  40. spi-max-frequency = <16000000>;
  41. spi-cpol;
  42. spi-cpha;
  43. reg = <0>;
  44. linux,modalias = "m25p80";
  45. modal = "at26df081a";
  46. fsl,spi-cs-sck-delay = <100>;
  47. fsl,spi-sck-cs-delay = <50>;
  48. };
  49. };