From: Amelie DELAUNAY <amelie.delaunay@st.com>
To: Linus Walleij <linus.walleij@linaro.org>
Cc: Lee Jones <lee.jones@linaro.org>,
Rob Herring <robh+dt@kernel.org>,
"Mark Rutland" <mark.rutland@arm.com>,
Russell King <linux@armlinux.org.uk>,
Alexandre TORGUE <alexandre.torgue@st.com>,
Maxime Coquelin <mcoquelin.stm32@gmail.com>,
"linux-gpio@vger.kernel.org" <linux-gpio@vger.kernel.org>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
"open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS"
<devicetree@vger.kernel.org>,
Linux ARM <linux-arm-kernel@lists.infradead.org>
Subject: Re: [PATCH 0/6] Introduce STMicroelectronics MultiFunction eXpander
Date: Thu, 22 Feb 2018 15:13:30 +0000 [thread overview]
Message-ID: <276d5f97-55c2-406e-92c7-0d03c7f7a49d@st.com> (raw)
In-Reply-To: <CACRpkdZYnQC5BusLyK5aAcA2q0NmvHu=TaLhFCfu2M0bgBcjrQ@mail.gmail.com>
Hi Linus,
Thanks for your review on the whole series.
On 02/22/2018 02:06 PM, Linus Walleij wrote:
> Hi Amelie,
>
> thanks a lot for your patches!
>
> On Thu, Feb 8, 2018 at 3:27 PM, Amelie Delaunay <amelie.delaunay@st.com> wrote:
>
>> This series adds support for STMicroelectronics MultiFunction eXpander
>> (ST MFX), used on some STM32 discovery and evaluation boards.
>
> So I take it that the department creating the STMPE
> "ST MPE" or "ST Microelectronics MultiPurpose Expander"
> Now created a new set of circuits?
>
ST MFX is based on a STM32L152 with a firmware offering features similar
to the STMPE (GPIO and TS controller) but also IDD measurement to
measure the power consumption of the MCU to which MFX is connected to.
> Can we first establish whether this new family is really so
> different from STMPE that it really needs a new driver in
> MFD and GPIO (and I guess pin control as well)?
>
ST MFX is different from STMPE as far as the HW is completely different.
IDD is a new feature.
TS management is completely different.
GPIO management looks like but is also rather different.
ST MFX counts a first level of 8 interrupts (acked by writing in the ACK
register), then a second level of 24 interrupts for GPIOs. GPIO IRQ can
be triggered on low level, falling edge, high level, rising edge. GPIO
IRQ have to be acked by writing in the GPI_ACK register, GPIO can be
output open-drain with/without internal pull-up, output push-pull, input
with pull-up/down, input floating or analog.
> I would be annoyed to see later that it is just a few bytes
> separating it from the STMPE, in that case I think it is
> better to just reuse/improve the good old stmpe driver
> and take it from there.
>
Sure, but if it was a new STMPE variant, it would be called STMPE24xx or
something like that (24 GPIOs maximum, 20 if IDD or TS is enabled, 16 if
IDD and TS are enabled).
Regards,
Amelie
> Yours,
> Linus Walleij
>
next prev parent reply other threads:[~2018-02-22 15:14 UTC|newest]
Thread overview: 31+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-02-08 14:27 Amelie Delaunay
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
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 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
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 [this message]
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=276d5f97-55c2-406e-92c7-0d03c7f7a49d@st.com \
--to=amelie.delaunay@st.com \
--cc=alexandre.torgue@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 \
--cc=robh+dt@kernel.org \
/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
all inboxes | Powered by JetHome®