arm64: dts: ti: k3-am62: Add support for MCAN
authorAswath Govindraju <a-govindraju@ti.com>
Mon, 18 Apr 2022 11:58:01 +0000 (17:28 +0530)
committerVignesh Raghavendra <vigneshr@ti.com>
Wed, 27 Apr 2022 14:37:34 +0000 (20:07 +0530)
AM62 SoC has one instance of MCAN in main domain. However, its
corresponding CAN signals are not brought out through a transceiver, on the
SK board. Therefore, add the device tree node in the main dt file and set
the status to disabled in the SK board dts file.

Signed-off-by: Aswath Govindraju <a-govindraju@ti.com>
Signed-off-by: Vignesh Raghavendra <vigneshr@ti.com>
Reviewed-by: Bryan Brattlof <bb@ti.com>
Link: https://lore.kernel.org/r/20220418115802.5672-1-a-govindraju@ti.com
arch/arm64/boot/dts/ti/k3-am62-main.dtsi
arch/arm64/boot/dts/ti/k3-am625-sk.dts

index 9f32b6dad8a9e4792b89290a74bcae201e3ef969..d08abad0bcf4e58c36ff7cb5e46e39884c8f7234 100644 (file)
                clocks = <&k3_clks 53 0>;
                clock-names = "fck";
        };
+
+       main_mcan0: can@20701000 {
+               compatible = "bosch,m_can";
+               reg = <0x00 0x20701000 0x00 0x200>,
+                     <0x00 0x20708000 0x00 0x8000>;
+               reg-names = "m_can", "message_ram";
+               power-domains = <&k3_pds 98 TI_SCI_PD_EXCLUSIVE>;
+               clocks = <&k3_clks 98 6>, <&k3_clks 98 1>;
+               clock-names = "hclk", "cclk";
+               interrupts = <GIC_SPI 155 IRQ_TYPE_LEVEL_HIGH>,
+                            <GIC_SPI 156 IRQ_TYPE_LEVEL_HIGH>;
+               interrupt-names = "int0", "int1";
+               bosch,mram-cfg = <0x0 128 64 64 64 64 32 32>;
+       };
 };
index 3b6a20e342ed28714f25b6897e8503824380e516..39fb1d7630375a92d753ab53c51f74a3a0463c3e 100644 (file)
 &ecap2 {
        status = "disabled";
 };
+
+&main_mcan0 {
+       status = "disabled";
+};