Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions debian/postinst
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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."
Expand Down
5 changes: 3 additions & 2 deletions dts/Readme.md
Original file line number Diff line number Diff line change
@@ -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`.
Expand Down
13 changes: 13 additions & 0 deletions dts/ulticontroller4.1-lvds-1024x600.dts
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
/*
* Copyright (C) 2020 - Ultimaker B.V.
* Copyright (C) 2020 - Raymond Siudak <raysiudak@gmail.com>
*/

#include "ulticontroller4.0-lvds-1024x600.dts"

&i2c2 {
panel_touchscreen: ft5426@38 {
/delete-property/ touchscreen-inverted-x;
/delete-property/ touchscreen-inverted-y;
};
};