~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/Documentation/devicetree/bindings/firmware/cznic,turris-omnia-mcu.yaml

Version: ~ [ linux-6.12-rc7 ] ~ [ linux-6.11.7 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.60 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.116 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.171 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.229 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.285 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.323 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.12 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
  2 %YAML 1.2
  3 ---
  4 $id: http://devicetree.org/schemas/firmware/cznic,turris-omnia-mcu.yaml#
  5 $schema: http://devicetree.org/meta-schemas/core.yaml#
  6 
  7 title: CZ.NIC's Turris Omnia MCU
  8 
  9 maintainers:
 10   - Marek BehĂșn <kabel@kernel.org>
 11 
 12 description:
 13   The MCU on Turris Omnia acts as a system controller providing additional
 14   GPIOs, interrupts, watchdog, system power off and wakeup configuration.
 15 
 16 properties:
 17   compatible:
 18     const: cznic,turris-omnia-mcu
 19 
 20   reg:
 21     description: MCU I2C slave address
 22     maxItems: 1
 23 
 24   interrupts:
 25     maxItems: 1
 26 
 27   interrupt-controller: true
 28 
 29   '#interrupt-cells':
 30     const: 2
 31     description: |
 32       The first cell specifies the interrupt number (0 to 63), the second cell
 33       specifies interrupt type (which can be one of IRQ_TYPE_EDGE_RISING,
 34       IRQ_TYPE_EDGE_FALLING or IRQ_TYPE_EDGE_BOTH).
 35       The interrupt numbers correspond sequentially to GPIO numbers, taking the
 36       GPIO banks into account:
 37         IRQ number   GPIO bank   GPIO pin within bank
 38            0 - 15      0           0 - 15
 39           16 - 47      1           0 - 31
 40           48 - 63      2           0 - 15
 41       There are several exceptions:
 42         IRQ number   meaning
 43           11           LED panel brightness changed by button press
 44           13           TRNG entropy ready
 45           14           ECDSA message signature computation done
 46 
 47   gpio-controller: true
 48 
 49   '#gpio-cells':
 50     const: 3
 51     description:
 52       The first cell is bank number (0, 1 or 2), the second cell is pin number
 53       within the bank (0 to 15 for banks 0 and 2, 0 to 31 for bank 1), and the
 54       third cell specifies consumer flags.
 55 
 56 required:
 57   - compatible
 58   - reg
 59   - interrupts
 60   - interrupt-controller
 61   - gpio-controller
 62 
 63 additionalProperties: false
 64 
 65 examples:
 66   - |
 67     #include <dt-bindings/interrupt-controller/irq.h>
 68 
 69     i2c {
 70         #address-cells = <1>;
 71         #size-cells = <0>;
 72 
 73         system-controller@2a {
 74             compatible = "cznic,turris-omnia-mcu";
 75             reg = <0x2a>;
 76 
 77             interrupt-parent = <&gpio1>;
 78             interrupts = <11 IRQ_TYPE_NONE>;
 79 
 80             gpio-controller;
 81             #gpio-cells = <3>;
 82 
 83             interrupt-controller;
 84             #interrupt-cells = <2>;
 85         };
 86     };

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php