diff mbox series

[v3,3/3] dt-bindings: can: tcan4x5x: Document the wakeup-source flag

Message ID 20231113131452.214961-4-martin@geanix.com
State Not Applicable
Headers show
Series can: tcan4x5x: support resume upon rx can frame | expand

Checks

Context Check Description
robh/checkpatch success
robh/patch-applied success

Commit Message

Martin Hundebøll Nov. 13, 2023, 1:14 p.m. UTC
Let it be known that the tcan4x5x device can now be configured to wake
the host from suspend when a can frame is received.

Signed-off-by: Martin Hundebøll <martin@geanix.com>
---

Change in v3:
 * New patch

 Documentation/devicetree/bindings/net/can/tcan4x5x.txt | 3 +++
 1 file changed, 3 insertions(+)

Comments

Conor Dooley Nov. 13, 2023, 1:54 p.m. UTC | #1
On Mon, Nov 13, 2023 at 02:14:52PM +0100, Martin Hundebøll wrote:
> Let it be known that the tcan4x5x device can now be configured to wake
> the host from suspend when a can frame is received.
> 
> Signed-off-by: Martin Hundebøll <martin@geanix.com>

Acked-by: Conor Dooley <conor.dooley@microchip.com>

Thanks,
Conor.

> ---
> 
> Change in v3:
>  * New patch
> 
>  Documentation/devicetree/bindings/net/can/tcan4x5x.txt | 3 +++
>  1 file changed, 3 insertions(+)
> 
> diff --git a/Documentation/devicetree/bindings/net/can/tcan4x5x.txt b/Documentation/devicetree/bindings/net/can/tcan4x5x.txt
> index 170e23f0610d..20c0572c9853 100644
> --- a/Documentation/devicetree/bindings/net/can/tcan4x5x.txt
> +++ b/Documentation/devicetree/bindings/net/can/tcan4x5x.txt
> @@ -28,6 +28,8 @@ Optional properties:
>  			      available with tcan4552/4553.
>  	- device-wake-gpios: Wake up GPIO to wake up the TCAN device. Not
>  			     available with tcan4552/4553.
> +	- wakeup-source: Leave the chip running when suspended, and configure
> +			 the RX interrupt to wake up the device.
>  
>  Example:
>  tcan4x5x: tcan4x5x@0 {
> @@ -42,4 +44,5 @@ tcan4x5x: tcan4x5x@0 {
>  		device-state-gpios = <&gpio3 21 GPIO_ACTIVE_HIGH>;
>  		device-wake-gpios = <&gpio1 15 GPIO_ACTIVE_HIGH>;
>  		reset-gpios = <&gpio1 27 GPIO_ACTIVE_HIGH>;
> +		wakeup-source;
>  };
> -- 
> 2.42.0
>
diff mbox series

Patch

diff --git a/Documentation/devicetree/bindings/net/can/tcan4x5x.txt b/Documentation/devicetree/bindings/net/can/tcan4x5x.txt
index 170e23f0610d..20c0572c9853 100644
--- a/Documentation/devicetree/bindings/net/can/tcan4x5x.txt
+++ b/Documentation/devicetree/bindings/net/can/tcan4x5x.txt
@@ -28,6 +28,8 @@  Optional properties:
 			      available with tcan4552/4553.
 	- device-wake-gpios: Wake up GPIO to wake up the TCAN device. Not
 			     available with tcan4552/4553.
+	- wakeup-source: Leave the chip running when suspended, and configure
+			 the RX interrupt to wake up the device.
 
 Example:
 tcan4x5x: tcan4x5x@0 {
@@ -42,4 +44,5 @@  tcan4x5x: tcan4x5x@0 {
 		device-state-gpios = <&gpio3 21 GPIO_ACTIVE_HIGH>;
 		device-wake-gpios = <&gpio1 15 GPIO_ACTIVE_HIGH>;
 		reset-gpios = <&gpio1 27 GPIO_ACTIVE_HIGH>;
+		wakeup-source;
 };