]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
arm64: dts: ti: k3-am62p5-sk: Set wakeup-source system-states
authorMarkus Schneider-Pargmann (TI.com) <msp@baylibre.com>
Mon, 3 Nov 2025 12:39:33 +0000 (13:39 +0100)
committerVignesh Raghavendra <vigneshr@ti.com>
Thu, 6 Nov 2025 06:18:29 +0000 (11:48 +0530)
The CANUART pins of mcu_mcan0, mcu_mcan1, mcu_uart0 and wkup_uart0 are
powered during Partial-IO and I/O Only + DDR and are capable of waking
up the system in these states. Specify the states in which these units
can do a wakeup on this board.

Note that the UARTs are not capable of wakeup in Partial-IO because of
of a UART mux on the board not being powered during Partial-IO.

Add pincontrol definitions for mcu_mcan0 and mcu_mcan1 for wakeup from
Partial-IO. Add these as wakeup pinctrl entries for both devices.

Signed-off-by: Markus Schneider-Pargmann (TI.com) <msp@baylibre.com>
Link: https://patch.msgid.link/20251103-topic-am62-dt-partialio-v6-15-v5-6-b8d9ff5f2742@baylibre.com
Signed-off-by: Vignesh Raghavendra <vigneshr@ti.com>
arch/arm64/boot/dts/ti/k3-am62p5-sk.dts

index f04cf2d23d84531a9e045021c669615de6e09331..ef719c6334fc094f01d9e8185992f2f58320e17d 100644 (file)
                >;
                bootph-all;
        };
+
+       mcu_mcan0_tx_pins_default: mcu-mcan0-tx-default-pins {
+               pinctrl-single,pins = <
+                       AM62PX_MCU_IOPAD(0x034, PIN_OUTPUT, 0) /* (D6) MCU_MCAN0_TX */
+               >;
+       };
+
+       mcu_mcan0_rx_pins_default: mcu-mcan0-rx-default-pins {
+               pinctrl-single,pins = <
+                       AM62PX_MCU_IOPAD(0x038, PIN_INPUT, 0) /* (B3) MCU_MCAN0_RX */
+               >;
+       };
+
+       mcu_mcan0_rx_pins_wakeup: mcu-mcan0-rx-wakeup-pins {
+               pinctrl-single,pins = <
+                       AM62PX_MCU_IOPAD(0x038, PIN_INPUT | PIN_WKUP_EN, 0) /* (B3) MCU_MCAN0_RX */
+               >;
+       };
+
+       mcu_mcan1_tx_pins_default: mcu-mcan1-tx-default-pins {
+               pinctrl-single,pins = <
+                       AM62PX_MCU_IOPAD(0x03c, PIN_OUTPUT, 0) /* (E5) MCU_MCAN1_TX */
+               >;
+       };
+
+       mcu_mcan1_rx_pins_default: mcu-mcan1-rx-default-pins {
+               pinctrl-single,pins = <
+                       AM62PX_MCU_IOPAD(0x040, PIN_INPUT, 0) /* (D4) MCU_MCAN1_RX */
+               >;
+       };
+
+       mcu_mcan1_rx_pins_wakeup: mcu-mcan1-rx-wakeup-pins {
+               pinctrl-single,pins = <
+                       AM62PX_MCU_IOPAD(0x040, PIN_INPUT | PIN_WKUP_EN, 0) /* (D4) MCU_MCAN1_RX */
+               >;
+       };
 };
 
 &wkup_uart0 {
        /* WKUP UART0 is used by DM firmware */
        pinctrl-names = "default";
        pinctrl-0 = <&wkup_uart0_pins_default>;
+       wakeup-source = <&system_io_ddr>,
+                       <&system_deep_sleep>,
+                       <&system_mcu_only>,
+                       <&system_standby>;
        status = "reserved";
        bootph-all;
 };
        status = "okay";
 };
 
+&mcu_mcan0 {
+       pinctrl-names = "default", "wakeup";
+       pinctrl-0 = <&mcu_mcan0_tx_pins_default>, <&mcu_mcan0_rx_pins_default>;
+       pinctrl-1 = <&mcu_mcan0_tx_pins_default>, <&mcu_mcan0_rx_pins_wakeup>;
+       wakeup-source = <&system_partial_io>,
+                       <&system_io_ddr>,
+                       <&system_deep_sleep>,
+                       <&system_mcu_only>,
+                       <&system_standby>;
+};
+
+&mcu_mcan1 {
+       pinctrl-names = "default", "wakeup";
+       pinctrl-0 = <&mcu_mcan1_tx_pins_default>, <&mcu_mcan1_rx_pins_default>;
+       pinctrl-1 = <&mcu_mcan1_tx_pins_default>, <&mcu_mcan1_rx_pins_wakeup>;
+       wakeup-source = <&system_partial_io>,
+                       <&system_io_ddr>,
+                       <&system_deep_sleep>,
+                       <&system_mcu_only>,
+                       <&system_standby>;
+};
+
+&mcu_uart0 {
+       wakeup-source = <&system_io_ddr>,
+                       <&system_deep_sleep>,
+                       <&system_mcu_only>,
+                       <&system_standby>;
+};
+
 #include "k3-am62p-ti-ipc-firmware.dtsi"