2023-05-31 11:20:28

by Francesco Dolcini

[permalink] [raw]
Subject: [PATCH v2] dt-bindings: serial: 8250_omap: add rs485-rts-active-high

From: Francesco Dolcini <[email protected]>

Add rs485-rts-active-high property, this was removed by mistake.
In general we just use rs485-rts-active-low property, however the OMAP
UART for legacy reason uses the -high one.

Fixes: 767d3467eb60 ("dt-bindings: serial: 8250_omap: drop rs485 properties")
Closes: https://lore.kernel.org/all/[email protected]/
Signed-off-by: Francesco Dolcini <[email protected]>
---
v2: removed reported-by
---
Documentation/devicetree/bindings/serial/8250_omap.yaml | 1 +
1 file changed, 1 insertion(+)

diff --git a/Documentation/devicetree/bindings/serial/8250_omap.yaml b/Documentation/devicetree/bindings/serial/8250_omap.yaml
index eb3488d8f9ee..6a7be42da523 100644
--- a/Documentation/devicetree/bindings/serial/8250_omap.yaml
+++ b/Documentation/devicetree/bindings/serial/8250_omap.yaml
@@ -70,6 +70,7 @@ properties:
dsr-gpios: true
rng-gpios: true
dcd-gpios: true
+ rs485-rts-active-high: true
rts-gpio: true
power-domains: true
clock-frequency: true
--
2.25.1



2023-06-01 10:39:19

by Krzysztof Kozlowski

[permalink] [raw]
Subject: Re: [PATCH v2] dt-bindings: serial: 8250_omap: add rs485-rts-active-high

On 31/05/2023 13:10, Francesco Dolcini wrote:
> From: Francesco Dolcini <[email protected]>
>
> Add rs485-rts-active-high property, this was removed by mistake.
> In general we just use rs485-rts-active-low property, however the OMAP
> UART for legacy reason uses the -high one.
>
> Fixes: 767d3467eb60 ("dt-bindings: serial: 8250_omap: drop rs485 properties")
> Closes: https://lore.kernel.org/all/[email protected]/
> Signed-off-by: Francesco Dolcini <[email protected]>


Reviewed-by: Krzysztof Kozlowski <[email protected]>

Best regards,
Krzysztof


2023-10-19 10:09:40

by Geert Uytterhoeven

[permalink] [raw]
Subject: Re: [PATCH v2] dt-bindings: serial: 8250_omap: add rs485-rts-active-high

Hi Francesco,

On Wed, May 31, 2023 at 1:14 PM Francesco Dolcini <[email protected]> wrote:
> From: Francesco Dolcini <[email protected]>
>
> Add rs485-rts-active-high property, this was removed by mistake.
> In general we just use rs485-rts-active-low property, however the OMAP
> UART for legacy reason uses the -high one.
>
> Fixes: 767d3467eb60 ("dt-bindings: serial: 8250_omap: drop rs485 properties")
> Closes: https://lore.kernel.org/all/[email protected]/
> Signed-off-by: Francesco Dolcini <[email protected]>
> ---
> v2: removed reported-by

Thanks for your patch, which is now commit 403e97d6ab2cb6fd
("dt-bindings: serial: 8250_omap: add rs485-rts-active-high")
in v6.4-rc5.

> --- a/Documentation/devicetree/bindings/serial/8250_omap.yaml
> +++ b/Documentation/devicetree/bindings/serial/8250_omap.yaml
> @@ -70,6 +70,7 @@ properties:
> dsr-gpios: true
> rng-gpios: true
> dcd-gpios: true
> + rs485-rts-active-high: true

make dt_binding_check complains:

Documentation/devicetree/bindings/serial/8250_omap.yaml:
rs485-rts-active-high: missing type definition

This property should have been added to
Documentation/devicetree/bindings/serial/serial.yaml first.

> rts-gpio: true
> power-domains: true
> clock-frequency: true

Gr{oetje,eeting}s,

Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds

2023-10-19 15:06:23

by Francesco Dolcini

[permalink] [raw]
Subject: Re: [PATCH v2] dt-bindings: serial: 8250_omap: add rs485-rts-active-high

