ARM PL022 SPI controller

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

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

Maintainers (maintainers): "Linus Walleij <linusw@kernel.org>"

All of these rules must match (allOf) #

Rule 1 #

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

Rule 2 #

Shared schema rule ($ref): /schemas/arm/primecell.yaml#

Automatic schema selection (select) #

Properties and child nodes (properties) #

compatible — required here #

Rule for matching array elements (contains)

Exact value (const): "arm,pl022"

Required in this object (required): "compatible"

Properties and child nodes (properties) #

compatible — required here #

Array item rules (items) #

Item 1

Exact value (const): "arm,pl022"

Item 2

Exact value (const): "arm,primecell"

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): 2

clock-names — not listed as required here #

Array item rules (items) #

Item 1

Exact value (const): "sspclk"

Item 2

Exact value (const): "apb_pclk"

pl022,autosuspend-delay — not listed as required here #

delay in ms following transfer completion before the runtime power management system suspends the device. A setting of 0 indicates no delay and the device will be suspended immediately.

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

pl022,rt — not listed as required here #

indicates the controller should run the message pump with realtime priority to minimise the transfer latency on the bus (boolean)

Value type (type): "boolean"

dmas — not listed as required here #

Two or more DMA channel specifiers following the convention outlined in bindings/dma/dma.txt

Minimum number of items (minItems): 2

Maximum number of items (maxItems): 32

dma-names — not listed as required here #

There must be at least one channel named "tx" for transmit and named "rx" for receive.

Minimum number of items (minItems): 2

Maximum number of items (maxItems): 32

Array items beyond the listed positions (additionalItems) #

true

Allowed by this rule.

Array item rules (items) #

Item 1

Exact value (const): "rx"

Item 2

Exact value (const): "tx"

resets — not listed as required here #

Maximum number of items (maxItems): 1

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

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

spi@e0100000 {
  compatible = "arm,pl022", "arm,primecell";
  reg = <0xe0100000 0x1000>;
  #address-cells = <1>;
  #size-cells = <0>;
  interrupts = <0 31 0x4>;
  dmas = <&dma_controller 23 1>,
    <&dma_controller 24 0>;
  dma-names = "rx", "tx";

  flash@1 {
    compatible = "st,m25p80";
    reg = <1>;
    spi-max-frequency = <12000000>;
    spi-cpol;
    spi-cpha;
    pl022,interface = <0>;
    pl022,com-mode = <0x2>;
    pl022,rx-level-trig = <0>;
    pl022,tx-level-trig = <0>;
    pl022,ctrl-len = <0x11>;
    pl022,wait-state = <0>;
    pl022,duplex = <0>;
  };
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: GPL-2.0

Line 16: We need a select here so we don't match all nodes with 'arm,primecell'

Edit this page