Skip to content

Commit 8a674e1

Browse files
michal-smolanashif
authored andcommitted
dts: nxp mcxc: Add counters configuration
Counters configuration is missing in Devicetree for NXP MCX C series. Add lptmr, rtc and pit configuration to Devicetree. Signed-off-by: Michal Smola <[email protected]>
1 parent 257c5e6 commit 8a674e1

File tree

1 file changed

+45
-0
lines changed

1 file changed

+45
-0
lines changed

dts/arm/nxp/nxp_mcxc_common.dtsi

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -253,6 +253,51 @@
253253
status = "disabled";
254254
#pwm-cells = <3>;
255255
};
256+
257+
lptmr0: lptmr@40040000 {
258+
compatible = "nxp,lptmr";
259+
reg = <0x40040000 0x1000>;
260+
interrupts = <28 0>;
261+
clock-frequency = <1000>;
262+
prescaler = <1>;
263+
prescale-glitch-filter = <1>;
264+
clk-source = <1>;
265+
resolution = <16>;
266+
status = "disabled";
267+
};
268+
269+
rtc: rtc@4003d000 {
270+
compatible = "nxp,kinetis-rtc";
271+
reg = <0x4003d000 0x1000>;
272+
interrupts = <20 0>, <21 0>;
273+
interrupt-names = "alarm", "seconds";
274+
clock-frequency = <32768>;
275+
prescaler = <32768>;
276+
status = "disabled";
277+
};
278+
279+
pit0: pit@40037000 {
280+
compatible = "nxp,pit";
281+
reg = <0x40037000 0x1000>;
282+
clocks = <&sim KINETIS_SIM_BUS_CLK 0x103c 23>;
283+
interrupts = <22 0>;
284+
max-load-value = <0xffffffff>;
285+
status = "disabled";
286+
#address-cells = <1>;
287+
#size-cells = <0>;
288+
289+
pit0_channel0: pit0_channel@0 {
290+
compatible = "nxp,pit-channel";
291+
reg = <0>;
292+
status = "disabled";
293+
};
294+
295+
pit0_channel1: pit0_channel@1 {
296+
compatible = "nxp,pit-channel";
297+
reg = <1>;
298+
status = "disabled";
299+
};
300+
};
256301
};
257302
};
258303

0 commit comments

Comments
 (0)