Re: Re: [PATCH v13 2/5] dt-bindings: pwm: dwc: Add eswin compatible
From: Xuyang Dong
Date: Mon Jul 27 2026 - 05:30:46 EST
> > reg:
> > maxItems: 1
> > @@ -44,11 +43,13 @@ properties:
> > - const: timer
> >
> > resets:
> > + minItems: 1
> > items:
> > - description: Interface bus (presetn) reset
> > - description: PWM timer logic (timer_N_resetn) reset
> >
> > reset-names:
> > + minItems: 1
>
> Drop minItems in such case - resets with one item won't be allowed to be
> used with reset-names
>
Hi Krzysztof,
We will drop minItems of reset-names in the next version.
> > items:
> > - const: bus
> > - const: timer
> > @@ -64,6 +65,23 @@ required:
> > - clocks
> > - clock-names
> >
> > +allOf:
> > + - $ref: pwm.yaml#
> > +
> > + - if:
> > + properties:
> > + compatible:
> > + contains:
> > + const: eswin,eic7700-pwm
> > + then:
> > + properties:
> > + resets:
> > + items:
> > + - description: Combined APB interface and timer logic reset
> > + reset-names: false
> > + required:
> > + - resets
>
> else:
> properties:
> resets:
> minItems: 2
> reset-names:
> minItems: 2
>
Add the else in the next version.
Best regards,
Xuyang Dong
> > +
> > additionalProperties: false
> >
> > examples:
> > @@ -75,3 +93,12 @@ examples:
>