From ba234e6ae5ca4e2e30155e54e401ea94dffc493a Mon Sep 17 00:00:00 2001 From: digiwhale Date: Mon, 30 May 2022 01:00:33 -0400 Subject: [PATCH 1/8] 1 --- Raspbian/install_uc_touch_90.sh | 17 +++++++++ Raspbian/usr/ucts_90.dts | 66 +++++++++++++++++++++++++++++++++ 2 files changed, 83 insertions(+) create mode 100644 Raspbian/install_uc_touch_90.sh create mode 100644 Raspbian/usr/ucts_90.dts diff --git a/Raspbian/install_uc_touch_90.sh b/Raspbian/install_uc_touch_90.sh new file mode 100644 index 0000000..015a277 --- /dev/null +++ b/Raspbian/install_uc_touch_90.sh @@ -0,0 +1,17 @@ +#!/bin/bash +echo "installing..." +sudo ./backup.sh +sudo cp ./usr/ucts_90.dtb /boot/overlays/ucts_90.dtbo +sudo cp ./boot/config-normal.txt ./boot/config.txt.bak +sudo echo "hdmi_force_hotplug=1" >> ./boot/config.txt.bak +sudo echo "dtparam=spi=on" >> ./boot/config.txt.bak +sudo echo "dtoverlay=ucts_90" >> ./boot/config.txt.bak +sudo echo "hdmi_group=2" >> ./boot/config.txt.bak +sudo echo "hdmi_mode=1" >> ./boot/config.txt.bak +sudo echo "hdmi_mode=87" >> ./boot/config.txt.bak +sudo echo "hdmi_cvt 480 320 60 6 0 0 0" >> ./boot/config.txt.bak +sudo echo "hdmi_drive=2" >> ./boot/config.txt.bak +sudo cp -rf ./boot/config.txt.bak /boot/config.txt +sleep 1 +echo "reboot now" +sudo reboot diff --git a/Raspbian/usr/ucts_90.dts b/Raspbian/usr/ucts_90.dts new file mode 100644 index 0000000..e0269e4 --- /dev/null +++ b/Raspbian/usr/ucts_90.dts @@ -0,0 +1,66 @@ +/* + * Generic Device Tree overlay for the ADS7846 touch controller + * + */ + +/dts-v1/; +/plugin/; + +/ { + compatible = "brcm,bcm2835\0brcm,bcm2708\0brcm,bcm2709"; + + fragment@0 { + target = <&spi0>; + __overlay__ { + status = "okay"; + }; + }; + + fragment@1 { + target = <&spidev0>; + __overlay__ { + status = "disabled"; + }; + }; + + fragment@2 { + target = <&spidev1>; + __overlay__ { + status = "disabled"; + }; + }; + + fragment@3 { + target = <&spi0>; + __overlay__ { + /* needed to avoid dtc warning */ + #address-cells = <1>; + #size-cells = <0>; + + ads7846: ads7846@0 { + compatible = "ti,ads7846"; + reg = <0>; + spi-max-frequency = <2000000>; + interrupts = <25 2>; /* high-to-low edge triggered */ + interrupt-parent = <&gpio>; + pendown-gpio = <&gpio 25 0>; + ti,swap-xy; + /* driver defaults */ + ti,x-min = /bits/ 16 <0x00E3>; + ti,y-min = /bits/ 16 <0x0F28>; + ti,x-max = /bits/ 16 <0x0F60>; + ti,y-max = /bits/ 16 <0x010C>; + ti,pressure-min = /bits/ 16 <0>; + ti,pressure-max = /bits/ 16 <0xFFFF>; + ti,x-plate-ohms = /bits/ 16 <400>; + }; + }; + }; + + __overrides__ { + xmin = <&ads7846>,"ti,x-min;0"; + ymin = <&ads7846>,"ti,y-min;0"; + xmax = <&ads7846>,"ti,x-max;0"; + ymax = <&ads7846>,"ti,y-max;0"; + }; +}; \ No newline at end of file From 6139a8dec7c531fa5b6f91cc6167d0b5a3053d6e Mon Sep 17 00:00:00 2001 From: digiwhale Date: Mon, 30 May 2022 01:11:46 -0400 Subject: [PATCH 2/8] 1 --- Raspbian/usr/ucts_90.dts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Raspbian/usr/ucts_90.dts b/Raspbian/usr/ucts_90.dts index e0269e4..518ad2d 100644 --- a/Raspbian/usr/ucts_90.dts +++ b/Raspbian/usr/ucts_90.dts @@ -46,10 +46,10 @@ pendown-gpio = <&gpio 25 0>; ti,swap-xy; /* driver defaults */ - ti,x-min = /bits/ 16 <0x00E3>; - ti,y-min = /bits/ 16 <0x0F28>; - ti,x-max = /bits/ 16 <0x0F60>; - ti,y-max = /bits/ 16 <0x010C>; + ti,x-min = /bits/ 16 <0x0F60>; + ti,y-min = /bits/ 16 <0x010C>; + ti,x-max = /bits/ 16 <0x00E3>; + ti,y-max = /bits/ 16 <0x0F28>; ti,pressure-min = /bits/ 16 <0>; ti,pressure-max = /bits/ 16 <0xFFFF>; ti,x-plate-ohms = /bits/ 16 <400>; From efc51b8b6868d6ef05465fee31ed3eaa81d88b1b Mon Sep 17 00:00:00 2001 From: digiwhale Date: Mon, 30 May 2022 01:16:27 -0400 Subject: [PATCH 3/8] 1 --- README.md | 7 ++++++- Raspbian/install_uc_touch_90.sh | 1 + Raspbian/usr/ucts_90.dts | 2 +- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 7759a4d..be77cae 100644 --- a/README.md +++ b/README.md @@ -61,4 +61,9 @@ sudo chmod +x UCTRONICS_HSLCD35_SHOW sudo ./UCTRONICS_HSLCD35_SHOW ``` - Notice: When the rotation button is pressed, the touch driver does not support synchronous rotation. - You should install the touch driver mannually. \ No newline at end of file + You should install the touch driver mannually. + + +# compile new dtb + +dtc -O dtb -o ucts_90.dtb ucts_90.dts \ No newline at end of file diff --git a/Raspbian/install_uc_touch_90.sh b/Raspbian/install_uc_touch_90.sh index 015a277..13d4746 100644 --- a/Raspbian/install_uc_touch_90.sh +++ b/Raspbian/install_uc_touch_90.sh @@ -11,6 +11,7 @@ sudo echo "hdmi_mode=1" >> ./boot/config.txt.bak sudo echo "hdmi_mode=87" >> ./boot/config.txt.bak sudo echo "hdmi_cvt 480 320 60 6 0 0 0" >> ./boot/config.txt.bak sudo echo "hdmi_drive=2" >> ./boot/config.txt.bak +sudo echo "display_rotate=3" >> ./boot/config.txt.bak sudo cp -rf ./boot/config.txt.bak /boot/config.txt sleep 1 echo "reboot now" diff --git a/Raspbian/usr/ucts_90.dts b/Raspbian/usr/ucts_90.dts index 518ad2d..cfac2f4 100644 --- a/Raspbian/usr/ucts_90.dts +++ b/Raspbian/usr/ucts_90.dts @@ -44,7 +44,7 @@ interrupts = <25 2>; /* high-to-low edge triggered */ interrupt-parent = <&gpio>; pendown-gpio = <&gpio 25 0>; - ti,swap-xy; + /* ti,swap-xy; */ /* driver defaults */ ti,x-min = /bits/ 16 <0x0F60>; ti,y-min = /bits/ 16 <0x010C>; From a16fe3bcb5d14cab9ee7ff3d6238138abc7d74ba Mon Sep 17 00:00:00 2001 From: digiwhale Date: Mon, 30 May 2022 01:21:37 -0400 Subject: [PATCH 4/8] 1 --- Raspbian/usr/ucts_90.dts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Raspbian/usr/ucts_90.dts b/Raspbian/usr/ucts_90.dts index cfac2f4..68d6e85 100644 --- a/Raspbian/usr/ucts_90.dts +++ b/Raspbian/usr/ucts_90.dts @@ -46,9 +46,9 @@ pendown-gpio = <&gpio 25 0>; /* ti,swap-xy; */ /* driver defaults */ - ti,x-min = /bits/ 16 <0x0F60>; + ti,x-max = /bits/ 16 <0x0F60>; ti,y-min = /bits/ 16 <0x010C>; - ti,x-max = /bits/ 16 <0x00E3>; + ti,x-min = /bits/ 16 <0x00E3>; ti,y-max = /bits/ 16 <0x0F28>; ti,pressure-min = /bits/ 16 <0>; ti,pressure-max = /bits/ 16 <0xFFFF>; From 5eef58108974db4b29035facecccae86d2a29617 Mon Sep 17 00:00:00 2001 From: digiwhale Date: Mon, 30 May 2022 01:25:26 -0400 Subject: [PATCH 5/8] 1 --- Raspbian/install_uc_touch_90.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Raspbian/install_uc_touch_90.sh b/Raspbian/install_uc_touch_90.sh index 13d4746..629c583 100644 --- a/Raspbian/install_uc_touch_90.sh +++ b/Raspbian/install_uc_touch_90.sh @@ -11,7 +11,7 @@ sudo echo "hdmi_mode=1" >> ./boot/config.txt.bak sudo echo "hdmi_mode=87" >> ./boot/config.txt.bak sudo echo "hdmi_cvt 480 320 60 6 0 0 0" >> ./boot/config.txt.bak sudo echo "hdmi_drive=2" >> ./boot/config.txt.bak -sudo echo "display_rotate=3" >> ./boot/config.txt.bak +sudo echo "display_rotate=1" >> ./boot/config.txt.bak sudo cp -rf ./boot/config.txt.bak /boot/config.txt sleep 1 echo "reboot now" From 37486f7d2ea1fa98c9944f35b5d4f66ce3a18642 Mon Sep 17 00:00:00 2001 From: digiwhale Date: Mon, 30 May 2022 01:28:06 -0400 Subject: [PATCH 6/8] 1 --- Raspbian/usr/ucts_90.dts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Raspbian/usr/ucts_90.dts b/Raspbian/usr/ucts_90.dts index 68d6e85..237cd12 100644 --- a/Raspbian/usr/ucts_90.dts +++ b/Raspbian/usr/ucts_90.dts @@ -46,10 +46,10 @@ pendown-gpio = <&gpio 25 0>; /* ti,swap-xy; */ /* driver defaults */ - ti,x-max = /bits/ 16 <0x0F60>; - ti,y-min = /bits/ 16 <0x010C>; - ti,x-min = /bits/ 16 <0x00E3>; - ti,y-max = /bits/ 16 <0x0F28>; + ti,x-min = /bits/ 16 <0x0F60>; + ti,y-max = /bits/ 16 <0x010C>; + ti,x-max = /bits/ 16 <0x00E3>; + ti,y-min = /bits/ 16 <0x0F28>; ti,pressure-min = /bits/ 16 <0>; ti,pressure-max = /bits/ 16 <0xFFFF>; ti,x-plate-ohms = /bits/ 16 <400>; From d62f8f0f1edc77426b0d1e7185aea83c233839d6 Mon Sep 17 00:00:00 2001 From: digiwhale Date: Mon, 30 May 2022 01:30:43 -0400 Subject: [PATCH 7/8] 2 --- Raspbian/.system_backup/config.txt | 89 +++++++++++++++++++++++++ Raspbian/.system_backup/config.txt.bak | 89 +++++++++++++++++++++++++ Raspbian/backup.sh | 0 Raspbian/boot/config.txt.bak | 89 +++++++++++++++++++++++++ Raspbian/calibrateToolInstall.sh | 0 Raspbian/calibration_uc_touch_0.sh | 0 Raspbian/calibration_uc_touch_180.sh | 0 Raspbian/install_uc_touch_0.sh | 0 Raspbian/install_uc_touch_180.sh | 0 Raspbian/install_uc_touch_90.sh | 0 Raspbian/restore.sh | 0 Raspbian/usr/ucts_90.dtb | Bin 0 -> 1476 bytes 12 files changed, 267 insertions(+) create mode 100755 Raspbian/.system_backup/config.txt create mode 100755 Raspbian/.system_backup/config.txt.bak mode change 100644 => 100755 Raspbian/backup.sh create mode 100644 Raspbian/boot/config.txt.bak mode change 100644 => 100755 Raspbian/calibrateToolInstall.sh mode change 100644 => 100755 Raspbian/calibration_uc_touch_0.sh mode change 100644 => 100755 Raspbian/calibration_uc_touch_180.sh mode change 100644 => 100755 Raspbian/install_uc_touch_0.sh mode change 100644 => 100755 Raspbian/install_uc_touch_180.sh mode change 100644 => 100755 Raspbian/install_uc_touch_90.sh mode change 100644 => 100755 Raspbian/restore.sh create mode 100644 Raspbian/usr/ucts_90.dtb diff --git a/Raspbian/.system_backup/config.txt b/Raspbian/.system_backup/config.txt new file mode 100755 index 0000000..e2711aa --- /dev/null +++ b/Raspbian/.system_backup/config.txt @@ -0,0 +1,89 @@ +# For more options and information see +# http://rpf.io/configtxt +# Some settings may impact device functionality. See link above for details + +# uncomment if you get no picture on HDMI for a default "safe" mode +#hdmi_safe=1 + +# uncomment the following to adjust overscan. Use positive numbers if console +# goes off screen, and negative if there is too much border +#overscan_left=16 +#overscan_right=16 +#overscan_top=16 +#overscan_bottom=16 + +# uncomment to force a console size. By default it will be display's size minus +# overscan. +#framebuffer_width=1280 +#framebuffer_height=720 + +# uncomment if hdmi display is not detected and composite is being output +#hdmi_force_hotplug=1 + +# uncomment to force a specific HDMI mode (this will force VGA) +#hdmi_group=1 +#hdmi_mode=1 + +# uncomment to force a HDMI mode rather than DVI. This can make audio work in +# DMT (computer monitor) modes +#hdmi_drive=2 + +# uncomment to increase signal to HDMI, if you have interference, blanking, or +# no display +#config_hdmi_boost=4 + +# uncomment for composite PAL +#sdtv_mode=2 + +#uncomment to overclock the arm. 700 MHz is the default. +#arm_freq=800 + +# Uncomment some or all of these to enable the optional hardware interfaces +#dtparam=i2c_arm=on +#dtparam=i2s=on +#dtparam=spi=on + +# Uncomment this to enable infrared communication. +#dtoverlay=gpio-ir,gpio_pin=17 +#dtoverlay=gpio-ir-tx,gpio_pin=18 + +# Additional overlays and parameters are documented /boot/overlays/README + +# Enable audio (loads snd_bcm2835) +dtparam=audio=on + +# Automatically load overlays for detected cameras +camera_auto_detect=1 + +# Automatically load overlays for detected DSI displays +display_auto_detect=1 + +# Enable DRM VC4 V3D driver +#dtoverlay=vc4-kms-v3d +#max_framebuffers=2 + +# Disable compensation for displays with overscan +disable_overscan=1 + +[cm4] +# Enable host mode on the 2711 built-in XHCI USB controller. +# This line should be removed if the legacy DWC2 controller is required +# (e.g. for USB device mode) or if USB support is not required. +otg_mode=1 + +[all] + +[pi4] +# Run as fast as firmware / board allows +arm_boost=1 + +[all] +hdmi_force_hotplug=1 +dtparam=spi=on +dtoverlay=ucts_90 +hdmi_group=2 +hdmi_mode=1 +hdmi_mode=87 +hdmi_cvt 480 320 60 6 0 0 0 +hdmi_drive=2 +display_rotate=1 diff --git a/Raspbian/.system_backup/config.txt.bak b/Raspbian/.system_backup/config.txt.bak new file mode 100755 index 0000000..e2711aa --- /dev/null +++ b/Raspbian/.system_backup/config.txt.bak @@ -0,0 +1,89 @@ +# For more options and information see +# http://rpf.io/configtxt +# Some settings may impact device functionality. See link above for details + +# uncomment if you get no picture on HDMI for a default "safe" mode +#hdmi_safe=1 + +# uncomment the following to adjust overscan. Use positive numbers if console +# goes off screen, and negative if there is too much border +#overscan_left=16 +#overscan_right=16 +#overscan_top=16 +#overscan_bottom=16 + +# uncomment to force a console size. By default it will be display's size minus +# overscan. +#framebuffer_width=1280 +#framebuffer_height=720 + +# uncomment if hdmi display is not detected and composite is being output +#hdmi_force_hotplug=1 + +# uncomment to force a specific HDMI mode (this will force VGA) +#hdmi_group=1 +#hdmi_mode=1 + +# uncomment to force a HDMI mode rather than DVI. This can make audio work in +# DMT (computer monitor) modes +#hdmi_drive=2 + +# uncomment to increase signal to HDMI, if you have interference, blanking, or +# no display +#config_hdmi_boost=4 + +# uncomment for composite PAL +#sdtv_mode=2 + +#uncomment to overclock the arm. 700 MHz is the default. +#arm_freq=800 + +# Uncomment some or all of these to enable the optional hardware interfaces +#dtparam=i2c_arm=on +#dtparam=i2s=on +#dtparam=spi=on + +# Uncomment this to enable infrared communication. +#dtoverlay=gpio-ir,gpio_pin=17 +#dtoverlay=gpio-ir-tx,gpio_pin=18 + +# Additional overlays and parameters are documented /boot/overlays/README + +# Enable audio (loads snd_bcm2835) +dtparam=audio=on + +# Automatically load overlays for detected cameras +camera_auto_detect=1 + +# Automatically load overlays for detected DSI displays +display_auto_detect=1 + +# Enable DRM VC4 V3D driver +#dtoverlay=vc4-kms-v3d +#max_framebuffers=2 + +# Disable compensation for displays with overscan +disable_overscan=1 + +[cm4] +# Enable host mode on the 2711 built-in XHCI USB controller. +# This line should be removed if the legacy DWC2 controller is required +# (e.g. for USB device mode) or if USB support is not required. +otg_mode=1 + +[all] + +[pi4] +# Run as fast as firmware / board allows +arm_boost=1 + +[all] +hdmi_force_hotplug=1 +dtparam=spi=on +dtoverlay=ucts_90 +hdmi_group=2 +hdmi_mode=1 +hdmi_mode=87 +hdmi_cvt 480 320 60 6 0 0 0 +hdmi_drive=2 +display_rotate=1 diff --git a/Raspbian/backup.sh b/Raspbian/backup.sh old mode 100644 new mode 100755 diff --git a/Raspbian/boot/config.txt.bak b/Raspbian/boot/config.txt.bak new file mode 100644 index 0000000..e2711aa --- /dev/null +++ b/Raspbian/boot/config.txt.bak @@ -0,0 +1,89 @@ +# For more options and information see +# http://rpf.io/configtxt +# Some settings may impact device functionality. See link above for details + +# uncomment if you get no picture on HDMI for a default "safe" mode +#hdmi_safe=1 + +# uncomment the following to adjust overscan. Use positive numbers if console +# goes off screen, and negative if there is too much border +#overscan_left=16 +#overscan_right=16 +#overscan_top=16 +#overscan_bottom=16 + +# uncomment to force a console size. By default it will be display's size minus +# overscan. +#framebuffer_width=1280 +#framebuffer_height=720 + +# uncomment if hdmi display is not detected and composite is being output +#hdmi_force_hotplug=1 + +# uncomment to force a specific HDMI mode (this will force VGA) +#hdmi_group=1 +#hdmi_mode=1 + +# uncomment to force a HDMI mode rather than DVI. This can make audio work in +# DMT (computer monitor) modes +#hdmi_drive=2 + +# uncomment to increase signal to HDMI, if you have interference, blanking, or +# no display +#config_hdmi_boost=4 + +# uncomment for composite PAL +#sdtv_mode=2 + +#uncomment to overclock the arm. 700 MHz is the default. +#arm_freq=800 + +# Uncomment some or all of these to enable the optional hardware interfaces +#dtparam=i2c_arm=on +#dtparam=i2s=on +#dtparam=spi=on + +# Uncomment this to enable infrared communication. +#dtoverlay=gpio-ir,gpio_pin=17 +#dtoverlay=gpio-ir-tx,gpio_pin=18 + +# Additional overlays and parameters are documented /boot/overlays/README + +# Enable audio (loads snd_bcm2835) +dtparam=audio=on + +# Automatically load overlays for detected cameras +camera_auto_detect=1 + +# Automatically load overlays for detected DSI displays +display_auto_detect=1 + +# Enable DRM VC4 V3D driver +#dtoverlay=vc4-kms-v3d +#max_framebuffers=2 + +# Disable compensation for displays with overscan +disable_overscan=1 + +[cm4] +# Enable host mode on the 2711 built-in XHCI USB controller. +# This line should be removed if the legacy DWC2 controller is required +# (e.g. for USB device mode) or if USB support is not required. +otg_mode=1 + +[all] + +[pi4] +# Run as fast as firmware / board allows +arm_boost=1 + +[all] +hdmi_force_hotplug=1 +dtparam=spi=on +dtoverlay=ucts_90 +hdmi_group=2 +hdmi_mode=1 +hdmi_mode=87 +hdmi_cvt 480 320 60 6 0 0 0 +hdmi_drive=2 +display_rotate=1 diff --git a/Raspbian/calibrateToolInstall.sh b/Raspbian/calibrateToolInstall.sh old mode 100644 new mode 100755 diff --git a/Raspbian/calibration_uc_touch_0.sh b/Raspbian/calibration_uc_touch_0.sh old mode 100644 new mode 100755 diff --git a/Raspbian/calibration_uc_touch_180.sh b/Raspbian/calibration_uc_touch_180.sh old mode 100644 new mode 100755 diff --git a/Raspbian/install_uc_touch_0.sh b/Raspbian/install_uc_touch_0.sh old mode 100644 new mode 100755 diff --git a/Raspbian/install_uc_touch_180.sh b/Raspbian/install_uc_touch_180.sh old mode 100644 new mode 100755 diff --git a/Raspbian/install_uc_touch_90.sh b/Raspbian/install_uc_touch_90.sh old mode 100644 new mode 100755 diff --git a/Raspbian/restore.sh b/Raspbian/restore.sh old mode 100644 new mode 100755 diff --git a/Raspbian/usr/ucts_90.dtb b/Raspbian/usr/ucts_90.dtb new file mode 100644 index 0000000000000000000000000000000000000000..cbfdf39641fdb8ec36e84188f3d16bc69a3ffdf7 GIT binary patch literal 1476 zcmb_bJ8#rL5MDzf5e0M*iGqfP0)%4SD-d%u)b!M5&t6|F{9@M^Y(zl;Euui;C-4*a z14uMTP|(oOq@h8gqypw!uf6B!BBfxY+1+pEn|;j8e!1}HCu5r*7-Jq|8=q*tL3)Yw zA}QoI+21tF-sl)~mgehN&t;JA&VzK~O>bGSKk`<=9UbLFk}pz`mG?#(V~-8e?Y|^6 zJHDSE3YqZQ_d$SvlXNG4#A_Hx&KR|OjkWzWdu-L-c=l!Oq-VeFB zLW&%>??GK44iDA7w|Cp5PW!jvDC1q@0_x)SG_u%ZS6@6g{&O_nC&gLFXM5HIQwQMl zq>;hkL0|`84Ia{H@iPZ(i(j&%9)2}wUeU(C)n3bgr>k%Ad*^i*kDPoYMNZnZ1a z<4~xkTblR*`98x>d8ynq&hFY?gYT>H)oXm;Y#gtS#eKJNozL7OimPSOUIK5tNqRK2 z%|0u+T!?ZuV%9jdMq)R2zfAKFOBo-d==_88%W@{`I1zC&%b5;W{?)MSqgkAlLds=P zx&@c?EBp65A*c{pm_NzfMG@x|pvB}N$pfDFy=nf*@zWs12mWs0XCQr~zcP z54M6lEqEEzmu5|xnJRg?RO}iLLn)MU1Cb;IRs2+#wG<1cir7tg Date: Wed, 1 Jun 2022 12:20:42 -0400 Subject: [PATCH 8/8] 1 --- Raspbian/usr/ucts_90.dts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Raspbian/usr/ucts_90.dts b/Raspbian/usr/ucts_90.dts index 237cd12..868ed8a 100644 --- a/Raspbian/usr/ucts_90.dts +++ b/Raspbian/usr/ucts_90.dts @@ -46,9 +46,9 @@ pendown-gpio = <&gpio 25 0>; /* ti,swap-xy; */ /* driver defaults */ - ti,x-min = /bits/ 16 <0x0F60>; + ti,x-max = /bits/ 16 <0x0F60>; ti,y-max = /bits/ 16 <0x010C>; - ti,x-max = /bits/ 16 <0x00E3>; + ti,x-min = /bits/ 16 <0x00E3>; ti,y-min = /bits/ 16 <0x0F28>; ti,pressure-min = /bits/ 16 <0>; ti,pressure-max = /bits/ 16 <0xFFFF>;