arm64: dts: ti: k3-am65: Enable MCAN nodes at the board level
authorAndrew Davis <afd@ti.com>
Fri, 28 Oct 2022 14:24:14 +0000 (09:24 -0500)
committerNishanth Menon <nm@ti.com>
Fri, 4 Nov 2022 02:46:01 +0000 (21:46 -0500)
MCAN nodes defined in the top-level AM65x SoC dtsi files are incomplete
and will not be functional unless they are extended with pinmux
information.

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

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

Signed-off-by: Andrew Davis <afd@ti.com>
Signed-off-by: Nishanth Menon <nm@ti.com>
Tested-by: Jan Kiszka <jan.kiszka@siemens.com>
Reviewed-by: Bryan Brattlof <bb@ti.com>
Link: https://lore.kernel.org/r/20221028142417.10642-9-afd@ti.com
arch/arm64/boot/dts/ti/k3-am65-iot2050-common.dtsi
arch/arm64/boot/dts/ti/k3-am65-mcu.dtsi
arch/arm64/boot/dts/ti/k3-am654-base-board.dts

index 35af8798f208e786c64cd3d0c06a081379868355..c431d670757ba0596f372e8cc3dc02dd52bbe2bb 100644 (file)
        reset-gpios = <&wkup_gpio0 27 GPIO_ACTIVE_HIGH>;
 };
 
-&m_can0 {
-       status = "disabled";
-};
-
-&m_can1 {
-       status = "disabled";
-};
-
 &pcie1_ep {
        status = "disabled";
 };
index b76448d82cf9534276855b5bdd5fcc384112e7f5..c4ea4e788cee3208d568e63892aa1e56e8ab5d05 100644 (file)
                             <GIC_SPI 545 IRQ_TYPE_LEVEL_HIGH>;
                interrupt-names = "int0", "int1";
                bosch,mram-cfg = <0x0 128 64 64 64 64 32 32>;
+               status = "disabled";
        };
 
        m_can1: mcan@40568000 {
                             <GIC_SPI 548 IRQ_TYPE_LEVEL_HIGH>;
                interrupt-names = "int0", "int1";
                bosch,mram-cfg = <0x0 128 64 64 64 64 32 32>;
+               status = "disabled";
        };
 
        fss: fss@47000000 {
index beac2c563e831f02703feec57464264c93573d72..bf6a6fe3d7ba3d919e478777770e4255b20ee699 100644 (file)
        status = "disabled";
 };
 
-&m_can0 {
-       status = "disabled";
-};
-
-&m_can1 {
-       status = "disabled";
-};
-
 &mailbox0_cluster0 {
        interrupts = <436>;