Turris Moxtet SPI bus

Schema identifier ($id): "http://devicetree.org/schemas/bus/cznic,moxtet.yaml#"

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

Maintainers (maintainers): "Marek Behún <kabel@kernel.org>"

Turris Mox module status and configuration bus (over SPI) The driver finds the devices connected to the bus by itself, but it may be needed to reference some of them from other parts of the device tree. In that case the devices can be defined as subnodes of the moxtet node.

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "cznic,moxtet"

reg — required here #

Maximum number of items (maxItems): 1

#address-cells — required here #

Exact value (const): 1

#size-cells — required here #

Exact value (const): 0

spi-cpol — required here #

true — No constraints added by this property rule.

spi-cpha — required here #

true — No constraints added by this property rule.

spi-max-frequency — not listed as required here #

true — No constraints added by this property rule.

interrupt-controller — required here #

true — No constraints added by this property rule.

#interrupt-cells — required here #

Exact value (const): 1

interrupts — required here #

Maximum number of items (maxItems): 1

reset-gpios — not listed as required here #

Maximum number of items (maxItems): 1

Required in this object (required): "compatible", "reg", "#address-cells", "#size-cells", "spi-cpol", "spi-cpha", "interrupts", "interrupt-controller", "#interrupt-cells"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

Value type (type): "object"

Required in this object (required): "reg"

Examples (examples) #

#include <dt-bindings/interrupt-controller/irq.h>

spi {
    #address-cells = <1>;
    #size-cells = <0>;

    moxtet@1 {
        compatible = "cznic,moxtet";
        #address-cells = <1>;
        #size-cells = <0>;
        reg = <1>;
        spi-max-frequency = <10000000>;
        spi-cpol;
        spi-cpha;
        interrupt-controller;
        #interrupt-cells = <1>;
        interrupt-parent = <&gpiosb>;
        interrupts = <5 IRQ_TYPE_EDGE_FALLING>;

        gpio@0 {
            compatible = "cznic,moxtet-gpio";
            gpio-controller;
            #gpio-cells = <2>;
            reg = <0>;
        };
    };
};

Source notes #

Annotations retained from the schema source

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

Edit this page