DT checker RS485 unevaluated property, 8250 OMAP UART
Subsystems (2)
Hello,
while writing a new DT file I stumbled across this warning
.../arch/arm64/boot/dts/ti/k3-am625-verdin-wifi-dev.dtb: serial@2810000: Unevaluated properties are not allowed ('rs485-rts-active-high' was unexpected)
From schema: .../Documentation/devicetree/bindings/serial/8250_omap.yaml
The property is currently used in the OMAP serial driver
drivers/tty/serial/omap-serial.c
1511: if (of_property_read_bool(np, "rs485-rts-active-high")) {
and a few DT files.
I do require it, despite being wrong, because of some legacy reasons [1].
Before commit 767d3467eb60 ("dt-bindings: serial: 8250_omap: drop rs485 properties") this property was allowed.
What should I do?
- ignore the warning
- send a patch to reintroduce rs485-rts-active-high: true in 8250_omap.yaml
- something else?
I would be inclined to send the following patch, do you agree?
Documentation/devicetree/bindings/serial/8250_omap.yaml +1 -0
@@ -70,6 +70,7 @@ properties: dsr-gpios: true rng-gpios: true dcd-gpios: true + rs485-rts-active-low: true rts-gpio: true power-domains: true clock-frequency: true
[1] https://lore.kernel.org/all/[email protected]/
Francesco
Quoted 11 lines · Francesco Dolcini
Hello,
while writing a new DT file I stumbled across this warning.../arch/arm64/boot/dts/ti/k3-am625-verdin-wifi-dev.dtb: serial@2810000: Unevaluated properties are not allowed ('rs485-rts-active-high' was unexpected)
From schema:.../Documentation/devicetree/bindings/serial/8250_omap.yamlThe property is currently used in the OMAP serial driver
drivers/tty/serial/omap-serial.c
1511: if (of_property_read_bool(np, "rs485-rts-active-high")) {
Would be it possible to update driver to imply rs485-rts-active-high" this by lack of rs485-rts-active-low property in DT instead?
Quoted 19 lines
and a few DT files.
I do require it, despite being wrong, because of some legacy reasons [1].
Before commit
767d3467eb60("dt-bindings: serial: 8250_omap: drop rs485 properties") this property was allowed.What should I do?
- ignore the warning
- send a patch to reintroducers485-rts-active-high: truein8250_omap.yaml
- something else?I would be inclined to send the following patch, do you agree?
Documentation/devicetree/bindings/serial/8250_omap.yaml +0
-0
Documentation/devicetree/bindings/serial/8250_omap.yaml properties: · line 73
Quoted 4 lines
Documentation/devicetree/bindings/serial/8250_omap.yaml +1
-0@@ -70,6 +70,7 @@ properties: dsr-gpios: true rng-gpios: true dcd-gpios: true + rs485-rts-active-low: true
I believe you mean rs485-rts-active-high here
Quoted 6 lines
Documentation/devicetree/bindings/serial/8250_omap.yaml +0
-0rts-gpio: true power-domains: true clock-frequency: true
Also, I hope you are using 8250_ompa.c and not omap-serial.c for newer designs. omap-serial.c is mostly there to support legacy SoCs and not to be used with K3 SoCs.
Regards
Vignesh
Quoted 7 lines · Vignesh Raghavendra
Quoted 6 lines · Francesco Dolcini
Hello,
while writing a new DT file I stumbled across this warning.../arch/arm64/boot/dts/ti/k3-am625-verdin-wifi-dev.dtb: serial@2810000: Unevaluated properties are not allowed ('rs485-rts-active-high' was unexpected)
From schema:.../Documentation/devicetree/bindings/serial/8250_omap.yaml
Quoted 8 lines
Quoted 5 lines
The property is currently used in the OMAP serial driver
drivers/tty/serial/omap-serial.c
1511: if (of_property_read_bool(np, "rs485-rts-active-high")) {Would be it possible to update driver to imply rs485-rts-active-high" this by lack of rs485-rts-active-low property in DT instead?
What about backward compatibility? This is what is done in all drivers apart omap-serial if I'm not wrong.
Quoted 13 lines
Documentation/devicetree/bindings/serial/8250_omap.yaml properties: · line 73
Quoted 11 lines
I would be inclined to send the following patch, do you agree?
Documentation/devicetree/bindings/serial/8250_omap.yaml +1
-0@@ -70,6 +70,7 @@ properties: dsr-gpios: true rng-gpios: true dcd-gpios: true + rs485-rts-active-low: trueI believe you mean rs485-rts-active-high here
whoops, yes of course.
Quoted 11 lines
Quoted 7 lines
Documentation/devicetree/bindings/serial/8250_omap.yaml +0
-0rts-gpio: true power-domains: true clock-frequency: trueAlso, I hope you are using
8250_ompa.cand notomap-serial.cfor newer designs.omap-serial.cis mostly there to support legacy SoCs and not to be used with K3 SoCs.
Thanks for this head-up. This confused myself, while the issue I reported here is real, it does affect only omap-serial.c. In my case I am using 8250_omap.c and I can just omit the property from the DTS as generally expected!
Francesco
Quoted 14 lines · Francesco Dolcini
Quoted 13 lines · Vignesh Raghavendra
Quoted 11 lines · Francesco Dolcini
Hello,
while writing a new DT file I stumbled across this warning.../arch/arm64/boot/dts/ti/k3-am625-verdin-wifi-dev.dtb: serial@2810000: Unevaluated properties are not allowed ('rs485-rts-active-high' was unexpected)
From schema:.../Documentation/devicetree/bindings/serial/8250_omap.yamlThe property is currently used in the OMAP serial driver
drivers/tty/serial/omap-serial.c
1511: if (of_property_read_bool(np, "rs485-rts-active-high")) {
Quoted 5 lines
Quoted 2 lines
Would be it possible to update driver to imply rs485-rts-active-high" this by lack of rs485-rts-active-low property in DT instead?
What about backward compatibility? This is what is done in all drivers apart omap-serial if I'm not wrong.
Uh, I removed too much in that commit. We need to keep backwards compatibility because driver used default (missing property) as active low.
Quoted 14 lines
Quoted 14 lines
Documentation/devicetree/bindings/serial/8250_omap.yaml properties: · line 73
Quoted 12 lines
I would be inclined to send the following patch, do you agree?
Documentation/devicetree/bindings/serial/8250_omap.yaml +1
-0@@ -70,6 +70,7 @@ properties: dsr-gpios: true rng-gpios: true dcd-gpios: true + rs485-rts-active-low: trueI believe you mean rs485-rts-active-high here
Quoted 1 line
whoops, yes of course.
Yes, with a Fixes tag.
Quoted 9 lines
Quoted 9 lines
Quoted 8 lines
Documentation/devicetree/bindings/serial/8250_omap.yaml +0
-0rts-gpio: true power-domains: true clock-frequency: true
Quoted 8 lines
Quoted 3 lines
Also, I hope you are using
8250_ompa.cand notomap-serial.cfor newer designs.omap-serial.cis mostly there to support legacy SoCs and not to be used with K3 SoCs.Thanks for this head-up. This confused myself, while the issue I reported here is real, it does affect only
omap-serial.c. In my case I am using8250_omap.cand I can just omit the property from the DTS as generally expected!
OK. Are you going send a fix for original issue?
Best regards,
Krzysztof
Quoted 16 lines · Krzysztof Kozlowski
Quoted 15 lines · Francesco Dolcini
Quoted 14 lines · Vignesh Raghavendra
Documentation/devicetree/bindings/serial/8250_omap.yaml properties: · line 73
Quoted 11 lines · Francesco Dolcini
I would be inclined to send the following patch, do you agree?
Documentation/devicetree/bindings/serial/8250_omap.yaml +1
-0@@ -70,6 +70,7 @@ properties: dsr-gpios: true rng-gpios: true dcd-gpios: true + rs485-rts-active-low: trueI believe you mean rs485-rts-active-high here
Quoted 3 lines
Quoted 1 line
whoops, yes of course.
Yes, with a Fixes tag.
Ack
Quoted 11 lines
Quoted 11 lines
Quoted 10 lines
Quoted 6 lines
Documentation/devicetree/bindings/serial/8250_omap.yaml +0
-0rts-gpio: true power-domains: true clock-frequency: trueAlso, I hope you are using
8250_ompa.cand notomap-serial.cfor newer designs.omap-serial.cis mostly there to support legacy SoCs and not to be used with K3 SoCs.
Quoted 6 lines
Quoted 4 lines
Thanks for this head-up. This confused myself, while the issue I reported here is real, it does affect only
omap-serial.c. In my case I am using8250_omap.cand I can just omit the property from the DTS as generally expected!OK. Are you going send a fix for original issue?
I'll do it, thanks!