Skip to content

Commit

Permalink
arm64: dts: ti: k3-am62: Enable ECAP nodes at the board level
Browse files Browse the repository at this point in the history
ECAP nodes defined in the top-level AM62x SoC dtsi files are incomplete
and will not be functional unless they are extended with pinmux
information. (These and the EPWM nodes could be used to trigger internal
actions but they are not used like that currently)

As the pinmux is only known at the board integration level, these
nodes should only be enabled when provided with this information.

Disable the ECAP nodes in the dtsi files and only enable the ones that
are actually pinned out on a given board.

Signed-off-by: Andrew Davis <[email protected]>
Signed-off-by: Nishanth Menon <[email protected]>
Reviewed-by: Bryan Brattlof <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
  • Loading branch information
glneo authored and nmenon committed Oct 28, 2022
1 parent 6e54748 commit ffd61c1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 12 deletions.
3 changes: 3 additions & 0 deletions arch/arm64/boot/dts/ti/k3-am62-main.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -571,6 +571,7 @@
power-domains = <&k3_pds 51 TI_SCI_PD_EXCLUSIVE>;
clocks = <&k3_clks 51 0>;
clock-names = "fck";
status = "disabled";
};

ecap1: pwm@23110000 {
Expand All @@ -580,6 +581,7 @@
power-domains = <&k3_pds 52 TI_SCI_PD_EXCLUSIVE>;
clocks = <&k3_clks 52 0>;
clock-names = "fck";
status = "disabled";
};

ecap2: pwm@23120000 {
Expand All @@ -589,6 +591,7 @@
power-domains = <&k3_pds 53 TI_SCI_PD_EXCLUSIVE>;
clocks = <&k3_clks 53 0>;
clock-names = "fck";
status = "disabled";
};

main_mcan0: can@20701000 {
Expand Down
12 changes: 0 additions & 12 deletions arch/arm64/boot/dts/ti/k3-am625-sk.dts
Original file line number Diff line number Diff line change
Expand Up @@ -450,18 +450,6 @@
};
};

&ecap0 {
status = "disabled";
};

&ecap1 {
status = "disabled";
};

&ecap2 {
status = "disabled";
};

&main_mcan0 {
status = "disabled";
};

0 comments on commit ffd61c1

Please sign in to comment.