efm32-spi.txt 870 B

12345678910111213141516171819202122232425262728293031323334
  1. * Energy Micro EFM32 SPI
  2. Required properties:
  3. - #address-cells: see spi-bus.txt
  4. - #size-cells: see spi-bus.txt
  5. - compatible: should be "efm32,spi"
  6. - reg: Offset and length of the register set for the controller
  7. - interrupts: pair specifying rx and tx irq
  8. - clocks: phandle to the spi clock
  9. - cs-gpios: see spi-bus.txt
  10. - location: Value to write to the ROUTE register's LOCATION bitfield to configure the pinmux for the device, see datasheet for values.
  11. Example:
  12. spi1: spi@0x4000c400 { /* USART1 */
  13. #address-cells = <1>;
  14. #size-cells = <0>;
  15. compatible = "efm32,spi";
  16. reg = <0x4000c400 0x400>;
  17. interrupts = <15 16>;
  18. clocks = <&cmu 20>;
  19. cs-gpios = <&gpio 51 1>; // D3
  20. location = <1>;
  21. status = "ok";
  22. ks8851@0 {
  23. compatible = "ks8851";
  24. spi-max-frequency = <6000000>;
  25. reg = <0>;
  26. interrupt-parent = <&boardfpga>;
  27. interrupts = <4>;
  28. status = "ok";
  29. };
  30. };