Skip to content

Commit aa6fd2c

Browse files
committed
samples: matter: Stop overwriting zephyr,entropy identifier
Both Matter and OpenThread already use the PSA Random API to obtain cryptographically secure random numbers (CSPRNG). This commit ensures that other components fall back to the default entropy driver without overriding the zephyr,entropy binding, when using it. Signed-off-by: Łukasz Duda <[email protected]>
1 parent b595287 commit aa6fd2c

24 files changed

+0
-266
lines changed

samples/matter/light_bulb/boards/nrf21540dk_nrf52840.overlay

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,6 @@
55
*/
66

77
/ {
8-
/*
9-
* In some default configurations within the nRF Connect SDK,
10-
* e.g. on nRF52840, the chosen zephyr,entropy node is &cryptocell.
11-
* This devicetree overlay ensures that default is overridden wherever it
12-
* is set, as this application uses the RNG node for entropy exclusively.
13-
*/
14-
15-
chosen {
16-
zephyr,entropy = &rng;
17-
};
18-
198
/*
209
* By default, PWM module is only configured for led0 (LED1 on the board).
2110
* The light bulb app, however, uses LED2 to show the state of the lighting,

samples/matter/light_bulb/boards/nrf52840dk_nrf52840.overlay

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -9,17 +9,6 @@
99
nordic,pm-ext-flash = &mx25r64;
1010
};
1111

12-
/*
13-
* In some default configurations within the nRF Connect SDK,
14-
* e.g. on nRF52840, the chosen zephyr,entropy node is &cryptocell.
15-
* This devicetree overlay ensures that default is overridden wherever it
16-
* is set, as this application uses the RNG node for entropy exclusively.
17-
*/
18-
19-
chosen {
20-
zephyr,entropy = &rng;
21-
};
22-
2312
/*
2413
* By default, PWM module is only configured for led0 (LED1 on the board).
2514
* The light bulb app, however, uses LED2 to show the state of the lighting,

samples/matter/light_switch/boards/nrf21540dk_nrf52840.overlay

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,6 @@
33
* SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
44
*/
55

6-
/ {
7-
/*
8-
* In some default configurations within the nRF Connect SDK,
9-
* e.g. on nRF52840, the chosen zephyr,entropy node is &cryptocell.
10-
* This devicetree overlay ensures that default is overridden wherever it
11-
* is set, as this application uses the RNG node for entropy exclusively.
12-
*/
13-
chosen {
14-
zephyr,entropy = &rng;
15-
};
16-
};
17-
186
/* Disable unused peripherals to reduce power consumption */
197
&adc {
208
status = "disabled";

samples/matter/light_switch/boards/nrf52840dk_nrf52840.overlay

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,6 @@
77
chosen {
88
nordic,pm-ext-flash = &mx25r64;
99
};
10-
11-
/*
12-
* In some default configurations within the nRF Connect SDK,
13-
* e.g. on nRF52840, the chosen zephyr,entropy node is &cryptocell.
14-
* This devicetree overlay ensures that default is overridden wherever it
15-
* is set, as this application uses the RNG node for entropy exclusively.
16-
*/
17-
chosen {
18-
zephyr,entropy = &rng;
19-
};
2010
};
2111

2212
/* Disable unused peripherals to reduce power consumption */

samples/matter/lock/boards/nrf21540dk_nrf52840.overlay

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,6 @@
33
* SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
44
*/
55

6-
/ {
7-
/*
8-
* In some default configurations within the nRF Connect SDK,
9-
* e.g. on nRF52840, the chosen zephyr,entropy node is &cryptocell.
10-
* This devicetree overlay ensures that default is overridden wherever it
11-
* is set, as this application uses the RNG node for entropy exclusively.
12-
*/
13-
chosen {
14-
zephyr,entropy = &rng;
15-
};
16-
};
17-
186
/* Disable unused peripherals to reduce power consumption */
197
&adc {
208
status = "disabled";

samples/matter/lock/boards/nrf52840dk_nrf52840.overlay

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,6 @@
77
chosen {
88
nordic,pm-ext-flash = &mx25r64;
99
};
10-
11-
/*
12-
* In some default configurations within the nRF Connect SDK,
13-
* e.g. on nRF52840, the chosen zephyr,entropy node is &cryptocell.
14-
* This devicetree overlay ensures that default is overridden wherever it
15-
* is set, as this application uses the RNG node for entropy exclusively.
16-
*/
17-
chosen {
18-
zephyr,entropy = &rng;
19-
};
2010
};
2111

2212
/* Disable unused peripherals to reduce power consumption */

samples/matter/manufacturer_specific/boards/nrf52840dk_nrf52840.overlay

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -9,19 +9,6 @@
99
};
1010
};
1111

12-
13-
/ {
14-
/*
15-
* In some default configurations within the nRF Connect SDK,
16-
* e.g. on nRF52840, the chosen zephyr,entropy node is &cryptocell.
17-
* This devicetree overlay ensures that default is overridden wherever it
18-
* is set, as this application uses the RNG node for entropy exclusively.
19-
*/
20-
chosen {
21-
zephyr,entropy = &rng;
22-
};
23-
};
24-
2512
/* Disable unused peripherals to reduce power consumption */
2613
&adc {
2714
status = "disabled";

samples/matter/smoke_co_alarm/boards/nrf52840dk_nrf52840.overlay

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,6 @@
88
chosen {
99
nordic,pm-ext-flash = &mx25r64;
1010
};
11-
12-
/*
13-
* In some default configurations within the nRF Connect SDK,
14-
* e.g. on nRF52840, the chosen zephyr,entropy node is &cryptocell.
15-
* This devicetree overlay ensures that default is overridden wherever it
16-
* is set, as this application uses the RNG node for entropy exclusively.
17-
*/
18-
chosen {
19-
zephyr,entropy = &rng;
20-
};
2111
};
2212

2313
/* Disable unused peripherals to reduce power consumption */

samples/matter/template/boards/nrf21540dk_nrf52840.overlay

Lines changed: 0 additions & 16 deletions
This file was deleted.

samples/matter/template/boards/nrf52840dk_nrf52840.overlay

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -9,19 +9,6 @@
99
};
1010
};
1111

12-
13-
/ {
14-
/*
15-
* In some default configurations within the nRF Connect SDK,
16-
* e.g. on nRF52840, the chosen zephyr,entropy node is &cryptocell.
17-
* This devicetree overlay ensures that default is overridden wherever it
18-
* is set, as this application uses the RNG node for entropy exclusively.
19-
*/
20-
chosen {
21-
zephyr,entropy = &rng;
22-
};
23-
};
24-
2512
/* Disable unused peripherals to reduce power consumption */
2613
&adc {
2714
status = "disabled";

0 commit comments

Comments
 (0)