1*4882a593SmuzhiyunTurris Mox module status and configuration bus (over SPI) 2*4882a593Smuzhiyun 3*4882a593SmuzhiyunRequired properties: 4*4882a593Smuzhiyun - compatible : Should be "cznic,moxtet" 5*4882a593Smuzhiyun - #address-cells : Has to be 1 6*4882a593Smuzhiyun - #size-cells : Has to be 0 7*4882a593Smuzhiyun - spi-cpol : Required inverted clock polarity 8*4882a593Smuzhiyun - spi-cpha : Required shifted clock phase 9*4882a593Smuzhiyun - interrupts : Must contain reference to the shared interrupt line 10*4882a593Smuzhiyun - interrupt-controller : Required 11*4882a593Smuzhiyun - #interrupt-cells : Has to be 1 12*4882a593Smuzhiyun 13*4882a593SmuzhiyunFor other required and optional properties of SPI slave nodes please refer to 14*4882a593Smuzhiyun../spi/spi-bus.txt. 15*4882a593Smuzhiyun 16*4882a593SmuzhiyunRequired properties of subnodes: 17*4882a593Smuzhiyun - reg : Should be position on the Moxtet bus (how many Moxtet 18*4882a593Smuzhiyun modules are between this module and CPU module, so 19*4882a593Smuzhiyun either 0 or a positive integer) 20*4882a593Smuzhiyun 21*4882a593SmuzhiyunThe driver finds the devices connected to the bus by itself, but it may be 22*4882a593Smuzhiyunneeded to reference some of them from other parts of the device tree. In that 23*4882a593Smuzhiyuncase the devices can be defined as subnodes of the moxtet node. 24*4882a593Smuzhiyun 25*4882a593SmuzhiyunExample: 26*4882a593Smuzhiyun 27*4882a593Smuzhiyun moxtet@1 { 28*4882a593Smuzhiyun compatible = "cznic,moxtet"; 29*4882a593Smuzhiyun #address-cells = <1>; 30*4882a593Smuzhiyun #size-cells = <0>; 31*4882a593Smuzhiyun reg = <1>; 32*4882a593Smuzhiyun spi-max-frequency = <10000000>; 33*4882a593Smuzhiyun spi-cpol; 34*4882a593Smuzhiyun spi-cpha; 35*4882a593Smuzhiyun interrupt-controller; 36*4882a593Smuzhiyun #interrupt-cells = <1>; 37*4882a593Smuzhiyun interrupt-parent = <&gpiosb>; 38*4882a593Smuzhiyun interrupts = <5 IRQ_TYPE_EDGE_FALLING>; 39*4882a593Smuzhiyun 40*4882a593Smuzhiyun moxtet_sfp: gpio@0 { 41*4882a593Smuzhiyun compatible = "cznic,moxtet-gpio"; 42*4882a593Smuzhiyun gpio-controller; 43*4882a593Smuzhiyun #gpio-cells = <2>; 44*4882a593Smuzhiyun reg = <0>; 45*4882a593Smuzhiyun } 46*4882a593Smuzhiyun }; 47