efm32-spi.txt 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  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 "energymicro,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. Recommended properties :
  11. - energymicro,location: Value to write to the ROUTE register's LOCATION
  12. bitfield to configure the pinmux for the device, see
  13. datasheet for values.
  14. If this property is not provided, keeping what is
  15. already configured in the hardware, so its either the
  16. reset default 0 or whatever the bootloader did.
  17. Example:
  18. spi1: spi@0x4000c400 { /* USART1 */
  19. #address-cells = <1>;
  20. #size-cells = <0>;
  21. compatible = "energymicro,efm32-spi";
  22. reg = <0x4000c400 0x400>;
  23. interrupts = <15 16>;
  24. clocks = <&cmu 20>;
  25. cs-gpios = <&gpio 51 1>; // D3
  26. energymicro,location = <1>;
  27. status = "ok";
  28. ks8851@0 {
  29. compatible = "ks8851";
  30. spi-max-frequency = <6000000>;
  31. reg = <0>;
  32. interrupt-parent = <&boardfpga>;
  33. interrupts = <4>;
  34. status = "ok";
  35. };
  36. };