Hello Geert,

On Thu, Oct 19, 2023 at 12:09:06PM +0200, Geert Uytterhoeven wrote:
> On Wed, May 31, 2023 at 1:14 PM Francesco Dolcini <[email protected]> wrote:
> > From: Francesco Dolcini <[email protected]>
> >
> > Add rs485-rts-active-high property, this was removed by mistake.
> > In general we just use rs485-rts-active-low property, however the OMAP
> > UART for legacy reason uses the -high one.
> >
> > Fixes: 767d3467eb60 ("dt-bindings: serial: 8250_omap: drop rs485 properties")
> > Closes: https://lore.kernel.org/all/[email protected]/
> > Signed-off-by: Francesco Dolcini <[email protected]>
> > ---
> > v2: removed reported-by
>
> Thanks for your patch, which is now commit 403e97d6ab2cb6fd
> ("dt-bindings: serial: 8250_omap: add rs485-rts-active-high")
> in v6.4-rc5.
>
> > --- a/Documentation/devicetree/bindings/serial/8250_omap.yaml
> > +++ b/Documentation/devicetree/bindings/serial/8250_omap.yaml
> > @@ -70,6 +70,7 @@ properties:
> > dsr-gpios: true
> > rng-gpios: true
> > dcd-gpios: true
> > + rs485-rts-active-high: true
>
> make dt_binding_check complains:
>
> Documentation/devicetree/bindings/serial/8250_omap.yaml:
> rs485-rts-active-high: missing type definition

For some reasons it works for me (and worked when I did send the patch)

$ make dt_binding_check DT_SCHEMA_FILES=8250_omap.yaml
...
HOSTCC scripts/dtc/libfdt/fdt_overlay.o
HOSTCC scripts/dtc/fdtoverlay.o
HOSTLD scripts/dtc/fdtoverlay
LINT Documentation/devicetree/bindings
invalid config: unknown option "required" for rule "quoted-strings"
xargs: /usr/bin/yamllint: exited with status 255; aborting
CHKDT Documentation/devicetree/bindings/processed-schema.json
SCHEMA Documentation/devicetree/bindings/processed-schema.json
/home/francesco/Toradex/sources/linux/Documentation/devicetree/bindings/phy/qcom,usb-snps-femto-v2.yaml: ignoring, error in schema: properties: qcom,ls-fs-output-impedance-bp
/home/francesco/Toradex/sources/linux/Documentation/devicetree/bindings/arm/vexpress-sysreg.yaml: ignoring, error in schema: properties: gpio-controller
/home/francesco/Toradex/sources/linux/Documentation/devicetree/bindings/iio/temperature/adi,ltc2983.yaml: ignoring, error in schema: patternProperties: ^thermistor@: properties: adi,excitation-current-nanoamp
/home/francesco/Toradex/sources/linux/Documentation/devicetree/bindings/iio/adc/adi,ad4130.yaml: ignoring, error in schema: patternProperties: ^channel@([0-9a-f])$: properties: adi,burnout-current-nanoamp
/home/francesco/Toradex/sources/linux/Documentation/devicetree/bindings/iio/addac/adi,ad74115.yaml: ignoring, error in schema: properties: adi,ext2-burnout-current-nanoamp
DTEX Documentation/devicetree/bindings/serial/8250_omap.example.dts
DTC_CHK Documentation/devicetree/bindings/serial/8250_omap.example.dtb


any idea on what could be different between us?

> This property should have been added to
> Documentation/devicetree/bindings/serial/serial.yaml first.

Francesco


2023-10-19 15:13:35

by Geert Uytterhoeven

[permalink] [raw]
Subject: Re: [PATCH v2] dt-bindings: serial: 8250_omap: add rs485-rts-active-high

Hi Franceso,

