Skip to content

Commit

Permalink
dts: arm: nordic: add gpiote1 instance for nrf53/91
Browse files Browse the repository at this point in the history
GPIOTE0 is always accessible as a secure peripheral,
additional Non-Secure GPIOTE1 instance added.

JIRA: NRFX-4586

Signed-off-by: Jakub Zymelka <[email protected]>
  • Loading branch information
jaz1-nordic committed Nov 6, 2023
1 parent 0897d56 commit 6f91599
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 4 deletions.
16 changes: 15 additions & 1 deletion dts/arm/nordic/nrf5340_cpuapp.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -74,14 +74,28 @@
status = "okay";
};

gpiote: gpiote0: gpiote@5000d000 {
/*
* GPIOTE0 is always accessible as a secure peripheral,
* so we give it the 'gpiote' label for use when building
* code for this target.
*/
gpiote: gpiote0: gpiote@5000d000 {
compatible = "nordic,nrf-gpiote";
reg = <0x5000d000 0x1000>;
interrupts = <13 5>;
status = "disabled";
instance = <0>;
};

/* Additional Non-Secure GPIOTE instance */
gpiote1: gpiote@4002f000 {
compatible = "nordic,nrf-gpiote";
reg = <0x4002f000 0x1000>;
interrupts = <47 5>;
status = "disabled";
instance = <1>;
};

cryptocell: crypto@50844000 {
compatible = "nordic,cryptocell", "arm,cryptocell-312";
reg = <0x50844000 0x1000>, <0x50845000 0x1000>;
Expand Down
6 changes: 5 additions & 1 deletion dts/arm/nordic/nrf5340_cpuappns.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,11 @@
#include "nrf5340_cpuapp_peripherals.dtsi"
};

/* Additional Non-Secure peripherals */
/*
* GPIOTE1 is always accessible as a non-secure peripheral,
* so we give it the 'gpiote' label for use when building
* code for this target.
*/
gpiote: gpiote1: gpiote@4002f000 {
compatible = "nordic,nrf-gpiote";
reg = <0x4002f000 0x1000>;
Expand Down
16 changes: 15 additions & 1 deletion dts/arm/nordic/nrf91.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -60,14 +60,28 @@
status = "okay";
};

gpiote: gpiote0: gpiote@5000d000 {
/*
* GPIOTE0 is always accessible as a secure peripheral,
* so we give it the 'gpiote' label for use when building
* code for this target.
*/
gpiote: gpiote0: gpiote@5000d000 {
compatible = "nordic,nrf-gpiote";
reg = <0x5000d000 0x1000>;
interrupts = <13 5>;
status = "disabled";
instance = <0>;
};

/* Additional Non-Secure GPIOTE instance */
gpiote1: gpiote@40031000 {
compatible = "nordic,nrf-gpiote";
reg = <0x40031000 0x1000>;
interrupts = <49 5>;
status = "disabled";
instance = <1>;
};

spu: spu@50003000 {
compatible = "nordic,nrf-spu";
reg = <0x50003000 0x1000>;
Expand Down
6 changes: 5 additions & 1 deletion dts/arm/nordic/nrf91ns.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,11 @@
#include "nrf91_peripherals.dtsi"
};

/* Additional Non-Secure peripherals */
/*
* GPIOTE1 is always accessible as a non-secure peripheral,
* so we give it the 'gpiote' label for use when building
* code for this target.
*/
gpiote: gpiote1: gpiote@40031000 {
compatible = "nordic,nrf-gpiote";
reg = <0x40031000 0x1000>;
Expand Down

0 comments on commit 6f91599

Please sign in to comment.