Skip to content

Commit c74d8de

Browse files
Apurva Nandannmenon
authored andcommitted
arm64: dts: ti: k3-j784s4-evm: Add phase tags marking
bootph-all as phase tag was added to dt-schema (dtschema/schemas/bootph.yaml) to cover U-Boot challenges with DT. That's why add it also to Linux to be aligned with bootloader requirement. wkup_i2c0, mcu_uart0, main_uart8, fss, ospi0, ospi1, main_sdhci0 and main_sdhci1 are required for bootloader operation on TI K3 J784S4 EVM. These IPs along with pinmuxes need to be marked for all bootloader phases, hence add bootph-all to these nodes in kernel dts. Signed-off-by: Apurva Nandan <a-nandan@ti.com> Reviewed-by: Udit Kumar <u-kumar1@ti.com> Link: https://lore.kernel.org/r/20230811192030.3480616-3-a-nandan@ti.com Signed-off-by: Nishanth Menon <nm@ti.com>
1 parent 3a40869 commit c74d8de

1 file changed

Lines changed: 24 additions & 0 deletions

File tree

arch/arm64/boot/dts/ti/k3-j784s4-evm.dts

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,9 @@
252252
};
253253

254254
&main_pmx0 {
255+
bootph-all;
255256
main_uart8_pins_default: main-uart8-default-pins {
257+
bootph-all;
256258
pinctrl-single,pins = <
257259
J784S4_IOPAD(0x040, PIN_INPUT, 14) /* (AF37) MCASP0_AXR0.UART8_CTSn */
258260
J784S4_IOPAD(0x044, PIN_OUTPUT, 14) /* (AG37) MCASP0_AXR1.UART8_RTSn */
@@ -269,6 +271,7 @@
269271
};
270272

271273
main_mmc1_pins_default: main-mmc1-default-pins {
274+
bootph-all;
272275
pinctrl-single,pins = <
273276
J784S4_IOPAD(0x104, PIN_INPUT, 0) /* (AB38) MMC1_CLK */
274277
J784S4_IOPAD(0x108, PIN_INPUT, 0) /* (AB36) MMC1_CMD */
@@ -289,7 +292,9 @@
289292
};
290293

291294
&wkup_pmx2 {
295+
bootph-all;
292296
wkup_uart0_pins_default: wkup-uart0-default-pins {
297+
bootph-all;
293298
pinctrl-single,pins = <
294299
J721S2_WKUP_IOPAD(0x070, PIN_INPUT, 0) /* (L37) WKUP_GPIO0_6.WKUP_UART0_CTSn */
295300
J721S2_WKUP_IOPAD(0x074, PIN_INPUT, 0) /* (L36) WKUP_GPIO0_7.WKUP_UART0_RTSn */
@@ -299,13 +304,15 @@
299304
};
300305

301306
wkup_i2c0_pins_default: wkup-i2c0-default-pins {
307+
bootph-all;
302308
pinctrl-single,pins = <
303309
J721S2_WKUP_IOPAD(0x98, PIN_INPUT, 0) /* (N33) WKUP_I2C0_SCL */
304310
J721S2_WKUP_IOPAD(0x9c, PIN_INPUT, 0) /* (N35) WKUP_I2C0_SDA */
305311
>;
306312
};
307313

308314
mcu_uart0_pins_default: mcu-uart0-default-pins {
315+
bootph-all;
309316
pinctrl-single,pins = <
310317
J784S4_WKUP_IOPAD(0x090, PIN_INPUT, 0) /* (H37) WKUP_GPIO0_14.MCU_UART0_CTSn */
311318
J784S4_WKUP_IOPAD(0x094, PIN_OUTPUT, 0) /* (K37) WKUP_GPIO0_15.MCU_UART0_RTSn */
@@ -366,7 +373,9 @@
366373
};
367374

368375
&wkup_pmx0 {
376+
bootph-all;
369377
mcu_fss0_ospi0_pins_default: mcu-fss0-ospi0-default-pins {
378+
bootph-all;
370379
pinctrl-single,pins = <
371380
J784S4_WKUP_IOPAD(0x000, PIN_OUTPUT, 0) /* (E32) MCU_OSPI0_CLK */
372381
J784S4_WKUP_IOPAD(0x02c, PIN_OUTPUT, 0) /* (A32) MCU_OSPI0_CSn0 */
@@ -384,14 +393,17 @@
384393
};
385394

386395
&wkup_pmx1 {
396+
bootph-all;
387397
mcu_fss0_ospi0_1_pins_default: mcu-fss0-ospi0-1-default-pins {
398+
bootph-all;
388399
pinctrl-single,pins = <
389400
J784S4_WKUP_IOPAD(0x004, PIN_OUTPUT, 6) /* (C32) MCU_OSPI0_ECC_FAIL */
390401
J784S4_WKUP_IOPAD(0x000, PIN_OUTPUT, 6) /* (B34) MCU_OSPI0_RESET_OUT0 */
391402
>;
392403
};
393404

394405
mcu_fss0_ospi1_pins_default: mcu-fss0-ospi1-default-pins {
406+
bootph-all;
395407
pinctrl-single,pins = <
396408
J784S4_WKUP_IOPAD(0x008, PIN_OUTPUT, 0) /* (F32) MCU_OSPI1_CLK */
397409
J784S4_WKUP_IOPAD(0x024, PIN_OUTPUT, 0) /* (G32) MCU_OSPI1_CSn0 */
@@ -413,6 +425,7 @@
413425
};
414426

415427
&wkup_i2c0 {
428+
bootph-all;
416429
status = "okay";
417430
pinctrl-names = "default";
418431
pinctrl-0 = <&wkup_i2c0_pins_default>;
@@ -426,12 +439,14 @@
426439
};
427440

428441
&mcu_uart0 {
442+
bootph-all;
429443
status = "okay";
430444
pinctrl-names = "default";
431445
pinctrl-0 = <&mcu_uart0_pins_default>;
432446
};
433447

434448
&main_uart8 {
449+
bootph-all;
435450
status = "okay";
436451
pinctrl-names = "default";
437452
pinctrl-0 = <&main_uart8_pins_default>;
@@ -442,15 +457,18 @@
442457
};
443458

444459
&fss {
460+
bootph-all;
445461
status = "okay";
446462
};
447463

448464
&ospi0 {
465+
bootph-all;
449466
status = "okay";
450467
pinctrl-names = "default";
451468
pinctrl-0 = <&mcu_fss0_ospi0_pins_default>, <&mcu_fss0_ospi0_1_pins_default>;
452469

453470
flash@0 {
471+
bootph-all;
454472
compatible = "jedec,spi-nor";
455473
reg = <0x0>;
456474
spi-tx-bus-width = <8>;
@@ -498,6 +516,7 @@
498516
};
499517

500518
partition@3fc0000 {
519+
bootph-all;
501520
label = "ospi.phypattern";
502521
reg = <0x3fc0000 0x40000>;
503522
};
@@ -506,11 +525,13 @@
506525
};
507526

508527
&ospi1 {
528+
bootph-all;
509529
status = "okay";
510530
pinctrl-names = "default";
511531
pinctrl-0 = <&mcu_fss0_ospi1_pins_default>;
512532

513533
flash@0 {
534+
bootph-all;
514535
compatible = "jedec,spi-nor";
515536
reg = <0x0>;
516537
spi-tx-bus-width = <1>;
@@ -558,6 +579,7 @@
558579
};
559580

560581
partition@3fc0000 {
582+
bootph-all;
561583
label = "qspi.phypattern";
562584
reg = <0x3fc0000 0x40000>;
563585
};
@@ -602,6 +624,7 @@
602624
};
603625

604626
&main_sdhci0 {
627+
bootph-all;
605628
/* eMMC */
606629
status = "okay";
607630
non-removable;
@@ -610,6 +633,7 @@
610633
};
611634

612635
&main_sdhci1 {
636+
bootph-all;
613637
/* SD card */
614638
status = "okay";
615639
pinctrl-0 = <&main_mmc1_pins_default>;

0 commit comments

Comments
 (0)