diff --git a/debian/postinst b/debian/postinst index 8f21b2e..28460d5 100755 --- a/debian/postinst +++ b/debian/postinst @@ -10,6 +10,7 @@ ARTNUM_FILE="/etc/ultimaker_firmware" TARGET_DTS="cgtsx8m-ultimain5.dtb" UC32_DTS="ulticontroller3.2-lvds-800x320.dtb" UC4_DTS="ulticontroller4.0-lvds-1024x600.dtb" +UC4_INV_DTS="ulticontroller4.1-lvds-1024x600.dtb" if [ "$1" = "configure" ]; then # During the bootstrap configuration stage, if the kernel is configured @@ -29,6 +30,10 @@ if [ "$1" = "configure" ]; then echo "-> Setting Ulticontroller 4.0 LVDS device tree." ln -sf "${UC4_DTS}" "/boot/${TARGET_DTS}" ;; + 109*) + echo "-> Setting Ulticontroller 4.0 LVDS Inverted device tree." + ln -sf "${UC4_INV_DTS}" "/boot/${TARGET_DTS}" + ;; # Fallback to the larger screen *) echo "-> Falling back to Ulticontroller 4.0 LVDS device tree." diff --git a/dts/Readme.md b/dts/Readme.md index ef97864..093a70f 100644 --- a/dts/Readme.md +++ b/dts/Readme.md @@ -1,8 +1,9 @@ ### Device Tree Selection -We have 2 device trees, one for each display currently supported by **Ultimainboard 5**: +We have 3 device trees, one for each display currently supported by **Ultimainboard 5**: -- *Ulticontroller 4* at 1024x600 (Factor 4, Falcon): `ulticontroller4.0-lvds-1024x600.dts` +- *Ulticontroller 4.1-lvds-1024x600.dts (NGP Protos): `ulticontroller4.1-lvds-1024x600.dts` +- *Ulticontroller 4.0 at 1024x600 (Factor 4, Falcon): `ulticontroller4.0-lvds-1024x600.dts` - *Ultricontroller 3.2 LVDS* at 800x600 (S6 and S8): `ulticontroller3.2-lvds-800x320.dts` Both device trees sources includes the Ultimainboard 5 device tree: `ultimainboard5-lvds.dtsi`. diff --git a/dts/ulticontroller4.1-lvds-1024x600.dts b/dts/ulticontroller4.1-lvds-1024x600.dts new file mode 100644 index 0000000..2d0352b --- /dev/null +++ b/dts/ulticontroller4.1-lvds-1024x600.dts @@ -0,0 +1,13 @@ +/* + * Copyright (C) 2020 - Ultimaker B.V. + * Copyright (C) 2020 - Raymond Siudak +*/ + +#include "ulticontroller4.0-lvds-1024x600.dts" + +&i2c2 { + panel_touchscreen: ft5426@38 { + /delete-property/ touchscreen-inverted-x; + /delete-property/ touchscreen-inverted-y; + }; +}; \ No newline at end of file