Configuring SSD1306 shield with 64x32 pixel display.

I recently bought this display that is 64x32 pixels and uses the SSD1306 driver. When running the LVGL Basic Sample with the Zephyr ssd1306_128x64 shield, the display works, but shows only the bottom center of what would show up on the 128x64 display. Zephyr does not have a ssd1306_64x32 shield unfortunately, so I have tried changing the width and height in the devicetree like from 128->64 and from 64 ->32 like this:
nrf52dk_nrf52832.overlay:
/ {
	chosen {
		zephyr,display = &ssd1306_ssd1306_128x64;
	};
};

&arduino_i2c {
	status = "okay";

	ssd1306_ssd1306_128x64: ssd1306@3c {
		compatible = "solomon,ssd1306fb";
		reg = 0x3c;
		width = 64;
		height = 32;
		segment-offset = 0;
		page-offset = 0;
		display-offset = 0;
		multiplex-ratio = 63;
		segment-remap;
		com-invdir;
		prechargep = <x22;
	};
};
but this results in the display freezing on whatever was showing before the flash. Any ideas on what I could modify to use a 64x32 display?
Related