Skip to content

Commit 21a6456

Browse files
ppryga-nordiccarlescufi
authored andcommitted
samples: Bluetooth: df: fix wrong GPIO assignment for ant switching
There were wrong GPIOs assigned for antenna switches. Used pins were assigned to other peripehrals so that there were no outpus printed. The samples should use GPIOs that are not assigned to any peripheral. Signed-off-by: Piotr Pryga <[email protected]>
1 parent 1b2f273 commit 21a6456

File tree

10 files changed

+40
-40
lines changed

10 files changed

+40
-40
lines changed

samples/bluetooth/direction_finding_central/boards/nrf52833dk_nrf52820.overlay

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@
1919
* Radio peripheral. The pins will be acquired by Radio to
2020
* drive antenna switching when AoD is enabled.
2121
*/
22-
dfegpio0-gpios = <&gpio0 1 0>;
23-
dfegpio1-gpios = <&gpio0 2 0>;
24-
dfegpio2-gpios = <&gpio0 3 0>;
25-
dfegpio3-gpios = <&gpio0 4 0>;
22+
dfegpio0-gpios = <&gpio0 3 0>;
23+
dfegpio1-gpios = <&gpio0 4 0>;
24+
dfegpio2-gpios = <&gpio0 28 0>;
25+
dfegpio3-gpios = <&gpio0 29 0>;
2626
};

samples/bluetooth/direction_finding_central/boards/nrf5340dk_nrf5340_cpuapp.overlay

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@
1212
*/
1313
&gpio_fwd {
1414
dfe-gpio-if {
15-
gpios = <&gpio0 0 0>,
16-
<&gpio0 1 0>,
17-
<&gpio0 2 0>,
18-
<&gpio0 3 0>;
15+
gpios = <&gpio0 4 0>,
16+
<&gpio0 5 0>,
17+
<&gpio0 6 0>,
18+
<&gpio0 7 0>;
1919
};
2020
};

samples/bluetooth/direction_finding_connectionless_rx/boards/nrf52833dk_nrf52820.overlay

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@
1919
* Radio peripheral. The pins will be acquired by Radio to
2020
* drive antenna switching when AoD is enabled.
2121
*/
22-
dfegpio0-gpios = <&gpio0 1 0>;
23-
dfegpio1-gpios = <&gpio0 2 0>;
24-
dfegpio2-gpios = <&gpio0 3 0>;
25-
dfegpio3-gpios = <&gpio0 4 0>;
22+
dfegpio0-gpios = <&gpio0 3 0>;
23+
dfegpio1-gpios = <&gpio0 4 0>;
24+
dfegpio2-gpios = <&gpio0 28 0>;
25+
dfegpio3-gpios = <&gpio0 29 0>;
2626
};

samples/bluetooth/direction_finding_connectionless_rx/boards/nrf52833dk_nrf52833.overlay

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@
1919
* Radio peripheral. The pins will be acquired by Radio to
2020
* drive antenna switching when AoD is enabled.
2121
*/
22-
dfegpio0-gpios = <&gpio0 1 0>;
23-
dfegpio1-gpios = <&gpio0 2 0>;
24-
dfegpio2-gpios = <&gpio0 3 0>;
25-
dfegpio3-gpios = <&gpio0 4 0>;
22+
dfegpio0-gpios = <&gpio0 3 0>;
23+
dfegpio1-gpios = <&gpio0 4 0>;
24+
dfegpio2-gpios = <&gpio0 28 0>;
25+
dfegpio3-gpios = <&gpio0 29 0>;
2626
};

samples/bluetooth/direction_finding_connectionless_rx/boards/nrf5340dk_nrf5340_cpuapp.overlay

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@
1212
*/
1313
&gpio_fwd {
1414
dfe-gpio-if {
15-
gpios = <&gpio0 0 0>,
16-
<&gpio0 1 0>,
17-
<&gpio0 2 0>,
18-
<&gpio0 3 0>;
15+
gpios = <&gpio0 4 0>,
16+
<&gpio0 5 0>,
17+
<&gpio0 6 0>,
18+
<&gpio0 7 0>;
1919
};
2020
};

