From: Rob Herring <robh@kernel.org>
To: Amelie Delaunay <amelie.delaunay@st.com>
Cc: Mark Rutland <mark.rutland@arm.com>,
devicetree@vger.kernel.org,
Alexandre Torgue <alexandre.torgue@st.com>,
Linus Walleij <linus.walleij@linaro.org>,
Russell King <linux@armlinux.org.uk>,
linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org,
Maxime Coquelin <mcoquelin.stm32@gmail.com>,
Lee Jones <lee.jones@linaro.org>,
linux-arm-kernel@lists.infradead.org
Subject: Re: [PATCH 1/6] dt-bindings: mfd: Add ST Multi-Function eXpander driver
Date: Sun, 18 Feb 2018 17:19:38 -0600 [thread overview]
Message-ID: <20180218231938.goeht7tomfkab6uu@rob-hp-laptop> (raw)
In-Reply-To: <1518100057-23234-2-git-send-email-amelie.delaunay@st.com>
On Thu, Feb 08, 2018 at 03:27:32PM +0100, Amelie Delaunay wrote:
> This patch adds documentation of device tree bindings for the
> STMicroelectronics Multi-Function eXpander (MFX).
>
> Signed-off-by: Amelie Delaunay <amelie.delaunay@st.com>
> ---
> Documentation/devicetree/bindings/mfd/st-mfx.txt | 51 ++++++++++++++++++++++++
> 1 file changed, 51 insertions(+)
> create mode 100644 Documentation/devicetree/bindings/mfd/st-mfx.txt
>
> diff --git a/Documentation/devicetree/bindings/mfd/st-mfx.txt b/Documentation/devicetree/bindings/mfd/st-mfx.txt
> new file mode 100644
> index 0000000..423d800
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/mfd/st-mfx.txt
> @@ -0,0 +1,51 @@
> +STMicroelectronics Multi-Function eXpander
> +
> +ST Multi-Function eXpander (MFX) is a slave controller using I2C for
> +communication with the main MCU. Its main features are gpio expansion, main
> +MCU IDD measurement (IDD is the amount of current that flows through VDD)
> +and resistive touchscreen controller.
You don't have to implement all the drivers now, but please completely
describe the device. As is, there is no reason to have a child GPIO
node.
> +
> +Required properties:
> +- compatible: must be "st,mfx"
Kind of generic. Only 1 single version ever?
> +- reg: I2C address of the device
> +- interrupts: interrupt triggered by MFX_IRQ_OUT signal
> +- interrupt-parent: interrupt controller MFX is connected to
> +- interrupt-controller: marks the device as an interrupt controller
> +- #interrupt-cells: should be <1>, index of the interrupt within the
> + controller, in accordance with the "one cell" variant of
> + <devicetree/bindings/interrupt-controller/interrupt.txt>
> +
> +Optional nodes:
> +
> +* GPIO eXpander
> +MFX provides 16 programmable GPIOs, and it is also possible to recover 8
> +alternate GPIOs if the main functions are not used (touchscreen controller and
> +IDD measurement not enabled).
> +
> +Required properties:
> +- compatible : must be "st,mfx-gpio"
> +- interrupt-parent : must be <&mfx>
Not necessary. A parent node with 'interrupt-controller' property is the
interrupt's parent.
> +- interrupts = must be <0>
> +- gpio-controller: marks the device node as a GPIO controller
> +- #gpio-cells: should be <2>, the first cell is the GPIO offset on this GPIO
> + controller, the second cell is the gpio flags in accordance with
> + <dt-bindings/gpio/st-mfx-gpio.h>.
Custom flags? Use standard flags.
DT binding headers should be part of this patch.
> +
> +Example:
> +
> + mfx: mfx@42 {
> + compatible = "st,mfx";
> + reg = <0x42>;
> + interrupts = <8 IRQ_TYPE_EDGE_RISING>;
> + interrupt-parent = <&gpioi>;
> + interrupt-controller;
> + #interrupt-cells = <1>;
> +
> + mfxgpio: mfx_gpio {
gpio {
> + compatible = "st,mfx-gpio";
> + interrupt-parent = <&mfx>;
> + interrupts = <0>;
> + gpio-controller;
> + #gpio-cells = <2>;
> + };
> + };
> --
> 2.7.4
>
next prev parent reply other threads:[~2018-02-18 23:19 UTC|newest]
Thread overview: 31+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-02-08 14:27 [PATCH 0/6] Introduce STMicroelectronics MultiFunction eXpander Amelie Delaunay
2018-02-08 14:27 ` [PATCH 2/6] mfd: Add ST Multi-Function eXpander core driver Amelie Delaunay
2018-02-12 12:06 ` Lee Jones
2018-02-12 14:15 ` Philippe Ombredanne
2018-02-19 16:00 ` Amelie DELAUNAY
2018-02-19 16:57 ` Amelie DELAUNAY
2018-02-22 13:44 ` Linus Walleij
2018-02-22 15:32 ` Amelie DELAUNAY
2018-02-08 14:27 ` [PATCH 3/6] gpio: Add GPIO support for the ST Multi-Function eXpander Amelie Delaunay
2018-02-14 15:30 ` Andy Shevchenko
2018-02-19 17:13 ` Amelie DELAUNAY
2018-02-22 13:47 ` Linus Walleij
2018-02-22 15:33 ` Amelie DELAUNAY
2018-02-08 14:27 ` [PATCH 4/6] ARM: dts: stm32: add MFX support on I2C1 on stm32746g-eval Amelie Delaunay
2018-02-22 13:54 ` Linus Walleij
2018-02-22 15:34 ` Amelie DELAUNAY
2018-02-08 14:27 ` [PATCH 5/6] ARM: dts: stm32: add joystick support " Amelie Delaunay
2018-02-22 13:52 ` Linus Walleij
2018-02-22 15:35 ` Amelie DELAUNAY
[not found] ` <1518100057-23234-1-git-send-email-amelie.delaunay-qxv4g6HH51o@public.gmane.org>
2018-02-08 14:27 ` [PATCH 1/6] dt-bindings: mfd: Add ST Multi-Function eXpander driver Amelie Delaunay
2018-02-18 23:19 ` Rob Herring [this message]
2018-02-19 15:59 ` Amelie DELAUNAY
2018-02-22 0:06 ` Rob Herring
2018-02-22 13:22 ` Linus Walleij
2018-02-22 15:15 ` Amelie DELAUNAY
2018-02-22 13:11 ` Linus Walleij
2018-02-22 15:19 ` Amelie DELAUNAY
2018-02-08 14:27 ` [PATCH 6/6] ARM: configs: stm32: enable ST MFX and its GPIO expander feature Amelie Delaunay
2018-02-22 13:06 ` [PATCH 0/6] Introduce STMicroelectronics MultiFunction eXpander Linus Walleij
2018-02-22 15:13 ` Amelie DELAUNAY
2018-03-01 22:28 ` Linus Walleij
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20180218231938.goeht7tomfkab6uu@rob-hp-laptop \
--to=robh@kernel.org \
--cc=alexandre.torgue@st.com \
--cc=amelie.delaunay@st.com \
--cc=devicetree@vger.kernel.org \
--cc=lee.jones@linaro.org \
--cc=linus.walleij@linaro.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-gpio@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux@armlinux.org.uk \
--cc=mark.rutland@arm.com \
--cc=mcoquelin.stm32@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox