Skip to content

Commit

Permalink
dts: nRF: Add missing headermask binding for NRF_CCM
Browse files Browse the repository at this point in the history
Add missing headermask binding for NRF_CCM peripheral and
define HAS_HW_NRF_CCM_HEADERMASK Kconfig.

Signed-off-by: Vinayak Kariappa Chettimada <[email protected]>
  • Loading branch information
cvinayak committed Jun 12, 2023
1 parent a17fc4f commit 9f82a98
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 0 deletions.
1 change: 1 addition & 0 deletions dts/arm/nordic/nrf52820.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,7 @@
reg = <0x4000f000 0x1000>;
interrupts = <15 NRF_DEFAULT_IRQ_PRIORITY>;
length-field-length-8-bits;
headermask-supported;
status = "okay";
};

Expand Down
1 change: 1 addition & 0 deletions dts/arm/nordic/nrf52833.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -265,6 +265,7 @@
reg = <0x4000f000 0x1000>;
interrupts = <15 NRF_DEFAULT_IRQ_PRIORITY>;
length-field-length-8-bits;
headermask-supported;
status = "okay";
};

Expand Down
1 change: 1 addition & 0 deletions dts/arm/nordic/nrf5340_cpunet.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,7 @@
reg = <0x4100e000 0x1000>;
interrupts = <14 NRF_DEFAULT_IRQ_PRIORITY>;
length-field-length-8-bits;
headermask-supported;
status = "okay";
};

Expand Down
7 changes: 7 additions & 0 deletions dts/bindings/crypto/nordic,nrf-ccm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,10 @@ properties:
Indicates whether the CCM peripheral supports the extended length
(8 bits) of the LENGTH field in encrypted/decrypted packets.
If not set, only the default length (5 bits) is supported.
headermask-supported:
type: boolean
description: |
Indicates whether the CCM peripheral supports the headermask register to
set the PDU header bitmask used to derive the additional authentication
data (AAD) in CCM for Bluetooth Low Energy ACL, BIS and CIS PDUs.
3 changes: 3 additions & 0 deletions soc/arm/nordic_nrf/Kconfig.peripherals
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ config HAS_HW_NRF_CCM
config HAS_HW_NRF_CCM_LFLEN_8BIT
def_bool $(dt_nodelabel_bool_prop,ccm,length-field-length-8-bits)

config HAS_HW_NRF_CCM_HEADERMASK
def_bool $(dt_nodelabel_bool_prop,ccm,headermask-supported)

config HAS_HW_NRF_CLOCK
def_bool $(dt_compat_enabled,$(DT_COMPAT_NORDIC_NRF_CLOCK))

Expand Down

0 comments on commit 9f82a98

Please sign in to comment.