Newb need some help with lcd touchscreen

I’m needing some help, as I have very limited experience with linux. I’ve had a BBB for a few months now, and managed to cobble together many different items from google searches and sites like this one, and am working towards a functional touch screen beer brewing controller.
After getting to where I am now, I purchased a 7in touchscreen from ebay (china) that is a waveshare cape/lcd package.
Waveshare has a debian image that I have downloaded, and it boots right up to a working screen, but only runs from the card, no flasher. Trouble is, I have lots of hours into the BBB setup I’m running now, and would of course, rather not start over. I’m needing to get the LCD to work on my existing system.

Running wheezy, kernal 3.8.13-bone74,

Thanks,
Brad

So i'd start with copying your "working" kernel config and copy it to
the "working" debian setup..

http://www.waveshare.com/wiki/BB_Black_XXX_CAPE_Source_Code

I don't see that anyone has submited support for that lcd for the commuinty..

https://github.com/beagleboard/linux/tree/3.8/firmware/capes

Looking at the schematic, it would be a pretty simplistic compared to
other capes for new users to port. :wink:

Regards,

I’ll read-up on copying my kernel config (greek at this point), but my main issue is the setup of the database, the web front end and all the related stuff with temp measuring and liquid levels that report to the webserver that’s setup, that I’m worried about… I’m not “friendly” with this OS, so that has been a ton of work for me to piece together from others workings…

I looked at the uEnv on the waveshare image and did see tons of differences, know enough to know that copying them into mine isn’t going to make things just work. I really need to get a “linux for dummies” book… I’m very far behind the curve with this…

Thanks for the help.
Brad

Hello all,
please take a look of http://www.graavaa.com/collections/marble/black-emperador-2/ for Dark Emperaor marble.

Someone needs removal from this group I see. Not you OP by the way :wink:

Hi,

Did you make any progress on that ? I have the same cape and would also like to use it with a standard kernel.

Regards,
Xav

Hi Robert,

I tried just compiling the DVK530-LCD4 dtbo in theirs kernel directory, then loading it on a plain debian image (bone-debian-7.9-lxde-4gb-armhf-2015-11-12-4gb.img). It works, but here’s what I’ve got in the log:

[ 781.660463] bone-capemgr bone_capemgr.9: part_number ‘DVK530-LCD4-01’, version ‘00A0’
[ 781.660655] bone-capemgr bone_capemgr.9: slot #7: generic override
[ 781.660702] bone-capemgr bone_capemgr.9: bone: Using override eeprom data at slot 7
[ 781.660750] bone-capemgr bone_capemgr.9: slot #7: ‘Override Board Name,00A0,Override Manuf,DVK530-LCD4-01’
[ 781.663155] bone-capemgr bone_capemgr.9: slot #7: Requesting part number/version based 'DVK530-LCD4-01-00A0.dtbo
[ 781.663217] bone-capemgr bone_capemgr.9: slot #7: Requesting firmware ‘DVK530-LCD4-01-00A0.dtbo’ for board-name ‘Override Board Name’, version ‘00A0’
[ 781.679325] bone-capemgr bone_capemgr.9: slot #7: dtbo ‘DVK530-LCD4-01-00A0.dtbo’ loaded; converting to live tree
[ 781.682363] bone-capemgr bone_capemgr.9: slot #7: #4 overlays
[ 781.692600] ehrpwm 48302200.ehrpwm: unable to select pin group
[ 781.702798] pwm-backlight backlight.12: invalid default brightness level: 101, using 100
[ 781.711146] input: ti-tsc as /devices/ocp.3/44e0d000.tscadc/tsc/input/input1
[ 781.724048] of_get_named_gpio_flags: can’t parse gpios property
[ 781.724105] panel panel.13: panel: No power control GPIO
[ 781.724800] platform 4830e000.fb: alias fck already exists
[ 781.733875] of_get_named_gpio_flags: can’t parse gpios property
[ 781.733931] tilcdc 4830e000.fb: No power control GPIO
[ 781.734623] [drm] Supports vblank timestamp caching Rev 1 (10.10.2010).
[ 781.734650] [drm] No driver support for vblank timestamp query.
[ 781.755994] Console: switching to colour frame buffer device 120x45
[ 781.761009] tilcdc 4830e000.fb: fb0: frame buffer device
[ 781.761044] tilcdc 4830e000.fb: registered panic notifier
[ 781.761097] [drm] Initialized tilcdc 1.0.0 20121205 on minor 0
[ 781.761294] bone-capemgr bone_capemgr.9: slot #7: Applied #4 overlays.
[ 782.284096] tilcdc 4830e000.fb: timeout waiting for framedone

