Skip to content

Commit 059ee10

Browse files
scottwcpgkartben
authored andcommitted
dts: arm: microchip: Fixes in preparation for boards
We fixed some minor bugs and one missing component for Microchip MEC5 HAL based chips, MEC174x and MEC175x. These changes are in preparation for board check-in and hello world sample. Added the clock-frequency property to the cpu and rtimer nodes. This properity is used derive the Kconfig's for the kernel tick. Signed-off-by: Scott Worley <scott.worley@microchip.com>
1 parent 4d1139d commit 059ee10

File tree

8 files changed

+47
-3
lines changed

8 files changed

+47
-3
lines changed

dts/arm/microchip/mec1501hsz.dtsi

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
device_type = "cpu";
2121
compatible = "arm,cortex-m4";
2222
reg = <0>;
23+
clock-frequency = <48000000>;
2324
cpu-power-states = <&idle &suspend_to_ram>;
2425
};
2526

@@ -160,6 +161,7 @@
160161
compatible = "microchip,xec-rtos-timer";
161162
reg = <0x40007400 0x10>;
162163
interrupts = <111 0>;
164+
clock-frequency = <32768>;
163165
girqs = <23 10>;
164166
};
165167
bbram: bb-ram@4000a800 {

dts/arm/microchip/mec172x_common.dtsi

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -290,6 +290,7 @@ rtimer: timer@40007400 {
290290
compatible = "microchip,xec-rtos-timer";
291291
reg = <0x40007400 0x10>;
292292
interrupts = <111 0>;
293+
clock-frequency = <32768>;
293294
girqs = <23 10>;
294295
};
295296
timer0: timer@40000c00 {

dts/arm/microchip/mec172xnlj.dtsi

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
device_type = "cpu";
2727
compatible = "arm,cortex-m4";
2828
reg = <0>;
29+
clock-frequency = <96000000>;
2930
cpu-power-states = <&idle &suspend_to_ram>;
3031
};
3132

dts/arm/microchip/mec172xnsz.dtsi

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
device_type = "cpu";
2727
compatible = "arm,cortex-m4";
2828
reg = <0>;
29+
clock-frequency = <96000000>;
2930
cpu-power-states = <&idle &suspend_to_ram>;
3031
};
3132

dts/arm/microchip/mec5.dtsi

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
#include <arm/armv7-m.dtsi>
88
#include <zephyr/dt-bindings/gpio/gpio.h>
99
#include <zephyr/dt-bindings/gpio/microchip-xec-gpio.h>
10+
#include <zephyr/dt-bindings/i2c/i2c.h>
1011
#include <freq.h>
1112
#include <mem.h>
1213

@@ -19,6 +20,7 @@
1920
device_type = "cpu";
2021
compatible = "arm,cortex-m4";
2122
reg = <0>;
23+
clock-frequency = <96000000>;
2224
};
2325
};
2426

@@ -202,7 +204,7 @@
202204
interrupts = <41 1>;
203205
status = "disabled";
204206
};
205-
wdog: watchdog@40000400 {
207+
watchdog0: watchdog@40000400 {
206208
reg = <0x40000400 0x400>;
207209
interrupts = <171 0>;
208210
status = "disabled";
@@ -311,7 +313,7 @@
311313
status = "disabled";
312314
};
313315
bbram: bb-ram@4000a800 {
314-
reg = <0x4000a800 0x100>;
316+
reg = <0x4000a800 0x80>;
315317
reg-names = "memory";
316318
status = "disabled";
317319
};

dts/arm/microchip/mec5/mec5_i3c.dtsi

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
/*
2+
* Copyright (c) 2024 Microchip Technology Inc.
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
/* Microchip MEC5 SoC's Improved I2C(I3C).
8+
* Include this file in the soc {} section in the relevant chip DTSI files.
9+
*/
10+
i3c0: i3c@40010800 {
11+
compatible = "microchip,mec5-i3c";
12+
#address-cells = <3>;
13+
#size-cells = <0>;
14+
reg = <0x40010800 0x800>;
15+
interrupts = <181 2>;
16+
input-clock-frequency = <192000000>;
17+
i3c-scl-hz = <12500000>;
18+
i2c-scl-hz = <400000>;
19+
status = "disabled";
20+
};
21+
22+
i3c1: i3c@40010000 {
23+
compatible = "microchip,mec5-i3c";
24+
#address-cells = <3>;
25+
#size-cells = <0>;
26+
reg = <0x40010000 0x800>;
27+
interrupts = <182 2>;
28+
input-clock-frequency = <192000000>;
29+
i3c-scl-hz = <12500000>;
30+
i2c-scl-hz = <400000>;
31+
status = "disabled";
32+
};

dts/arm/microchip/mec5_mec1753qsz.dtsi

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
#include <arm/armv7-m.dtsi>
88

99
#include "mec5.dtsi"
10-
#include "mec5/mec5_mec175xsz-espi-host-dev.dtsi"
1110

1211
/ {
1312
flash0: flash@b0000 {

dts/bindings/timer/microchip,xec-rtos-timer.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,9 @@ properties:
1818
type: array
1919
required: true
2020
description: Array of GIRQ numbers [8:26] and bit positions [0:31].
21+
22+
clock-frequency:
23+
type: int
24+
required: true
25+
const: 32768
26+
description: RTOS timer runs at fixed 32 KHz.

0 commit comments

Comments
 (0)