On 11/04/2024 11:16, Binbin Zhou wrote: > Add Loongson PWM controller binding with DT schema format using > json-schema. > > Signed-off-by: Binbin Zhou <zhoubinbin@xxxxxxxxxxx> > +properties: > + compatible: > + oneOf: > + - const: loongson,ls7a-pwm > + - items: > + - enum: > + - loongson,ls2k0500-pwm > + - loongson,ls2k1000-pwm > + - loongson,ls2k2000-pwm > + - const: loongson,ls7a-pwm > + > + reg: > + maxItems: 1 > + > + interrupts: > + maxItems: 1 > + > + clocks: > + maxItems: 1 > + > + '#pwm-cells': > + description: > + The first cell must have a value of 0, which specifies the PWM output signal; If you have always the same value in PWM phandle, why encoding it in the phandle in the first place? What's the benefit of passing 0? > + The second cell is the period in nanoseconds; > + The third cell flag supported by this binding is PWM_POLARITY_INVERTED. > + const: 3 > + > +required: > + - compatible > + - reg > + - interrupts > + - clocks > + > +additionalProperties: false > + Best regards, Krzysztof