The Design and Implementation of the FreeBSD Operating System, Second Edition
Now available: The Design and Implementation of the FreeBSD Operating System (Second Edition)


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]

FreeBSD/Linux Kernel Cross Reference
sys/contrib/device-tree/Bindings/spi/efm32-spi.txt

Version: -  FREEBSD  -  FREEBSD-13-STABLE  -  FREEBSD-13-0  -  FREEBSD-12-STABLE  -  FREEBSD-12-0  -  FREEBSD-11-STABLE  -  FREEBSD-11-0  -  FREEBSD-10-STABLE  -  FREEBSD-10-0  -  FREEBSD-9-STABLE  -  FREEBSD-9-0  -  FREEBSD-8-STABLE  -  FREEBSD-8-0  -  FREEBSD-7-STABLE  -  FREEBSD-7-0  -  FREEBSD-6-STABLE  -  FREEBSD-6-0  -  FREEBSD-5-STABLE  -  FREEBSD-5-0  -  FREEBSD-4-STABLE  -  FREEBSD-3-STABLE  -  FREEBSD22  -  l41  -  OPENBSD  -  linux-2.6  -  MK84  -  PLAN9  -  xnu-8792 
SearchContext: -  none  -  3  -  10 

    1 * Energy Micro EFM32 SPI
    2 
    3 Required properties:
    4 - #address-cells: see spi-bus.txt
    5 - #size-cells: see spi-bus.txt
    6 - compatible: should be "energymicro,efm32-spi"
    7 - reg: Offset and length of the register set for the controller
    8 - interrupts: pair specifying rx and tx irq
    9 - clocks: phandle to the spi clock
   10 - cs-gpios: see spi-bus.txt
   11 
   12 Recommended properties :
   13 - energymicro,location: Value to write to the ROUTE register's LOCATION
   14                         bitfield to configure the pinmux for the device, see
   15                         datasheet for values.
   16                         If this property is not provided, keeping what is
   17                         already configured in the hardware, so its either the
   18                         reset default 0 or whatever the bootloader did.
   19 
   20 Example:
   21 
   22 spi1: spi@4000c400 { /* USART1 */
   23         #address-cells = <1>;
   24         #size-cells = <0>;
   25         compatible = "energymicro,efm32-spi";
   26         reg = <0x4000c400 0x400>;
   27         interrupts = <15 16>;
   28         clocks = <&cmu 20>;
   29         cs-gpios = <&gpio 51 1>; // D3
   30         energymicro,location = <1>;
   31 
   32         ks8851@0 {
   33                 compatible = "ks8851";
   34                 spi-max-frequency = <6000000>;
   35                 reg = <0>;
   36                 interrupt-parent = <&boardfpga>;
   37                 interrupts = <4>;
   38         };
   39 };

Cache object: 792896362b475bcc54f38ee6579239df


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]


This page is part of the FreeBSD/Linux Linux Kernel Cross-Reference, and was automatically generated using a modified version of the LXR engine.