Skip to content

Commit 6b57824

Browse files
committed
[nrf fromtree] tests: boards: nrf: i2c: i2c_slave: Fix DTS formatting
Add reqired empty line as indicated by the compliance check. Add License header. Add information about GPIO loopbacks used by the test. Signed-off-by: Sebastian Głąb <[email protected]> (cherry picked from commit 5501999)
1 parent b8fd207 commit 6b57824

File tree

5 files changed

+60
-0
lines changed

5 files changed

+60
-0
lines changed

tests/boards/nrf/i2c/i2c_slave/boards/nrf52840dk_nrf52840.overlay

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,14 @@
1+
/*
2+
* Copyright 2024 Nordic Semiconductor ASA
3+
* SPDX-License-Identifier: Apache-2.0
4+
*/
5+
6+
/*
7+
* Two loopbacks are required:
8+
* P1.01 - P1.02
9+
* P1.03 - P1.04
10+
*/
11+
112
/ {
213
aliases {
314
i2c-slave = &i2c1;
@@ -44,6 +55,7 @@ dut_twim: &i2c0 {
4455
pinctrl-1 = <&i2c0_sleep_alt>;
4556
pinctrl-names = "default", "sleep";
4657
clock-frequency = <I2C_BITRATE_STANDARD>;
58+
4759
sensor: sensor@54 {
4860
reg = <0x54>;
4961
};

tests/boards/nrf/i2c/i2c_slave/boards/nrf5340dk_nrf5340_cpuapp.overlay

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,14 @@
1+
/*
2+
* Copyright 2024 Nordic Semiconductor ASA
3+
* SPDX-License-Identifier: Apache-2.0
4+
*/
5+
6+
/*
7+
* Two loopbacks are required:
8+
* P0.04 - P0.05
9+
* P0.06 - P0.07
10+
*/
11+
112
/ {
213
aliases {
314
i2c-slave = &i2c2;
@@ -44,6 +55,7 @@ dut_twim: &i2c1 {
4455
pinctrl-1 = <&i2c1_sleep_alt>;
4556
pinctrl-names = "default", "sleep";
4657
clock-frequency = <I2C_BITRATE_STANDARD>;
58+
4759
sensor: sensor@54 {
4860
reg = <0x54>;
4961
};

tests/boards/nrf/i2c/i2c_slave/boards/nrf54h20dk_nrf54h20_cpuapp.overlay

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,14 @@
1+
/*
2+
* Copyright 2024 Nordic Semiconductor ASA
3+
* SPDX-License-Identifier: Apache-2.0
4+
*/
5+
6+
/*
7+
* Two loopbacks are required:
8+
* P2.08 - P2.09
9+
* P1.02 - P1.03
10+
*/
11+
112
/ {
213
aliases {
314
i2c-slave = &i2c131;
@@ -48,6 +59,7 @@ dut_twim: &i2c130 {
4859
pinctrl-names = "default", "sleep";
4960
clock-frequency = <I2C_BITRATE_STANDARD>;
5061
memory-regions = <&cpuapp_dma_region>;
62+
5163
sensor: sensor@54 {
5264
reg = <0x54>;
5365
};

tests/boards/nrf/i2c/i2c_slave/boards/nrf54h20dk_nrf54h20_cpuppr.overlay

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,14 @@
1+
/*
2+
* Copyright 2024 Nordic Semiconductor ASA
3+
* SPDX-License-Identifier: Apache-2.0
4+
*/
5+
6+
/*
7+
* Two loopbacks are required:
8+
* P2.08 - P2.09
9+
* P1.02 - P1.03
10+
*/
11+
112
/ {
213
aliases {
314
i2c-slave = &i2c131;
@@ -47,6 +58,7 @@ dut_twim: &i2c130 {
4758
pinctrl-1 = <&i2c130_sleep_alt>;
4859
pinctrl-names = "default", "sleep";
4960
clock-frequency = <I2C_BITRATE_STANDARD>;
61+
5062
sensor: sensor@54 {
5163
reg = <0x54>;
5264
};

tests/boards/nrf/i2c/i2c_slave/boards/nrf54l15dk_nrf54l15_cpuapp.overlay

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,14 @@
1+
/*
2+
* Copyright 2024 Nordic Semiconductor ASA
3+
* SPDX-License-Identifier: Apache-2.0
4+
*/
5+
6+
/*
7+
* Two loopbacks are required:
8+
* P1.08 - P1.09
9+
* P1.12 - P1.13
10+
*/
11+
112
/ {
213
aliases {
314
i2c-slave = &i2c22;
@@ -47,6 +58,7 @@ dut_twim: &i2c21 {
4758
pinctrl-1 = <&i2c21_sleep_alt>;
4859
pinctrl-names = "default", "sleep";
4960
clock-frequency = <I2C_BITRATE_STANDARD>;
61+
5062
sensor: sensor@54 {
5163
reg = <0x54>;
5264
};

0 commit comments

Comments
 (0)