From: Fabio Estevam <festevam@xxxxxxx> All the in-tree imx23 and imx28 devicetrees use #pwm-cells = <2>. Allow it in the schema to avoid warnings. It is still possible for a devicetree to pass the third cell with the PWM polarity though. This is similar to imx-pwm.yaml that allows #pwm-cells to be 2 or 3. Signed-off-by: Fabio Estevam <festevam@xxxxxxx> --- Documentation/devicetree/bindings/pwm/mxs-pwm.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/pwm/mxs-pwm.yaml b/Documentation/devicetree/bindings/pwm/mxs-pwm.yaml index 8f50e23ca8c9..405c6412dd5f 100644 --- a/Documentation/devicetree/bindings/pwm/mxs-pwm.yaml +++ b/Documentation/devicetree/bindings/pwm/mxs-pwm.yaml @@ -29,7 +29,9 @@ properties: maxItems: 1 "#pwm-cells": - const: 3 + enum: + - 2 + - 3 fsl,pwm-number: $ref: /schemas/types.yaml#/definitions/uint32 -- 2.34.1