Difference between revisions of "User:Aren/PinePhone Mainline Status"

From PINE64
Jump to navigation Jump to search
(Created page with "= Overview = {| class="wikitable" |- ! Feature !! status !! notes |- | Serial debugging || Working || Subject to hardware issues [https://xnux.eu/log/075.html] |- | Display || Partial || doesn't run at 60hZ (TODO: add link to megi's patches) |- | Touch Input || untested |- | Fromt camera || untested || I remember seeing patches for the same camera model, but for a different board. They may be easy to adapt. (TODO: track them down) |- | Rear camera || untested || driver...")
 
(fill out information on leds)
 
(3 intermediate revisions by the same user not shown)
Line 5: Line 5:
! Feature !! status !! notes
! Feature !! status !! notes
|-
|-
| Serial debugging || Working || Subject to hardware issues [https://xnux.eu/log/075.html]
| Serial port (in the headphone jack)
| style="background:LightGreen;"| Upstream
| Subject to hardware issues [https://xnux.eu/log/075.html]
Extra patches:
* 7fe2f541f9336 arm64: dts: sun50i-a64: Set fifo-size for uarts[https://xff.cz/git/linux/commit/?h=speed-6.7&id=2bbc4d840e74c240c781b21fab15ebee73e07682]
* da34508bae5de tty: serial: 8250-dw: Use fifo-size from DTS[https://xff.cz/git/linux/commit/?h=speed-6.7&id=e4e9bcd9854d2697a1e5c6717a02597e7775dd7e]
Both patches go together, and appear to be a performance optimization only.
|-
|-
| Display || Partial || doesn't run at 60hZ (TODO: add link to megi's patches)
| Display || Partial || doesn't run at 60hZ (TODO: add link to megi's patches)
Line 11: Line 17:
| Touch Input || untested
| Touch Input || untested
|-
|-
| Fromt camera || untested || I remember seeing patches for the same camera model, but for a different board. They may be easy to adapt. (TODO: track them down)
| Fromt camera || in progress || Front camera driver should be upstream in 6.8-rc1, but will need testing and dts parts to activate[https://social.kernel.org/objects/538e7d12-777b-4d1d-bdfe-469bdf43bda0]. (TODO: track them down links to source & lkml threads)
|-
|-
| Rear camera || untested || driver should be upsream
| Rear camera || untested || driver should be upsream
Line 19: Line 25:
| Usb || partial || see [[#Usb]]
| Usb || partial || see [[#Usb]]
|-
|-
| Leds || untested || iirc just uses gpio driver, should be generic. Status led doesn't have keep power in suspend enabled in upstream device tree.
| Leds
| style="background:lightblue;" | Functional
| Extra patches:
* 6d9b8f17502e2 leds: sgm3140: Add missing timer cleanup and flash gpio control[https://xff.cz/git/linux/commit/?h=ppp-drivers-6.7&id=6d9b8f17502e259d6892c66b2cd99103e41708d1]
* 27e977e01cc32 arm64: dts: sun50i-a64-pinephone: Retain leds state in suspend[https://xff.cz/git/linux/commit/?h=pp-6.7&id=27e977e01cc32d55964d66ce6f73b5a1ddbb39b9]
|-
|-
| Modem || untested
| Modem || untested
Line 44: Line 54:
| Role Switch / Gadget mode || out of tree || See [[#ANX7688]]
| Role Switch / Gadget mode || out of tree || See [[#ANX7688]]
|-
|-
| Host mode e.g. external storage or input || untested
| Host mode e.g. external storage or input || Partial || It appears that usb devices don't get power from the phone. They only work when plugged into the dock with external power.
|-
|-
| Display output (TODO: which spec? usb dp alt mode?) || out of tree || See [[#ANX7688]]
| DisplayPort alt mode || out of tree || See [[#ANX7688]]
|-
|-
| USB-C Power Delivery || out of tree || See [[#ANX7688]]
| USB-C Power Delivery || out of tree || See [[#ANX7688]]

Latest revision as of 18:29, 20 January 2024

Overview

Feature status notes
Serial port (in the headphone jack) Upstream Subject to hardware issues [1]

Extra patches:

  • 7fe2f541f9336 arm64: dts: sun50i-a64: Set fifo-size for uarts[2]
  • da34508bae5de tty: serial: 8250-dw: Use fifo-size from DTS[3]

Both patches go together, and appear to be a performance optimization only.

Display Partial doesn't run at 60hZ (TODO: add link to megi's patches)
Touch Input untested
Fromt camera in progress Front camera driver should be upstream in 6.8-rc1, but will need testing and dts parts to activate[4]. (TODO: track them down links to source & lkml threads)
Rear camera untested driver should be upsream
Wifi in progress[5] The current driver has very poor code quality and will not be suitable for mainline. Work on a replacement is in progress.
Usb partial see #Usb
Leds Functional Extra patches:
  • 6d9b8f17502e2 leds: sgm3140: Add missing timer cleanup and flash gpio control[6]
  • 27e977e01cc32 arm64: dts: sun50i-a64-pinephone: Retain leds state in suspend[7]
Modem untested
Modem Audio untested
Bluetooth untested
Audio untested
Accelerometer untested
Proximity sensor untested
Charging Partial See usb section

Usb

Feature status notes
Role Switch / Gadget mode out of tree See #ANX7688
Host mode e.g. external storage or input Partial It appears that usb devices don't get power from the phone. They only work when plugged into the dock with external power.
DisplayPort alt mode out of tree See #ANX7688
USB-C Power Delivery out of tree See #ANX7688
USB BC Upstream BC1.2 is mostly handled by the axp803 pmic. This is usually what handles current negotiation when using A-to-C cables and dumb chargers.

ANX7688

There is an out of tree driver for the anx7688 chip, but it was written specifically for the PinePhone. This driver may require non trivial refactoring to be acceptable upstream.