SPI Controller on OMAP and K3 SoCs

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

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

Maintainers (maintainers): "Aswath Govindraju <a-govindraju@ti.com>"

All of these rules must match (allOf) #

Rule 1 #

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

Properties and child nodes (properties) #

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Array item rules (items)

Item 1

Allowed values (enum): "ti,am654-mcspi", "ti,am4372-mcspi"

Item 2

Exact value (const): "ti,omap4-mcspi"

Rule 2

Array item rules (items)

Item 1

Allowed values (enum): "ti,omap2-mcspi", "ti,omap4-mcspi"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — required here #

Maximum number of items (maxItems): 1

clocks — not listed as required here #

Maximum number of items (maxItems): 1

power-domains — not listed as required here #

Maximum number of items (maxItems): 1

ti,spi-num-cs — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Number of chipselect supported by the instance.

Minimum value (minimum): 1

Maximum value (maximum): 4

ti,hwmods — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/string

Must be "mcspi<n>", n being the instance number (1-based). This property is applicable only on legacy platforms mainly omap2/3 and ti81xx and should not be used on other platforms.

Deprecated (deprecated): true

ti,pindir-d0-out-d1-in — not listed as required here #

Select the D0 pin as output and D1 as input. The default is D0 as input and D1 as output.

Value type (type): "boolean"

dmas — not listed as required here #

List of DMA specifiers with the controller specific format as described in the generic DMA client binding. A tx and rx specifier is required for each chip select.

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 8

dma-names — not listed as required here #

List of DMA request names. These strings correspond 1:1 with the DMA specifiers listed in dmas. The string names is to be "rxN" and "txN" for RX and TX requests, respectively. Where N is the chip select number.

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 8

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

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Condition (if) #

Properties and child nodes (properties) #

compatible — not listed as required here #

Allowed values (enum): "ti,omap2-mcspi", "ti,omap4-mcspi"

When the condition matches (then) #

Properties and child nodes (properties) #

ti,hwmods — not listed as required here #

Array item rules (items)

Item 1

String pattern (pattern): "^mcspi([1-9])$"

When the condition does not match (else) #

Properties and child nodes (properties) #

ti,hwmods — not listed as required here #

false — Not permitted by this property rule.

Examples (examples) #

#include <dt-bindings/interrupt-controller/irq.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/soc/ti,sci_pm_domain.h>

spi@2100000 {
  compatible = "ti,am654-mcspi","ti,omap4-mcspi";
  reg = <0x2100000 0x400>;
  interrupts = <GIC_SPI 184 IRQ_TYPE_LEVEL_HIGH>;
  clocks = <&k3_clks 137 1>;
  power-domains = <&k3_pds 137 TI_SCI_PD_EXCLUSIVE>;
  #address-cells = <1>;
  #size-cells = <0>;
  dmas = <&main_udmap 0xc500>, <&main_udmap 0x4500>;
  dma-names = "tx0", "rx0";
};

Source notes #

Annotations retained from the schema source

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

Edit this page