Discussion
7" LVDS from LeMaker
7
4236
View: 4236|Reply: 7
|
[Discussion]
7" LVDS from LeMaker
[Copy link]
|
|
Hi there
i got a 7" Touch from LeMaker
after playing around a while i found out , how to get a display on it.
There are some mods on u-boot and in dts file.
Im working on 4.* kernel- &i2c3 {
- status = "okay";
- pinctrl-names = "default";
- pinctrl-0 = <&i2c3_pins_a>;
- edt: edt-ft5x06@38 {
- status = "okay";
- compatible = "edt,edt-ft5x06";
- reg = <0x38>;
- interrupt-parent = <&pio>;
- interrupts = <3 24>; /*GPIO_ACTIVE_HIGH>; */
- wake-gpios = <&pio 7 8 GPIO_ACTIVE_HIGH>;
- };
- };
Copy the Code these lines i added to dts and i got an evdev and display, but touch didnt work.
can someone help to find out the other pin definitions? |
|
|
|
|
|
|
|
no one familar with device tree and lvds display? |
|
|
|
|
|
|
|
hi, please change to below:
&i2c3 {
status = "okay";
pinctrl-names = "default";
pinctrl-0 = <&i2c3_pins_a>;
edt: edt-ft5x06@38 {
compatible = "edt,edt-ft5x06";
reg = <0x38>;
interrupt-parent = <&pio>;
interrupts = <9 0>;
pinctrl-names = "default";
pinctrl-0 = <&edt_ft5x06_pins>;
touchscreen-size-x = <1024>;
touchscreen-size-y = <600>;
touchscreen-inverted-x;
touchscreen-swapped-x-y;
};
};
and add
edt_ft5x06_pins: edt_ft5x06_pins@0 {
#allwinner,pins = "PH8", "PH7", "PH9", "PH12";
allwinner,pins = "PH7", "PH9";
allwinner,function = "gpio_out";
allwinner,drive = <SUN4I_PINCTRL_40_MA>;
allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
};
in &pio. |
|
|
|
|
|
|
|
Solved
Edited by tony_zhang at Feb 15, 2016 19:38
thanks bruce :) we fixed it yesterday
http://piprojects.net/de/deutsch-touchscreen-mit-ft5x06-chipsatz/
you can remove #allwinner,pins = "PH8", "PH7", "PH9", "PH12"; this line too , because # is not a comment out . to comment out something in dts you need /* text */
touchscreen-size-x = <1024>;
touchscreen-size-y = <600>;
touchscreen-inverted-x;
touchscreen-swapped-x-y;
these lines can be remove to work with display like 3,5" or 5" :)
why the hell i cant edit the topic on first post? i want to add an [solved] |
|
|
|
|
|
|
|
small update
add an file in /usr/share/X11/xorg.conf.d/ named 99-calibration.conf- Section "InputClass"
- Identifier "calibration"
- MatchProduct "EP0790M09"
- Option "Calibration" "0 1024 0 600"
- Option "SwapAxes" "0"
- EndSection
Copy the Code and put this in
for smaller display like 3.5" or 5" change resolution |
|
|
|
|
|
|
|
Hi, I patched my sun7i-a20-bananapro.dts
- diff --git a/arch/arm/boot/dts/sun7i-a20-bananapro.dts b/arch/arm/boot/dts/sun7i-a20-bananapro.dts
- index 18fcc87..3629148 100644
- --- a/arch/arm/boot/dts/sun7i-a20-bananapro.dts
- +++ b/arch/arm/boot/dts/sun7i-a20-bananapro.dts
- @@ -147,6 +147,24 @@
- status = "okay";
- };
- +&i2c3 {
- + status = "okay";
- + pinctrl-names = "default";
- + pinctrl-0 = <&i2c3_pins_a>;
- + edt: edt-ft5x06@38 {
- + compatible = "edt,edt-ft5x06";
- + reg = <0x38>;
- + interrupt-parent = <&pio>;
- + interrupts = <9 0>;
- + pinctrl-names = "default";
- + pinctrl-0 = <&edt_ft5x06_pins>;
- + touchscreen-size-x = <1024>;
- + touchscreen-size-y = <600>;
- + touchscreen-inverted-x;
- + touchscreen-swapped-x-y;
- + };
- +};
- +
- &ir0 {
- pinctrl-names = "default";
- pinctrl-0 = <&ir0_rx_pins_a>;
- @@ -222,6 +240,13 @@
- allwinner,drive = <SUN4I_PINCTRL_10_MA>;
- allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
- };
- +
- + edt_ft5x06_pins: edt_ft5x06_pins@0 {
- + allwinner,pins = "PH7", "PH9";
- + allwinner,function = "gpio_out";
- + allwinner,drive = <SUN4I_PINCTRL_40_MA>;
- + allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
- + };
- };
- ®_usb1_vbus {
Copy the Code
But the screen dosn't work and dmesg tells me this
- [ 4.602774] edt_ft5x06 2-0038: Unable to request touchscreen IRQ.
- [ 4.608975] edt_ft5x06: probe of 2-0038 failed with error -22
Copy the Code |
|
|
|
|
|
|
|
Is anybody here with a working touch screen under a recent linux kernel (4.4 or 4.5) ???
I need really help! |
|
|
|
|
|
|
|
Edited by zzeroo at Apr 06, 2016 04:04
Here is a working patch for the latest sunxi-next (4.6-rc6) kernel. Thank You plaes from #linux-sunxi
All needed information can found in the old .fex file
- ctp_int_port = port:PH09<6><default><default><default>
- ctp_wakeup = port:PH07<1><default><default><1>
Copy the Code- diff --git a/arch/arm/boot/dts/sun7i-a20-bananapro.dts b/arch/arm/boot/dts/sun7i-a20-bananapro.dts
- index 18fcc87..50f1a36 100644
- --- a/arch/arm/boot/dts/sun7i-a20-bananapro.dts
- +++ b/arch/arm/boot/dts/sun7i-a20-bananapro.dts
- @@ -147,6 +147,26 @@
- status = "okay";
- };
- +&i2c3 {
- + status = "okay";
- + pinctrl-names = "default";
- + pinctrl-0 = <&i2c3_pins_a>;
- + edt: edt-ft5x06@38 {
- + compatible = "edt,edt-ft5x06";
- + reg = <0x38>;
- + interrupt-parent = <&pio>;
- + interrupts = <7 9 IRQ_TYPE_EDGE_FALLING>;
- + wake-gpios = <7 7 GPIO_ACTIVE_LOW>;
- + pinctrl-names = "default";
- + pinctrl-0 = <&edt_ft5x06_pins>;
- + touchscreen-size-x = <1024>;
- + touchscreen-size-y = <600>;
- + touchscreen-inverted-x;
- + touchscreen-swapped-x-y;
- + };
- +};
- +
- +
- &ir0 {
- pinctrl-names = "default";
- pinctrl-0 = <&ir0_rx_pins_a>;
- @@ -222,6 +242,14 @@
- allwinner,drive = <SUN4I_PINCTRL_10_MA>;
- allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
- };
- +
- + edt_ft5x06_pins: edt_ft5x06_pins@0 {
- + allwinner,pins = "PH7", "PH9";
- + allwinner,function = "gpio_out";
- + allwinner,drive = <SUN4I_PINCTRL_40_MA>;
- + allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
- + };
- +
- };
- ®_usb1_vbus {
Copy the Code |
|
|
|
|
|
|