01-03-2017, 05:35 PM
(01-03-2017, 03:29 PM)psychedup Wrote:(01-03-2017, 09:28 AM)atomicmoose Wrote:(12-29-2016, 06:50 PM)atomicmoose Wrote:(12-21-2016, 12:39 PM)psychedup Wrote: ...The touch screen works but only the right half of the screen...
I have yet to figure out where the issue is and over New Years I broke my LCD panel. I've ordered a new one, when it arrives I'll resume tracing the problem.
Sorry to hear about the breakage. I broke my first one too.
I looked at ayufan's .dts and don't see anything significantly different than mine. Also, the armbian image has LCD+touch working - looks like they're using the same .dts settings and driver, so I wonder what else they're doing differently.
Looked at what Armbian does and was able to get it to work. Here's the relevant section of the .dts that made it work for me:
Code:
ctp {
device_type = "ctp";
compatible = "allwinner,sun50i-ctp-para";
status = "okay";
ctp_used = <0x1>;
ctp_name = "gt911_DB2";
ctp_twi_id = <0x0>;
ctp_twi_addr = <0x40>;
ctp_screen_max_x = <0x400>;
ctp_screen_max_y = <0x258>;
ctp_revert_x_flag = <0x1>;
ctp_revert_y_flag = <0x1>;
ctp_exchange_x_y_flag = <0x0>;
ctp_int_port = <0x30 0x7 0x4 0x6 0xffffffff 0xffffffff 0xffffffff>;
ctp_wakeup = <0x30 0x7 0xb 0x1 0xffffffff 0xffffffff 0x1>;
ctp_power_ldo = "vcc-ctp";
ctp_power_ldo_vol = <0xce4>;
ctp_power_io;
};