On Mon, Mar 22, 2021 at 05:48:56PM +0100, Klemens Nanni wrote:
> Using our dtb package's blobs cwfg(4) won't attach on the Pinebook Pro
> since linux changed it:
>
> https://github.com/torvalds/linux/blob/master/Documentation/devicetree/bindings/power/supply/cw2015_battery.yaml
>
> Thanks to kettenis and patrick for pointing this out.
>
> This diff makes the sensor attach again and both hw.sensors as well as
> apm (with the other diff) show correct values.
>
>
> NB: This used to work without this diff with whatever blob was on the
> machine when it came to me; it broke after I updated/replaced it with
> /usr/local/share/dtb/arm64/rockchip/rk3399-pinebook-pro.dtb .
For the archive, you can look at the blobs like so:
$ doas pkg_add dtc
dtc -O dts ./rk3399-pinebook-pro.dtb 2>/dev/null | grep cellwise,
compatible = "cellwise,cw2015";
cellwise,battery-profile = <0x17678073 ...>;
cellwise,monitor-interval-ms = <0x1388>;