arm64: dts: ti: use ti,am62-m_can compatible for m_can devices
Subsystems (2)
v2 cover arm64: dts: ti: use ti,am62-m_can compatible for m_can devices
This series prepends "ti,am62-m_can" compatible to the m_can devices in the TI AM62 family of devices. By adding this compaible, this series adds out-of-band wakeup support for m_can devices.
Dependency
----------
This series depends on the "can: m_can: introduce ti,am62-m_can compatible for out-of-band wakeup" series which implements the "ti,am62-m_can" compatible in the m_can driver and dt bindings.
Testing
-------
Tested suspend/resume with CAN wakeup on AM62P SK EVM.
---
Changes in v2:
- Removed "out-band-wakeup" device tree property.
- Add "ti,am62-m_can" compatible to m_can devices.
- Link to v1: https://lore.kernel.org/r/[email protected]
---
Kendall Willis (3):
arm64: dts: ti: k3-am62: use ti,am62-m_can compatible for m_can devices
arm64: dts: ti: k3-am62a: use ti,am62-m_can compatible for m_can devices
arm64: dts: ti: k3-am62p: use ti,am62-m_can compatible for m_can devices
arch/arm64/boot/dts/ti/k3-am62-mcu.dtsi | 4 ++-- arch/arm64/boot/dts/ti/k3-am62a-mcu.dtsi | 4 ++-- arch/arm64/boot/dts/ti/k3-am62p-j722s-common-mcu.dtsi | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-)
---
base-commit: cee9395acd8043be0644b25c34bfa86623f2b935
change-id: 20260819-smth-6fb189fc148f
Best regards,
Signature · 1 line
Kendall Willis <[email protected]>
PATCH v2 1/3 arm64: dts: ti: k3-am62: use ti,am62-m_can compatible for m_can devices
Prepend "ti,am62-m_can" to the m_can device compatible property since this compatible adds out-of-band wakeup functionality to the m_can devices. The m_can pins can be a wakeup source in the deepest low power states, despite being in the MCU domain which is OFF during deeper low power states since it has the out-of-band wakeup capability.
--- arch/arm64/boot/dts/ti/k3-am62-mcu.dtsi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
arch/arm64/boot/dts/ti/k3-am62-mcu.dtsi +2 -2
@@ -152,7 +152,7 @@ mcu_rti0: watchdog@4880000 { }; mcu_mcan0: can@4e08000 { - compatible = "bosch,m_can"; + compatible = "ti,am62-m_can", "bosch,m_can"; reg = <0x00 0x4e08000 0x00 0x200>, <0x00 0x4e00000 0x00 0x8000>; reg-names = "m_can", "message_ram";
@@ -164,7 +164,7 @@ mcu_mcan0: can@4e08000 { }; mcu_mcan1: can@4e18000 { - compatible = "bosch,m_can"; + compatible = "ti,am62-m_can", "bosch,m_can"; reg = <0x00 0x4e18000 0x00 0x200>, <0x00 0x4e10000 0x00 0x8000>; reg-names = "m_can", "message_ram";
Signature · 1 line
2.34.1
[email protected]
AI reviewRe: [PATCH v2 1/3] arm64: dts: ti: k3-am62: use ti,am62-m_can compatible for m_can devices
Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider: - [Low] The patch introduces a new device tree compatible string 'ti,am62-m_can' without updating the…
Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [Low] The patch introduces a new device tree compatible string 'ti,am62-m_can' without updating the corresponding device tree binding schema, which will cause dtbs_check validation failures. --
commit aab89344d119641f5683480ba4bd99f51381ae13
Author: Kendall Willis <[email protected]>
arm64: dts: ti: k3-am62: use ti,am62-m_can compatible for m_can devices
This commit prepends the "ti,am62-m_can" compatible string to the m_can devices in the k3-am62-mcu device tree. This change reflects the out-of-band wakeup functionality available for these devices during deeper low power states.
arch/arm64/boot/dts/ti/k3-am62-mcu.dtsi mcu_rti0: watchdog@4880000 { · line 155
Quoted 9 lines
arch/arm64/boot/dts/ti/k3-am62-mcu.dtsi +1
-1@@ -152,7 +152,7 @@ mcu_rti0: watchdog@4880000 { }; mcu_mcan0: can@4e08000 { - compatible = "bosch,m_can"; + compatible = "ti,am62-m_can", "bosch,m_can";
[Severity: Low]
Will adding "ti,am62-m_can" here trigger a dtbs_check validation failure?
The existing schema for the Bosch M_CAN controller in Documentation/devicetree/bindings/net/can/bosch,m_can.yaml expects the compatible property to strictly be bosch,m_can.
Changing it to an array without updating the YAML schema will likely cause DT validation tools to fail during the build process.
Should the binding schema be updated alongside this change?
[ ... ]
Signature · 1 line
Sashiko AI review · https://sashiko.dev/#/patchset/[email protected]?part=1
PATCH v2 2/3 arm64: dts: ti: k3-am62a: use ti,am62-m_can compatible for m_can devices
In reply to Kendall WillisPrepend "ti,am62-m_can" to the m_can device compatible property since this compatible adds out-of-band wakeup functionality to the m_can devices. The m_can pins can be a wakeup source in the deepest low power states, despite being in the MCU domain which is OFF during deeper low power states since it has the out-of-band wakeup capability.
--- arch/arm64/boot/dts/ti/k3-am62a-mcu.dtsi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
arch/arm64/boot/dts/ti/k3-am62a-mcu.dtsi +2 -2
@@ -152,7 +152,7 @@ mcu_rti0: watchdog@4880000 { }; mcu_mcan0: can@4e08000 { - compatible = "bosch,m_can"; + compatible = "ti,am62-m_can", "bosch,m_can"; reg = <0x00 0x4e08000 0x00 0x200>, <0x00 0x4e00000 0x00 0x8000>; reg-names = "m_can", "message_ram";
@@ -164,7 +164,7 @@ mcu_mcan0: can@4e08000 { }; mcu_mcan1: can@4e18000 { - compatible = "bosch,m_can"; + compatible = "ti,am62-m_can", "bosch,m_can"; reg = <0x00 0x4e18000 0x00 0x200>, <0x00 0x4e10000 0x00 0x8000>; reg-names = "m_can", "message_ram";
Signature · 1 line
2.34.1
[email protected]
AI reviewRe: [PATCH v2 2/3] arm64: dts: ti: k3-am62a: use ti,am62-m_can compatible for m_can devices
Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider: - [Medium] The patch introduces a new compatible string 'ti,am62-m_can' without updating the corresponding…
Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [Medium] The patch introduces a new compatible string 'ti,am62-m_can' without updating the corresponding device tree binding schema, and lacks the kernel driver support and devicetree properties needed to implement the claimed out-of-band wakeup functionality. --
commit 71acd1ade37c4bc66e5c6dc0a75ca7bcf4cda1e9
Author: Kendall Willis <[email protected]>
arm64: dts: ti: k3-am62a: use ti,am62-m_can compatible for m_can devices
This commit prepends the "ti,am62-m_can" compatible string to the m_can devices in the k3-am62a-mcu device tree to enable out-of-band wakeup functionality.
arch/arm64/boot/dts/ti/k3-am62a-mcu.dtsi mcu_rti0: watchdog@4880000 { · line 155
Quoted 10 lines
arch/arm64/boot/dts/ti/k3-am62a-mcu.dtsi +1
-1@@ -152,7 +152,7 @@ mcu_rti0: watchdog@4880000 { }; mcu_mcan0: can@4e08000 { - compatible = "bosch,m_can"; + compatible = "ti,am62-m_can", "bosch,m_can";
[Severity: Medium]
Does this new compatible string violate the existing device tree binding schema?
The devicetree bindings in Documentation/devicetree/bindings/net/can/bosch,m_can.yaml currently require const: bosch,m_can, so adding ti,am62-m_can here causes a failure when running make dtbs_check.
Additionally, the commit message claims this introduces out-of-band wakeup functionality, but is the driver support for this compatible string missing from the kernel? It appears the necessary devicetree properties (like wakeup-source) and the driver implementation to back this capability are absent from this patch series.
Signature · 1 line
Sashiko AI review · https://sashiko.dev/#/patchset/[email protected]?part=2
PATCH v2 3/3 arm64: dts: ti: k3-am62p: use ti,am62-m_can compatible for m_can devices
In reply to Kendall WillisPrepend "ti,am62-m_can" to the m_can device compatible property since this compatible adds out-of-band wakeup functionality to the m_can devices. The m_can pins can be a wakeup source in the deepest low power states, despite being in the MCU domain which is OFF during deeper low power states since it has the out-of-band wakeup capability.
--- arch/arm64/boot/dts/ti/k3-am62p-j722s-common-mcu.dtsi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
arch/arm64/boot/dts/ti/k3-am62p-j722s-common-mcu.dtsi +2 -2
@@ -154,7 +154,7 @@ mcu_rti0: watchdog@4880000 { }; mcu_mcan0: can@4e08000 { - compatible = "bosch,m_can"; + compatible = "ti,am62-m_can", "bosch,m_can"; reg = <0x00 0x4e08000 0x00 0x200>, <0x00 0x4e00000 0x00 0x8000>; reg-names = "m_can", "message_ram";
@@ -169,7 +169,7 @@ mcu_mcan0: can@4e08000 { }; mcu_mcan1: can@4e18000 { - compatible = "bosch,m_can"; + compatible = "ti,am62-m_can", "bosch,m_can"; reg = <0x00 0x4e18000 0x00 0x200>, <0x00 0x4e10000 0x00 0x8000>; reg-names = "m_can", "message_ram";
Signature · 1 line
2.34.1
[email protected]
AI reviewRe: [PATCH v2 3/3] arm64: dts: ti: k3-am62p: use ti,am62-m_can compatible for m_can devices
Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider: - [Medium] The patch introduces an undocumented device tree compatible string "ti,am62-m_can", which…
Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [Medium] The patch introduces an undocumented device tree compatible string "ti,am62-m_can", which violates DT schema and will fail dtbs_check. Additionally, the patch lacks corresponding driver support and 'wakeup-source' properties to fulfill the claimed out-of-band wakeup functionality. --
commit cef42e3b48831e21d6aea546d64d5e3a76c6a43c
Author: Kendall Willis <[email protected]>
arm64: dts: ti: k3-am62p: use ti,am62-m_can compatible for m_can devices
This commit prepends the "ti,am62-m_can" compatible string to the m_can devices in the k3-am62p-j722s-common-mcu device tree. The commit message states this allows the pins to act as a wakeup source in deep low-power states via out-of-band wakeup capability.
Quoted 4 lines
arch/arm64/boot/dts/ti/k3-am62p-j722s-common-mcu.dtsi +0
-0
[ ... ]
arch/arm64/boot/dts/ti/k3-am62p-j722s-common-mcu.dtsi mcu_rti0: watchdog@4880000 { · line 157
Quoted 6 lines
arch/arm64/boot/dts/ti/k3-am62p-j722s-common-mcu.dtsi +1
-1@@ -154,7 +154,7 @@ mcu_rti0: watchdog@4880000 { }; mcu_mcan0: can@4e08000 { - compatible = "bosch,m_can"; + compatible = "ti,am62-m_can", "bosch,m_can";
[Severity: Medium]
Is this new compatible string documented in the device tree bindings?
Using an undocumented compatible string will cause make dtbs_check to fail against the bosch,m_can schema.
Additionally, the commit message mentions this enables out-of-band wakeup functionality, but the standard wakeup-source property doesn't seem to be added to this node. Without the wakeup-source property or driver-side configuration for this specific compatible, will the Linux PM framework actually arm the device for wakeup during system suspend?
Quoted 2 lines
arch/arm64/boot/dts/ti/k3-am62p-j722s-common-mcu.dtsi +0
-0reg = <0x00 0x4e08000 0x00 0x200>, <0x00 0x4e00000 0x00 0x8000>;
[ ... ]
arch/arm64/boot/dts/ti/k3-am62p-j722s-common-mcu.dtsi mcu_mcan0: can@4e08000 { · line 172
Quoted 6 lines
arch/arm64/boot/dts/ti/k3-am62p-j722s-common-mcu.dtsi +1
-1@@ -169,7 +169,7 @@ mcu_mcan0: can@4e08000 { }; mcu_mcan1: can@4e18000 { - compatible = "bosch,m_can"; + compatible = "ti,am62-m_can", "bosch,m_can";
[Severity: Medium]
Similar to mcu_mcan0 above, does this node also need the wakeup-source property to function as a wakeup source, and does the driver currently support the ti,am62-m_can compatible string?
Quoted 2 lines
arch/arm64/boot/dts/ti/k3-am62p-j722s-common-mcu.dtsi +0
-0reg = <0x00 0x4e18000 0x00 0x200>, <0x00 0x4e10000 0x00 0x8000>;
Signature · 1 line
Sashiko AI review · https://sashiko.dev/#/patchset/[email protected]?part=3
Re: [PATCH v2 3/3] arm64: dts: ti: k3-am62p: use ti,am62-m_can compatible for m_can devices
In reply to Kendall WillisHello Kendall,
Quoted 6 lines · Kendall Willis
Prepend "ti,am62-m_can" to the
m_candevice compatible property since this compatible adds out-of-band wakeup functionality to them_candevices. Them_canpins can be a wakeup source in the deepest low power states, despite being in the MCU domain which is OFF during deeper low power states since it has the out-of-band wakeup capability.
Instead of adding new compatible,
what you think
1) if pinctrl_state_wakeup is set ("wakeup", prop in pin control) then treat this as out of band wakeup
2) if device itself enabled as wakeup device treat as in band wakeup source
Quoted 28 lines
Signed-off-by Kendall Willis <[email protected]>--- arch/arm64/boot/dts/ti/k3-am62p-j722s-common-mcu.dtsi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)arch/arm64/boot/dts/ti/k3-am62p-j722s-common-mcu.dtsi +2
-2@@ -154,7 +154,7 @@ mcu_rti0: watchdog@4880000 { }; mcu_mcan0: can@4e08000 { - compatible = "bosch,m_can"; + compatible = "ti,am62-m_can", "bosch,m_can"; reg = <0x00 0x4e08000 0x00 0x200>, <0x00 0x4e00000 0x00 0x8000>; reg-names = "m_can", "message_ram";@@ -169,7 +169,7 @@ mcu_mcan0: can@4e08000 { }; mcu_mcan1: can@4e18000 { - compatible = "bosch,m_can"; + compatible = "ti,am62-m_can", "bosch,m_can"; reg = <0x00 0x4e18000 0x00 0x200>, <0x00 0x4e10000 0x00 0x8000>; reg-names = "m_can", "message_ram";
Re: [PATCH v2 3/3] arm64: dts: ti: k3-am62p: use ti,am62-m_can compatible for m_can devices
Hi Udit,
Quoted 10 lines · Udit
Hello Kendall,
Quoted 6 lines · Kendall Willis
Prepend "ti,am62-m_can" to the
m_candevice compatible property since this compatible adds out-of-band wakeup functionality to them_candevices. Them_canpins can be a wakeup source in the deepest low power states, despite being in the MCU domain which is OFF during deeper low power states since it has the out-of-band wakeup capability.
Quoted 5 lines
Instead of adding new compatible,
what you think1) if
pinctrl_state_wakeupis set ("wakeup", prop in pin control) then treat this as out of band wakeup
Yes, that is essentially what the following patch is doing. But for CAN devices, there is a chance that not all pinctrl_state_wakeup have out-of-band wakeup functionality which is why the compatible is needed.
https://lore.kernel.org/all/[email protected]/
Quoted 1 line
2) if device itself enabled as wakeup device treat as in band wakeup source
MCU CAN wakeup is IO daisy chained so it should be treated as out-of-band wakeup. Additionally, the out-of-band wakeup capability needs to be set so that TI SCI PM domains does not set the wakeup constraint on CAN so that the FW will allow the system to enter DeepSleep.
Best,
Kendall
Quoted 29 lines
Quoted 28 lines
Signed-off-by Kendall Willis <[email protected]>--- arch/arm64/boot/dts/ti/k3-am62p-j722s-common-mcu.dtsi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)arch/arm64/boot/dts/ti/k3-am62p-j722s-common-mcu.dtsi +2
-2@@ -154,7 +154,7 @@ mcu_rti0: watchdog@4880000 { }; mcu_mcan0: can@4e08000 { - compatible = "bosch,m_can"; + compatible = "ti,am62-m_can", "bosch,m_can"; reg = <0x00 0x4e08000 0x00 0x200>, <0x00 0x4e00000 0x00 0x8000>; reg-names = "m_can", "message_ram";@@ -169,7 +169,7 @@ mcu_mcan0: can@4e08000 { }; mcu_mcan1: can@4e18000 { - compatible = "bosch,m_can"; + compatible = "ti,am62-m_can", "bosch,m_can"; reg = <0x00 0x4e18000 0x00 0x200>, <0x00 0x4e10000 0x00 0x8000>; reg-names = "m_can", "message_ram";
Nishanth Menon
maintainerRe: [PATCH v2 3/3] arm64: dts: ti: k3-am62p: use ti,am62-m_can compatible for m_can devices
On 09:59-20260904, Kendall Willis wrote:
[...]
Quoted 5 lines
Yes, that is essentially what the following patch is doing. But for CAN devices, there is a chance that not all
pinctrl_state_wakeuphave out-of-band wakeup functionality which is why the compatible is needed.
https://lore.kernel.org/all/[email protected]/
After looking at this driver side thread, Lets look at the DT series once the driver series has hit master. I am going to skip this series for this window.
Additionally, for future reference, will be good to state explicitly this kind of driver series dependency in patch diffstat or cover-letter[1] for example ti,am62-m_can does'nt exist on next-20260909 or master.
[1] https://lore.kernel.org/linux-arm-kernel/[email protected]/
Signature · 4 lines
Regards, Nishanth Menon Key (0xDDB5849D1736249D) / Fingerprint: F8A2 8693 54EB 8232 17A3 1A34 DDB5 849D 1736 249D https://ti.com/opensource
Re: [PATCH v2 3/3] arm64: dts: ti: k3-am62p: use ti,am62-m_can compatible for m_can devices
Hi Nishanth,
Quoted 13 lines · Nishanth Menon
On 09:59-20260904, Kendall Willis wrote:
[...]Quoted 5 lines
Yes, that is essentially what the following patch is doing. But for CAN devices, there is a chance that not all
pinctrl_state_wakeuphave out-of-band wakeup functionality which is why the compatible is needed.
https://lore.kernel.org/all/[email protected]/After looking at this driver side thread, Lets look at the DT series once the driver series has hit master. I am going to skip this series for this window.
Quoted 6 lines
Additionally, for future reference, will be good to state explicitly this kind of driver series dependency in patch diffstat or cover-letter[1] for example ti,am62-m_can does'nt exist on next-20260909 or master.
[1] https://lore.kernel.org/linux-arm-kernel/[email protected]/
The dependency is listed in the cover letter, but is there a certain way I should list it in the future so it is more clear?
Best,
Kendall
Nishanth Menon
maintainerRe: [PATCH v2 3/3] arm64: dts: ti: k3-am62p: use ti,am62-m_can compatible for m_can devices
Quoted 20 lines · Kendall Willis
Hi Nishanth,
Quoted 18 lines · Nishanth Menon
On 09:59-20260904, Kendall Willis wrote:
[...]Quoted 5 lines
Yes, that is essentially what the following patch is doing. But for CAN devices, there is a chance that not all
pinctrl_state_wakeuphave out-of-band wakeup functionality which is why the compatible is needed.
https://lore.kernel.org/all/[email protected]/After looking at this driver side thread, Lets look at the DT series once the driver series has hit master. I am going to skip this series for this window.
Additionally, for future reference, will be good to state explicitly this kind of driver series dependency in patch diffstat or cover-letter[1] for example ti,am62-m_can does'nt exist on next-20260909 or master.
Quoted 4 lines
Quoted 1 line
[1] https://lore.kernel.org/linux-arm-kernel/[email protected]/
The dependency is listed in the cover letter, but is there a certain way I should list it in the future so it is more clear?
Yes, lore link to the dependency patch.
Signature · 4 lines
Regards, Nishanth Menon Key (0xDDB5849D1736249D) / Fingerprint: F8A2 8693 54EB 8232 17A3 1A34 DDB5 849D 1736 249D https://ti.com/opensource
Re: [PATCH v2 3/3] arm64: dts: ti: k3-am62p: use ti,am62-m_can compatible for m_can devices
Quoted 21 lines · Nishanth Menon
Quoted 20 lines · Kendall Willis
Hi Nishanth,
Quoted 18 lines · Nishanth Menon
On 09:59-20260904, Kendall Willis wrote:
[...]Quoted 5 lines
Yes, that is essentially what the following patch is doing. But for CAN devices, there is a chance that not all
pinctrl_state_wakeuphave out-of-band wakeup functionality which is why the compatible is needed.
https://lore.kernel.org/all/[email protected]/After looking at this driver side thread, Lets look at the DT series once the driver series has hit master. I am going to skip this series for this window.
Additionally, for future reference, will be good to state explicitly this kind of driver series dependency in patch diffstat or cover-letter[1] for example ti,am62-m_can does'nt exist on next-20260909 or master.
Quoted 7 lines
Quoted 4 lines
Quoted 1 line
[1] https://lore.kernel.org/linux-arm-kernel/[email protected]/
The dependency is listed in the cover letter, but is there a certain way I should list it in the future so it is more clear?
Yes, lore link to the dependency patch.
Got it, thanks!
Best,
Kendall