Back to home page

OSCL-LXR

 
 

    


0001 Turris Mox module status and configuration bus (over SPI)
0002 
0003 Required properties:
0004  - compatible           : Should be "cznic,moxtet"
0005  - #address-cells       : Has to be 1
0006  - #size-cells          : Has to be 0
0007  - spi-cpol             : Required inverted clock polarity
0008  - spi-cpha             : Required shifted clock phase
0009  - interrupts           : Must contain reference to the shared interrupt line
0010  - interrupt-controller : Required
0011  - #interrupt-cells     : Has to be 1
0012 
0013 For other required and optional properties of SPI slave nodes please refer to
0014 ../spi/spi-bus.txt.
0015 
0016 Required properties of subnodes:
0017  - reg                  : Should be position on the Moxtet bus (how many Moxtet
0018                           modules are between this module and CPU module, so
0019                           either 0 or a positive integer)
0020 
0021 The driver finds the devices connected to the bus by itself, but it may be
0022 needed to reference some of them from other parts of the device tree. In that
0023 case the devices can be defined as subnodes of the moxtet node.
0024 
0025 Example:
0026 
0027         moxtet@1 {
0028                 compatible = "cznic,moxtet";
0029                 #address-cells = <1>;
0030                 #size-cells = <0>;
0031                 reg = <1>;
0032                 spi-max-frequency = <10000000>;
0033                 spi-cpol;
0034                 spi-cpha;
0035                 interrupt-controller;
0036                 #interrupt-cells = <1>;
0037                 interrupt-parent = <&gpiosb>;
0038                 interrupts = <5 IRQ_TYPE_EDGE_FALLING>;
0039 
0040                 moxtet_sfp: gpio@0 {
0041                         compatible = "cznic,moxtet-gpio";
0042                         gpio-controller;
0043                         #gpio-cells = <2>;
0044                         reg = <0>;
0045                 }
0046         };