18c2ecf20Sopenharmony_ciTurris Mox module status and configuration bus (over SPI)
28c2ecf20Sopenharmony_ci
38c2ecf20Sopenharmony_ciRequired properties:
48c2ecf20Sopenharmony_ci - compatible		: Should be "cznic,moxtet"
58c2ecf20Sopenharmony_ci - #address-cells	: Has to be 1
68c2ecf20Sopenharmony_ci - #size-cells		: Has to be 0
78c2ecf20Sopenharmony_ci - spi-cpol		: Required inverted clock polarity
88c2ecf20Sopenharmony_ci - spi-cpha		: Required shifted clock phase
98c2ecf20Sopenharmony_ci - interrupts		: Must contain reference to the shared interrupt line
108c2ecf20Sopenharmony_ci - interrupt-controller	: Required
118c2ecf20Sopenharmony_ci - #interrupt-cells	: Has to be 1
128c2ecf20Sopenharmony_ci
138c2ecf20Sopenharmony_ciFor other required and optional properties of SPI slave nodes please refer to
148c2ecf20Sopenharmony_ci../spi/spi-bus.txt.
158c2ecf20Sopenharmony_ci
168c2ecf20Sopenharmony_ciRequired properties of subnodes:
178c2ecf20Sopenharmony_ci - reg			: Should be position on the Moxtet bus (how many Moxtet
188c2ecf20Sopenharmony_ci			  modules are between this module and CPU module, so
198c2ecf20Sopenharmony_ci			  either 0 or a positive integer)
208c2ecf20Sopenharmony_ci
218c2ecf20Sopenharmony_ciThe driver finds the devices connected to the bus by itself, but it may be
228c2ecf20Sopenharmony_cineeded to reference some of them from other parts of the device tree. In that
238c2ecf20Sopenharmony_cicase the devices can be defined as subnodes of the moxtet node.
248c2ecf20Sopenharmony_ci
258c2ecf20Sopenharmony_ciExample:
268c2ecf20Sopenharmony_ci
278c2ecf20Sopenharmony_ci	moxtet@1 {
288c2ecf20Sopenharmony_ci		compatible = "cznic,moxtet";
298c2ecf20Sopenharmony_ci		#address-cells = <1>;
308c2ecf20Sopenharmony_ci		#size-cells = <0>;
318c2ecf20Sopenharmony_ci		reg = <1>;
328c2ecf20Sopenharmony_ci		spi-max-frequency = <10000000>;
338c2ecf20Sopenharmony_ci		spi-cpol;
348c2ecf20Sopenharmony_ci		spi-cpha;
358c2ecf20Sopenharmony_ci		interrupt-controller;
368c2ecf20Sopenharmony_ci		#interrupt-cells = <1>;
378c2ecf20Sopenharmony_ci		interrupt-parent = <&gpiosb>;
388c2ecf20Sopenharmony_ci		interrupts = <5 IRQ_TYPE_EDGE_FALLING>;
398c2ecf20Sopenharmony_ci
408c2ecf20Sopenharmony_ci		moxtet_sfp: gpio@0 {
418c2ecf20Sopenharmony_ci			compatible = "cznic,moxtet-gpio";
428c2ecf20Sopenharmony_ci			gpio-controller;
438c2ecf20Sopenharmony_ci			#gpio-cells = <2>;
448c2ecf20Sopenharmony_ci			reg = <0>;
458c2ecf20Sopenharmony_ci		}
468c2ecf20Sopenharmony_ci	};
47