samples/bluetooth/direction_finding_connectionless_tx/boards/nrf52833dk_nrf52820.overlay

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@
1919
* Radio peripheral. The pins will be acquired by Radio to
2020
* drive antenna switching when AoD is enabled.
2121
*/
22-
dfegpio0-gpios = <&gpio0 1 0>;
23-
dfegpio1-gpios = <&gpio0 2 0>;
24-
dfegpio2-gpios = <&gpio0 3 0>;
25-
dfegpio3-gpios = <&gpio0 4 0>;
22+
dfegpio0-gpios = <&gpio0 3 0>;
23+
dfegpio1-gpios = <&gpio0 4 0>;
24+
dfegpio2-gpios = <&gpio0 28 0>;
25+
dfegpio3-gpios = <&gpio0 29 0>;
2626
};

samples/bluetooth/direction_finding_connectionless_tx/boards/nrf52833dk_nrf52833.overlay

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@
1919
* Radio peripheral. The pins will be acquired by Radio to
2020
* drive antenna switching when AoD is enabled.
2121
*/
22-
dfegpio0-gpios = <&gpio0 1 0>;
23-
dfegpio1-gpios = <&gpio0 2 0>;
24-
dfegpio2-gpios = <&gpio0 3 0>;
25-
dfegpio3-gpios = <&gpio0 4 0>;
22+
dfegpio0-gpios = <&gpio0 3 0>;
23+
dfegpio1-gpios = <&gpio0 4 0>;
24+
dfegpio2-gpios = <&gpio0 28 0>;
25+
dfegpio3-gpios = <&gpio0 29 0>;
2626
};

samples/bluetooth/direction_finding_connectionless_tx/boards/nrf5340dk_nrf5340_cpuapp.overlay

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@
1212
*/
1313
&gpio_fwd {
1414
dfe-gpio-if {
15-
gpios = <&gpio0 0 0>,
16-
<&gpio0 1 0>,
17-
<&gpio0 2 0>,
18-
<&gpio0 3 0>;
15+
gpios = <&gpio0 4 0>,
16+
<&gpio0 5 0>,
17+
<&gpio0 6 0>,
18+
<&gpio0 7 0>;
1919
};
2020
};

samples/bluetooth/direction_finding_peripheral/boards/nrf52833dk_nrf52820.overlay

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@
1919
* Radio peripheral. The pins will be acquired by Radio to
2020
* drive antenna switching when AoD is enabled.
2121
*/
22-
dfegpio0-gpios = <&gpio0 1 0>;
23-
dfegpio1-gpios = <&gpio0 2 0>;
24-
dfegpio2-gpios = <&gpio0 3 0>;
25-
dfegpio3-gpios = <&gpio0 4 0>;
22+
dfegpio0-gpios = <&gpio0 3 0>;
23+
dfegpio1-gpios = <&gpio0 4 0>;
24+
dfegpio2-gpios = <&gpio0 28 0>;
25+
dfegpio3-gpios = <&gpio0 29 0>;
2626
};

samples/bluetooth/direction_finding_peripheral/boards/nrf5340dk_nrf5340_cpuapp.overlay

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@
1212
*/
1313
&gpio_fwd {
1414
dfe-gpio-if {
15-
gpios = <&gpio0 0 0>,
16-
<&gpio0 1 0>,
17-
<&gpio0 2 0>,
18-
<&gpio0 3 0>;
15+
gpios = <&gpio0 4 0>,
16+
<&gpio0 5 0>,
17+
<&gpio0 6 0>,
18+
<&gpio0 7 0>;
1919
};
2020
};

0 commit comments

Comments
 (0)