Commit 7b79740d authored by Stephen Boyd's avatar Stephen Boyd Committed by Lee Jones

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: default avatarStephen Boyd <swboyd@chromium.org>
Reviewed-by: default avatarKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://lore.kernel.org/r/20240219202325.4095816-2-swboyd@chromium.orgSigned-off-by: default avatarLee Jones <lee@kernel.org>
parent 3bb36528
......@@ -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";
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment