Skip to content

Please enable CONFIG_POWERZ for USB-C power meter #6787

@DanaGoyette

Description

@DanaGoyette

Describe the bug

Please enable the PowerZ sensors driver, to allow using the USB-C power monitor.

https://www.phoronix.com/news/Linux-POWER-Z-USB-Power-Driver

$ grep POWERZ /boot/config-6.12.20+rpt-rpi-2712
# CONFIG_SENSORS_POWERZ is not set

I'd build the module myself out-of-tree, but doing apt-get source linux-image-$(uname -r) gets me the source for Debian's 6.1 kernel, not the raspberry pi kernel source.

Steps to reproduce the behaviour

Obtain one of the Power-Z power meters; connect it inline with the power input; connect a USB A-to-C data cable to the side USB-C port; notice that the powerz driver does not load, so you don't get the voltage, current, or power stats in sensors.

Device (s)

Raspberry Pi 5

System

OS:

Raspberry Pi reference 2024-03-15
Generated using pi-gen, https://github.com/RPi-Distro/pi-gen, f19ee211ddafcae300827f953d143de92a5c6624, stage4

Firmware:

2025/03/19 13:41:26
Copyright (c) 2012 Broadcom
version cec1d3ae (release) (embedded)

Kernel:

Linux pi5 6.12.20+rpt-rpi-2712 #1 SMP PREEMPT Debian 1:6.12.20-1+rpt1~bpo12+1 (2025-03-19) aarch64 GNU/Linux

Logs

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions