* [PATCH v3 bus+gpio 2/5] dt-bindings: bus: Document moxtet bus binding [not found] <20190301035852.26780-1-marek.behun@nic.cz> @ 2019-03-01 3:58 ` Marek Behún 2019-03-01 3:58 ` [PATCH v3 bus+gpio 5/5] dt-bindings: gpio: Document GPIOs via Moxtet bus Marek Behún 1 sibling, 0 replies; 6+ messages in thread From: Marek Behún @ 2019-03-01 3:58 UTC (permalink / raw) To: Linus Walleij Cc: Tony Lindgren, Shawn Guo, 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 | 36 +++++++++++++++++++ 1 file changed, 36 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..2bb998cbd3ad --- /dev/null +++ b/Documentation/devicetree/bindings/bus/moxtet.txt @@ -0,0 +1,36 @@ +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 + - spi-cpol : Required inverted clock polarity + - spi-cpha : Required shifted clock phase +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: gpio@0 { + compatible = "cznic,moxtet-sfp"; + gpio-controller; + #gpio-cells = <2>; + reg = <0>; + } + }; -- 2.19.2 ^ permalink raw reply related [flat|nested] 6+ messages in thread
* [PATCH v3 bus+gpio 5/5] dt-bindings: gpio: Document GPIOs via Moxtet bus [not found] <20190301035852.26780-1-marek.behun@nic.cz> 2019-03-01 3:58 ` [PATCH v3 bus+gpio 2/5] dt-bindings: bus: Document moxtet bus binding Marek Behún @ 2019-03-01 3:58 ` Marek Behún 2019-03-01 14:36 ` Linus Walleij 1 sibling, 1 reply; 6+ messages in thread From: Marek Behún @ 2019-03-01 3:58 UTC (permalink / raw) To: Linus Walleij Cc: Tony Lindgren, Shawn Guo, 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..410759de9f09 --- /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: gpio@0 { + compatible = "cznic,moxtet-gpio"; + gpio-controller; + #gpio-cells = <2>; + reg = <0>; + } -- 2.19.2 ^ permalink raw reply related [flat|nested] 6+ messages in thread
* Re: [PATCH v3 bus+gpio 5/5] dt-bindings: gpio: Document GPIOs via Moxtet bus 2019-03-01 3:58 ` [PATCH v3 bus+gpio 5/5] dt-bindings: gpio: Document GPIOs via Moxtet bus Marek Behún @ 2019-03-01 14:36 ` Linus Walleij 2019-03-01 15:16 ` Marek Behun 2019-03-03 23:17 ` Marek Behun 0 siblings, 2 replies; 6+ messages in thread From: Linus Walleij @ 2019-03-01 14:36 UTC (permalink / raw) To: Marek Behún Cc: Tony Lindgren, Shawn Guo, open list:GPIO SUBSYSTEM, linux-kernel@vger.kernel.org, Rob Herring, open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS On Fri, Mar 1, 2019 at 4:59 AM Marek Behún <marek.behun@nic.cz> 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 Reviewed-by: Linus Walleij <linus.walleij@linaro.org> > + compatible = "cznic,moxtet-gpio"; Is cznic registered in Documentation/devicetree/bindings/vendor-prefixes.txt? Yours, Linus Walleij ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH v3 bus+gpio 5/5] dt-bindings: gpio: Document GPIOs via Moxtet bus 2019-03-01 14:36 ` Linus Walleij @ 2019-03-01 15:16 ` Marek Behun 2019-03-03 23:17 ` Marek Behun 1 sibling, 0 replies; 6+ messages in thread From: Marek Behun @ 2019-03-01 15:16 UTC (permalink / raw) To: Linus Walleij Cc: Tony Lindgren, Shawn Guo, open list:GPIO SUBSYSTEM, linux-kernel@vger.kernel.org, Rob Herring, open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS On Fri, 1 Mar 2019 15:36:09 +0100 Linus Walleij <linus.walleij@linaro.org> wrote: > Reviewed-by: Linus Walleij <linus.walleij@linaro.org> > > > + compatible = "cznic,moxtet-gpio"; > > Is cznic registered in > Documentation/devicetree/bindings/vendor-prefixes.txt? Yes, it is registered. Thank you for the review. Marek ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH v3 bus+gpio 5/5] dt-bindings: gpio: Document GPIOs via Moxtet bus 2019-03-01 14:36 ` Linus Walleij 2019-03-01 15:16 ` Marek Behun @ 2019-03-03 23:17 ` Marek Behun 2019-03-04 9:53 ` Linus Walleij 1 sibling, 1 reply; 6+ messages in thread From: Marek Behun @ 2019-03-03 23:17 UTC (permalink / raw) To: Linus Walleij Cc: Tony Lindgren, Shawn Guo, open list:GPIO SUBSYSTEM, linux-kernel@vger.kernel.org, Rob Herring, open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS Hi Linus, do you know who is responsible for merging into drivers/bus? I have received reviews for this and for previous versions only from you and Rob. Also, please do not merge yet. I have prepared a fourth version with debugging over debugfs, fixed some checkpatch issues, and most importantnly added interrupt reading support from moxtet. I will send after proper testing is done for this new version. Marek On Fri, 1 Mar 2019 15:36:09 +0100 Linus Walleij <linus.walleij@linaro.org> wrote: > On Fri, Mar 1, 2019 at 4:59 AM Marek Behún <marek.behun@nic.cz> 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 > > Reviewed-by: Linus Walleij <linus.walleij@linaro.org> > > > + compatible = "cznic,moxtet-gpio"; > > Is cznic registered in > Documentation/devicetree/bindings/vendor-prefixes.txt? > > Yours, > Linus Walleij ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH v3 bus+gpio 5/5] dt-bindings: gpio: Document GPIOs via Moxtet bus 2019-03-03 23:17 ` Marek Behun @ 2019-03-04 9:53 ` Linus Walleij 0 siblings, 0 replies; 6+ messages in thread From: Linus Walleij @ 2019-03-04 9:53 UTC (permalink / raw) To: Marek Behun Cc: Tony Lindgren, Shawn Guo, open list:GPIO SUBSYSTEM, linux-kernel@vger.kernel.org, Rob Herring, open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS On Mon, Mar 4, 2019 at 12:17 AM Marek Behun <marek.behun@nic.cz> wrote: > do you know who is responsible for merging into drivers/bus? Usually the ARM SoC maintainers arm@kernel.org merge drivers there. You should just send them a pull request and explain the situation I think. Else they know who should deal with it. Yours, Linus Walleij ^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2019-03-04 9:53 UTC | newest] Thread overview: 6+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- [not found] <20190301035852.26780-1-marek.behun@nic.cz> 2019-03-01 3:58 ` [PATCH v3 bus+gpio 2/5] dt-bindings: bus: Document moxtet bus binding Marek Behún 2019-03-01 3:58 ` [PATCH v3 bus+gpio 5/5] dt-bindings: gpio: Document GPIOs via Moxtet bus Marek Behún 2019-03-01 14:36 ` Linus Walleij 2019-03-01 15:16 ` Marek Behun 2019-03-03 23:17 ` Marek Behun 2019-03-04 9:53 ` Linus Walleij
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).