Skip to content

Commit 296716c

Browse files
mmahadevan108kartben
authored andcommitted
dts: nxp_rw6xx: Add Power Domain Support
This is required to re-initialize the peripherals on exit from Power Mode 3. Signed-off-by: Mahesh Mahadevan <[email protected]>
1 parent a3d42ff commit 296716c

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

dts/arm/nxp/nxp_rw6xx_common.dtsi

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,11 @@
8383
ranges = <0x0 0x443C0000 DT_SIZE_K(140)>;
8484
};
8585

86+
power_mode3_domain: power_mode3_domain {
87+
compatible = "power-domain-soc-state-change";
88+
onoff-power-states = <&standby>;
89+
#power-domain-cells = <0>;
90+
};
8691
};
8792

8893
&sram {
@@ -189,6 +194,7 @@
189194
reg = <0x14000 0x1000>;
190195
status = "okay";
191196
interrupts = <123 0>;
197+
power-domains = <&power_mode3_domain>;
192198
};
193199

194200
wwdt: watchdog@e000 {
@@ -211,6 +217,7 @@
211217
#gpio-cells = <2>;
212218
reg = <0>;
213219
int-source = "pint";
220+
power-domains = <&power_mode3_domain>;
214221
};
215222

216223
hsgpio1: gpio@1 {
@@ -219,6 +226,7 @@
219226
#gpio-cells = <2>;
220227
reg = <1>;
221228
int-source = "pint";
229+
power-domains = <&power_mode3_domain>;
222230
};
223231
};
224232

@@ -228,6 +236,7 @@
228236
interrupts = <50 1>;
229237
interrupt-names = "usb_otg";
230238
num-bidir-endpoints = <8>;
239+
power-domains = <&power_mode3_domain>;
231240
status = "disabled";
232241
};
233242

@@ -240,6 +249,7 @@
240249
dmas = <&dma0 0>, <&dma0 1>;
241250
dma-names = "rx", "tx";
242251
zephyr,disabling-power-states = <&suspend &standby>;
252+
power-domains = <&power_mode3_domain>;
243253
status = "disabled";
244254
};
245255

@@ -252,6 +262,7 @@
252262
dmas = <&dma0 2>, <&dma0 3>;
253263
dma-names = "rx", "tx";
254264
zephyr,disabling-power-states = <&suspend &standby>;
265+
power-domains = <&power_mode3_domain>;
255266
status = "disabled";
256267
};
257268

@@ -264,6 +275,7 @@
264275
dmas = <&dma0 4>, <&dma0 5>;
265276
dma-names = "rx", "tx";
266277
zephyr,disabling-power-states = <&suspend &standby>;
278+
power-domains = <&power_mode3_domain>;
267279
status = "disabled";
268280
};
269281

@@ -276,6 +288,7 @@
276288
dmas = <&dma0 6>, <&dma0 7>;
277289
dma-names = "rx", "tx";
278290
zephyr,disabling-power-states = <&suspend &standby>;
291+
power-domains = <&power_mode3_domain>;
279292
status = "disabled";
280293
};
281294

@@ -288,6 +301,7 @@
288301
dmas = <&dma0 26>, <&dma0 27>;
289302
dma-names = "rx", "tx";
290303
zephyr,disabling-power-states = <&suspend &standby>;
304+
power-domains = <&power_mode3_domain>;
291305
status = "disabled";
292306
};
293307

@@ -319,6 +333,7 @@
319333
compatible = "nxp,wifi";
320334
/* first index is the imu interrupt, the second is the wakeup done interrupt */
321335
interrupts = <72 2>, <64 2>;
336+
power-domains = <&power_mode3_domain>;
322337
};
323338

324339
dma0: dma-controller@104000 {
@@ -328,6 +343,7 @@
328343
status = "disabled";
329344
#dma-cells = <1>;
330345
dma-channels = <33>;
346+
power-domains = <&power_mode3_domain>;
331347
};
332348

333349
lcdic: lcdic@128000 {
@@ -339,6 +355,7 @@
339355
#size-cells = <0>;
340356
clocks = <&clkctl1 MCUX_LCDIC_CLK>;
341357
dmas = <&dma0 0>;
358+
power-domains = <&power_mode3_domain>;
342359
};
343360

344361
rtc: rtc@30000 {
@@ -362,6 +379,7 @@
362379
mode = <0>;
363380
input = <0>;
364381
prescale = <0>;
382+
power-domains = <&power_mode3_domain>;
365383
};
366384

