Skip to content

Commit

Permalink
arm64: dts: ti: k3-am642-sk: Add boot phase tags marking
Browse files Browse the repository at this point in the history
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 <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Vignesh Raghavendra <[email protected]>
  • Loading branch information
nmenon authored and r-vignesh committed Oct 2, 2023
1 parent 33830e0 commit 4669288
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions arch/arm64/boot/dts/ti/k3-am642-sk.dts
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
};

memory@80000000 {
bootph-pre-ram;
device_type = "memory";
/* 2G RAM */
reg = <0x00000000 0x80000000 0x00000000 0x80000000>;
Expand Down Expand Up @@ -107,6 +108,7 @@

vusb_main: regulator-0 {
/* USB MAIN INPUT 5V DC */
bootph-all;
compatible = "regulator-fixed";
regulator-name = "vusb_main5v0";
regulator-min-microvolt = <5000000>;
Expand All @@ -117,6 +119,7 @@

vcc_3v3_sys: regulator-1 {
/* output of LP8733xx */
bootph-all;
compatible = "regulator-fixed";
regulator-name = "vcc_3v3_sys";
regulator-min-microvolt = <3300000>;
Expand All @@ -128,6 +131,7 @@

vdd_mmc1: regulator-2 {
/* TPS2051BD */
bootph-all;
compatible = "regulator-fixed";
regulator-name = "vdd_mmc1";
regulator-min-microvolt = <3300000>;
Expand Down Expand Up @@ -234,6 +238,7 @@

&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 */
Expand All @@ -248,6 +253,7 @@
};

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 */
Expand All @@ -257,6 +263,7 @@
};

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 */
Expand All @@ -266,19 +273,22 @@
};

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 */
Expand Down Expand Up @@ -367,6 +377,7 @@
};

&main_uart0 {
bootph-all;
status = "okay";
pinctrl-names = "default";
pinctrl-0 = <&main_uart0_pins_default>;
Expand All @@ -375,12 +386,14 @@

&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>;
Expand All @@ -393,12 +406,14 @@
};

&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;
Expand Down Expand Up @@ -445,6 +460,7 @@

&sdhci1 {
/* SD/MMC */
bootph-all;
vmmc-supply = <&vdd_mmc1>;
pinctrl-names = "default";
bus-width = <4>;
Expand All @@ -454,11 +470,22 @@
};

&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>;
Expand All @@ -468,10 +495,12 @@
};

&usbss0 {
bootph-all;
ti,vbus-divider;
};

&usb0 {
bootph-all;
dr_mode = "host";
maximum-speed = "super-speed";
pinctrl-names = "default";
Expand Down

0 comments on commit 4669288

Please sign in to comment.