arm64: dts: ti: k3-am642-sk: Add boot phase tags marking
authorNishanth Menon <nm@ti.com>
Mon, 11 Sep 2023 17:29:02 +0000 (12:29 -0500)
committerVignesh Raghavendra <vigneshr@ti.com>
Mon, 2 Oct 2023 14:20:15 +0000 (19:50 +0530)
bootph-all as phase tag was added to dt-schema
(dtschema/schemas/bootph.yaml) to describe various node usage during
boot phases with DT.

Describe the same for AM642-sk boot devices.

Signed-off-by: Nishanth Menon <nm@ti.com>
Link: https://lore.kernel.org/r/20230911172902.1057417-4-nm@ti.com
Signed-off-by: Vignesh Raghavendra <vigneshr@ti.com>
arch/arm64/boot/dts/ti/k3-am642-sk.dts

index 722fd285a34ecaeea4b2bda8bf96660f19376a1e..f29c8a9b59ba7d94304d56efd1c806dfd7d1dcb1 100644 (file)
@@ -34,6 +34,7 @@
        };
 
        memory@80000000 {
+               bootph-pre-ram;
                device_type = "memory";
                /* 2G RAM */
                reg = <0x00000000 0x80000000 0x00000000 0x80000000>;
 
        vusb_main: regulator-0 {
                /* USB MAIN INPUT 5V DC */
+               bootph-all;
                compatible = "regulator-fixed";
                regulator-name = "vusb_main5v0";
                regulator-min-microvolt = <5000000>;
 
        vcc_3v3_sys: regulator-1 {
                /* output of LP8733xx */
+               bootph-all;
                compatible = "regulator-fixed";
                regulator-name = "vcc_3v3_sys";
                regulator-min-microvolt = <3300000>;
 
        vdd_mmc1: regulator-2 {
                /* TPS2051BD */
+               bootph-all;
                compatible = "regulator-fixed";
                regulator-name = "vdd_mmc1";
                regulator-min-microvolt = <3300000>;
 
 &main_pmx0 {
        main_mmc1_pins_default: main-mmc1-default-pins {
+               bootph-all;
                pinctrl-single,pins = <
                        AM64X_IOPAD(0x029c, PIN_INPUT_PULLUP, 0) /* (C20) MMC1_SDWP */
                        AM64X_IOPAD(0x0298, PIN_INPUT_PULLUP, 0) /* (D19) MMC1_SDCD */
        };
 
        main_uart0_pins_default: main-uart0-default-pins {
+               bootph-all;
                pinctrl-single,pins = <
                        AM64X_IOPAD(0x0238, PIN_INPUT, 0) /* (B16) UART0_CTSn */
                        AM64X_IOPAD(0x023c, PIN_OUTPUT, 0) /* (A16) UART0_RTSn */
        };
 
        main_uart1_pins_default: main-uart1-default-pins {
+               bootph-pre-ram;
                pinctrl-single,pins = <
                        AM64X_IOPAD(0x0248, PIN_INPUT, 0) /* (D16) UART1_CTSn */
                        AM64X_IOPAD(0x024c, PIN_OUTPUT, 0) /* (E16) UART1_RTSn */
        };
 
        main_usb0_pins_default: main-usb0-default-pins {
+               bootph-all;
                pinctrl-single,pins = <
                        AM64X_IOPAD(0x02a8, PIN_OUTPUT, 0) /* (E19) USB0_DRVVBUS */
                >;
        };
 
        main_i2c0_pins_default: main-i2c0-default-pins {
+               bootph-all;
                pinctrl-single,pins = <
                        AM64X_IOPAD(0x0260, PIN_INPUT_PULLUP, 0) /* (A18) I2C0_SCL */
                        AM64X_IOPAD(0x0264, PIN_INPUT_PULLUP, 0) /* (B18) I2C0_SDA */
        };
 
        main_i2c1_pins_default: main-i2c1-default-pins {
+               bootph-all;
                pinctrl-single,pins = <
                        AM64X_IOPAD(0x0268, PIN_INPUT_PULLUP, 0) /* (C18) I2C1_SCL */
                        AM64X_IOPAD(0x026c, PIN_INPUT_PULLUP, 0) /* (B19) I2C1_SDA */
 };
 
 &main_uart0 {
+       bootph-all;
        status = "okay";
        pinctrl-names = "default";
        pinctrl-0 = <&main_uart0_pins_default>;
 
 &main_uart1 {
        /* main_uart1 is reserved for firmware usage */
+       bootph-pre-ram;
        status = "reserved";
        pinctrl-names = "default";
        pinctrl-0 = <&main_uart1_pins_default>;
 };
 
 &main_i2c0 {
+       bootph-all;
        status = "okay";
        pinctrl-names = "default";
        pinctrl-0 = <&main_i2c0_pins_default>;
 };
 
 &main_i2c1 {
+       bootph-all;
        status = "okay";
        pinctrl-names = "default";
        pinctrl-0 = <&main_i2c1_pins_default>;
        clock-frequency = <400000>;
 
        exp1: gpio@70 {
+               bootph-all;
                compatible = "nxp,pca9538";
                reg = <0x70>;
                gpio-controller;
 
 &sdhci1 {
        /* SD/MMC */
+       bootph-all;
        vmmc-supply = <&vdd_mmc1>;
        pinctrl-names = "default";
        bus-width = <4>;
 };
 
 &serdes_ln_ctrl {
+       bootph-all;
        idle-states = <AM64_SERDES0_LANE0_USB>;
 };
 
+&serdes_refclk {
+       bootph-all;
+};
+
+&serdes_wiz0 {
+       bootph-all;
+};
+
 &serdes0 {
+       bootph-all;
        serdes0_usb_link: phy@0 {
+               bootph-all;
                reg = <0>;
                cdns,num-lanes = <1>;
                #phy-cells = <0>;
 };
 
 &usbss0 {
+       bootph-all;
        ti,vbus-divider;
 };
 
 &usb0 {
+       bootph-all;
        dr_mode = "host";
        maximum-speed = "super-speed";
        pinctrl-names = "default";