CZ.NIC's Turris Omnia MCU
Schema identifier ($id): "http://devicetree.org/schemas/firmware/cznic,turris-omnia-mcu.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Marek Behún <kabel@kernel.org>"
The MCU on Turris Omnia acts as a system controller providing additional GPIOs, interrupts, watchdog, system power off and wakeup configuration.
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "cznic,turris-omnia-mcu"
reg — required here #
MCU I2C slave address
Maximum number of items (maxItems): 1
interrupts — required here #
Maximum number of items (maxItems): 1
interrupt-controller — required here #
true — No constraints added by this property rule.
#interrupt-cells — not listed as required here #
Exact value (const): 2
The first cell specifies the interrupt number (0 to 63), the second cell
specifies interrupt type (which can be one of IRQ_TYPE_EDGE_RISING,
IRQ_TYPE_EDGE_FALLING or IRQ_TYPE_EDGE_BOTH).
The interrupt numbers correspond sequentially to GPIO numbers, taking the
GPIO banks into account:
IRQ number GPIO bank GPIO pin within bank
0 - 15 0 0 - 15
16 - 47 1 0 - 31
48 - 63 2 0 - 15
There are several exceptions:
IRQ number meaning
11 LED panel brightness changed by button press
13 TRNG entropy ready
14 ECDSA message signature computation done
gpio-controller — required here #
true — No constraints added by this property rule.
#gpio-cells — not listed as required here #
Exact value (const): 3
The first cell is bank number (0, 1 or 2), the second cell is pin number within the bank (0 to 15 for banks 0 and 2, 0 to 31 for bank 1), and the third cell specifies consumer flags.
Required in this object (required): "compatible", "reg", "interrupts", "interrupt-controller", "gpio-controller"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/interrupt-controller/irq.h>
i2c {
#address-cells = <1>;
#size-cells = <0>;
system-controller@2a {
compatible = "cznic,turris-omnia-mcu";
reg = <0x2a>;
interrupt-parent = <&gpio1>;
interrupts = <11 IRQ_TYPE_NONE>;
gpio-controller;
#gpio-cells = <3>;
interrupt-controller;
#interrupt-cells = <2>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)