Skip to content

Commit a9b253d

Browse files
AzharMCHPcfriedt
authored andcommitted
dts: arm: microchip: add dtsi files for Microchip PIC32CZ CA SoC series
Adds common and SoC-specific .dtsi files for the Microchip PIC32CZ CA80 CA90 and CA91 family. These files define core peripherals, address maps, and interrupt controller structure shared across the PIC32CZ CA80 9x variants. Signed-off-by: Mohamed Azhar <mohamed.azhar@microchip.com>
1 parent e69ae4e commit a9b253d

40 files changed

+516
-0
lines changed
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
/*
2+
* Copyright (c) 2025 Microchip Technology Inc.
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
/ {
8+
soc {
9+
flash0: flash@8000000 {
10+
reg = <0x08000000 DT_SIZE_M(1)>;
11+
};
12+
13+
sram0: memory@20000000 {
14+
reg = <0x20000000 DT_SIZE_K(512)>;
15+
};
16+
};
17+
};
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
/*
2+
* Copyright (c) 2025 Microchip Technology Inc.
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
/ {
8+
soc {
9+
flash0: flash@8000000 {
10+
reg = <0x08000000 DT_SIZE_M(2)>;
11+
};
12+
13+
sram0: memory@20000000 {
14+
reg = <0x20000000 DT_SIZE_K(512)>;
15+
};
16+
};
17+
};
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
/*
2+
* Copyright (c) 2025 Microchip Technology Inc.
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
/ {
8+
soc {
9+
flash0: flash@8000000 {
10+
reg = <0x08000000 DT_SIZE_M(4)>;
11+
};
12+
13+
sram0: memory@20000000 {
14+
reg = <0x20000000 DT_SIZE_M(1)>;
15+
};
16+
};
17+
};
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
/*
2+
* Copyright (c) 2025 Microchip Technology Inc.
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
/ {
8+
soc {
9+
flash0: flash@8000000 {
10+
reg = <0x08000000 DT_SIZE_M(8)>;
11+
};
12+
13+
sram0: memory@20000000 {
14+
reg = <0x20000000 DT_SIZE_M(1)>;
15+
};
16+
};
17+
};
Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
1+
/*
2+
* Copyright (c) 2025 Microchip Technology Inc.
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
#include <arm/armv7-m.dtsi>
8+
#include <zephyr/dt-bindings/gpio/gpio.h>
9+
10+
/ {
11+
cpus {
12+
#address-cells = <1>;
13+
#size-cells = <0>;
14+
15+
cpu0: cpu@0 {
16+
device_type = "cpu";
17+
compatible = "arm,cortex-m7";
18+
reg = <0>;
19+
#address-cells = <1>;
20+
#size-cells = <1>;
21+
22+
mpu: mpu@e000ed90 {
23+
compatible = "arm,armv7m-mpu";
24+
reg = <0xe000ed90 0x40>;
25+
};
26+
};
27+
};
28+
29+
soc {
30+
flash0: flash@8000000 {
31+
compatible = "soc-nv-flash";
32+
write-block-size = <8>;
33+
};
34+
35+
sram0: memory@20000000 {
36+
compatible = "mmio-sram";
37+
};
38+
39+
porta: gpio@44840000 {
40+
status = "disabled";
41+
compatible = "microchip,port-g1-gpio";
42+
reg = <0x44840000 0x80>;
43+
gpio-controller;
44+
#gpio-cells = <2>;
45+
#microchip,pin-cells = <2>;
46+
};
47+
48+
portb: gpio@44840080 {
49+
status = "disabled";
50+
compatible = "microchip,port-g1-gpio";
51+
reg = <0x44840080 0x80>;
52+
gpio-controller;
53+
#gpio-cells = <2>;
54+
#microchip,pin-cells = <2>;
55+
};
56+
57+
portc: gpio@44840100 {
58+
status = "disabled";
59+
compatible = "microchip,port-g1-gpio";
60+
reg = <0x44840100 0x80>;
61+
gpio-controller;
62+
#gpio-cells = <2>;
63+
#microchip,pin-cells = <2>;
64+
};
65+
66+
portd: gpio@44840180 {
67+
status = "disabled";
68+
compatible = "microchip,port-g1-gpio";
69+
reg = <0x44840180 0x80>;
70+
gpio-controller;
71+
#gpio-cells = <2>;
72+
#microchip,pin-cells = <2>;
73+
};
74+
};
75+
};
76+
77+
&nvic {
78+
arm,num-irq-priority-bits = <3>;
79+
};
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
/*
2+
* Copyright (c) 2025 Microchip Technology Inc.
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
#include <microchip/pic32c/pic32cz_ca/common/pic32cz_ca.dtsi>
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
/*
2+
* Copyright (c) 2025 Microchip Technology Inc.
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
#include <microchip/pic32c/pic32cz_ca/common/pic32cz_ca.dtsi>
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
/*
2+
* Copyright (c) 2025 Microchip Technology Inc.
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
#include <microchip/pic32c/pic32cz_ca/common/pic32cz_ca.dtsi>
8+
9+
/ {
10+
soc {
11+
porte: gpio@44840200 {
12+
status = "disabled";
13+
compatible = "microchip,port-g1-gpio";
14+
reg = <0x44840200 0x80>;
15+
gpio-controller;
16+
#gpio-cells = <2>;
17+
#microchip,pin-cells = <2>;
18+
};
19+
20+
portf: gpio@44840280 {
21+
status = "disabled";
22+
compatible = "microchip,port-g1-gpio";
23+
reg = <0x44840280 0x80>;
24+
gpio-controller;
25+
#gpio-cells = <2>;
26+
#microchip,pin-cells = <2>;
27+
};
28+
29+
portg: gpio@44840300 {
30+
status = "disabled";
31+
compatible = "microchip,port-g1-gpio";
32+
reg = <0x44840300 0x80>;
33+
gpio-controller;
34+
#gpio-cells = <2>;
35+
#microchip,pin-cells = <2>;
36+
};
37+
};
38+
};
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
/*
2+
* Copyright (c) 2025 Microchip Technology Inc.
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
#include <microchip/pic32c/pic32cz_ca/common/pic32cz_ca.dtsi>
8+
9+
/ {
10+
soc {
11+
porte: gpio@44840200 {
12+
status = "disabled";
13+
compatible = "microchip,port-g1-gpio";
14+
reg = <0x44840200 0x80>;
15+
gpio-controller;
16+
#gpio-cells = <2>;
17+
#microchip,pin-cells = <2>;
18+
};
19+
20+
portf: gpio@44840280 {
21+
status = "disabled";
22+
compatible = "microchip,port-g1-gpio";
23+
reg = <0x44840280 0x80>;
24+
gpio-controller;
25+
#gpio-cells = <2>;
26+
#microchip,pin-cells = <2>;
27+
};
28+
29+
portg: gpio@44840300 {
30+
status = "disabled";
31+
compatible = "microchip,port-g1-gpio";
32+
reg = <0x44840300 0x80>;
33+
gpio-controller;
34+
#gpio-cells = <2>;
35+
#microchip,pin-cells = <2>;
36+
};
37+
};
38+
};
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
/*
2+
* Copyright (c) 2025 Microchip Technology Inc.
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
#include <mem.h>
8+
#include <microchip/pic32c/pic32cz_ca/common/pic32cz_ca_100.dtsi>
9+
#include <microchip/pic32c/pic32cz_ca/common/pic32cz_2051_ca.dtsi>

0 commit comments

Comments
 (0)