367385
ctimer1: ctimer@29000 {
@@ -374,6 +392,7 @@
374392
mode = <0>;
375393
input = <0>;
376394
prescale = <0>;
395+
power-domains = <&power_mode3_domain>;
377396
};
378397

379398
ctimer2: ctimer@2a000 {
@@ -386,6 +405,7 @@
386405
mode = <0>;
387406
input = <0>;
388407
prescale = <0>;
408+
power-domains = <&power_mode3_domain>;
389409
};
390410

391411
ctimer3: ctimer@2b000 {
@@ -398,6 +418,7 @@
398418
mode = <0>;
399419
input = <0>;
400420
prescale = <0>;
421+
power-domains = <&power_mode3_domain>;
401422
};
402423

403424
sctimer: pwm@146000 {
@@ -408,6 +429,7 @@
408429
status = "disabled";
409430
prescaler = <8>;
410431
#pwm-cells = <3>;
432+
power-domains = <&power_mode3_domain>;
411433
};
412434

413435
mrt0: mrt@2d000 {
@@ -420,6 +442,7 @@
420442
resets = <&rstctl1 NXP_SYSCON_RESET(2, 8)>;
421443
#address-cells = <1>;
422444
#size-cells = <0>;
445+
power-domains = <&power_mode3_domain>;
423446

424447
mrt0_channel0: mrt0_channel@0 {
425448
compatible = "nxp,mrt-channel";
@@ -453,6 +476,7 @@
453476
resets = <&rstctl0 NXP_SYSCON_RESET(2, 26)>;
454477
#address-cells = <1>;
455478
#size-cells = <0>;
479+
power-domains = <&power_mode3_domain>;
456480

457481
mrt1_channel0: mrt1_channel@0 {
458482
compatible = "nxp,mrt-channel";
@@ -484,6 +508,7 @@
484508
interrupts = <25 0>;
485509
status = "disabled";
486510
clocks = <&clkctl1 MCUX_DMIC_CLK>;
511+
power-domains = <&power_mode3_domain>;
487512

488513
pdmc0: dmic-channel@0 {
489514
reg = <0>;
@@ -521,6 +546,7 @@
521546
interrupts = <112 0>;
522547
status = "disabled";
523548
#io-channel-cells = <1>;
549+
power-domains = <&power_mode3_domain>;
524550
};
525551

526552
adc1: gau_adc1@38100 {
@@ -529,6 +555,7 @@
529555
interrupts = <111 0>;
530556
status = "disabled";
531557
#io-channel-cells = <1>;
558+
power-domains = <&power_mode3_domain>;
532559
};
533560

534561
dac0: dac@38200 {
@@ -537,6 +564,7 @@
537564
interrupts = <108 0>;
538565
status = "disabled";
539566
#io-channel-cells = <0>;
567+
power-domains = <&power_mode3_domain>;
540568
};
541569
};
542570

@@ -555,12 +583,14 @@
555583

556584
hci: hci_ble {
557585
compatible = "nxp,hci-ble";
586+
power-domains = <&power_mode3_domain>;
558587
};
559588

560589
hdlc_rcp_if: hdlc_rcp_if {
561590
compatible = "nxp,hdlc-rcp-if";
562591
interrupts = <90 2>, <82 2>;
563592
interrupt-names = "hdlc_rcp_if_int", "wakeup_int";
593+
power-domains = <&power_mode3_domain>;
564594
};
565595

566596
enet: enet@138000 {
@@ -574,18 +604,21 @@
574604
nxp,mdio = <&enet_mdio>;
575605
nxp,ptp-clock = <&enet_ptp_clock>;
576606
status = "disabled";
607+
power-domains = <&power_mode3_domain>;
577608
};
578609
enet_mdio: mdio {
579610
compatible = "nxp,enet-mdio";
580611
status = "disabled";
581612
#address-cells = <1>;
582613
#size-cells = <0>;
614+
power-domains = <&power_mode3_domain>;
583615
};
584616
enet_ptp_clock: ptp-clock {
585617
compatible = "nxp,enet-ptp-clock";
586618
interrupts = <116 0>;
587619
status = "disabled";
588620
clocks = <&clkctl1 MCUX_ENET_PLL>;
621+
power-domains = <&power_mode3_domain>;
589622
};
590623
};
591624
};

0 commit comments

Comments
 (0)