Following up on our report for Linux 5.16 this summarizes the progress on mainline support for the Librem 5 phone and its development kit during the 5.17 development cycle. This summary is only about code flowing upstream.

Librem 5 selfie cam

This time around, not too much code was flowing upstream, but some important code did. After a cleanup patch for the media device driver and new fixes for the selfie cam sensor driver, we added the devicetree description for that camera. That means that the following script saves one photo as a raw frame:

#!/bin/bash
WIDTH=1632
HEIGHT=1224
SKIP=10

media-ctl -d "platform:30a90000.csi" --set-v4l2 "'csi':0 [fmt:SGBRG10/${WIDTH}x${HEIGHT} colorspace:raw]"
media-ctl -d "platform:30a90000.csi" --set-v4l2 "'imx8mq-mipi-csi2 30a70000.csi':0 [fmt:SGBRG10/${WIDTH}x${HEIGHT} colorspace:raw]"
media-ctl -d "platform:30a90000.csi" --set-v4l2 "'hi846 2-0020':0 [fmt:SGBRG10/${WIDTH}x${HEIGHT} colorspace:raw]"
media-ctl -d "platform:30a90000.csi" -l "'hi846 2-0020':0 -> 'imx8mq-mipi-csi2 30a70000.csi':0 [1]"
v4l2-ctl -d "/dev/v4l/by-path/platform-30a90000.csi-video-index0" --set-fmt-video=width=${WIDTH},height=${HEIGHT},pixelformat=GB16 --stream-mmap --stream-to=$WIDTH.raw --stream-skip=$SKIP --stream-count=1

Of course we’ll continue to maintain this but in large parts this concludes the journey of supporting a camera in mainline Linux.

Charge controller

An addition to the drivers for charging the phone found its way upstream:

Code review

During this round we contributed only 2 Reviewed-by: or Tested-by: tags to patches by other authors. This definitely leaves some room for improvement! Again we would like to thank everybody who reviewed our patches and helped us supporting the hardware in mainline Linux – especially Sakari, Shawn and again Laurent for reviewing.

Sources

Have a look at our Linux tree to see what is currently being worked on and tested (or help if you feel like joining the fun).

Purism Products and Availability Chart

 ModelStatusLead Time 
Most Secure PC Purism Librem Mini
Librem MiniIn Stock10 days
Most Secure Server Purism Librem ServersLibrem ServersOut of Stock--
USB Security Token Purism Librem KeyLibrem KeyIn Stock10 days
Most Secure Laptop Purism Librem 14Librem 14In Stock10 days
Made in USA Phone Purism Librem 5 USALibrem 5 USAIn Stock10 days
Librem 5Currently shipping backlogs52 weeks
The current product and shipping chart of Purism Librem products, updated on September 2, 2022

Recent Posts

Related Content

Tags