Amlogic Meson SPI Communication Controller

Schema identifier ($id): "http://devicetree.org/schemas/spi/amlogic,meson-gx-spicc.yaml#"

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

Maintainers (maintainers): "Neil Armstrong <neil.armstrong@linaro.org>"

The Meson SPICC is a generic SPI controller for general purpose Full-Duplex communications with dedicated 16 words RX/TX PIO FIFOs.

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "amlogic,meson-gx-spicc", "amlogic,meson-axg-spicc", "amlogic,meson-g12a-spicc"

interrupts — required here #

Maximum number of items (maxItems): 1

reg — required here #

Maximum number of items (maxItems): 1

resets — not listed as required here #

Maximum number of items (maxItems): 1

clocks — required here #

Minimum number of items (minItems): 1

Array item rules (items) #

Item 1

controller register bus clock

Item 2

baud rate generator and delay control clock

clock-names — required here #

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 2

All of these rules must match (allOf) #

Rule 1 #

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

Rule 2 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "amlogic,meson-g12a-spicc"

When the condition matches (then) #

Properties and child nodes (properties)

clocks — not listed as required here

Minimum number of items (minItems): 2

clock-names — not listed as required here

Array item rules (items)

Item 1

Exact value (const): "core"

Item 2

Exact value (const): "pclk"

When the condition does not match (else) #

Properties and child nodes (properties)

clocks — not listed as required here

Maximum number of items (maxItems): 1

clock-names — not listed as required here

Array item rules (items)

Item 1

Exact value (const): "core"

Rule 3 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "amlogic,meson-gx-spicc"

When the condition matches (then) #

Properties and child nodes (properties)

pinctrl-0 — not listed as required here

true — No constraints added by this property rule.

pinctrl-1 — not listed as required here

true — No constraints added by this property rule.

pinctrl-2 — not listed as required here

true — No constraints added by this property rule.

pinctrl-names — not listed as required here

Minimum number of items (minItems): 1

Array item rules (items)

Item 1

Exact value (const): "default"

Item 2

Exact value (const): "idle-high"

Item 3

Exact value (const): "idle-low"

Required in this object (required): "compatible", "reg", "interrupts", "clocks", "clock-names"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

spi@c1108d80 {
    compatible = "amlogic,meson-gx-spicc";
    reg = <0xc1108d80 0x80>;
    interrupts = <112>;
    clocks = <&clk81>;
    clock-names = "core";
    #address-cells = <1>;
    #size-cells = <0>;

    display@0 {
        compatible = "lg,lg4573";
        spi-max-frequency = <1000000>;
        reg = <0>;
    };
};

Source notes #

Annotations retained from the schema source

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

Line 2: Copyright 2019 BayLibre, SAS

Line 20: SPICC controller on Amlogic GX and compatible SoCs

Line 21: SPICC controller on Amlogic AXG and compatible SoCs

Line 22: SPICC controller on Amlogic G12A and compatible SoCs

Edit this page