* [PATCH v2 bus+gpio 2/4] dt-bindings: bus: Document moxtet bus binding [not found] <20181102103539.6077-1-marek.behun@nic.cz> @ 2018-11-02 10:35 ` Marek Behún 2018-11-05 22:13 ` Rob Herring 2018-11-02 10:35 ` [PATCH v2 bus+gpio 4/4] dt-bindings: gpio: Document GPIOs via Moxtet bus Marek Behún 1 sibling, 1 reply; 4+ messages in thread From: Marek Behún @ 2018-11-02 10:35 UTC (permalink / raw) To: Linus Walleij Cc: Tony Lindgren, Shawn Guo, Rob Herring, linux-gpio, linux-kernel, Marek Behún, Rob Herring, devicetree 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. Signed-off-by: Marek Behún <marek.behun@nic.cz> Cc: Rob Herring <robh+dt@kernel.org> Cc: devicetree@vger.kernel.org --- .../devicetree/bindings/bus/moxtet.txt | 34 +++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 Documentation/devicetree/bindings/bus/moxtet.txt diff --git a/Documentation/devicetree/bindings/bus/moxtet.txt b/Documentation/devicetree/bindings/bus/moxtet.txt new file mode 100644 index 000000000000..19a1bab61e8a --- /dev/null +++ b/Documentation/devicetree/bindings/bus/moxtet.txt @@ -0,0 +1,34 @@ +Turris Mox module configuration bus (over SPI) + +Required properties: + - compatible : Should be "cznic,moxtet". + - #address-cells : Has to be 1 + - #size-cells : Has to be 0 +For other required and optional properties of SPI slave nodes please refer to +../spi/spi-bus.txt. + +Required properties of subnodes: + - reg : Should be position on the Moxtet bus + +The driver finds the devices connected to the bus by itself, but it may be +needed to reference some of them from other parts of the device tree. In that +case the devices can be defined as subnodes of the moxtet node. + +Example: + + moxtet@1 { + #address-cells = <1>; + #size-cells = <0>; + compatible = "cznic,moxtet"; + reg = <1>; + spi-max-frequency = <10000000>; + spi-cpol; + spi-cpha; + + moxtet_sfp: moxtet-sfp@0 { + compatible = "cznic,moxtet-sfp"; + gpio-controller; + #gpio-cells = <2>; + reg = <0>; + } + }; -- 2.18.1 ^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH v2 bus+gpio 2/4] dt-bindings: bus: Document moxtet bus binding 2018-11-02 10:35 ` [PATCH v2 bus+gpio 2/4] dt-bindings: bus: Document moxtet bus binding Marek Behún @ 2018-11-05 22:13 ` Rob Herring 0 siblings, 0 replies; 4+ messages in thread From: Rob Herring @ 2018-11-05 22:13 UTC (permalink / raw) To: Marek Behún Cc: Linus Walleij, Tony Lindgren, Shawn Guo, linux-gpio, linux-kernel, devicetree On Fri, Nov 02, 2018 at 11:35:37AM +0100, Marek Behún wrote: > 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. > > Signed-off-by: Marek Behún <marek.behun@nic.cz> > Cc: Rob Herring <robh+dt@kernel.org> > Cc: devicetree@vger.kernel.org > --- > .../devicetree/bindings/bus/moxtet.txt | 34 +++++++++++++++++++ > 1 file changed, 34 insertions(+) > create mode 100644 Documentation/devicetree/bindings/bus/moxtet.txt > > diff --git a/Documentation/devicetree/bindings/bus/moxtet.txt b/Documentation/devicetree/bindings/bus/moxtet.txt > new file mode 100644 > index 000000000000..19a1bab61e8a > --- /dev/null > +++ b/Documentation/devicetree/bindings/bus/moxtet.txt > @@ -0,0 +1,34 @@ > +Turris Mox module configuration bus (over SPI) > + > +Required properties: > + - compatible : Should be "cznic,moxtet". > + - #address-cells : Has to be 1 > + - #size-cells : Has to be 0 > +For other required and optional properties of SPI slave nodes please refer to > +../spi/spi-bus.txt. You need to list what's required. spi-cpol and spi-cpha are typically required or not. > + > +Required properties of subnodes: > + - reg : Should be position on the Moxtet bus > + > +The driver finds the devices connected to the bus by itself, but it may be > +needed to reference some of them from other parts of the device tree. In that > +case the devices can be defined as subnodes of the moxtet node. > + > +Example: > + > + moxtet@1 { > + #address-cells = <1>; > + #size-cells = <0>; > + compatible = "cznic,moxtet"; > + reg = <1>; > + spi-max-frequency = <10000000>; > + spi-cpol; > + spi-cpha; > + > + moxtet_sfp: moxtet-sfp@0 { gpio@0 > + compatible = "cznic,moxtet-sfp"; > + gpio-controller; > + #gpio-cells = <2>; > + reg = <0>; > + } > + }; > -- > 2.18.1 > ^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH v2 bus+gpio 4/4] dt-bindings: gpio: Document GPIOs via Moxtet bus [not found] <20181102103539.6077-1-marek.behun@nic.cz> 2018-11-02 10:35 ` [PATCH v2 bus+gpio 2/4] dt-bindings: bus: Document moxtet bus binding Marek Behún @ 2018-11-02 10:35 ` Marek Behún 2018-11-05 22:14 ` Rob Herring 1 sibling, 1 reply; 4+ messages in thread From: Marek Behún @ 2018-11-02 10:35 UTC (permalink / raw) To: Linus Walleij Cc: Tony Lindgren, Shawn Guo, Rob Herring, linux-gpio, linux-kernel, Marek Behún, Rob Herring, devicetree This patch adds documentation of the device tree bindings for GPIOs on the devices connected via Moxtet bus. Signed-off-by: Marek Behún <marek.behun@nic.cz> Cc: Rob Herring <robh+dt@kernel.org> Cc: devicetree@vger.kernel.org --- .../devicetree/bindings/gpio/gpio-moxtet.txt | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 Documentation/devicetree/bindings/gpio/gpio-moxtet.txt diff --git a/Documentation/devicetree/bindings/gpio/gpio-moxtet.txt b/Documentation/devicetree/bindings/gpio/gpio-moxtet.txt new file mode 100644 index 000000000000..7e9b5770585d --- /dev/null +++ b/Documentation/devicetree/bindings/gpio/gpio-moxtet.txt @@ -0,0 +1,18 @@ +Turris Mox Moxtet GPIO expander via Moxtet bus + +Required properties: + - compatible : Should be "cznic,moxtet-gpio". + - gpio-controller : Marks the device node as a GPIO controller. + - #gpio-cells : Should be two. For consumer use see gpio.txt. + +Other properties are required for a Moxtet bus device, please refer to +Documentation/devicetree/bindings/bus/moxtet.txt. + +Example: + + moxtet_sfp: moxtet-sfp@0 { + compatible = "cznic,moxtet-gpio"; + gpio-controller; + #gpio-cells = <2>; + reg = <0>; + } -- 2.18.1 ^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH v2 bus+gpio 4/4] dt-bindings: gpio: Document GPIOs via Moxtet bus 2018-11-02 10:35 ` [PATCH v2 bus+gpio 4/4] dt-bindings: gpio: Document GPIOs via Moxtet bus Marek Behún @ 2018-11-05 22:14 ` Rob Herring 0 siblings, 0 replies; 4+ messages in thread From: Rob Herring @ 2018-11-05 22:14 UTC (permalink / raw) To: Marek Behún Cc: Linus Walleij, Tony Lindgren, Shawn Guo, linux-gpio, linux-kernel, devicetree On Fri, Nov 02, 2018 at 11:35:39AM +0100, Marek Behún wrote: > This patch adds documentation of the device tree bindings for GPIOs > on the devices connected via Moxtet bus. > > Signed-off-by: Marek Behún <marek.behun@nic.cz> > Cc: Rob Herring <robh+dt@kernel.org> > Cc: devicetree@vger.kernel.org > --- > .../devicetree/bindings/gpio/gpio-moxtet.txt | 18 ++++++++++++++++++ > 1 file changed, 18 insertions(+) > create mode 100644 Documentation/devicetree/bindings/gpio/gpio-moxtet.txt > > diff --git a/Documentation/devicetree/bindings/gpio/gpio-moxtet.txt b/Documentation/devicetree/bindings/gpio/gpio-moxtet.txt > new file mode 100644 > index 000000000000..7e9b5770585d > --- /dev/null > +++ b/Documentation/devicetree/bindings/gpio/gpio-moxtet.txt > @@ -0,0 +1,18 @@ > +Turris Mox Moxtet GPIO expander via Moxtet bus > + > +Required properties: > + - compatible : Should be "cznic,moxtet-gpio". > + - gpio-controller : Marks the device node as a GPIO controller. > + - #gpio-cells : Should be two. For consumer use see gpio.txt. > + > +Other properties are required for a Moxtet bus device, please refer to > +Documentation/devicetree/bindings/bus/moxtet.txt. > + > +Example: > + > + moxtet_sfp: moxtet-sfp@0 { gpio@0 > + compatible = "cznic,moxtet-gpio"; > + gpio-controller; > + #gpio-cells = <2>; > + reg = <0>; > + } > -- > 2.18.1 > ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2018-11-05 22:14 UTC | newest] Thread overview: 4+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- [not found] <20181102103539.6077-1-marek.behun@nic.cz> 2018-11-02 10:35 ` [PATCH v2 bus+gpio 2/4] dt-bindings: bus: Document moxtet bus binding Marek Behún 2018-11-05 22:13 ` Rob Herring 2018-11-02 10:35 ` [PATCH v2 bus+gpio 4/4] dt-bindings: gpio: Document GPIOs via Moxtet bus Marek Behún 2018-11-05 22:14 ` Rob Herring
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).