Skip to content

Commit 8a98cd5

Browse files
dts: arm: nxp: fix formatting and update copyright headers
Fix various formatting issues in NXP device tree files including: - Inconsistent indentation in multi-line interrupt and pll-clocks arrays - Missing spaces around assignment operators - Inconsistent blank line spacing between device tree nodes Also update copyright header in nxp_k6x.dtsi. Signed-off-by: William Tang <william.tang@nxp.com>
1 parent 0b93c2f commit 8a98cd5

File tree

4 files changed

+32
-25
lines changed

4 files changed

+32
-25
lines changed

dts/arm/nxp/nxp_k6x.dtsi

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
/* SPDX-License-Identifier: Apache-2.0 */
1+
/*
2+
* SPDX-License-Identifier: Apache-2.0
3+
* SPDX-FileCopyrightText: Copyright The Zephyr Project Contributors
4+
*/
25

36
#include <mem.h>
47
#include <freq.h>

dts/arm/nxp/nxp_mcxa344.dtsi

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838
compatible = "nxp,lpc-syscon";
3939
reg = <0x40091000 0x4000>;
4040
#clock-cells = <1>;
41+
4142
reset: reset {
4243
compatible = "nxp,lpc-syscon-reset";
4344
#reset-cells = <1>;
@@ -239,12 +240,11 @@
239240
#dma-cells = <2>;
240241
compatible = "nxp,mcux-edma";
241242
nxp,version = <4>;
243+
reg = <0x40080000 0x1000>;
242244
dma-channels = <8>;
243245
dma-requests = <86>;
244-
245-
reg = <0x40080000 0x1000>;
246246
interrupts = <2 0>, <3 0>, <4 0>, <5 0>,
247-
<6 0>, <7 0>, <8 0>, <9 0>;
247+
<6 0>, <7 0>, <8 0>, <9 0>;
248248
no-error-irq;
249249
status = "disabled";
250250
};
@@ -264,6 +264,7 @@
264264
reg = <0x400a9000 0x1000>;
265265
interrupt-names = "RELOAD-ERROR", "FAULT";
266266
interrupts = <44 0>, <45 0>;
267+
267268
flexpwm0_pwm0: pwm0 {
268269
compatible = "nxp,imx-pwm";
269270
index = <0>;
@@ -303,6 +304,7 @@
303304
reg = <0x400aa000 0x1000>;
304305
interrupt-names = "RELOAD-ERROR", "FAULT";
305306
interrupts = <79 0>, <80 0>;
307+
306308
flexpwm1_pwm0: pwm0 {
307309
compatible = "nxp,imx-pwm";
308310
index = <0>;
@@ -344,7 +346,7 @@
344346
status = "disabled";
345347
clk-divider = <1>;
346348
clk-source = <0>;
347-
voltage-ref= <2>;
349+
voltage-ref = <2>;
348350
calibration-average = <128>;
349351
power-level = <0>;
350352
offset-value-a = <0>;
@@ -360,7 +362,7 @@
360362
status = "disabled";
361363
clk-divider = <1>;
362364
clk-source = <0>;
363-
voltage-ref= <2>;
365+
voltage-ref = <2>;
364366
calibration-average = <128>;
365367
power-level = <1>;
366368
offset-value-a = <0>;

dts/arm/nxp/nxp_mcxw7x_common.dtsi

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@
4848
power-state-name = "suspend-to-idle";
4949
exit-latency-us = <10>;
5050
};
51+
5152
deep_sleep: deep-sleep {
5253
compatible = "zephyr,power-state";
5354
power-state-name = "standby";
@@ -434,9 +435,9 @@
434435
reg = <0x2000 0x140>;
435436
clocks = <&scg SCG_K4_EDMA_CLK 0x410>;
436437
interrupts = <2 0>, <3 0>, <4 0>, <5 0>,
437-
<6 0>, <7 0>, <8 0>, <9 0>,
438-
<10 0>, <11 0>, <12 0>, <13 0>,
439-
<14 0>, <15 0>, <16 0>, <17 0>;
438+
<6 0>, <7 0>, <8 0>, <9 0>,
439+
<10 0>, <11 0>, <12 0>, <13 0>,
440+
<14 0>, <15 0>, <16 0>, <17 0>;
440441
status = "disabled";
441442
};
442443

dts/arm/nxp/nxp_rt118x.dtsi

Lines changed: 17 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1488,10 +1488,10 @@
14881488
pre-div = <0>;
14891489
podf = <12>;
14901490
pll-clocks = <&anatop 0 0 0>,
1491-
<&anatop 0 0 32>,
1492-
<&anatop 0 0 1>,
1493-
<&anatop 0 0 768>,
1494-
<&anatop 0 0 1000>;
1491+
<&anatop 0 0 32>,
1492+
<&anatop 0 0 1>,
1493+
<&anatop 0 0 768>,
1494+
<&anatop 0 0 1000>;
14951495
pll-clock-names = "src", "lp", "pd", "num", "den";
14961496
pinmuxes = <&blkctrl_ns_aon 0x20 0x100>;
14971497
interrupts = <45 0>;
@@ -1515,10 +1515,10 @@
15151515
pre-div = <0>;
15161516
podf = <12>;
15171517
pll-clocks = <&anatop 0 0 0>,
1518-
<&anatop 0 0 32>,
1519-
<&anatop 0 0 1>,
1520-
<&anatop 0 0 768>,
1521-
<&anatop 0 0 1000>;
1518+
<&anatop 0 0 32>,
1519+
<&anatop 0 0 1>,
1520+
<&anatop 0 0 768>,
1521+
<&anatop 0 0 1000>;
15221522
pll-clock-names = "src", "lp", "pd", "num", "den";
15231523
pinmuxes = <&blkctrl_wakeup 0x38 0x100>;
15241524
interrupts = <198 0>;
@@ -1542,10 +1542,10 @@
15421542
pre-div = <0>;
15431543
podf = <12>;
15441544
pll-clocks = <&anatop 0 0 0>,
1545-
<&anatop 0 0 32>,
1546-
<&anatop 0 0 1>,
1547-
<&anatop 0 0 768>,
1548-
<&anatop 0 0 1000>;
1545+
<&anatop 0 0 32>,
1546+
<&anatop 0 0 1>,
1547+
<&anatop 0 0 768>,
1548+
<&anatop 0 0 1000>;
15491549
pll-clock-names = "src", "lp", "pd", "num", "den";
15501550
pinmuxes = <&blkctrl_wakeup 0x3c 0x100>;
15511551
interrupts = <199 0>;
@@ -1569,10 +1569,10 @@
15691569
pre-div = <0>;
15701570
podf = <12>;
15711571
pll-clocks = <&anatop 0 0 0>,
1572-
<&anatop 0 0 32>,
1573-
<&anatop 0 0 1>,
1574-
<&anatop 0 0 768>,
1575-
<&anatop 0 0 1000>;
1572+
<&anatop 0 0 32>,
1573+
<&anatop 0 0 1>,
1574+
<&anatop 0 0 768>,
1575+
<&anatop 0 0 1000>;
15761576
pll-clock-names = "src", "lp", "pd", "num", "den";
15771577
pinmuxes = <&blkctrl_wakeup 0x40 0x100>;
15781578
interrupts = <154 0>;
@@ -1613,6 +1613,7 @@
16131613
reg = <0x0 DT_SIZE_K(512)>;
16141614
#address-cells = <1>;
16151615
#size-cells = <1>;
1616+
16161617
ocram1_available: memory@4000 {
16171618
/* OCRAM1 first 16K access is blocked by TRDC */
16181619
reg = <0x0 DT_SIZE_K(496)>;

0 commit comments

Comments
 (0)