Skip to content

Commit 3c87d08

Browse files
hakehuangnashif
authored andcommitted
dts: arm: nxp: nxp_ke1xz.dtsi: tsi0 & tsi1 nodes added
TSI (Touch Sensing IP) is now supported by DT for the Kinetis KE1x family dts: nxp_ke1xz, nxp_ke17z and nxp_ke17z512.dtsi Tested on freedom boards Signed-off-by: Michael Galda <michael.galda@nxp.com> Signed-off-by: Hake Huang <hake.huang@nxp.com>
1 parent 00e5a39 commit 3c87d08

File tree

4 files changed

+152
-2
lines changed

4 files changed

+152
-2
lines changed

dts/arm/nxp/nxp_ke17z.dtsi

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,14 @@
4747
};
4848
};
4949

50+
tsi1: tsi@40047000 {
51+
compatible = "nxp,tsi";
52+
reg = <0x40047000 0x1000>;
53+
status = "okay";
54+
interrupts = <25 0>;
55+
clocks = <&scg KINETIS_SCG_BUS_CLK>;
56+
};
57+
5058
/* Remove rtc, it doesn't exist on KE17Z */
5159
/delete-node/ rtc@4003d000;
5260
};

dts/arm/nxp/nxp_ke17z512.dtsi

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2024 NXP
2+
* Copyright 2024-2025 NXP
33
*
44
* SPDX-License-Identifier: Apache-2.0
55
*/
@@ -61,5 +61,23 @@
6161
clocks = <&scg KINETIS_SCG_BUS_CLK>;
6262
status = "disabled";
6363
};
64+
65+
scg@40064000 {
66+
/delete-node/ lpfll_clk;
67+
68+
lpfll_clk: lpfll_clk {
69+
compatible = "fixed-clock";
70+
clock-frequency = <96000000>;
71+
#clock-cells = <0>;
72+
};
73+
};
74+
75+
tsi1: tsi@40047000 {
76+
compatible = "nxp,tsi";
77+
reg = <0x40047000 0x1000>;
78+
status = "okay";
79+
interrupts = <25 0>;
80+
clocks = <&scg KINETIS_SCG_BUS_CLK>;
81+
};
6482
};
6583
};

dts/arm/nxp/nxp_ke1xz.dtsi

Lines changed: 58 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,9 +90,16 @@
9090
#clock-cells = <0>;
9191
};
9292

93+
lpfll_clk: lpfll_clk {
94+
compatible = "fixed-clock";
95+
clock-frequency = <72000000>;
96+
#clock-cells = <0>;
97+
};
98+
9399
core_clk: core_clk {
94100
compatible = "fixed-factor-clock";
95-
clocks = <&firc_clk>;
101+
#clocks = <&firc_clk>;
102+
clocks = <&lpfll_clk>;
96103
clock-div = <1>;
97104
#clock-cells = <0>;
98105
};
@@ -117,6 +124,13 @@
117124
clock-div = <1>;
118125
#clock-cells = <0>;
119126
};
127+
128+
flldiv2_clk: flldiv2_clk {
129+
compatible = "fixed-factor-clock";
130+
clocks = <&lpfll_clk>;
131+
clock-div = <2>;
132+
#clock-cells = <0>;
133+
};
120134
};
121135

122136
pcc: pcc@40065000 {
@@ -511,6 +525,49 @@
511525
interrupts = <23 0>;
512526
clocks = <&pcc 0x168 KINETIS_PCC_SRC_FIRC_ASYNC>;
513527
};
528+
529+
pit0: pit@40037000 {
530+
compatible = "nxp,pit";
531+
reg = <0x40037000 0x1000>;
532+
clocks = <&pcc 0x1a8 KINETIS_PCC_SRC_FIRC_ASYNC>;
533+
interrupts = <22 0>;
534+
max-load-value = <0xffffffff>;
535+
status = "disabled";
536+
#address-cells = <1>;
537+
#size-cells = <0>;
538+
539+
pit0_channel0: pit0_channel@0 {
540+
compatible = "nxp,pit-channel";
541+
reg = <0>;
542+
status = "disabled";
543+
};
544+
545+
pit0_channel1: pit0_channel@1 {
546+
compatible = "nxp,pit-channel";
547+
reg = <1>;
548+
status = "disabled";
549+
};
550+
551+
pit0_channel2: pit0_channel@2 {
552+
compatible = "nxp,pit-channel";
553+
reg = <2>;
554+
status = "disabled";
555+
};
556+
557+
pit0_channel3: pit0_channel@3 {
558+
compatible = "nxp,pit-channel";
559+
reg = <3>;
560+
status = "disabled";
561+
};
562+
};
563+
564+
tsi0: tsi@40045000 {
565+
compatible = "nxp,tsi";
566+
reg = <0x40045000 0x1000>;
567+
status = "okay";
568+
interrupts = <24 0>;
569+
clocks = <&scg KINETIS_SCG_BUS_CLK>;
570+
};
514571
};
515572
};
516573

dts/arm/nxp/nxp_ke1xz64.dtsi

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
/*
2+
* Copyright 2025 NXP
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
#include <nxp/nxp_ke1xz.dtsi>
8+
9+
/delete-node/ &sram_l;
10+
/delete-node/ &sram_u;
11+
12+
/* Remove non-supported peripherals on 64kB silicon */
13+
/delete-node/ &ftm2;
14+
/delete-node/ &lpi2c1;
15+
/delete-node/ &lpspi1;
16+
/delete-node/ &edma;
17+
/delete-node/ &flexio;
18+
19+
/ {
20+
chosen {
21+
zephyr,flash-controller = &ftfa;
22+
};
23+
24+
/* Fix sram_l and sram_u, they have different addr and size on KE16Z */
25+
sram_l: memory@1ffff800 {
26+
compatible = "zephyr,memory-region", "mmio-sram";
27+
reg = <0x1ffff800 DT_SIZE_K(2)>;
28+
zephyr,memory-region = "SRAML";
29+
};
30+
31+
sram_u: memory@20000000 {
32+
compatible = "zephyr,memory-region", "mmio-sram";
33+
reg = <0x20000000 DT_SIZE_K(6)>;
34+
zephyr,memory-region = "SRAMU";
35+
};
36+
37+
soc {
38+
/* Remove ftfe, it doesn't exist on KE16Z */
39+
/delete-node/ ftfe;
40+
41+
ftfa: flash-controller@40020000 {
42+
compatible = "nxp,kinetis-ftfa";
43+
reg = <0x40020000 0x1000>;
44+
interrupts = <5 0>;
45+
46+
#address-cells = <1>;
47+
#size-cells = <1>;
48+
49+
flash0: flash@0 {
50+
compatible = "soc-nv-flash";
51+
reg = <0 DT_SIZE_K(64)>;
52+
erase-block-size = <DT_SIZE_K(1)>;
53+
write-block-size = <8>;
54+
};
55+
};
56+
57+
scg@40064000 {
58+
/delete-node/ lpfll_clk;
59+
60+
lpfll_clk: lpfll_clk {
61+
compatible = "fixed-clock";
62+
clock-frequency = <48000000>;
63+
#clock-cells = <0>;
64+
};
65+
};
66+
};
67+
};

0 commit comments

Comments
 (0)