]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
arm64: dts: ti: k3-am62x-phyboard-lyra: Add boot phase tags
authorWadim Egorov <w.egorov@phytec.de>
Wed, 5 Mar 2025 08:55:33 +0000 (09:55 +0100)
committerVignesh Raghavendra <vigneshr@ti.com>
Fri, 7 Mar 2025 13:18:05 +0000 (18:48 +0530)
The bootph-all and bootph-pre-ram tags were introduced in dt-schema
(dtschema/schemas/bootph.yaml) to define node usage across different
boot phases.

Add boot phase tags to all required nodes to ensure boot support from
all sources, including UART, USB (DFU), Ethernet, uSD card, eMMC, and
OSPI NOR Flash.

Signed-off-by: Wadim Egorov <w.egorov@phytec.de>
Link: https://lore.kernel.org/r/20250305085537.3976579-1-w.egorov@phytec.de
Signed-off-by: Vignesh Raghavendra <vigneshr@ti.com>
arch/arm64/boot/dts/ti/k3-am62-phycore-som.dtsi
arch/arm64/boot/dts/ti/k3-am62x-phyboard-lyra.dtsi

index 4bffa8ce04107547bdfa6d42ce6781df3aded8aa..55ed418c023bc1f03a04514d12a0950ee9f498bb 100644 (file)
@@ -29,6 +29,7 @@
        memory@80000000 {
                device_type = "memory";
                reg = <0x00000000 0x80000000 0x00000000 0x80000000>;
+               bootph-all;
        };
 
        reserved_memory: reserved-memory {
                        AM62X_IOPAD(0x1e0, PIN_INPUT_PULLUP, 0) /* (B16) I2C0_SCL */
                        AM62X_IOPAD(0x1e4, PIN_INPUT_PULLUP, 0) /* (A16) I2C0_SDA */
                >;
+               bootph-all;
        };
 
        main_mdio1_pins_default: main-mdio1-default-pins {
                        AM62X_IOPAD(0x160, PIN_OUTPUT, 0) /* (AD24) MDIO0_MDC */
                        AM62X_IOPAD(0x15c, PIN_INPUT, 0) /* (AB22) MDIO0_MDIO */
                >;
+               bootph-all;
        };
 
        main_mmc0_pins_default: main-mmc0-default-pins {
                        AM62X_IOPAD(0x1fc, PIN_INPUT_PULLUP, 0) /* (AD2) MMC0_DAT6 */
                        AM62X_IOPAD(0x1f8, PIN_INPUT_PULLUP, 0) /* (AC2) MMC0_DAT7 */
                >;
+               bootph-all;
        };
 
        main_rgmii1_pins_default: main-rgmii1-default-pins {
                        AM62X_IOPAD(0x130, PIN_OUTPUT, 0) /* (AE19) RGMII1_TXC */
                        AM62X_IOPAD(0x12c, PIN_OUTPUT, 0) /* (AD19) RGMII1_TX_CTL */
                >;
+               bootph-all;
        };
 
        ospi0_pins_default: ospi0-default-pins {
                        AM62X_IOPAD(0x028, PIN_INPUT, 0) /* (J22) OSPI0_D7 */
                        AM62X_IOPAD(0x008, PIN_INPUT, 0) /* (J24) OSPI0_DQS */
                >;
+               bootph-all;
        };
 
        pmic_irq_pins_default: pmic-irq-default-pins {
 &cpsw_port1 {
        phy-mode = "rgmii-rxid";
        phy-handle = <&cpsw3g_phy1>;
+       bootph-all;
 };
 
 &cpsw3g_mdio {
        cpsw3g_phy1: ethernet-phy@1 {
                compatible = "ethernet-phy-id2000.a231", "ethernet-phy-ieee802.3-c22";
                reg = <1>;
+               bootph-all;
                ti,rx-internal-delay = <DP83867_RGMIIDCTL_2_00_NS>;
                ti,fifo-depth = <DP83867_PHYCR_FIFO_DEPTH_4_B_NIB>;
        };
        };
 };
 
+&main_pktdma {
+       bootph-all;
+};
+
 &main_i2c0 {
        pinctrl-names = "default";
        pinctrl-0 = <&main_i2c0_pins_default>;
        clock-frequency = <400000>;
+       bootph-all;
        status = "okay";
 
        pmic@30 {
                cdns,tchsh-ns = <60>;
                cdns,tslch-ns = <60>;
                cdns,read-delay = <0>;
+               bootph-all;
        };
 };
 
        pinctrl-0 = <&main_mmc0_pins_default>;
        disable-wp;
        non-removable;
+       bootph-all;
        status = "okay";
 };
index 922cad14c9f8a91eb1b5ce8c5a4b30eb8af400d1..aab74d6019b0a309475bfc7e7798fbc33f8d8b0b 100644 (file)
                regulator-max-microvolt = <3300000>;
                regulator-always-on;
                regulator-boot-on;
+               bootph-all;
        };
 
        vcc_3v3_sw: regulator-vcc-3v3-sw {
                        AM62X_IOPAD(0x224, PIN_INPUT_PULLUP, 0) /* (D22) MMC1_DAT3 */
                        AM62X_IOPAD(0x240, PIN_INPUT_PULLUP, 0) /* (D17) MMC1_SDCD */
                >;
+               bootph-all;
        };
 
        main_rgmii2_pins_default: main-rgmii2-default-pins {
                        AM62X_IOPAD(0x1c8, PIN_INPUT, 0) /* (D14) UART0_RXD */
                        AM62X_IOPAD(0x1cc, PIN_OUTPUT, 0) /* (E14) UART0_TXD */
                >;
+               bootph-all;
        };
 
        main_uart1_pins_default: main-uart1-default-pins {
                        AM62X_IOPAD(0x1ac, PIN_INPUT, 2) /* (E19) MCASP0_AFSR.UART1_RXD */
                        AM62X_IOPAD(0x1b0, PIN_OUTPUT, 2) /* (A20) MCASP0_ACLKR.UART1_TXD */
                >;
+               bootph-pre-ram;
        };
 
        main_usb1_pins_default: main-usb1-default-pins {
 &main_uart0 {
        pinctrl-names = "default";
        pinctrl-0 = <&main_uart0_pins_default>;
+       bootph-all;
        status = "okay";
 };
 
 &main_uart1 {
        pinctrl-names = "default";
        pinctrl-0 = <&main_uart1_pins_default>;
+       bootph-pre-ram;
        /* Main UART1 may be used by TIFS firmware */
        status = "okay";
 };
        pinctrl-0 = <&main_mmc1_pins_default>;
        disable-wp;
        no-1-8-v;
+       bootph-all;
        status = "okay";
 };
 
 &usbss0 {
        ti,vbus-divider;
+       bootph-all;
        status = "okay";
 };
 
 
 &usb0 {
        usb-role-switch;
+       bootph-all;
 
        port {
                typec_hs: endpoint {