I don’t quite like those warnings/errors. Are they harmful ? Do you have a hint how I could fix them ?

Regards,
Xav

When trying to load the dtbo on the latest debian images (compiled with https://github.com/pantoniou/dtc to make it work on the 4.1 kernel) it doesn’t work anymore (white blank screen) and spews:
[ 192.904547] bone_capemgr bone_capemgr: part_number ‘DVK530-LCD4-01’, version ‘N/A’
[ 192.904591] bone_capemgr bone_capemgr: slot #4: override
[ 192.904610] bone_capemgr bone_capemgr: Using override eeprom data at slot 4
[ 192.904628] bone_capemgr bone_capemgr: slot #4: ‘Override Board Name,00A0,Override Manuf,DVK530-LCD4-01’
[ 192.926396] ocp:backlight supply power not found, using dummy regulator
[ 192.929198] bone_capemgr bone_capemgr: slot #4: dtbo ‘DVK530-LCD4-01-00A0.dtbo’ loaded; overlay id #0
[ 192.971160] ocp:backlight supply power not found, using dummy regulator
[ 192.971561] pwm-backlight ocp:backlight: invalid default brightness level: 101, using 100
[ 193.014772] of_graph_get_next_endpoint(): no port node found in /ocp/fb
[ 193.065022] of_graph_get_next_endpoint(): no port node found in /ocp/fb
[ 193.083458] tilcdc 4830e000.fb: no encoders/connectors found

Anyone can help ? I tried to look at commits done on similar overlays (e.g. https://github.com/beagleboard/bb.org-overlays/commits/master/src/arm/BB-BONE-LCD4-01-00A1.dts which is similar) but I couldn’t find anything obvious to update for 4.1.

Regards,
Xav

Do you have a link for the "DVK530-LCD4-01-00A0.dts" source?

I can patch it up and give you something to test..

Regards,

No link sorry, here it is attached.

Xav

DVK530-LCD4-01-00A0.dts (5.79 KB)

Okay pushed, give this a shot:

git clone https://github.com/beagleboard/bb.org-overlays
cd ./bb.org-overlays
./dtc-overlay.sh
./install.sh

and let is us know.. (the pwm value of 500000 seems weird, normally its 50000
but i left that)..

4.1.x changes:
https://github.com/beagleboard/bb.org-overlays/commit/9a2cf3a26af8ef0a44f2b7dbceb457e54e0395ef

Regards,

Blank black screen:

[  136.540268] bone_capemgr bone_capemgr: part_number 'DVK530-LCD4-01', version 'N/A'
[  136.540314] bone_capemgr bone_capemgr: slot #4: override
[  136.540331] bone_capemgr bone_capemgr: Using override eeprom data at slot 4
[  136.540349] bone_capemgr bone_capemgr: slot #4: 'Override Board Name,00A0,Override Manuf,DVK530-LCD4-01'
[  136.557245] backlight supply power not found, using dummy regulator
[  136.558486] bone_capemgr bone_capemgr: slot #4: dtbo 'DVK530-LCD4-01-00A0.dtbo' loaded; overlay id #0
[  136.613633] backlight supply power not found, using dummy regulator
[  136.626859] backlight supply power not found, using dummy regulator
[  136.627266] pwm-backlight backlight: invalid default brightness level: 101, using 100
[  136.658507] TI-am335x-tsc TI-am335x-tsc: ti,charge-delay not specified
[  136.658970] input: ti-tsc as /devices/platform/ocp/44e0d000.tscadc/TI-am335x-tsc/input/input1
[  136.670390] of_graph_get_next_endpoint(): no port node found in [/ocp/lcdc@4830e000](mailto:/ocp/lcdc@4830e000)
[  136.784383] of_graph_get_next_endpoint(): no port node found in [/ocp/lcdc@4830e000](mailto:/ocp/lcdc@4830e000)
[  136.794730] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
[  136.794755] [drm] No driver support for vblank timestamp query.
[  136.851672] Console: switching to colour frame buffer device 60x34
[  136.853290] tilcdc 4830e000.lcdc: fb0:  frame buffer device
[  136.853302] tilcdc 4830e000.lcdc: registered panic notifier
[  136.879763] [drm] Initialized tilcdc 1.0.0 20121205 on minor 0

After trying to apply changes from the old BB-BONE-LCD4 to DVK530-LCD4 onto the new BB-BONE-LCD4, I just tried just loading the latter; it kinda works display-wise, but the touchscreen doesn’t, the pointer just “vibrates” between two positions on the screen:

[   79.804738] bone_capemgr bone_capemgr: part_number 'BB-BONE-LCD4-01', version '00A1'
[   79.804785] bone_capemgr bone_capemgr: slot #4: override
[   79.804803] bone_capemgr bone_capemgr: Using override eeprom data at slot 4
[   79.804822] bone_capemgr bone_capemgr: slot #4: 'Override Board Name,00A1,Override Manuf,BB-BONE-LCD4-01'
[   79.828805] backlight supply power not found, using dummy regulator
[   79.830736] backlight supply power not found, using dummy regulator
[   79.841837] input: gpio_keys as /devices/platform/gpio_keys/input/input1
[   79.843083] backlight supply power not found, using dummy regulator
[   79.844667] bone_capemgr bone_capemgr: slot #4: dtbo 'BB-BONE-LCD4-01-00A1.dtbo' loaded; overlay id #0
[   79.943562] backlight supply power not found, using dummy regulator
[   79.984143] of_graph_get_next_endpoint(): no port node found in [/ocp/lcdc@4830e000](mailto:/ocp/lcdc@4830e000)
[   80.033925] TI-am335x-tsc TI-am335x-tsc: ti,charge-delay not specified
[   80.034379] input: ti-tsc as /devices/platform/ocp/44e0d000.tscadc/TI-am335x-tsc/input/input2
[   80.114392] of_graph_get_next_endpoint(): no port node found in [/ocp/lcdc@4830e000](mailto:/ocp/lcdc@4830e000)
[   80.126562] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
[   80.126585] [drm] No driver support for vblank timestamp query.
[   80.179841] Console: switching to colour frame buffer device 60x34
[   80.180774] tilcdc 4830e000.lcdc: fb0:  frame buffer device
[   80.180786] tilcdc 4830e000.lcdc: registered panic notifier
[   80.208635] [drm] Initialized tilcdc 1.0.0 20121205 on minor 0
It's nearing ... :)

Xav

When the display works, what value of the "pwms" did you have?

DVK530-LCD4-01-00A0.dts:

pwms = <&ehrpwm1 0 500000 0>;

while BB-BONE-LCD4-01-00A1.dts:

pwms = <&ehrpwm1 0 50000 0>;

Otherwise this is odd:

[ 79.984143] of_graph_get_next_endpoint(): no port node found in
/ocp/lcdc@4830e000

CONFIG_DRM_TILCDC_SLAVE_COMPAT=y

Regards,

Re-reading my mail, it was not so clear.
I tried just loading the BB-BONE-LCD4 dtbo from bb-overlays, without any modification, and the display works but the touchscreen only half-works. With just Xorg started it follow the finger, and sometimes clicks somewhere else on the screen. With an xterm started, it just franctically clicks on a few spots on the screen, pegging the CPU to 100%.

Xav

I’m lost.
I stripped the useless GPIOs (output led and 5 keys, i.e. gpio1_28 gpio1_16 gpio1_17 gpio1_19 gpio3_16 gpio0_15) from BB-BONE-LCD4, backlight & display are OK but the tsc still doesn’t work well (unusable in fact).
I tried playing with the ti,charge-delay (from 0x40 to 0xF000) with no luck.

What’s strange is that it worked with the 3.8 kernel. I guess there’s something in the newer driver which doesn’t like my touchscreen, but there are a bit too many diffs between the 2 versions for an easy spot.