Beagleboardxm and MT9P031

Hi all,
I’m using Beagleboardxm with MT9P031 senosr.
I can capture the frames but looking at the buffer saved with yavta I see the maximum value is 511 instead of 4095 for a white. It seems tha only 9 bit are correctly read.
I’m using Kernel 5.0.19 and the sesor is correctly reegistered.
Inside the device tree I put the following:

&i2c2 {
clock-frequency = <100000>;

mt9p031@48 {
compatible = “aptina,mt9p031”;
reg = <0x48>;

clocks = <&isp 0>;
reset-gpios = <&gpio4 2 GPIO_ACTIVE_LOW>;

vaa-supply = <&hsusb2_power>;
vdd-supply = <&vaux3>;
vdd_io-supply = <&vaux4>;

port {
mt9p031_out: endpoint {
input-clock-frequency = <21000000>;
pixel-clock-frequency = <48000000>;
remote-endpoint = <&ccdc_ep>;
};
};
};
};

&isp {
#address-cells = <1>;
#size-cells = <0>;

ports {
port@0 {
reg = <0>;
ccdc_ep: endpoint {
remote-endpoint = <&mt9p031_out>;
bus-width = <12>;
hsync-active = <1>;
vsync-active = <1>;
pclk-sample = <0>;
};
};
};
};

Here below the ouput of media-ctl-p:

Media controller API version 5.0.19

Media device information