Path: blob/master/Documentation/devicetree/bindings/bus/moxtet.txt
26308 views
Turris Mox module status and configuration bus (over SPI)12Required properties:3- compatible : Should be "cznic,moxtet"4- #address-cells : Has to be 15- #size-cells : Has to be 06- spi-cpol : Required inverted clock polarity7- spi-cpha : Required shifted clock phase8- interrupts : Must contain reference to the shared interrupt line9- interrupt-controller : Required10- #interrupt-cells : Has to be 11112For other required and optional properties of SPI slave nodes please refer to13../spi/spi-bus.txt.1415Required properties of subnodes:16- reg : Should be position on the Moxtet bus (how many Moxtet17modules are between this module and CPU module, so18either 0 or a positive integer)1920The driver finds the devices connected to the bus by itself, but it may be21needed to reference some of them from other parts of the device tree. In that22case the devices can be defined as subnodes of the moxtet node.2324Example:2526moxtet@1 {27compatible = "cznic,moxtet";28#address-cells = <1>;29#size-cells = <0>;30reg = <1>;31spi-max-frequency = <10000000>;32spi-cpol;33spi-cpha;34interrupt-controller;35#interrupt-cells = <1>;36interrupt-parent = <&gpiosb>;37interrupts = <5 IRQ_TYPE_EDGE_FALLING>;3839moxtet_sfp: gpio@0 {40compatible = "cznic,moxtet-gpio";41gpio-controller;42#gpio-cells = <2>;43reg = <0>;44}45};464748