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:


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.


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 
USB Security Token Purism Librem KeyLibrem Key

(Made in USA)
In Stock
45 business days
Librem 5In Stock
10 business days
Librem 5 COMSEC BundleIn Stock
Qty 2; 3GB/32GB
10 business days
Librem 5 + SIMple
(3 GB Data)
In Stock
10 business days
Librem 5 + SIMple Plus
(5 GB Data)
In Stock
10 business days
Librem 5 + AweSIM
(Unlimited Data)
In Stock
10 business days
Librem 11In Stock
20 business days
Most Secure Laptop Purism Librem 14Librem 14In Stock
15 business days
Most Secure PC Purism Librem Mini
Librem MiniJune 2024
45 business days
Purism Liberty Phone with Made in USA ElectronicsLiberty Phone
(Made in USA Electronics)
June 2024
30 business days
Most Secure Server Purism Librem ServersLibrem ServerJune 2024
60 business days
The current product and shipping chart of Purism Librem products, updated on April 30th, 2024

Recent Posts

Related Content