Message ID | c0590d8898e553f29c96c7c4083f7b3ca1915727.1715050962.git.zhoubinbin@loongson.cn |
---|---|
State | Accepted |
Headers | show |
Series | dt-bindings: pwm: renesas,tpu: Do not require pwm-cells twice | expand |
Hello, On Tue, May 07, 2024 at 02:54:12PM +0800, Binbin Zhou wrote: > pwm-cells property is already required by pwm.yaml schema. > > Suggested-by: Uwe Kleine-König <ukleinek@kernel.org> > Signed-off-by: Binbin Zhou <zhoubinbin@loongson.cn> Applied to https://git.kernel.org/pub/scm/linux/kernel/git/ukleinek/linux.git pwm/for-next . Thanks! Best regards Uwe
On Tue, May 7, 2024 at 1:54 AM Binbin Zhou <zhoubinbin@loongson.cn> wrote: > > pwm-cells property is already required by pwm.yaml schema. This should be dropped or reverted. > Suggested-by: Uwe Kleine-König <ukleinek@kernel.org> > Signed-off-by: Binbin Zhou <zhoubinbin@loongson.cn> > --- > > This is a missing patch to cleanup the required pwm-cells attribute twice[1]. > Thanks to Uwe for the heads up. > [1]:https://lore.kernel.org/linux-pwm/cover.1714450308.git.zhoubinbin@loongson.cn/ > > Documentation/devicetree/bindings/pwm/renesas,tpu-pwm.yaml | 1 - > 1 file changed, 1 deletion(-) > > diff --git a/Documentation/devicetree/bindings/pwm/renesas,tpu-pwm.yaml b/Documentation/devicetree/bindings/pwm/renesas,tpu-pwm.yaml > index a3e52b22dd18..4c8ce7a26d13 100644 > --- a/Documentation/devicetree/bindings/pwm/renesas,tpu-pwm.yaml > +++ b/Documentation/devicetree/bindings/pwm/renesas,tpu-pwm.yaml > @@ -16,7 +16,6 @@ select: > const: renesas,tpu > required: > - compatible > - - '#pwm-cells' This line is not requiring #pwm-cells, but rather only applying the schema when #pwm-cells is present. It is needed because there's also renesas,tpu in bindings/timer/renesas,tpu.yaml. Without this, linux-next now has these warnings: /builds/robherring/linux-dt/Documentation/devicetree/bindings/timer/renesas,tpu.example.dtb: tpu@ffffe0: compatible:0: 'renesas,tpu' is not one of ['renesas,tpu-r8a73a4', 'renesas,tpu-r8a7740', 'renesas,tpu-r8a7742', 'renesas,tpu-r8a7743', 'renesas,tpu-r8a7744', 'renesas,tpu-r8a7745', 'renesas,tpu-r8a7790', 'renesas,tpu-r8a7791', 'renesas,tpu-r8a7792', 'renesas,tpu-r8a7793', 'renesas,tpu-r8a7794', 'renesas,tpu-r8a7795', 'renesas,tpu-r8a7796', 'renesas,tpu-r8a77961', 'renesas,tpu-r8a77965', 'renesas,tpu-r8a77970', 'renesas,tpu-r8a77980', 'renesas,tpu-r8a779a0', 'renesas,tpu-r8a779g0'] from schema $id: http://devicetree.org/schemas/pwm/renesas,tpu-pwm.yaml# /builds/robherring/linux-dt/Documentation/devicetree/bindings/timer/renesas,tpu.example.dtb: tpu@ffffe0: compatible: ['renesas,tpu'] is too short from schema $id: http://devicetree.org/schemas/pwm/renesas,tpu-pwm.yaml# /builds/robherring/linux-dt/Documentation/devicetree/bindings/timer/renesas,tpu.example.dtb: tpu@ffffe0: reg: [[16777184, 16], [16777200, 12]] is too long from schema $id: http://devicetree.org/schemas/pwm/renesas,tpu-pwm.yaml# /builds/robherring/linux-dt/Documentation/devicetree/bindings/timer/renesas,tpu.example.dtb: tpu@ffffe0: 'power-domains' is a required property from schema $id: http://devicetree.org/schemas/pwm/renesas,tpu-pwm.yaml# /builds/robherring/linux-dt/Documentation/devicetree/bindings/timer/renesas,tpu.example.dtb: tpu@ffffe0: $nodename:0: 'tpu@ffffe0' does not match '^pwm(@.*|-([0-9]|[1-9][0-9]+))?$' from schema $id: http://devicetree.org/schemas/pwm/renesas,tpu-pwm.yaml# /builds/robherring/linux-dt/Documentation/devicetree/bindings/timer/renesas,tpu.example.dtb: tpu@ffffe0: '#pwm-cells' is a required property from schema $id: http://devicetree.org/schemas/pwm/renesas,tpu-pwm.yaml# /builds/robherring/linux-dt/Documentation/devicetree/bindings/timer/renesas,tpu.example.dtb: tpu@ffffe0: 'resets' is a required property from schema $id: http://devicetree.org/schemas/pwm/renesas,tpu-pwm.yaml# /builds/robherring/linux-dt/Documentation/devicetree/bindings/timer/renesas,tpu.example.dtb: tpu@ffffe0: 'clock-names' does not match any of the regexes: 'pinctrl-[0-9]+' from schema $id: http://devicetree.org/schemas/pwm/renesas,tpu-pwm.yaml# Rob
On Thu, May 09, 2024 at 08:46:14AM -0500, Rob Herring wrote: > On Tue, May 7, 2024 at 1:54 AM Binbin Zhou <zhoubinbin@loongson.cn> wrote: > > > > pwm-cells property is already required by pwm.yaml schema. > > This should be dropped or reverted. > > > Suggested-by: Uwe Kleine-König <ukleinek@kernel.org> > > Signed-off-by: Binbin Zhou <zhoubinbin@loongson.cn> > > --- > > > > This is a missing patch to cleanup the required pwm-cells attribute twice[1]. > > Thanks to Uwe for the heads up. > > [1]:https://lore.kernel.org/linux-pwm/cover.1714450308.git.zhoubinbin@loongson.cn/ > > > > Documentation/devicetree/bindings/pwm/renesas,tpu-pwm.yaml | 1 - > > 1 file changed, 1 deletion(-) > > > > diff --git a/Documentation/devicetree/bindings/pwm/renesas,tpu-pwm.yaml b/Documentation/devicetree/bindings/pwm/renesas,tpu-pwm.yaml > > index a3e52b22dd18..4c8ce7a26d13 100644 > > --- a/Documentation/devicetree/bindings/pwm/renesas,tpu-pwm.yaml > > +++ b/Documentation/devicetree/bindings/pwm/renesas,tpu-pwm.yaml > > @@ -16,7 +16,6 @@ select: > > const: renesas,tpu > > required: > > - compatible > > - - '#pwm-cells' > > This line is not requiring #pwm-cells, but rather only applying the > schema when #pwm-cells is present. It is needed because there's also > renesas,tpu in bindings/timer/renesas,tpu.yaml. Without this, > linux-next now has these warnings: > > [...] Huh, indeed. I only grepped and didn't notice the context of the line. I dropped the patch. Sorry and thanks Uwe
diff --git a/Documentation/devicetree/bindings/pwm/renesas,tpu-pwm.yaml b/Documentation/devicetree/bindings/pwm/renesas,tpu-pwm.yaml index a3e52b22dd18..4c8ce7a26d13 100644 --- a/Documentation/devicetree/bindings/pwm/renesas,tpu-pwm.yaml +++ b/Documentation/devicetree/bindings/pwm/renesas,tpu-pwm.yaml @@ -16,7 +16,6 @@ select: const: renesas,tpu required: - compatible - - '#pwm-cells' properties: compatible:
pwm-cells property is already required by pwm.yaml schema. Suggested-by: Uwe Kleine-König <ukleinek@kernel.org> Signed-off-by: Binbin Zhou <zhoubinbin@loongson.cn> --- This is a missing patch to cleanup the required pwm-cells attribute twice[1]. Thanks to Uwe for the heads up. [1]:https://lore.kernel.org/linux-pwm/cover.1714450308.git.zhoubinbin@loongson.cn/ Documentation/devicetree/bindings/pwm/renesas,tpu-pwm.yaml | 1 - 1 file changed, 1 deletion(-)