Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

dt-bindings: bus: Document moxtet bus binding

This adds device tree binding documentation for the Moxtet bus, a bus
via which the different modules connected to the Turris Mox router can
be configured.

Link: https://lore.kernel.org/r/20190812161118.21476-3-marek.behun@nic.cz
Signed-off-by: Marek Behún <marek.behun@nic.cz>
Reviewed-by: Rob Herring <robh@kernel.org>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>

authored by

Marek Behún and committed by
Arnd Bergmann
20e6cf7e 5bc7f990

+47
+46
Documentation/devicetree/bindings/bus/moxtet.txt
··· 1 + Turris Mox module status and configuration bus (over SPI) 2 + 3 + Required properties: 4 + - compatible : Should be "cznic,moxtet" 5 + - #address-cells : Has to be 1 6 + - #size-cells : Has to be 0 7 + - spi-cpol : Required inverted clock polarity 8 + - spi-cpha : Required shifted clock phase 9 + - interrupts : Must contain reference to the shared interrupt line 10 + - interrupt-controller : Required 11 + - #interrupt-cells : Has to be 1 12 + 13 + For other required and optional properties of SPI slave nodes please refer to 14 + ../spi/spi-bus.txt. 15 + 16 + Required properties of subnodes: 17 + - reg : Should be position on the Moxtet bus (how many Moxtet 18 + modules are between this module and CPU module, so 19 + either 0 or a positive integer) 20 + 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 parts of the device tree. In that 23 + case the devices can be defined as subnodes of the moxtet node. 24 + 25 + Example: 26 + 27 + moxtet@1 { 28 + compatible = "cznic,moxtet"; 29 + #address-cells = <1>; 30 + #size-cells = <0>; 31 + reg = <1>; 32 + spi-max-frequency = <10000000>; 33 + spi-cpol; 34 + spi-cpha; 35 + interrupt-controller; 36 + #interrupt-cells = <1>; 37 + interrupt-parent = <&gpiosb>; 38 + interrupts = <5 IRQ_TYPE_EDGE_FALLING>; 39 + 40 + moxtet_sfp: gpio@0 { 41 + compatible = "cznic,moxtet-gpio"; 42 + gpio-controller; 43 + #gpio-cells = <2>; 44 + reg = <0>; 45 + } 46 + };
+1
MAINTAINERS
··· 1630 1630 M: Marek Behun <marek.behun@nic.cz> 1631 1631 W: http://mox.turris.cz 1632 1632 S: Maintained 1633 + F: Documentation/devicetree/bindings/bus/moxtet.txt 1633 1634 F: include/linux/moxtet.h 1634 1635 F: drivers/bus/moxtet.c 1635 1636