Raspberry Pi HQ camera (IMX477) maximum supported resolution

The maximum resolution of the Raspberry Pi HQ camera with the Sony IMX477 sensor is 4056x3040px.

You can use the libcamera-hello --list-cameras command in order to list all supported resolutions. The output for the IMX477 sensor is

Available cameras
0 : imx477 [4056x3040] (/base/soc/i2c0mux/i2c@1/imx477@1a)
    Modes: 'SRGGB10_CSI2P' : 1332x990 [120.05 fps - (696, 528)/2664x1980 crop]
           'SRGGB12_CSI2P' : 2028x1080 [50.03 fps - (0, 440)/4056x2160 crop]
                             2028x1520 [40.01 fps - (0, 0)/4056x3040 crop]
                             4056x3040 [10.00 fps - (0, 0)/4056x3040 crop]