Skip to content

Commit 17a6630

Browse files
mbolivar-nordiccarlescufi
authored andcommitted
boards: nrf: switch to sda-gpios, scl-gpios
Move the BOARD.dts files for Nordic-based boards to use the new I2C devicetree properties for specifying the SDA and SCL pins. This was done with a script. Signed-off-by: Martí Bolívar <[email protected]>
1 parent 821c03a commit 17a6630

File tree

50 files changed

+124
-124
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

50 files changed

+124
-124
lines changed

boards/arm/96b_carbon_nrf51/96b_carbon_nrf51.dts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@
3030

3131
&i2c0 {
3232
status = "okay";
33-
sda-pin = <28>;
34-
scl-pin = <2>;
33+
sda-gpios = <&gpio0 28 0>;
34+
scl-gpios = <&gpio0 2 0>;
3535
};
3636

3737
&uart0 {

boards/arm/96b_nitrogen/96b_nitrogen.dts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,8 @@
7575
&i2c0 {
7676
compatible = "nordic,nrf-twi";
7777
status = "okay";
78-
sda-pin = <20>;
79-
scl-pin = <22>;
78+
sda-gpios = <&gpio0 20 0>;
79+
scl-gpios = <&gpio0 22 0>;
8080
};
8181

8282
&spi1 {

boards/arm/actinius_icarus/actinius_icarus_common.dts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,8 +123,8 @@
123123
status = "okay";
124124

125125
clock-frequency = <I2C_BITRATE_FAST>;
126-
sda-pin = <26>;
127-
scl-pin = <27>;
126+
sda-gpios = <&gpio0 26 0>;
127+
scl-gpios = <&gpio0 27 0>;
128128

129129
lis2dh12-accel@19 {
130130
compatible = "st,lis2dh12", "st,lis2dh";

boards/arm/adafruit_feather_nrf52840/adafruit_feather_nrf52840.dts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,8 @@
7777

7878
&i2c0 {
7979
status = "okay";
80-
sda-pin = <12>;
81-
scl-pin = <11>;
80+
sda-gpios = <&gpio0 12 0>;
81+
scl-gpios = <&gpio0 11 0>;
8282
};
8383

8484
&spi1 {

boards/arm/arduino_nano_33_ble/arduino_nano_33_ble.dts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -69,14 +69,14 @@
6969
&i2c0 {
7070
compatible = "nordic,nrf-twim";
7171
status = "okay";
72-
sda-pin = <31>; //P0.31
73-
scl-pin = <2>; //P0.02
72+
sda-gpios = <&gpio0 31 0>;
73+
scl-gpios = <&gpio0 2 0>;
7474
};
7575
&i2c1 {
7676
compatible = "nordic,nrf-twim";
7777
status = "okay";
78-
sda-pin = <14>; //P0.14
79-
scl-pin = <15>; //P0.15
78+
sda-gpios = <&gpio0 14 0>;
79+
scl-gpios = <&gpio0 15 0>;
8080
};
8181
// we use SPI2 because SPI1/0 shares conflicts with I2C1/0
8282
&spi2 {

boards/arm/bbc_microbit/bbc_microbit.dts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,8 @@
6060
&i2c0 {
6161
status = "okay";
6262
clock-frequency = <I2C_BITRATE_FAST>;
63-
sda-pin = <30>;
64-
scl-pin = <0>;
63+
sda-gpios = <&gpio0 30 0>;
64+
scl-gpios = <&gpio0 0 0>;
6565

6666
/* See https://tech.microbit.org/hardware/i2c/ for board variants */
6767

boards/arm/bbc_microbit_v2/bbc_microbit_v2.dts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,8 @@
9191
compatible = "nordic,nrf-twim";
9292
status = "okay";
9393
clock-frequency = <I2C_BITRATE_FAST>;
94-
sda-pin = <16>;
95-
scl-pin = <8>;
94+
sda-gpios = <&gpio0 16 0>;
95+
scl-gpios = <&gpio0 8 0>;
9696

9797
/* See https://tech.microbit.org/hardware/i2c/ for board variants */
9898

boards/arm/bl652_dvk/bl652_dvk.dts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,8 @@
8080
&i2c0 {
8181
compatible = "nordic,nrf-twi";
8282
status = "okay";
83-
sda-pin = <26>;
84-
scl-pin = <27>;
83+
sda-gpios = <&gpio0 26 0>;
84+
scl-gpios = <&gpio0 27 0>;
8585
};
8686

8787
&pwm0 {

boards/arm/bl653_dvk/bl653_dvk.dts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,8 +104,8 @@
104104
&i2c0 {
105105
compatible = "nordic,nrf-twi";
106106
status = "okay";
107-
sda-pin = <26>;
108-
scl-pin = <27>;
107+
sda-gpios = <&gpio0 26 0>;
108+
scl-gpios = <&gpio0 27 0>;
109109
};
110110

111111
&pwm0 {

boards/arm/bl654_dvk/bl654_dvk.dts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,8 +104,8 @@
104104
&i2c0 {
105105
compatible = "nordic,nrf-twi";
106106
status = "okay";
107-
sda-pin = <26>;
108-
scl-pin = <27>;
107+
sda-gpios = <&gpio0 26 0>;
108+
scl-gpios = <&gpio0 27 0>;
109109
};
110110

111111
&pwm0 {

0 commit comments

Comments
 (0)