162306a36Sopenharmony_ciTurris Mox module status and configuration bus (over SPI)
262306a36Sopenharmony_ci
362306a36Sopenharmony_ciRequired properties:
462306a36Sopenharmony_ci - compatible		: Should be "cznic,moxtet"
562306a36Sopenharmony_ci - #address-cells	: Has to be 1
662306a36Sopenharmony_ci - #size-cells		: Has to be 0
762306a36Sopenharmony_ci - spi-cpol		: Required inverted clock polarity
862306a36Sopenharmony_ci - spi-cpha		: Required shifted clock phase
962306a36Sopenharmony_ci - interrupts		: Must contain reference to the shared interrupt line
1062306a36Sopenharmony_ci - interrupt-controller	: Required
1162306a36Sopenharmony_ci - #interrupt-cells	: Has to be 1
1262306a36Sopenharmony_ci
1362306a36Sopenharmony_ciFor other required and optional properties of SPI slave nodes please refer to
1462306a36Sopenharmony_ci../spi/spi-bus.txt.
1562306a36Sopenharmony_ci
1662306a36Sopenharmony_ciRequired properties of subnodes:
1762306a36Sopenharmony_ci - reg			: Should be position on the Moxtet bus (how many Moxtet
1862306a36Sopenharmony_ci			  modules are between this module and CPU module, so
1962306a36Sopenharmony_ci			  either 0 or a positive integer)
2062306a36Sopenharmony_ci
2162306a36Sopenharmony_ciThe driver finds the devices connected to the bus by itself, but it may be
2262306a36Sopenharmony_cineeded to reference some of them from other parts of the device tree. In that
2362306a36Sopenharmony_cicase the devices can be defined as subnodes of the moxtet node.
2462306a36Sopenharmony_ci
2562306a36Sopenharmony_ciExample:
2662306a36Sopenharmony_ci
2762306a36Sopenharmony_ci	moxtet@1 {
2862306a36Sopenharmony_ci		compatible = "cznic,moxtet";
2962306a36Sopenharmony_ci		#address-cells = <1>;
3062306a36Sopenharmony_ci		#size-cells = <0>;
3162306a36Sopenharmony_ci		reg = <1>;
3262306a36Sopenharmony_ci		spi-max-frequency = <10000000>;
3362306a36Sopenharmony_ci		spi-cpol;
3462306a36Sopenharmony_ci		spi-cpha;
3562306a36Sopenharmony_ci		interrupt-controller;
3662306a36Sopenharmony_ci		#interrupt-cells = <1>;
3762306a36Sopenharmony_ci		interrupt-parent = <&gpiosb>;
3862306a36Sopenharmony_ci		interrupts = <5 IRQ_TYPE_EDGE_FALLING>;
3962306a36Sopenharmony_ci
4062306a36Sopenharmony_ci		moxtet_sfp: gpio@0 {
4162306a36Sopenharmony_ci			compatible = "cznic,moxtet-gpio";
4262306a36Sopenharmony_ci			gpio-controller;
4362306a36Sopenharmony_ci			#gpio-cells = <2>;
4462306a36Sopenharmony_ci			reg = <0>;
4562306a36Sopenharmony_ci		}
4662306a36Sopenharmony_ci	};
47