Commit 0c8884fe authored by Bhanu Prakash Maiya's avatar Bhanu Prakash Maiya Committed by Lee Jones
Browse files

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: default avatarBhanu Prakash Maiya <bhanumaiya@chromium.org>
Co-developed-by: default avatarMark Hasemeyer <markhas@chromium.org>
Signed-off-by: default avatarMark Hasemeyer <markhas@chromium.org>
Acked-by: default avatarKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Signed-off-by: default avatarLee Jones <lee@kernel.org>
Link: https://lore.kernel.org/r/20221207104005.v10.2.I9e018ecb8bdf341648cb64417085978ff0d22a46@changeid
parent 8cc5e62b
Loading
Loading
Loading
Loading
+20 −0
Original line number Diff line number Diff line
@@ -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";
        };
    };
...