Documentation / devicetree / bindings / bus / cznic,moxtet.yaml


Based on kernel version 6.19. Page generated on 2026-02-12 08:37 EST.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
%YAML 1.2
---
$id: http://devicetree.org/schemas/bus/cznic,moxtet.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#

title: Turris Moxtet SPI bus

maintainers:
  - Marek BehĂșn <kabel@kernel.org>

description: >
  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:
  compatible:
    const: cznic,moxtet

  reg:
    maxItems: 1
 
  "#address-cells":
    const: 1
 
  "#size-cells":
    const: 0

  spi-cpol: true

  spi-cpha: true

  spi-max-frequency: true

  interrupt-controller: true
 
  "#interrupt-cells":
    const: 1

  interrupts:
    maxItems: 1

  reset-gpios:
    maxItems: 1

required:
  - compatible
  - reg
  - "#address-cells"
  - "#size-cells"
  - spi-cpol
  - spi-cpha
  - interrupts
  - interrupt-controller
  - "#interrupt-cells"

additionalProperties:
  type: object

  required:
    - reg

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>;
            };
        };
    };