Skip to content

Commit 5399615

Browse files
decsnyhenrikbrixandersen
authored andcommitted
dts: nxp: mcxw71: Add peripheral bridge definition
Add peripheral bridge definitions to DT, this also fixes the base address of the GPIO peripherals which were faulting in the driver due to the wrong reg address. Signed-off-by: Declan Snyder <[email protected]>
1 parent fb3fce5 commit 5399615

File tree

1 file changed

+51
-28
lines changed

1 file changed

+51
-28
lines changed

dts/arm/nxp/nxp_mcxw71.dtsi

Lines changed: 51 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -66,24 +66,45 @@
6666

6767
peripheral: peripheral@50000000 {
6868
ranges = <0x0 0x50000000 0x10000000>;
69+
#address-cells = <1>;
70+
#size-cells = <1>;
6971

70-
fmu: memory-controller@20000 {
71-
ranges = <0x0 0x10000000 DT_SIZE_M(1)>;
72+
pbridge2: pbridge2@0 {
73+
ranges = <>;
74+
reg = <0x0 0x4b000>;
7275
#address-cells = <1>;
7376
#size-cells = <1>;
7477

75-
compatible = "nxp,iap-msf1";
76-
reg = <0x20000 0x1000>;
77-
interrupts = <27 0>;
78-
status = "disabled";
79-
80-
flash: flash@0 {
81-
reg = <0x0 DT_SIZE_M(1)>;
82-
compatible = "soc-nv-flash";
83-
write-block-size = <16>;
84-
erase-block-size = <8192>;
78+
fmu: memory-controller@20000 {
79+
ranges = <0x0 0x10000000 DT_SIZE_M(1)>;
80+
#address-cells = <1>;
81+
#size-cells = <1>;
82+
83+
compatible = "nxp,iap-msf1";
84+
reg = <0x20000 0x1000>;
85+
interrupts = <27 0>;
86+
status = "disabled";
87+
88+
flash: flash@0 {
89+
reg = <0x0 DT_SIZE_M(1)>;
90+
compatible = "soc-nv-flash";
91+
write-block-size = <16>;
92+
erase-block-size = <8192>;
93+
};
8594
};
8695
};
96+
97+
fast_peripheral0: fast_peripherals0@8000000 {
98+
#address-cells = <1>;
99+
#size-cells = <1>;
100+
ranges = <0x0 0x8000000 0x40000>;
101+
};
102+
103+
fast_peripheral1: fast_peripherals1@8800000 {
104+
#address-cells = <1>;
105+
#size-cells = <1>;
106+
ranges = <0x0 0x8800000 0x210000>;
107+
};
87108
};
88109
};
89110

@@ -96,7 +117,7 @@
96117
arm,num-irq-priority-bits = <3>;
97118
};
98119

99-
&peripheral {
120+
&pbridge2 {
100121
#address-cells = <1>;
101122
#size-cells = <1>;
102123

@@ -146,6 +167,23 @@
146167
status = "disabled";
147168
};
148169

170+
gpiod: gpio@46000{
171+
compatible = "nxp,kinetis-gpio";
172+
status = "disabled";
173+
gpio-controller;
174+
#gpio-cells = <2>;
175+
nxp,kinetis-port = <&portd>;
176+
reg = <0x46000 0x128>;
177+
interrupts = <65 0>, <66 0>;
178+
};
179+
180+
vbat: vbat@2b000 {
181+
reg = <0x2b000 0x400>;
182+
interrupts = <74 0>;
183+
};
184+
};
185+
186+
&fast_peripheral0 {
149187
gpioa: gpio@10000{
150188
compatible = "nxp,kinetis-gpio";
151189
status = "disabled";
@@ -175,19 +213,4 @@
175213
reg = <0x30000 0x128>;
176214
interrupts = <63 0>, <64 0>;
177215
};
178-
179-
gpiod: gpio@46000{
180-
compatible = "nxp,kinetis-gpio";
181-
status = "disabled";
182-
gpio-controller;
183-
#gpio-cells = <2>;
184-
nxp,kinetis-port = <&portd>;
185-
reg = <0x46000 0x128>;
186-
interrupts = <65 0>, <66 0>;
187-
};
188-
189-
vbat: vbat@2b000 {
190-
reg = <0x2b000 0x400>;
191-
interrupts = <74 0>;
192-
};
193216
};

0 commit comments

Comments
 (0)