Skip to content

Commit 9ede8cd

Browse files
cvinayakcarlescufi
authored andcommitted
dts: nRF: Add missing headermask binding for NRF_CCM
Add missing headermask binding for NRF_CCM peripheral and define HAS_HW_NRF_CCM_HEADERMASK Kconfig. Signed-off-by: Vinayak Kariappa Chettimada <[email protected]>
1 parent 1ddabfa commit 9ede8cd

File tree

5 files changed

+13
-0
lines changed

5 files changed

+13
-0
lines changed

dts/arm/nordic/nrf52820.dtsi

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -245,6 +245,7 @@
245245
reg = <0x4000f000 0x1000>;
246246
interrupts = <15 NRF_DEFAULT_IRQ_PRIORITY>;
247247
length-field-length-8-bits;
248+
headermask-supported;
248249
status = "okay";
249250
};
250251

dts/arm/nordic/nrf52833.dtsi

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -265,6 +265,7 @@
265265
reg = <0x4000f000 0x1000>;
266266
interrupts = <15 NRF_DEFAULT_IRQ_PRIORITY>;
267267
length-field-length-8-bits;
268+
headermask-supported;
268269
status = "okay";
269270
};
270271

dts/arm/nordic/nrf5340_cpunet.dtsi

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,7 @@
144144
reg = <0x4100e000 0x1000>;
145145
interrupts = <14 NRF_DEFAULT_IRQ_PRIORITY>;
146146
length-field-length-8-bits;
147+
headermask-supported;
147148
status = "okay";
148149
};
149150

dts/bindings/crypto/nordic,nrf-ccm.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,10 @@ properties:
2020
Indicates whether the CCM peripheral supports the extended length
2121
(8 bits) of the LENGTH field in encrypted/decrypted packets.
2222
If not set, only the default length (5 bits) is supported.
23+
24+
headermask-supported:
25+
type: boolean
26+
description: |
27+
Indicates whether the CCM peripheral supports the headermask register to
28+
set the PDU header bitmask used to derive the additional authentication
29+
data (AAD) in CCM for Bluetooth Low Energy ACL, BIS and CIS PDUs.

soc/arm/nordic_nrf/Kconfig.peripherals

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@ config HAS_HW_NRF_CCM
2424
config HAS_HW_NRF_CCM_LFLEN_8BIT
2525
def_bool $(dt_nodelabel_bool_prop,ccm,length-field-length-8-bits)
2626

27+
config HAS_HW_NRF_CCM_HEADERMASK
28+
def_bool $(dt_nodelabel_bool_prop,ccm,headermask-supported)
29+
2730
config HAS_HW_NRF_CLOCK
2831
def_bool $(dt_compat_enabled,$(DT_COMPAT_NORDIC_NRF_CLOCK))
2932

0 commit comments

Comments
 (0)