Skip to content

Commit

Permalink
arm64: dts: ti: k3-am625: 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.

On TI K3 AM625 SoC, only secure_proxy_sa3 and esm nodes are
exclusively used by R5 bootloader, rest of the dts nodes with bootph-* are
used by later boot stages also.

Add bootph-all for all other nodes that are used in the bootloader on
K3 AM625 SoC, and bootph-pre-ram is not needed specifically for any
other node in kernel dts.

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 7c3bc19 commit 87e437a
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 0 deletions.
10 changes: 10 additions & 0 deletions arch/arm64/boot/dts/ti/k3-am62-main.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@
};

dmss: bus@48000000 {
bootph-all;
compatible = "simple-mfd";
#address-cells = <2>;
#size-cells = <2>;
Expand All @@ -90,6 +91,7 @@
ti,sci-dev-id = <25>;

secure_proxy_main: mailbox@4d000000 {
bootph-all;
compatible = "ti,am654-secure-proxy";
#mbox-cells = <1>;
reg-names = "target_data", "rt", "scfg";
Expand Down Expand Up @@ -165,6 +167,7 @@
};

dmsc: system-controller@44043000 {
bootph-all;
compatible = "ti,k2g-sci";
ti,host-id = <12>;
mbox-names = "rx", "tx";
Expand All @@ -174,16 +177,19 @@
reg = <0x00 0x44043000 0x00 0xfe0>;

k3_pds: power-controller {
bootph-all;
compatible = "ti,sci-pm-domain";
#power-domain-cells = <2>;
};

k3_clks: clock-controller {
bootph-all;
compatible = "ti,k2g-sci-clk";
#clock-cells = <2>;
};

k3_reset: reset-controller {
bootph-all;
compatible = "ti,sci-reset";
#reset-cells = <2>;
};
Expand All @@ -202,6 +208,7 @@
};

secure_proxy_sa3: mailbox@43600000 {
bootph-pre-ram;
compatible = "ti,am654-secure-proxy";
#mbox-cells = <1>;
reg-names = "target_data", "rt", "scfg";
Expand All @@ -217,6 +224,7 @@
};

main_pmx0: pinctrl@f4000 {
bootph-all;
compatible = "pinctrl-single";
reg = <0x00 0xf4000 0x00 0x2ac>;
#pinctrl-cells = <1>;
Expand All @@ -225,12 +233,14 @@
};

main_esm: esm@420000 {
bootph-pre-ram;
compatible = "ti,j721e-esm";
reg = <0x00 0x420000 0x00 0x1000>;
ti,esm-pins = <160>, <161>, <162>, <163>, <177>, <178>;
};

main_timer0: timer@2400000 {
bootph-all;
compatible = "ti,am654-timer";
reg = <0x00 0x2400000 0x00 0x400>;
interrupts = <GIC_SPI 120 IRQ_TYPE_LEVEL_HIGH>;
Expand Down
2 changes: 2 additions & 0 deletions arch/arm64/boot/dts/ti/k3-am62-mcu.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

&cbass_mcu {
mcu_pmx0: pinctrl@4084000 {
bootph-all;
compatible = "pinctrl-single";
reg = <0x00 0x04084000 0x00 0x88>;
#pinctrl-cells = <1>;
Expand All @@ -15,6 +16,7 @@
};

mcu_esm: esm@4100000 {
bootph-pre-ram;
compatible = "ti,j721e-esm";
reg = <0x00 0x4100000 0x00 0x1000>;
ti,esm-pins = <0>, <1>, <2>, <85>;
Expand Down
2 changes: 2 additions & 0 deletions arch/arm64/boot/dts/ti/k3-am62-wakeup.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,15 @@

&cbass_wakeup {
wkup_conf: syscon@43000000 {
bootph-all;
compatible = "syscon", "simple-mfd";
reg = <0x00 0x43000000 0x00 0x20000>;
#address-cells = <1>;
#size-cells = <1>;
ranges = <0x0 0x00 0x43000000 0x20000>;

chipid: chipid@14 {
bootph-all;
compatible = "ti,am654-chipid";
reg = <0x14 0x4>;
};
Expand Down
3 changes: 3 additions & 0 deletions arch/arm64/boot/dts/ti/k3-am62.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@
};

cbass_main: bus@f0000 {
bootph-all;
compatible = "simple-bus";
#address-cells = <2>;
#size-cells = <2>;
Expand Down Expand Up @@ -86,13 +87,15 @@
<0x00 0x43000000 0x00 0x43000000 0x00 0x00020000>;

cbass_mcu: bus@4000000 {
bootph-all;
compatible = "simple-bus";
#address-cells = <2>;
#size-cells = <2>;
ranges = <0x00 0x04000000 0x00 0x04000000 0x00 0x01ff1400>; /* Peripheral window */
};

cbass_wakeup: bus@b00000 {
bootph-all;
compatible = "simple-bus";
#address-cells = <2>;
#size-cells = <2>;
Expand Down

0 comments on commit 87e437a

Please sign in to comment.