1 Turris Mox module status and configuration bus 1 Turris Mox module status and configuration bus (over SPI) 2 2 3 Required properties: 3 Required properties: 4 - compatible : Should be "cznic,mox 4 - compatible : Should be "cznic,moxtet" 5 - #address-cells : Has to be 1 5 - #address-cells : Has to be 1 6 - #size-cells : Has to be 0 6 - #size-cells : Has to be 0 7 - spi-cpol : Required inverted cl 7 - spi-cpol : Required inverted clock polarity 8 - spi-cpha : Required shifted clo 8 - spi-cpha : Required shifted clock phase 9 - interrupts : Must contain referen 9 - interrupts : Must contain reference to the shared interrupt line 10 - interrupt-controller : Required 10 - interrupt-controller : Required 11 - #interrupt-cells : Has to be 1 11 - #interrupt-cells : Has to be 1 12 12 13 For other required and optional properties of 13 For other required and optional properties of SPI slave nodes please refer to 14 ../spi/spi-bus.txt. 14 ../spi/spi-bus.txt. 15 15 16 Required properties of subnodes: 16 Required properties of subnodes: 17 - reg : Should be position o 17 - reg : Should be position on the Moxtet bus (how many Moxtet 18 modules are between 18 modules are between this module and CPU module, so 19 either 0 or a positi 19 either 0 or a positive integer) 20 20 21 The driver finds the devices connected to the 21 The driver finds the devices connected to the bus by itself, but it may be 22 needed to reference some of them from other pa 22 needed to reference some of them from other parts of the device tree. In that 23 case the devices can be defined as subnodes of 23 case the devices can be defined as subnodes of the moxtet node. 24 24 25 Example: 25 Example: 26 26 27 moxtet@1 { 27 moxtet@1 { 28 compatible = "cznic,moxtet"; 28 compatible = "cznic,moxtet"; 29 #address-cells = <1>; 29 #address-cells = <1>; 30 #size-cells = <0>; 30 #size-cells = <0>; 31 reg = <1>; 31 reg = <1>; 32 spi-max-frequency = <10000000> 32 spi-max-frequency = <10000000>; 33 spi-cpol; 33 spi-cpol; 34 spi-cpha; 34 spi-cpha; 35 interrupt-controller; 35 interrupt-controller; 36 #interrupt-cells = <1>; 36 #interrupt-cells = <1>; 37 interrupt-parent = <&gpiosb>; 37 interrupt-parent = <&gpiosb>; 38 interrupts = <5 IRQ_TYPE_EDGE_ 38 interrupts = <5 IRQ_TYPE_EDGE_FALLING>; 39 39 40 moxtet_sfp: gpio@0 { 40 moxtet_sfp: gpio@0 { 41 compatible = "cznic,mo 41 compatible = "cznic,moxtet-gpio"; 42 gpio-controller; 42 gpio-controller; 43 #gpio-cells = <2>; 43 #gpio-cells = <2>; 44 reg = <0>; 44 reg = <0>; 45 } 45 } 46 }; 46 };
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.