On Thu, Oct 19, 2023 at 5:05 PM Francesco Dolcini <[email protected]> wrote:
> On Thu, Oct 19, 2023 at 12:09:06PM +0200, Geert Uytterhoeven wrote:
> > On Wed, May 31, 2023 at 1:14 PM Francesco Dolcini <[email protected]> wrote:
> > > From: Francesco Dolcini <[email protected]>
> > >
> > > Add rs485-rts-active-high property, this was removed by mistake.
> > > In general we just use rs485-rts-active-low property, however the OMAP
> > > UART for legacy reason uses the -high one.
> > >
> > > Fixes: 767d3467eb60 ("dt-bindings: serial: 8250_omap: drop rs485 properties")
> > > Closes: https://lore.kernel.org/all/[email protected]/
> > > Signed-off-by: Francesco Dolcini <[email protected]>
> > > ---
> > > v2: removed reported-by
> >
> > Thanks for your patch, which is now commit 403e97d6ab2cb6fd
> > ("dt-bindings: serial: 8250_omap: add rs485-rts-active-high")
> > in v6.4-rc5.
> >
> > > --- a/Documentation/devicetree/bindings/serial/8250_omap.yaml
> > > +++ b/Documentation/devicetree/bindings/serial/8250_omap.yaml
> > > @@ -70,6 +70,7 @@ properties:
> > > dsr-gpios: true
> > > rng-gpios: true
> > > dcd-gpios: true
> > > + rs485-rts-active-high: true
> >
> > make dt_binding_check complains:
> >
> > Documentation/devicetree/bindings/serial/8250_omap.yaml:
> > rs485-rts-active-high: missing type definition
>
> For some reasons it works for me (and worked when I did send the patch)
>
> $ make dt_binding_check DT_SCHEMA_FILES=8250_omap.yaml
> ...
> HOSTCC scripts/dtc/libfdt/fdt_overlay.o
> HOSTCC scripts/dtc/fdtoverlay.o
> HOSTLD scripts/dtc/fdtoverlay
> LINT Documentation/devicetree/bindings
> invalid config: unknown option "required" for rule "quoted-strings"
> xargs: /usr/bin/yamllint: exited with status 255; aborting
> CHKDT Documentation/devicetree/bindings/processed-schema.json
> SCHEMA Documentation/devicetree/bindings/processed-schema.json
> /home/francesco/Toradex/sources/linux/Documentation/devicetree/bindings/phy/qcom,usb-snps-femto-v2.yaml: ignoring, error in schema: properties: qcom,ls-fs-output-impedance-bp
> /home/francesco/Toradex/sources/linux/Documentation/devicetree/bindings/arm/vexpress-sysreg.yaml: ignoring, error in schema: properties: gpio-controller
> /home/francesco/Toradex/sources/linux/Documentation/devicetree/bindings/iio/temperature/adi,ltc2983.yaml: ignoring, error in schema: patternProperties: ^thermistor@: properties: adi,excitation-current-nanoamp
> /home/francesco/Toradex/sources/linux/Documentation/devicetree/bindings/iio/adc/adi,ad4130.yaml: ignoring, error in schema: patternProperties: ^channel@([0-9a-f])$: properties: adi,burnout-current-nanoamp
> /home/francesco/Toradex/sources/linux/Documentation/devicetree/bindings/iio/addac/adi,ad74115.yaml: ignoring, error in schema: properties: adi,ext2-burnout-current-nanoamp
> DTEX Documentation/devicetree/bindings/serial/8250_omap.example.dts
> DTC_CHK Documentation/devicetree/bindings/serial/8250_omap.example.dtb
>
>
> any idea on what could be different between us?

Are you using the latest dt-schema?

Gr{oetje,eeting}s,

Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds

2023-10-19 15:37:43

by Francesco Dolcini

[permalink] [raw]
Subject: Re: [PATCH v2] dt-bindings: serial: 8250_omap: add rs485-rts-active-high

