Path: blob/master/Documentation/devicetree/bindings/bus/cznic,moxtet.yaml
38226 views
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)1%YAML 1.22---3$id: http://devicetree.org/schemas/bus/cznic,moxtet.yaml#4$schema: http://devicetree.org/meta-schemas/core.yaml#56title: Turris Moxtet SPI bus78maintainers:9- Marek Behún <kabel@kernel.org>1011description: >12Turris Mox module status and configuration bus (over SPI)1314The driver finds the devices connected to the bus by itself, but it may be15needed to reference some of them from other parts of the device tree. In that16case the devices can be defined as subnodes of the moxtet node.1718properties:19compatible:20const: cznic,moxtet2122reg:23maxItems: 12425"#address-cells":26const: 12728"#size-cells":29const: 03031spi-cpol: true3233spi-cpha: true3435spi-max-frequency: true3637interrupt-controller: true3839"#interrupt-cells":40const: 14142interrupts:43maxItems: 14445reset-gpios:46maxItems: 14748required:49- compatible50- reg51- "#address-cells"52- "#size-cells"53- spi-cpol54- spi-cpha55- interrupts56- interrupt-controller57- "#interrupt-cells"5859additionalProperties:60type: object6162required:63- reg6465examples:66- |67#include <dt-bindings/interrupt-controller/irq.h>6869spi {70#address-cells = <1>;71#size-cells = <0>;7273moxtet@1 {74compatible = "cznic,moxtet";75#address-cells = <1>;76#size-cells = <0>;77reg = <1>;78spi-max-frequency = <10000000>;79spi-cpol;80spi-cpha;81interrupt-controller;82#interrupt-cells = <1>;83interrupt-parent = <&gpiosb>;84interrupts = <5 IRQ_TYPE_EDGE_FALLING>;8586gpio@0 {87compatible = "cznic,moxtet-gpio";88gpio-controller;89#gpio-cells = <2>;90reg = <0>;91};92};93};949596