forked from zephyrproject-rtos/zephyr
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
i2c: nordic: switch to phandle arrays for pinmux
Deprecate the scl-pin and sda-pin properties in the devicetree. Provide new scl-gpios and sda-gpios properties instead. This lets the user specify SCL and SDA like this: &i2c0 { scl-gpios = <&gpio0 1 0>; sda-gpios = <&gpio1 4 0>; }; Instead of having to use: &i2c0 { scl-pin = <1>; sda-pin = <36>; }; Provide error checking and understandable error messages for invalid configurations. Signed-off-by: Martí Bolívar <[email protected]>
- Loading branch information
1 parent
f7aeb2a
commit 821c03a
Showing
3 changed files
with
53 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters