diff options
author | Bhanu Prakash Maiya <bhanumaiya@chromium.org> | 2022-12-07 10:40:12 -0700 |
---|---|---|
committer | Lee Jones <lee@kernel.org> | 2023-02-22 08:25:51 +0000 |
commit | 0c8884fe34bb3e2d739c883000691bb665c01843 (patch) | |
tree | e7cc1545c741758792dc7cc50782040b0e192348 /Documentation/devicetree/bindings/mfd/google,cros-ec.yaml | |
parent | 8cc5e62bae28d02f706a6abc8fd804609579964c (diff) | |
download | lwn-0c8884fe34bb3e2d739c883000691bb665c01843.tar.gz lwn-0c8884fe34bb3e2d739c883000691bb665c01843.zip |
dt-bindings: mfd: cros-ec: Add compatible string for UART support
Add a compatible string to support the UART implementation of the cros
ec interface. The driver does not support the reg and interrupt
properties, so exempt them from being required for UART compatible nodes.
Signed-off-by: Bhanu Prakash Maiya <bhanumaiya@chromium.org>
Co-developed-by: Mark Hasemeyer <markhas@chromium.org>
Signed-off-by: Mark Hasemeyer <markhas@chromium.org>
Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Signed-off-by: Lee Jones <lee@kernel.org>
Link: https://lore.kernel.org/r/20221207104005.v10.2.I9e018ecb8bdf341648cb64417085978ff0d22a46@changeid
Diffstat (limited to 'Documentation/devicetree/bindings/mfd/google,cros-ec.yaml')
-rw-r--r-- | Documentation/devicetree/bindings/mfd/google,cros-ec.yaml | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/mfd/google,cros-ec.yaml b/Documentation/devicetree/bindings/mfd/google,cros-ec.yaml index 3d5efa5578d1..cdf1d719efe9 100644 --- a/Documentation/devicetree/bindings/mfd/google,cros-ec.yaml +++ b/Documentation/devicetree/bindings/mfd/google,cros-ec.yaml @@ -33,6 +33,9 @@ properties: - description: For implementations of the EC connected through RPMSG. const: google,cros-ec-rpmsg + - description: + For implementations of the EC connected through UART. + const: google,cros-ec-uart controller-data: true @@ -187,6 +190,15 @@ allOf: properties: mediatek,rpmsg-name: false + - if: + properties: + compatible: + not: + contains: + enum: + - google,cros-ec-rpmsg + - google,cros-ec-uart + then: required: - reg - interrupts @@ -299,4 +311,12 @@ examples: vdd-supply = <&pp3300_fp_mcu>; }; }; + + # Example for UART + - | + serial { + cros-ec { + compatible = "google,cros-ec-uart"; + }; + }; ... |