On Thu, Oct 19, 2023 at 05:13:01PM +0200, Geert Uytterhoeven wrote:
> Hi Franceso,
>
> On Thu, Oct 19, 2023 at 5:05 PM Francesco Dolcini <[email protected]> wrote:
> > On Thu, Oct 19, 2023 at 12:09:06PM +0200, Geert Uytterhoeven wrote:
> > > On Wed, May 31, 2023 at 1:14 PM Francesco Dolcini <[email protected]> wrote:
> > > > From: Francesco Dolcini <[email protected]>
> > > >
> > > > Add rs485-rts-active-high property, this was removed by mistake.
> > > > In general we just use rs485-rts-active-low property, however the OMAP
> > > > UART for legacy reason uses the -high one.
> > > >
> > > > Fixes: 767d3467eb60 ("dt-bindings: serial: 8250_omap: drop rs485 properties")
> > > > Closes: https://lore.kernel.org/all/[email protected]/
> > > > Signed-off-by: Francesco Dolcini <[email protected]>
> > > > ---
> > > > v2: removed reported-by
> > >
> > > Thanks for your patch, which is now commit 403e97d6ab2cb6fd
> > > ("dt-bindings: serial: 8250_omap: add rs485-rts-active-high")
> > > in v6.4-rc5.
> > >
> > > > --- a/Documentation/devicetree/bindings/serial/8250_omap.yaml
> > > > +++ b/Documentation/devicetree/bindings/serial/8250_omap.yaml
> > > > @@ -70,6 +70,7 @@ properties:
> > > > dsr-gpios: true
> > > > rng-gpios: true
> > > > dcd-gpios: true
> > > > + rs485-rts-active-high: true
> > >
> > > make dt_binding_check complains:
> > >
> > > Documentation/devicetree/bindings/serial/8250_omap.yaml:
> > > rs485-rts-active-high: missing type definition
> >
> > For some reasons it works for me (and worked when I did send the patch)
> >
> > $ make dt_binding_check DT_SCHEMA_FILES=8250_omap.yaml
> > ...
> > HOSTCC scripts/dtc/libfdt/fdt_overlay.o
> > HOSTCC scripts/dtc/fdtoverlay.o
> > HOSTLD scripts/dtc/fdtoverlay
> > LINT Documentation/devicetree/bindings
> > invalid config: unknown option "required" for rule "quoted-strings"
> > xargs: /usr/bin/yamllint: exited with status 255; aborting
> > CHKDT Documentation/devicetree/bindings/processed-schema.json
> > SCHEMA Documentation/devicetree/bindings/processed-schema.json
> > /home/francesco/Toradex/sources/linux/Documentation/devicetree/bindings/phy/qcom,usb-snps-femto-v2.yaml: ignoring, error in schema: properties: qcom,ls-fs-output-impedance-bp
> > /home/francesco/Toradex/sources/linux/Documentation/devicetree/bindings/arm/vexpress-sysreg.yaml: ignoring, error in schema: properties: gpio-controller
> > /home/francesco/Toradex/sources/linux/Documentation/devicetree/bindings/iio/temperature/adi,ltc2983.yaml: ignoring, error in schema: patternProperties: ^thermistor@: properties: adi,excitation-current-nanoamp
> > /home/francesco/Toradex/sources/linux/Documentation/devicetree/bindings/iio/adc/adi,ad4130.yaml: ignoring, error in schema: patternProperties: ^channel@([0-9a-f])$: properties: adi,burnout-current-nanoamp
> > /home/francesco/Toradex/sources/linux/Documentation/devicetree/bindings/iio/addac/adi,ad74115.yaml: ignoring, error in schema: properties: adi,ext2-burnout-current-nanoamp
> > DTEX Documentation/devicetree/bindings/serial/8250_omap.example.dts
> > DTC_CHK Documentation/devicetree/bindings/serial/8250_omap.example.dtb
> >
> >
> > any idea on what could be different between us?
>
> Are you using the latest dt-schema?

Nope, and I tried to update it and now everything fails in a miserable
way.

In any case the fix is clear and I am pretty confident the issue I had is
what you just wrote, I'll send a patch.

Francesco

2023-10-19 19:34:28

by Rob Herring

[permalink] [raw]
Subject: Re: [PATCH v2] dt-bindings: serial: 8250_omap: add rs485-rts-active-high

