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

TOMOYO Linux Cross Reference
Linux/Documentation/devicetree/bindings/spi/spi-orion.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 ] ~

  1 Marvell Orion SPI device
  2 
  3 Required properties:
  4 - compatible : should be on of the following:
  5     - "marvell,orion-spi" for the Orion, mv78x00, Kirkwood and Dove SoCs
  6     - "marvell,armada-370-spi", for the Armada 370 SoCs
  7     - "marvell,armada-375-spi", for the Armada 375 SoCs
  8     - "marvell,armada-380-spi", for the Armada 38x SoCs
  9     - "marvell,armada-390-spi", for the Armada 39x SoCs
 10     - "marvell,armada-xp-spi", for the Armada XP SoCs
 11 - reg : offset and length of the register set for the device.
 12         This property can optionally have additional entries to configure
 13         the SPI direct access mode that some of the Marvell SoCs support
 14         additionally to the normal indirect access (PIO) mode. The values
 15         for the MBus "target" and "attribute" are defined in the Marvell
 16         SoC "Functional Specifications" Manual in the chapter "Marvell
 17         Core Processor Address Decoding".
 18         The eight register sets following the control registers refer to
 19         chip-select lines 0 through 7 respectively.
 20 - cell-index : Which of multiple SPI controllers is this.
 21 - clocks : pointers to the reference clocks for this device, the first
 22            one is the one used for the clock on the spi bus, the
 23            second one is optional and is the clock used for the
 24            functional part of the controller
 25 
 26 Optional properties:
 27 - interrupts : Is currently not used.
 28 - clock-names : names of used clocks, mandatory if the second clock is
 29                 used, the name must be "core", and "axi" (the latter
 30                 is only for Armada 7K/8K).
 31 
 32 
 33 Example:
 34        spi@10600 {
 35                compatible = "marvell,orion-spi";
 36                #address-cells = <1>;
 37                #size-cells = <0>;
 38                cell-index = <0>;
 39                reg = <0x10600 0x28>;
 40                interrupts = <23>;
 41        };
 42 
 43 Example with SPI direct mode support (optionally):
 44         spi0: spi@10600 {
 45                 compatible = "marvell,orion-spi";
 46                 #address-cells = <1>;
 47                 #size-cells = <0>;
 48                 cell-index = <0>;
 49                 reg = <MBUS_ID(0xf0, 0x01) 0x10600 0x28>, /* control */
 50                       <MBUS_ID(0x01, 0x1e) 0 0xffffffff>, /* CS0 */
 51                       <MBUS_ID(0x01, 0x5e) 0 0xffffffff>, /* CS1 */
 52                       <MBUS_ID(0x01, 0x9e) 0 0xffffffff>, /* CS2 */
 53                       <MBUS_ID(0x01, 0xde) 0 0xffffffff>, /* CS3 */
 54                       <MBUS_ID(0x01, 0x1f) 0 0xffffffff>, /* CS4 */
 55                       <MBUS_ID(0x01, 0x5f) 0 0xffffffff>, /* CS5 */
 56                       <MBUS_ID(0x01, 0x9f) 0 0xffffffff>, /* CS6 */
 57                       <MBUS_ID(0x01, 0xdf) 0 0xffffffff>; /* CS7 */
 58                 interrupts = <23>;
 59         };
 60 
 61 To enable the direct mode, the board specific 'ranges' property in the
 62 'soc' node needs to add the entries for the desired SPI controllers
 63 and its chip-selects that are used in the direct mode instead of PIO
 64 mode. Here an example for this (SPI controller 0, device 1 and SPI
 65 controller 1, device 2 are used in direct mode. All other SPI device
 66 are used in the default indirect (PIO) mode):
 67         soc {
 68                 /*
 69                  * Enable the SPI direct access by configuring an entry
 70                  * here in the board-specific ranges property
 71                  */
 72                 ranges = <MBUS_ID(0xf0, 0x01) 0 0 0xf1000000 0x100000>, /* internal regs */
 73                          <MBUS_ID(0x01, 0x1d) 0 0 0xfff00000 0x100000>, /* BootROM       */
 74                          <MBUS_ID(0x01, 0x5e) 0 0 0xf1100000 0x10000>,  /* SPI0-DEV1 */
 75                          <MBUS_ID(0x01, 0x9a) 0 0 0xf1110000 0x10000>;  /* SPI1-DEV2 */
 76 
 77 For further information on the MBus bindings, please see the MBus
 78 DT documentation:
 79 Documentation/devicetree/bindings/bus/mvebu-mbus.txt

~ [ 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