~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/Documentation/devicetree/bindings/spi/spi-davinci.txt

Version: ~ [ linux-6.12-rc7 ] ~ [ linux-6.11.7 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.60 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.116 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.171 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.229 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.285 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.323 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.12 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

Diff markup

Differences between /Documentation/devicetree/bindings/spi/spi-davinci.txt (Architecture alpha) and /Documentation/devicetree/bindings/spi/spi-davinci.txt (Architecture mips)


  1 Davinci SPI controller device bindings              1 Davinci SPI controller device bindings
  2                                                     2 
  3 Links on DM:                                        3 Links on DM:
  4 Keystone 2 - https://www.ti.com/lit/ug/sprugp2      4 Keystone 2 - https://www.ti.com/lit/ug/sprugp2a/sprugp2a.pdf
  5 dm644x - https://www.ti.com/lit/ug/sprue32a/sp      5 dm644x - https://www.ti.com/lit/ug/sprue32a/sprue32a.pdf
  6 OMAP-L138/da830 - http://www.ti.com/lit/ug/spr      6 OMAP-L138/da830 - http://www.ti.com/lit/ug/spruh77a/spruh77a.pdf
  7                                                     7 
  8 Required properties:                                8 Required properties:
  9 - #address-cells: number of cells required to       9 - #address-cells: number of cells required to define a chip select
 10         address on the SPI bus. Should be set      10         address on the SPI bus. Should be set to 1.
 11 - #size-cells: should be zero.                     11 - #size-cells: should be zero.
 12 - compatible:                                      12 - compatible:
 13         - "ti,dm6441-spi" for SPI used similar     13         - "ti,dm6441-spi" for SPI used similar to that on DM644x SoC family
 14         - "ti,da830-spi" for SPI used similar      14         - "ti,da830-spi" for SPI used similar to that on DA8xx SoC family
 15         - "ti,keystone-spi" for SPI used simil     15         - "ti,keystone-spi" for SPI used similar to that on Keystone2 SoC
 16                 family                             16                 family
 17 - reg: Offset and length of SPI controller reg     17 - reg: Offset and length of SPI controller register space
 18 - num-cs: Number of chip selects. This include     18 - num-cs: Number of chip selects. This includes internal as well as
 19         GPIO chip selects.                         19         GPIO chip selects.
 20 - ti,davinci-spi-intr-line: interrupt line use     20 - ti,davinci-spi-intr-line: interrupt line used to connect the SPI
 21         IP to the interrupt controller within      21         IP to the interrupt controller within the SoC. Possible values
 22         are 0 and 1. Manual says one of the tw     22         are 0 and 1. Manual says one of the two possible interrupt
 23         lines can be tied to the interrupt con     23         lines can be tied to the interrupt controller. Set this
 24         based on a specific SoC configuration.     24         based on a specific SoC configuration.
 25 - interrupts: interrupt number mapped to CPU.      25 - interrupts: interrupt number mapped to CPU.
 26 - clocks: spi clk phandle                          26 - clocks: spi clk phandle
 27           For 66AK2G this property should be s     27           For 66AK2G this property should be set per binding,
 28           Documentation/devicetree/bindings/cl     28           Documentation/devicetree/bindings/clock/ti,sci-clk.yaml
 29                                                    29 
 30 SoC-specific Required Properties:                  30 SoC-specific Required Properties:
 31                                                    31 
 32 The following are mandatory properties for Key     32 The following are mandatory properties for Keystone 2 66AK2G SoCs only:
 33                                                    33 
 34 - power-domains:        Should contain a phand     34 - power-domains:        Should contain a phandle to a PM domain provider node
 35                         and an args specifier      35                         and an args specifier containing the SPI device id
 36                         value. This property i     36                         value. This property is as per the binding,
 37                                                    37 
 38 Optional:                                          38 Optional:
 39 - cs-gpios: gpio chip selects                      39 - cs-gpios: gpio chip selects
 40         For example to have 3 internal CS and      40         For example to have 3 internal CS and 2 GPIO CS, user could define
 41         cs-gpios = <0>, <0>, <0>, <&gpio1 30 0     41         cs-gpios = <0>, <0>, <0>, <&gpio1 30 0>, <&gpio1 31 0>;
 42         where first three are internal CS and      42         where first three are internal CS and last two are GPIO CS.
 43                                                    43 
 44 Optional properties for slave devices:             44 Optional properties for slave devices:
 45 SPI slave nodes can contain the following prop     45 SPI slave nodes can contain the following properties.
 46 Not all SPI Peripherals from Texas Instruments     46 Not all SPI Peripherals from Texas Instruments support this.
 47 Please check SPI peripheral documentation for      47 Please check SPI peripheral documentation for a device before using these.
 48                                                    48 
 49 - ti,spi-wdelay : delay between transmission o     49 - ti,spi-wdelay : delay between transmission of words
 50         (SPIFMTn.WDELAY, SPIDAT1.WDEL) must be     50         (SPIFMTn.WDELAY, SPIDAT1.WDEL) must be specified in number of SPI module
 51         clock periods.                             51         clock periods.
 52                                                    52 
 53         delay = WDELAY * SPI_module_clock_peri     53         delay = WDELAY * SPI_module_clock_period + 2 * SPI_module_clock_period
 54                                                    54 
 55 Below is timing diagram which shows functional     55 Below is timing diagram which shows functional meaning of
 56 "ti,spi-wdelay" parameter.                         56 "ti,spi-wdelay" parameter.
 57                                                    57 
 58              +-+ +-+ +-+ +-+ +-+                   58              +-+ +-+ +-+ +-+ +-+                           +-+ +-+ +-+
 59 SPI_CLK      | | | | | | | | | |                   59 SPI_CLK      | | | | | | | | | |                           | | | | | |
 60   +----------+ +-+ +-+ +-+ +-+ +--------------     60   +----------+ +-+ +-+ +-+ +-+ +---------------------------+ +-+ +-+ +-
 61                                                    61 
 62 SPI_SOMI/SIMO+-----------------+                   62 SPI_SOMI/SIMO+-----------------+                           +-----------
 63   +----------+ word1           +--------------     63   +----------+ word1           +---------------------------+word2
 64              +-----------------+                   64              +-----------------+                           +-----------
 65                                           WDEL     65                                           WDELAY
 66                                 <-------------     66                                 <-------------------------->
 67                                                    67 
 68 Example of a NOR flash slave device (n25q032)      68 Example of a NOR flash slave device (n25q032) connected to DaVinci
 69 SPI controller device over the SPI bus.            69 SPI controller device over the SPI bus.
 70                                                    70 
 71 spi0:spi@20bf0000 {                                71 spi0:spi@20bf0000 {
 72         #address-cells                  = <1>;     72         #address-cells                  = <1>;
 73         #size-cells                     = <0>;     73         #size-cells                     = <0>;
 74         compatible                      = "ti,     74         compatible                      = "ti,dm6446-spi";
 75         reg                             = <0x2     75         reg                             = <0x20BF0000 0x1000>;
 76         num-cs                          = <4>;     76         num-cs                          = <4>;
 77         ti,davinci-spi-intr-line        = <0>;     77         ti,davinci-spi-intr-line        = <0>;
 78         interrupts                      = <338     78         interrupts                      = <338>;
 79         clocks                          = <&cl     79         clocks                          = <&clkspi>;
 80                                                    80 
 81         flash: flash@0 {                           81         flash: flash@0 {
 82                 #address-cells = <1>;              82                 #address-cells = <1>;
 83                 #size-cells = <1>;                 83                 #size-cells = <1>;
 84                 compatible = "st,m25p32";          84                 compatible = "st,m25p32";
 85                 spi-max-frequency = <25000000>     85                 spi-max-frequency = <25000000>;
 86                 reg = <0>;                         86                 reg = <0>;
 87                 ti,spi-wdelay = <8>;               87                 ti,spi-wdelay = <8>;
 88                                                    88 
 89                 partition@0 {                      89                 partition@0 {
 90                         label = "u-boot-spl";      90                         label = "u-boot-spl";
 91                         reg = <0x0 0x80000>;       91                         reg = <0x0 0x80000>;
 92                         read-only;                 92                         read-only;
 93                 };                                 93                 };
 94                                                    94 
 95                 partition@1 {                      95                 partition@1 {
 96                         label = "test";            96                         label = "test";
 97                         reg = <0x80000 0x38000     97                         reg = <0x80000 0x380000>;
 98                 };                                 98                 };
 99         };                                         99         };
100 };                                                100 };
                                                      

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php