New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
nRF: change UART DT pinmux properties to tx-gpios, rx-gpios, rts-gpios, cts-gpios #32653
nRF: change UART DT pinmux properties to tx-gpios, rx-gpios, rts-gpios, cts-gpios #32653
Conversation
Blocked on #31965; only the final 3 commits are truly part of this PR. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
UART changes look good.
I found some RST docs that still reference the old properties. I'll update those too. |
541aee6
to
ee0138a
Compare
Rebased on master now that #31965 is merged. Driver changes are ready for review. DNM for now since it has increased the BK parallelism and I still need to update the RST files. That will require pulling some additional docs patches out of an older PR. |
In addition to the tx-pin, rx-pin, rts-pin, and cts-pin properties in the devicetree, provide new tx-gpios, rx-gpios, rts-gpios, and cts-gpios properties. This lets the user specify TX and RX like this: &uart0 { tx-gpios = <&gpio0 1 0>; rx-gpios = <&gpio1 4 0>; }; Instead of having to use: &uart0 { tx-pin = <1>; rx-pin = <36>; }; Provide error checking and understandable error messages for invalid configurations. Signed-off-by: Martí Bolívar <marti.bolivar@nordicsemi.no>
Convert uses of the following properties to these equivalents: tx-pin -> tx-gpios rx-pin -> rx-gpios rts-pin -> rts-gpios cts-pin -> cts-gpios Done with a script except for the /delete-property/ line in the samples. Sample, board, and test changes are combined for bisectability. Signed-off-by: Martí Bolívar <marti.bolivar@nordicsemi.no>
Deprecate the no longer used properties. Signed-off-by: Martí Bolívar <marti.bolivar@nordicsemi.no>
Trying to pass CI. Signed-off-by: Martí Bolívar <marti.bolivar@nordicsemi.no>
ee0138a
to
7f27e81
Compare
@mbolivar-nordic please rebase |
Abandoning due to #31965 (comment) |
This continues work begun in #31965 by making a similar change to UART bindings.
A prototypical example is to specify TX and RX like this in an overlay:
Instead of:
The old style is still supported, but at most one property in each pair can be given. Provide error checking and understandable error messages for invalid configurations.