Skip to content

Commit dba69f3

Browse files
decsnydanieldegrasse
authored andcommitted
dts: nxp: Fix RT11xx DT files hierarchy
The DT hierachy of the RT11xx series was somewhat incoherent. The boards targets were directly including the series level DTSI with no SOC dtsi in between, and there existed an SOC DTSI that had to be separately included by a different board file, which didn't include the series DTSI itself. It seems that this was only working if you included the files exactly in the correct order in specific board files. Also, as a result of this change, need to (correctly) define the cpu core only in the DTSI for that core, instead of in the series generic dtsi, because that DTSI was actually written with incorrect syntax due to duplicated node labels on nodes right next to each other in the same file, and was relying on other DTSI files to delete the duplicate nodes in order for it to build. So overall this was a mess, needed cleanup. Signed-off-by: Declan Snyder <[email protected]>
1 parent 1f315f1 commit dba69f3

14 files changed

+102
-53
lines changed

boards/nxp/mimxrt1160_evk/mimxrt1160_evk_mimxrt1166_cm4.dts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
/dts-v1/;
88

9-
#include <nxp/nxp_rt11xx_cm4.dtsi>
9+
#include <nxp/nxp_rt1160_cm4.dtsi>
1010
#include "mimxrt1160_evk.dtsi"
1111

1212
/ {

boards/nxp/mimxrt1160_evk/mimxrt1160_evk_mimxrt1166_cm7.dts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
/dts-v1/;
88

9-
#include <nxp/nxp_rt11xx_cm7.dtsi>
9+
#include <nxp/nxp_rt1160_cm7.dtsi>
1010
#include "mimxrt1160_evk.dtsi"
1111

1212
/ {

boards/nxp/mimxrt1170_evk/mimxrt1170_evk_mimxrt1176_cm4.dts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
/dts-v1/;
88

9-
#include <nxp/nxp_rt11xx_cm4.dtsi>
9+
#include <nxp/nxp_rt1170_cm4.dtsi>
1010
#include "mimxrt1170_evk.dtsi"
1111

1212
/ {

boards/nxp/mimxrt1170_evk/mimxrt1170_evk_mimxrt1176_cm7.dts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
/dts-v1/;
88

9-
#include <nxp/nxp_rt11xx_cm7.dtsi>
9+
#include <nxp/nxp_rt1170_cm7.dtsi>
1010
#include "mimxrt1170_evk.dtsi"
1111

1212
/ {

boards/nxp/vmu_rt1170/vmu_rt1170_mimxrt1176_cm7.dts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
/dts-v1/;
88

9-
#include <nxp/nxp_rt11xx_cm7.dtsi>
9+
#include <nxp/nxp_rt1170_cm7.dtsi>
1010
#include <zephyr/dt-bindings/led/led.h>
1111
#include "vmu_rt1170.dtsi"
1212
#include <zephyr/dt-bindings/input/input-event-codes.h>

dts/arm/nxp/nxp_rt1160.dtsi

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
* SPDX-License-Identifier: Apache-2.0
55
*/
66

7+
#include <nxp/nxp_rt11xx.dtsi>
8+
79
/* Configure ARM PLL to 600MHz */
810
&arm_pll {
911
clock-mult = <100>;

dts/arm/nxp/nxp_rt1160_cm4.dtsi

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
/*
2+
* Copyright 2025 NXP
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
/* SOC DTS for RT1160 cm4 core */
8+
9+
/* Includes the series level for cm4 core, as opposed to cm7, shared with RT1170 */
10+
#include <nxp/nxp_rt11xx_cm4.dtsi>
11+
12+
/* Includes the specifics for RT1170 SOC, as opposed to RT1170 */
13+
#include <nxp/nxp_rt1160.dtsi>

dts/arm/nxp/nxp_rt1160_cm7.dtsi

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
/*
2+
* Copyright 2025 NXP
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
/* SOC DTS for RT1160 cm7 core */
8+
9+
/* Includes the series level for cm7 core, as opposed to cm4, shared with RT1170 */
10+
#include <nxp/nxp_rt11xx_cm7.dtsi>
11+
12+
/* Includes the specifics for RT1170 SOC, as opposed to RT1170 */
13+
#include <nxp/nxp_rt1160.dtsi>

dts/arm/nxp/nxp_rt1170.dtsi

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
* SPDX-License-Identifier: Apache-2.0
55
*/
66

7+
#include <nxp/nxp_rt11xx.dtsi>
8+
79
/* Configure ARM PLL to 996MHz */
810
&arm_pll {
911
clock-mult = <83>;

dts/arm/nxp/nxp_rt1170_cm4.dtsi

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
/*
2+
* Copyright 2025 NXP
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
/* SOC DTS for RT1170 cm4 core */
8+
9+
/* Includes the series level for cm4 core, as opposed to cm7, shared with RT1160 */
10+
#include <nxp/nxp_rt11xx_cm4.dtsi>
11+
12+
/* Includes the specifics for RT1170 SOC, as opposed to RT1160 */
13+
#include <nxp/nxp_rt1170.dtsi>

0 commit comments

Comments
 (0)