* [PATCH 0/2] mfd: cros_ec_dev: Add gpio device and DT binding
@ 2024-02-19 20:23 Stephen Boyd
2024-02-19 20:23 ` [PATCH 1/2] dt-bindings: cros-ec: Add properties for GPIO controller Stephen Boyd
` (4 more replies)
0 siblings, 5 replies; 9+ messages in thread
From: Stephen Boyd @ 2024-02-19 20:23 UTC (permalink / raw)
To: Lee Jones
Cc: linux-kernel, patches, devicetree, chrome-platform,
Douglas Anderson, Pin-yen Lin, Bartosz Golaszewski, Benson Leung,
Conor Dooley, Guenter Roeck, Krzysztof Kozlowski, Linus Walleij,
Rob Herring
This is the mfd part of a larger series[1] that describes the USB
topology on ARM based chromebooks. These two patches add the gpio device
and DT bindings when the GPIO feature is present. The gpio driver will
be sent separately.
Stephen Boyd (2):
dt-bindings: cros-ec: Add properties for GPIO controller
mfd: cros_ec_dev: Add gpio device if feature present on EC
.../devicetree/bindings/mfd/google,cros-ec.yaml | 7 +++++++
drivers/mfd/cros_ec_dev.c | 9 +++++++++
2 files changed, 16 insertions(+)
Cc: Bartosz Golaszewski <brgl@bgdev.pl>
Cc: Benson Leung <bleung@chromium.org>
Cc: Conor Dooley <conor+dt@kernel.org>
Cc: Guenter Roeck <groeck@chromium.org>
Cc: Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>
Cc: Linus Walleij <linus.walleij@linaro.org>
Cc: Rob Herring <robh+dt@kernel.org>
[1] https://lore.kernel.org/r/20240210070934.2549994-1-swboyd@chromium.org
base-commit: 6613476e225e090cc9aad49be7fa504e290dd33d
--
https://chromeos.dev
^ permalink raw reply [flat|nested] 9+ messages in thread
* [PATCH 1/2] dt-bindings: cros-ec: Add properties for GPIO controller
2024-02-19 20:23 [PATCH 0/2] mfd: cros_ec_dev: Add gpio device and DT binding Stephen Boyd
@ 2024-02-19 20:23 ` Stephen Boyd
2024-02-20 8:30 ` Krzysztof Kozlowski
2024-02-20 11:46 ` Bartosz Golaszewski
2024-02-19 20:23 ` [PATCH 2/2] mfd: cros_ec_dev: Add gpio device if feature present on EC Stephen Boyd
` (3 subsequent siblings)
4 siblings, 2 replies; 9+ messages in thread
From: Stephen Boyd @ 2024-02-19 20:23 UTC (permalink / raw)
To: Lee Jones
Cc: linux-kernel, patches, devicetree, chrome-platform,
Douglas Anderson, Pin-yen Lin, Linus Walleij,
Bartosz Golaszewski, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, Benson Leung, Guenter Roeck
The ChromeOS embedded controller (EC) supports setting the state of
GPIOs when the system is unlocked, and getting the state of GPIOs in all
cases. The GPIOs are on the EC itself, so the EC acts similar to a GPIO
expander. Add the #gpio-cells and gpio-controller properties to the
cros-ec binding so that other devices described in DT can get the GPIOs
on the EC.
Cc: Linus Walleij <linus.walleij@linaro.org>
Cc: Bartosz Golaszewski <brgl@bgdev.pl>
Cc: Rob Herring <robh+dt@kernel.org>
Cc: Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>
Cc: Conor Dooley <conor+dt@kernel.org>
Cc: Lee Jones <lee@kernel.org>
Cc: Benson Leung <bleung@chromium.org>
Cc: Guenter Roeck <groeck@chromium.org>
Cc: <devicetree@vger.kernel.org>
Cc: <chrome-platform@lists.linux.dev>
Cc: Pin-yen Lin <treapking@chromium.org>
Signed-off-by: Stephen Boyd <swboyd@chromium.org>
---
Documentation/devicetree/bindings/mfd/google,cros-ec.yaml | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/Documentation/devicetree/bindings/mfd/google,cros-ec.yaml b/Documentation/devicetree/bindings/mfd/google,cros-ec.yaml
index e1ca4f297c6d..aac8819bd00b 100644
--- a/Documentation/devicetree/bindings/mfd/google,cros-ec.yaml
+++ b/Documentation/devicetree/bindings/mfd/google,cros-ec.yaml
@@ -93,6 +93,11 @@ properties:
'#size-cells':
const: 0
+ '#gpio-cells':
+ const: 2
+
+ gpio-controller: true
+
typec:
$ref: /schemas/chrome/google,cros-ec-typec.yaml#
@@ -275,6 +280,8 @@ examples:
interrupts = <99 0>;
interrupt-parent = <&gpio7>;
spi-max-frequency = <5000000>;
+ #gpio-cells = <2>;
+ gpio-controller;
proximity {
compatible = "google,cros-ec-mkbp-proximity";
--
https://chromeos.dev
^ permalink raw reply related [flat|nested] 9+ messages in thread
* [PATCH 2/2] mfd: cros_ec_dev: Add gpio device if feature present on EC
2024-02-19 20:23 [PATCH 0/2] mfd: cros_ec_dev: Add gpio device and DT binding Stephen Boyd
2024-02-19 20:23 ` [PATCH 1/2] dt-bindings: cros-ec: Add properties for GPIO controller Stephen Boyd
@ 2024-02-19 20:23 ` Stephen Boyd
2024-02-23 17:08 ` [PATCH 0/2] mfd: cros_ec_dev: Add gpio device and DT binding Lee Jones
` (2 subsequent siblings)
4 siblings, 0 replies; 9+ messages in thread
From: Stephen Boyd @ 2024-02-19 20:23 UTC (permalink / raw)
To: Lee Jones
Cc: linux-kernel, patches, devicetree, chrome-platform,
Douglas Anderson, Pin-yen Lin, Linus Walleij,
Bartosz Golaszewski, Benson Leung, Guenter Roeck
The ChromeOS embedded controller (EC) supports setting the state of
GPIOs when the system is unlocked, and getting the state of GPIOs in all
cases. Check for the feature support by checking for the GPIO feature
and then populate a sub-device for the gpio hardware on the EC.
Cc: Lee Jones <lee@kernel.org>
Cc: Linus Walleij <linus.walleij@linaro.org>
Cc: Bartosz Golaszewski <brgl@bgdev.pl>
Cc: Benson Leung <bleung@chromium.org>
Cc: Guenter Roeck <groeck@chromium.org>
Cc: <chrome-platform@lists.linux.dev>
Cc: Pin-yen Lin <treapking@chromium.org>
Signed-off-by: Stephen Boyd <swboyd@chromium.org>
---
drivers/mfd/cros_ec_dev.c | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/drivers/mfd/cros_ec_dev.c b/drivers/mfd/cros_ec_dev.c
index 603b1cd52785..9c3f8488b416 100644
--- a/drivers/mfd/cros_ec_dev.c
+++ b/drivers/mfd/cros_ec_dev.c
@@ -74,6 +74,10 @@ static const struct mfd_cell cros_ec_cec_cells[] = {
{ .name = "cros-ec-cec", },
};
+static const struct mfd_cell cros_ec_gpio_cells[] = {
+ { .name = "cros-ec-gpio", },
+};
+
static const struct mfd_cell cros_ec_rtc_cells[] = {
{ .name = "cros-ec-rtc", },
};
@@ -97,6 +101,11 @@ static const struct cros_feature_to_cells cros_subdevices[] = {
.mfd_cells = cros_ec_cec_cells,
.num_cells = ARRAY_SIZE(cros_ec_cec_cells),
},
+ {
+ .id = EC_FEATURE_GPIO,
+ .mfd_cells = cros_ec_gpio_cells,
+ .num_cells = ARRAY_SIZE(cros_ec_gpio_cells),
+ },
{
.id = EC_FEATURE_RTC,
.mfd_cells = cros_ec_rtc_cells,
--
https://chromeos.dev
^ permalink raw reply related [flat|nested] 9+ messages in thread
* Re: [PATCH 1/2] dt-bindings: cros-ec: Add properties for GPIO controller
2024-02-19 20:23 ` [PATCH 1/2] dt-bindings: cros-ec: Add properties for GPIO controller Stephen Boyd
@ 2024-02-20 8:30 ` Krzysztof Kozlowski
2024-02-20 11:46 ` Bartosz Golaszewski
1 sibling, 0 replies; 9+ messages in thread
From: Krzysztof Kozlowski @ 2024-02-20 8:30 UTC (permalink / raw)
To: Stephen Boyd, Lee Jones
Cc: linux-kernel, patches, devicetree, chrome-platform,
Douglas Anderson, Pin-yen Lin, Linus Walleij,
Bartosz Golaszewski, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, Benson Leung, Guenter Roeck
On 19/02/2024 21:23, Stephen Boyd wrote:
> The ChromeOS embedded controller (EC) supports setting the state of
> GPIOs when the system is unlocked, and getting the state of GPIOs in all
> cases. The GPIOs are on the EC itself, so the EC acts similar to a GPIO
> expander. Add the #gpio-cells and gpio-controller properties to the
> cros-ec binding so that other devices described in DT can get the GPIOs
> on the EC.
>
> Cc: Linus Walleij <linus.walleij@linaro.org>
> Cc: Bartosz Golaszewski <brgl@bgdev.pl>
> Cc: Rob Herring <robh+dt@kernel.org>
> Cc: Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>
> Cc: Conor Dooley <conor+dt@kernel.org>
> Cc: Lee Jones <lee@kernel.org>
> Cc: Benson Leung <bleung@chromium.org>
> Cc: Guenter Roeck <groeck@chromium.org>
> Cc: <devicetree@vger.kernel.org>
> Cc: <chrome-platform@lists.linux.dev>
> Cc: Pin-yen Lin <treapking@chromium.org>
> Signed-off-by: Stephen Boyd <swboyd@chromium.org>
> ---
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Best regards,
Krzysztof
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH 1/2] dt-bindings: cros-ec: Add properties for GPIO controller
2024-02-19 20:23 ` [PATCH 1/2] dt-bindings: cros-ec: Add properties for GPIO controller Stephen Boyd
2024-02-20 8:30 ` Krzysztof Kozlowski
@ 2024-02-20 11:46 ` Bartosz Golaszewski
2024-02-23 10:20 ` Lee Jones
1 sibling, 1 reply; 9+ messages in thread
From: Bartosz Golaszewski @ 2024-02-20 11:46 UTC (permalink / raw)
To: Stephen Boyd
Cc: Lee Jones, linux-kernel, patches, devicetree, chrome-platform,
Douglas Anderson, Pin-yen Lin, Linus Walleij, Rob Herring,
Krzysztof Kozlowski, Conor Dooley, Benson Leung, Guenter Roeck
On Mon, Feb 19, 2024 at 9:23 PM Stephen Boyd <swboyd@chromium.org> wrote:
>
> The ChromeOS embedded controller (EC) supports setting the state of
> GPIOs when the system is unlocked, and getting the state of GPIOs in all
> cases. The GPIOs are on the EC itself, so the EC acts similar to a GPIO
> expander. Add the #gpio-cells and gpio-controller properties to the
> cros-ec binding so that other devices described in DT can get the GPIOs
> on the EC.
>
> Cc: Linus Walleij <linus.walleij@linaro.org>
> Cc: Bartosz Golaszewski <brgl@bgdev.pl>
> Cc: Rob Herring <robh+dt@kernel.org>
> Cc: Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>
> Cc: Conor Dooley <conor+dt@kernel.org>
> Cc: Lee Jones <lee@kernel.org>
> Cc: Benson Leung <bleung@chromium.org>
> Cc: Guenter Roeck <groeck@chromium.org>
> Cc: <devicetree@vger.kernel.org>
> Cc: <chrome-platform@lists.linux.dev>
> Cc: Pin-yen Lin <treapking@chromium.org>
> Signed-off-by: Stephen Boyd <swboyd@chromium.org>
> ---
> Documentation/devicetree/bindings/mfd/google,cros-ec.yaml | 7 +++++++
> 1 file changed, 7 insertions(+)
>
> diff --git a/Documentation/devicetree/bindings/mfd/google,cros-ec.yaml b/Documentation/devicetree/bindings/mfd/google,cros-ec.yaml
> index e1ca4f297c6d..aac8819bd00b 100644
> --- a/Documentation/devicetree/bindings/mfd/google,cros-ec.yaml
> +++ b/Documentation/devicetree/bindings/mfd/google,cros-ec.yaml
> @@ -93,6 +93,11 @@ properties:
> '#size-cells':
> const: 0
>
> + '#gpio-cells':
> + const: 2
> +
> + gpio-controller: true
> +
> typec:
> $ref: /schemas/chrome/google,cros-ec-typec.yaml#
>
> @@ -275,6 +280,8 @@ examples:
> interrupts = <99 0>;
> interrupt-parent = <&gpio7>;
> spi-max-frequency = <5000000>;
> + #gpio-cells = <2>;
> + gpio-controller;
>
> proximity {
> compatible = "google,cros-ec-mkbp-proximity";
> --
> https://chromeos.dev
>
Applied, thanks!
Bart
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH 1/2] dt-bindings: cros-ec: Add properties for GPIO controller
2024-02-20 11:46 ` Bartosz Golaszewski
@ 2024-02-23 10:20 ` Lee Jones
0 siblings, 0 replies; 9+ messages in thread
From: Lee Jones @ 2024-02-23 10:20 UTC (permalink / raw)
To: Bartosz Golaszewski
Cc: Stephen Boyd, linux-kernel, patches, devicetree, chrome-platform,
Douglas Anderson, Pin-yen Lin, Linus Walleij, Rob Herring,
Krzysztof Kozlowski, Conor Dooley, Benson Leung, Guenter Roeck
On Tue, 20 Feb 2024, Bartosz Golaszewski wrote:
> On Mon, Feb 19, 2024 at 9:23 PM Stephen Boyd <swboyd@chromium.org> wrote:
> >
> > The ChromeOS embedded controller (EC) supports setting the state of
> > GPIOs when the system is unlocked, and getting the state of GPIOs in all
> > cases. The GPIOs are on the EC itself, so the EC acts similar to a GPIO
> > expander. Add the #gpio-cells and gpio-controller properties to the
> > cros-ec binding so that other devices described in DT can get the GPIOs
> > on the EC.
> >
> > Cc: Linus Walleij <linus.walleij@linaro.org>
> > Cc: Bartosz Golaszewski <brgl@bgdev.pl>
> > Cc: Rob Herring <robh+dt@kernel.org>
> > Cc: Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>
> > Cc: Conor Dooley <conor+dt@kernel.org>
> > Cc: Lee Jones <lee@kernel.org>
> > Cc: Benson Leung <bleung@chromium.org>
> > Cc: Guenter Roeck <groeck@chromium.org>
> > Cc: <devicetree@vger.kernel.org>
> > Cc: <chrome-platform@lists.linux.dev>
> > Cc: Pin-yen Lin <treapking@chromium.org>
> > Signed-off-by: Stephen Boyd <swboyd@chromium.org>
> > ---
> > Documentation/devicetree/bindings/mfd/google,cros-ec.yaml | 7 +++++++
> > 1 file changed, 7 insertions(+)
> >
> > diff --git a/Documentation/devicetree/bindings/mfd/google,cros-ec.yaml b/Documentation/devicetree/bindings/mfd/google,cros-ec.yaml
> > index e1ca4f297c6d..aac8819bd00b 100644
> > --- a/Documentation/devicetree/bindings/mfd/google,cros-ec.yaml
> > +++ b/Documentation/devicetree/bindings/mfd/google,cros-ec.yaml
> > @@ -93,6 +93,11 @@ properties:
> > '#size-cells':
> > const: 0
> >
> > + '#gpio-cells':
> > + const: 2
> > +
> > + gpio-controller: true
> > +
> > typec:
> > $ref: /schemas/chrome/google,cros-ec-typec.yaml#
> >
> > @@ -275,6 +280,8 @@ examples:
> > interrupts = <99 0>;
> > interrupt-parent = <&gpio7>;
> > spi-max-frequency = <5000000>;
> > + #gpio-cells = <2>;
> > + gpio-controller;
> >
> > proximity {
> > compatible = "google,cros-ec-mkbp-proximity";
> > --
> > https://chromeos.dev
> >
>
> Applied, thanks!
Why are you applying this MFD patch?
--
Lee Jones [李琼斯]
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH 0/2] mfd: cros_ec_dev: Add gpio device and DT binding
2024-02-19 20:23 [PATCH 0/2] mfd: cros_ec_dev: Add gpio device and DT binding Stephen Boyd
2024-02-19 20:23 ` [PATCH 1/2] dt-bindings: cros-ec: Add properties for GPIO controller Stephen Boyd
2024-02-19 20:23 ` [PATCH 2/2] mfd: cros_ec_dev: Add gpio device if feature present on EC Stephen Boyd
@ 2024-02-23 17:08 ` Lee Jones
2024-03-25 1:54 ` patchwork-bot+chrome-platform
2024-03-25 2:13 ` patchwork-bot+chrome-platform
4 siblings, 0 replies; 9+ messages in thread
From: Lee Jones @ 2024-02-23 17:08 UTC (permalink / raw)
To: Lee Jones, Stephen Boyd
Cc: linux-kernel, patches, devicetree, chrome-platform,
Douglas Anderson, Pin-yen Lin, Bartosz Golaszewski, Benson Leung,
Conor Dooley, Guenter Roeck, Krzysztof Kozlowski, Linus Walleij,
Rob Herring
On Mon, 19 Feb 2024 12:23:22 -0800, Stephen Boyd wrote:
> This is the mfd part of a larger series[1] that describes the USB
> topology on ARM based chromebooks. These two patches add the gpio device
> and DT bindings when the GPIO feature is present. The gpio driver will
> be sent separately.
>
> Stephen Boyd (2):
> dt-bindings: cros-ec: Add properties for GPIO controller
> mfd: cros_ec_dev: Add gpio device if feature present on EC
>
> [...]
Applied, thanks!
[1/2] dt-bindings: cros-ec: Add properties for GPIO controller
commit: 365ea466d6aa5c8618e096141d72c48fb5707ee4
[2/2] mfd: cros_ec_dev: Add gpio device if feature present on EC
commit: 1fe6dcba7bcf0dbd53be0c7ea009524c4c44447b
--
Lee Jones [李琼斯]
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH 0/2] mfd: cros_ec_dev: Add gpio device and DT binding
2024-02-19 20:23 [PATCH 0/2] mfd: cros_ec_dev: Add gpio device and DT binding Stephen Boyd
` (2 preceding siblings ...)
2024-02-23 17:08 ` [PATCH 0/2] mfd: cros_ec_dev: Add gpio device and DT binding Lee Jones
@ 2024-03-25 1:54 ` patchwork-bot+chrome-platform
2024-03-25 2:13 ` patchwork-bot+chrome-platform
4 siblings, 0 replies; 9+ messages in thread
From: patchwork-bot+chrome-platform @ 2024-03-25 1:54 UTC (permalink / raw)
To: Stephen Boyd
Cc: lee, linux-kernel, patches, devicetree, chrome-platform,
dianders, treapking, brgl, bleung, conor+dt, groeck,
krzysztof.kozlowski+dt, linus.walleij, robh+dt
Hello:
This series was applied to chrome-platform/linux.git (for-kernelci)
by Lee Jones <lee@kernel.org>:
On Mon, 19 Feb 2024 12:23:22 -0800 you wrote:
> This is the mfd part of a larger series[1] that describes the USB
> topology on ARM based chromebooks. These two patches add the gpio device
> and DT bindings when the GPIO feature is present. The gpio driver will
> be sent separately.
>
> Stephen Boyd (2):
> dt-bindings: cros-ec: Add properties for GPIO controller
> mfd: cros_ec_dev: Add gpio device if feature present on EC
>
> [...]
Here is the summary with links:
- [1/2] dt-bindings: cros-ec: Add properties for GPIO controller
https://git.kernel.org/chrome-platform/c/7b79740d42e7
- [2/2] mfd: cros_ec_dev: Add gpio device if feature present on EC
https://git.kernel.org/chrome-platform/c/8f49b623b934
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH 0/2] mfd: cros_ec_dev: Add gpio device and DT binding
2024-02-19 20:23 [PATCH 0/2] mfd: cros_ec_dev: Add gpio device and DT binding Stephen Boyd
` (3 preceding siblings ...)
2024-03-25 1:54 ` patchwork-bot+chrome-platform
@ 2024-03-25 2:13 ` patchwork-bot+chrome-platform
4 siblings, 0 replies; 9+ messages in thread
From: patchwork-bot+chrome-platform @ 2024-03-25 2:13 UTC (permalink / raw)
To: Stephen Boyd
Cc: lee, linux-kernel, patches, devicetree, chrome-platform,
dianders, treapking, brgl, bleung, conor+dt, groeck,
krzysztof.kozlowski+dt, linus.walleij, robh+dt
Hello:
This series was applied to chrome-platform/linux.git (for-next)
by Lee Jones <lee@kernel.org>:
On Mon, 19 Feb 2024 12:23:22 -0800 you wrote:
> This is the mfd part of a larger series[1] that describes the USB
> topology on ARM based chromebooks. These two patches add the gpio device
> and DT bindings when the GPIO feature is present. The gpio driver will
> be sent separately.
>
> Stephen Boyd (2):
> dt-bindings: cros-ec: Add properties for GPIO controller
> mfd: cros_ec_dev: Add gpio device if feature present on EC
>
> [...]
Here is the summary with links:
- [1/2] dt-bindings: cros-ec: Add properties for GPIO controller
https://git.kernel.org/chrome-platform/c/7b79740d42e7
- [2/2] mfd: cros_ec_dev: Add gpio device if feature present on EC
https://git.kernel.org/chrome-platform/c/8f49b623b934
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2024-03-25 2:13 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-02-19 20:23 [PATCH 0/2] mfd: cros_ec_dev: Add gpio device and DT binding Stephen Boyd
2024-02-19 20:23 ` [PATCH 1/2] dt-bindings: cros-ec: Add properties for GPIO controller Stephen Boyd
2024-02-20 8:30 ` Krzysztof Kozlowski
2024-02-20 11:46 ` Bartosz Golaszewski
2024-02-23 10:20 ` Lee Jones
2024-02-19 20:23 ` [PATCH 2/2] mfd: cros_ec_dev: Add gpio device if feature present on EC Stephen Boyd
2024-02-23 17:08 ` [PATCH 0/2] mfd: cros_ec_dev: Add gpio device and DT binding Lee Jones
2024-03-25 1:54 ` patchwork-bot+chrome-platform
2024-03-25 2:13 ` patchwork-bot+chrome-platform
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.