[PATCH v3 1/3] soc: bcm2835: raspberrypi-firmware: Add voltage domain IDs
Guenter Roeck
linux at roeck-us.net
Mon May 18 15:17:59 PDT 2026
On Sun, May 17, 2026 at 01:34:43PM +0530, Shubham Chakraborty wrote:
> Add Raspberry Pi firmware voltage domain identifiers for the mailbox
> property interface.
>
> Also add the voltage request structure used with
> RPI_FIRMWARE_GET_VOLTAGE so firmware clients can share the common API
> definition from the firmware header.
>
> Signed-off-by: Shubham Chakraborty <chakrabortyshubham66 at gmail.com>
I'll need an Acked-by: from a maintainer to apply this patch,
or some other maintainer will have to pick it up.
Thanks,
Guenter
> ---
> include/soc/bcm2835/raspberrypi-firmware.h | 25 ++++++++++++++++++++++
> 1 file changed, 25 insertions(+)
>
> diff --git a/include/soc/bcm2835/raspberrypi-firmware.h b/include/soc/bcm2835/raspberrypi-firmware.h
> index e1f87fbfe554..975bef529854 100644
> --- a/include/soc/bcm2835/raspberrypi-firmware.h
> +++ b/include/soc/bcm2835/raspberrypi-firmware.h
> @@ -156,6 +156,31 @@ enum rpi_firmware_clk_id {
> RPI_FIRMWARE_NUM_CLK_ID,
> };
>
> +enum rpi_firmware_volt_id {
> + RPI_FIRMWARE_VOLT_ID_CORE = 1,
> + RPI_FIRMWARE_VOLT_ID_SDRAM_C = 2,
> + RPI_FIRMWARE_VOLT_ID_SDRAM_P = 3,
> + RPI_FIRMWARE_VOLT_ID_SDRAM_I = 4,
> + RPI_FIRMWARE_NUM_VOLT_ID,
> +};
> +
> +/**
> + * struct rpi_firmware_get_voltage_request - Firmware request for a voltage
> + * @id: ID of the voltage being queried
> + * @value: Voltage in microvolts. Set by the firmware.
> + *
> + * Used by @RPI_FIRMWARE_GET_VOLTAGE.
> + */
> +struct rpi_firmware_get_voltage_request {
> + __le32 id;
> + __le32 value;
> +} __packed;
> +
> +#define RPI_FIRMWARE_GET_VOLTAGE_REQUEST(_id) \
> + { \
> + .id = cpu_to_le32(_id), \
> + }
> +
> /**
> * struct rpi_firmware_clk_rate_request - Firmware Request for a rate
> * @id: ID of the clock being queried
More information about the linux-arm-kernel
mailing list