On Thu, Oct 19, 2023 at 10:37 AM Francesco Dolcini <[email protected]> wrote:
>
> On Thu, Oct 19, 2023 at 05:13:01PM +0200, Geert Uytterhoeven wrote:
> > Hi Franceso,
> >
> > On Thu, Oct 19, 2023 at 5:05 PM Francesco Dolcini <[email protected]> wrote:
> > > On Thu, Oct 19, 2023 at 12:09:06PM +0200, Geert Uytterhoeven wrote:
> > > > On Wed, May 31, 2023 at 1:14 PM Francesco Dolcini <[email protected]> wrote:
> > > > > From: Francesco Dolcini <[email protected]>
> > > > >
> > > > > Add rs485-rts-active-high property, this was removed by mistake.
> > > > > In general we just use rs485-rts-active-low property, however the OMAP
> > > > > UART for legacy reason uses the -high one.
> > > > >
> > > > > Fixes: 767d3467eb60 ("dt-bindings: serial: 8250_omap: drop rs485 properties")
> > > > > Closes: https://lore.kernel.org/all/[email protected]/
> > > > > Signed-off-by: Francesco Dolcini <[email protected]>
> > > > > ---
> > > > > v2: removed reported-by
> > > >
> > > > Thanks for your patch, which is now commit 403e97d6ab2cb6fd
> > > > ("dt-bindings: serial: 8250_omap: add rs485-rts-active-high")
> > > > in v6.4-rc5.
> > > >
> > > > > --- a/Documentation/devicetree/bindings/serial/8250_omap.yaml
> > > > > +++ b/Documentation/devicetree/bindings/serial/8250_omap.yaml
> > > > > @@ -70,6 +70,7 @@ properties:
> > > > > dsr-gpios: true
> > > > > rng-gpios: true
> > > > > dcd-gpios: true
> > > > > + rs485-rts-active-high: true
> > > >
> > > > make dt_binding_check complains:
> > > >
> > > > Documentation/devicetree/bindings/serial/8250_omap.yaml:
> > > > rs485-rts-active-high: missing type definition
> > >
> > > For some reasons it works for me (and worked when I did send the patch)
> > >
> > > $ make dt_binding_check DT_SCHEMA_FILES=8250_omap.yaml
> > > ...
> > > HOSTCC scripts/dtc/libfdt/fdt_overlay.o
> > > HOSTCC scripts/dtc/fdtoverlay.o
> > > HOSTLD scripts/dtc/fdtoverlay
> > > LINT Documentation/devicetree/bindings
> > > invalid config: unknown option "required" for rule "quoted-strings"
> > > xargs: /usr/bin/yamllint: exited with status 255; aborting
> > > CHKDT Documentation/devicetree/bindings/processed-schema.json
> > > SCHEMA Documentation/devicetree/bindings/processed-schema.json
> > > /home/francesco/Toradex/sources/linux/Documentation/devicetree/bindings/phy/qcom,usb-snps-femto-v2.yaml: ignoring, error in schema: properties: qcom,ls-fs-output-impedance-bp
> > > /home/francesco/Toradex/sources/linux/Documentation/devicetree/bindings/arm/vexpress-sysreg.yaml: ignoring, error in schema: properties: gpio-controller
> > > /home/francesco/Toradex/sources/linux/Documentation/devicetree/bindings/iio/temperature/adi,ltc2983.yaml: ignoring, error in schema: patternProperties: ^thermistor@: properties: adi,excitation-current-nanoamp
> > > /home/francesco/Toradex/sources/linux/Documentation/devicetree/bindings/iio/adc/adi,ad4130.yaml: ignoring, error in schema: patternProperties: ^channel@([0-9a-f])$: properties: adi,burnout-current-nanoamp
> > > /home/francesco/Toradex/sources/linux/Documentation/devicetree/bindings/iio/addac/adi,ad74115.yaml: ignoring, error in schema: properties: adi,ext2-burnout-current-nanoamp
> > > DTEX Documentation/devicetree/bindings/serial/8250_omap.example.dts
> > > DTC_CHK Documentation/devicetree/bindings/serial/8250_omap.example.dtb
> > >
> > >
> > > any idea on what could be different between us?
> >
> > Are you using the latest dt-schema?

Indeed, it is a new check.

> Nope, and I tried to update it and now everything fails in a miserable
> way.

Do you have more details?

Rob