1
0
Fork 0
Commit Graph

8 Commits (e69448bf61fa299985a02e752cf7a2200c6d682b)

Author SHA1 Message Date
Lars Ivar Miljeteig e69448bf61 rm-otgcontrol: Add licensing info 2020-10-08 20:41:29 +02:00
Steinar Bakkemo a0d2974708 otgcontrol: adapt otg1_chargermode property to take both int/string as input
When reading the otg1_chargermode property, a list of valid strings are
returned.

Valid enum values may be given when writing to the otg1_chargermode
property, in addition to one of the strings returned when reading
the property (Charger, OTG_supply, Off).
2020-10-08 20:41:21 +02:00
Steinar Bakkemo 1c68dc0481 otgcontrol: add support for setting charger mode to OFF 2020-10-08 20:07:11 +02:00
Steinar Bakkemo 1e1203e926 otgcontrol: move include/linux/rm-otgcontrol.h => drivers/misc/rm-otgcontrol/ 2020-10-08 20:06:40 +02:00
Steinar Bakkemo d6cdbfc9bb otgcontrol: adjust to 8 char tab width and squeeze code within 80 chars, dyndbg
Convert printk's to dev_dbg.

Fix tabs (8 chars) and wrap lines to fit within 80 chars, according to kernel
standards.
2020-10-08 20:03:39 +02:00
Steinar Bakkemo 2833df5aa4 otgcontrol: implement initial FSM
Complete disabling of authenticated USB device connection in all modes

Code cleanup
- Spaces -> tabs
- Cleaner initiation sequence
2020-10-08 19:46:24 +02:00
Steinar Bakkemo e353de030a otgcontrol: add one-wire gpio irq handling
- Fix typo in devicetree causing pincontrol not being registered
- Change pin mux states to use both RX and TX pin
- Implement preliminary first attempt to communicate over ow (wip)
- Add registration as extcon device
- Add ow tty property in device-tree
- Add ow gpio property in device-tree
- Add GPIO IRQ initiation/hanndling in delayed worker
2020-10-08 19:27:33 +02:00
Steinar Bakkemo 5279a775da otgcontrol: rm-otgcontrol driver initial commit 2020-10-08 18:30:57 +02:00