PabloPL / linux

Linux kernel source tree
Other
17 stars 0 forks source link

FSA9480 usb switch #16

Closed PabloPL closed 5 years ago

PabloPL commented 6 years ago

There is already driver at https://github.com/tom3q/linux/commit/c54d9ad07eb30dc0ae11f4e13d0cbd0c11c77f03 It needs to be updated to new extcon api (work done on for-upstream/fsa9480).

PabloPL commented 5 years ago

extcon: fsa9480: Adjust for new extcon interface extcon: fsa9480: Add manual switching sysfs

PabloPL commented 5 years ago

TODO:

xc-racer99 commented 5 years ago

I believe max8998 charger has its own vbus detection mechanism as well.

Have you investigated charger-manager? Might be a good way of unifying extcon, max8998, max17040, and adc temperature table from vendor kernel.

PabloPL commented 5 years ago

Not yet and quick grep shows that there are no dts using it.

PabloPL commented 5 years ago

fsa9480 got accepted in mainline

xc-racer99 commented 4 years ago

For reference, a charger-manager DTS is available at https://git.tizen.org/cgit/platform/kernel/linux-exynos/commit/arch/arm/boot/dts/exynos3250-rinato.dts?h=dev/rebase_v4.1.51&id=b16ec86de799d4300359dd9881df00c8f03a4665

However, there needs to be a bunch of work on it, including adding the charger regulator to max8998 and adjusting the extcon interface to actually work...