Skip to content
Commit 821c03a1 authored by Martí Bolívar's avatar Martí Bolívar Committed by Carles Cufi
Browse files

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: default avatarMartí Bolívar <marti.bolivar@nordicsemi.no>
parent f7aeb2ae
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment