Marvell Orion SPI controller

Schema identifier ($id): "http://devicetree.org/schemas/spi/marvell,orion-spi.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Andrew Lunn <andrew@lunn.ch>", "Gregory CLEMENT <gregory.clement@bootlin.com>"

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): /schemas/spi/spi-controller.yaml#

Properties and child nodes (properties) #

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Allowed values (enum): "marvell,orion-spi", "marvell,armada-380-spi"

Rule 2

Array item rules (items)

Item 1

Allowed values (enum): "marvell,armada-370-spi", "marvell,armada-375-spi", "marvell,armada-380-spi", "marvell,armada-390-spi", "marvell,armada-xp-spi"

Item 2

Exact value (const): "marvell,orion-spi"

cell-index — not listed as required here #

Instance id for the SPI controller

Deprecated (deprecated): true

reg — required here #

Minimum number of items (minItems): 1

Array item rules (items) #

Item 1

control registers

Item 2

CS0 MBUS target/attribute registers for direct mode

Item 3

CS1 MBUS target/attribute registers for direct mode

Item 4

CS2 MBUS target/attribute registers for direct mode

Item 5

CS3 MBUS target/attribute registers for direct mode

Item 6

CS4 MBUS target/attribute registers for direct mode

Item 7

CS5 MBUS target/attribute registers for direct mode

Item 8

CS6 MBUS target/attribute registers for direct mode

Item 9

CS7 MBUS target/attribute registers for direct mode

clocks — required here #

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 2

clock-names — not listed as required here #

Array item rules (items) #

Item 1

Exact value (const): "core"

Item 2

Exact value (const): "axi"

interrupts — not listed as required here #

Maximum number of items (maxItems): 1

Required in this object (required): "compatible", "reg", "clocks"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

spi@10600 {
  compatible = "marvell,orion-spi";
  #address-cells = <1>;
  #size-cells = <0>;
  cell-index = <0>;
  reg = <0x10600 0x28>;
  clocks = <&coreclk 0>;
  interrupts = <23>;
};
#define MBUS_ID(target,attributes) (((target) << 24) | ((attributes) << 16))

bus {
    #address-cells = <2>;
    #size-cells = <1>;

    spi@10600 {
      compatible = "marvell,orion-spi";
      #address-cells = <1>;
      #size-cells = <0>;
      cell-index = <0>;
      reg = <MBUS_ID(0xf0, 0x01) 0x10600 0x28>, /* control */
            <MBUS_ID(0x01, 0x1e) 0 0xffffffff>, /* CS0 */
            <MBUS_ID(0x01, 0x5e) 0 0xffffffff>, /* CS1 */
            <MBUS_ID(0x01, 0x9e) 0 0xffffffff>, /* CS2 */
            <MBUS_ID(0x01, 0xde) 0 0xffffffff>, /* CS3 */
            <MBUS_ID(0x01, 0x1f) 0 0xffffffff>, /* CS4 */
            <MBUS_ID(0x01, 0x5f) 0 0xffffffff>, /* CS5 */
            <MBUS_ID(0x01, 0x9f) 0 0xffffffff>, /* CS6 */
            <MBUS_ID(0x01, 0xdf) 0 0xffffffff>; /* CS7 */
      clocks = <&coreclk 0>;
      interrupts = <23>;
    };
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Line 21: For ap80x and cp11x

Edit this page