diff options
author | Stephen Boyd <swboyd@chromium.org> | 2024-02-19 23:23:23 +0300 |
---|---|---|
committer | Lee Jones <lee@kernel.org> | 2024-02-23 20:14:08 +0300 |
commit | 7b79740d42e7535901296f7acbab1043633422e6 (patch) | |
tree | 09115003fcb1874f6f3335c94fdb9d3fd75b347d /Documentation/devicetree/bindings/mfd/google,cros-ec.yaml | |
parent | 3bb36528d46e494987ee5e9682d08318928ae041 (diff) | |
download | linux-7b79740d42e7535901296f7acbab1043633422e6.tar.xz |
dt-bindings: mfd: cros-ec: Add properties for GPIO controller
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.
Signed-off-by: Stephen Boyd <swboyd@chromium.org>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://lore.kernel.org/r/20240219202325.4095816-2-swboyd@chromium.org
Signed-off-by: Lee Jones <lee@kernel.org>
Diffstat (limited to 'Documentation/devicetree/bindings/mfd/google,cros-ec.yaml')
-rw-r--r-- | Documentation/devicetree/bindings/mfd/google,cros-ec.yaml | 7 |
1 files changed, 7 insertions, 0 deletions
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"; |