Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 55b93e25 authored by Mayank Rana's avatar Mayank Rana
Browse files

USB: Add support to invoke DP and DM sourcing and pulsing



This change adds support for sourcing and pulsig with DP/DM
using QUSB PHY. This change uses POWER_SUPPLY_PROP_DP_DM power
supply property with different values to achieve the same.

1. With value: POWER_SUPPLY_DP0P6_DMF_MODE
- Set DP = 0.6V, DM= High Z

2. With value: POWER_SUPPLY_DP0P6_DM3P3_MODE
- Set DP = 0.6V and set DM to 3.075V

3. With value: POWER_SUPPLY_DP_PULSE
- Increment DP voltage to Vdp_up=3.075V
- Sleep for 2ms - 3ms
- Pull DP back to Vdp_src=0.6V
- Sleep for 2ms - 3ms

4. With value: POWER_SUPPLY_DM_PULSE
- Decrement DM voltage to Vdm_src=0.6V
- Sleep for 2ms - 3ms
- Pull DM back to Vdm_up=3.075V
- Sleep for 2ms - 3ms

5. With value: POWER_SUPPLY_DP_DM_DPF_DMF:
- Turned ON QUSB PHY LDOs to keep DP and DM to High Z state

6. With value: POWER_SUPPLY_DP_DM_DPR_DMR:
- Turned OFF QUSB PHY, and keep DP and DM to floating state

It removes USB controller's based QUSB PHY operations and reuses
already available functionality as part of QUSB PHY driver.

CRs-Fixed: 853930
Change-Id: Ibefb13c6ccf883f6e961f5e6ec726173863ce1de
Signed-off-by: default avatarMayank Rana <mrana@codeaurora.org>
parent d3846f3c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment