1/*
2 * Copyright 2024 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/ {
13	/* Fix sram_l and sram_u, they have different addr and size on KE17Z512 */
14	sram_l: memory@1fff8000 {
15		compatible = "zephyr,memory-region", "mmio-sram";
16		reg = <0x1fff8000 DT_SIZE_K(32)>;
17		zephyr,memory-region = "SRAML";
18	};
19
20	sram_u: memory@20000000 {
21		compatible = "zephyr,memory-region", "mmio-sram";
22		reg = <0x20000000 DT_SIZE_K(64)>;
23		zephyr,memory-region = "SRAMU";
24	};
25
26	soc {
27		/* Fix flash, it has different size on KE17Z512 */
28		/delete-node/ ftfe;
29
30		ftfe: flash-controller@40020000 {
31			compatible = "nxp,kinetis-ftfe";
32			reg = <0x40020000 0x1000>;
33			interrupts = <5 0>;
34			interrupt-names = "command-complete";
35
36			#address-cells = <1>;
37			#size-cells = <1>;
38
39			flash0: flash@0 {
40				compatible = "soc-nv-flash";
41				reg = <0 DT_SIZE_K(512)>;
42				erase-block-size = <DT_SIZE_K(2)>;
43				write-block-size = <8>;
44			};
45		};
46
47		uart0: uart@4006d000 {
48			compatible = "nxp,kinetis-uart";
49			reg = <0x4006d000 0x1000>;
50			interrupts = <21 0>;
51			interrupt-names = "status";
52			clocks = <&scg KINETIS_SCG_BUS_CLK>;
53			status = "disabled";
54		};
55
56		uart1: uart@4006e000 {
57			compatible = "nxp,kinetis-uart";
58			reg = <0x4006e000 0x1000>;
59			interrupts = <30 0>;
60			interrupt-names = "status";
61			clocks = <&scg KINETIS_SCG_BUS_CLK>;
62			status = "disabled";
63		};
64	};
65};
66