Skip to contentSkip to conversation

arm64: dts: sc7180: Add wakeup support over UART RX

PATCH [email protected] 1 participant 1 message Sep 2, 2020 Arm Qualcomm mailing list

lore
Share & tools
lore
#0 lore raw

Hi Matthias,

Quoted 34 lines · Matthias Kaehlcke
Quoted 21 lines · satya priya

Add the necessary pinctrl and interrupts to make UART wakeup capable.

---
Changes in V2:
- As per Matthias's comment added wakeup support for all the UARTs of SC7180.

Changes in V3:
- No change.

 arch/arm64/boot/dts/qcom/sc7180.dtsi | 98 
++++++++++++++++++++++++++++++------
 1 file changed, 84 insertions(+), 14 deletions(-)
arch/arm64/boot/dts/qcom/sc7180.dtsi +0 -0
index d46b383..855b13e 100644

arch/arm64/boot/dts/qcom/sc7180.dtsi

Quoted 8 lines
arch/arm64/boot/dts/qcom/sc7180.dtsi +5 -0
 
...
 
+			qup_uart0_sleep: qup-uart0-sleep {
+				pinmux {
+					pins = "gpio34", "gpio35",
+					       "gpio36", "gpio37";
+					function = "gpio";

What is the reason that the GPIO function needs to be selected in sleep mode to support wakeup?

Quoted 1 line

This should be explained in the commit message unless it is evident.

When QUP function is selected in sleep state, RTS/RFR is pulled high as soon as we enter suspend and not receiving wakeup bytes from BT SoC to wakeup device. Whereas in GPIO mode it is staying low and receiving data.

Thanks,
Satya Priya