Hello, I'm trying to configure a 'goodix' i2c touch screen on my Pi4B, piCore 12.0 armv7l-- I've seen
jgrulichs post but from my understanding reading
this and elsewhere, the 'new' way to configure these I2c devices is to use 'dtoverlay=___' in config.txt instead of some kind of magic modprobe string to specify the appropriate device tree overlay driver.
I have the following relevant modules loaded, among many:
touchscreen-5.4.51-piCore-v7l.tcz (which contains goodix.ko)
i2c-tools.tcz
libinput.tcz
wiringpi.tcz
pigpio.tcz
And I added the following in config.txt;
dtparam=i2c_arm=on
dtparam=i2s=on
dtparam=spi=on
dtoverlay=goodix
But the touchscreen still doesn't work. The
script to setup this touchscreen on Raspbian, as near as I can tell, does the same things.
After booting with this config, the following files are created in the device tree;
/sys/firmware/devicetree/base/soc/gpio@7e200000/goodix_pins/brcm,function
/sys/firmware/devicetree/base/soc/gpio@7e200000/goodix_pins/brcm,pins
/sys/firmware/devicetree/base/soc/gpio@7e200000/goodix_pins/brcm,pull
/sys/firmware/devicetree/base/soc/gpio@7e200000/goodix_pins/name
/sys/firmware/devicetree/base/soc/gpio@7e200000/goodix_pins/phandle
These files contain a single line each, that looks like gibberish in nano... I'd guess, that setup still isn't correct. So I tried specifying the GPIO pins explicitly, e.g. dtoverlay=goodix,interrupt=4,reset=17 however their content remained identical. I also tried dtoverlay=i2c1 for kicks.
brcm,function: @^@^@^@^@^@^@^@
brcm,pins: ^@^@^@^D^@^@^@^Q
brcm,pull: ^@^@^@^B^@^@^@^B
name: goodix_pins^@
phandle: ^@^@^@
Looking at other threads for I2c generally on piCore (including the DS3231 RTC which I will setup next) I was able to use i2c-tools with only the touchscreen connected and verify it's detected on I2c.
sudo i2cdetect -y 1
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
50: -- -- -- -- -- -- -- -- -- -- -- -- -- 5d -- --
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
70: -- -- -- -- -- -- -- --
So it seems I've got a problem with my setup. But I'm not really sure where else to look or go from here-- any suggestions or other docs I could look at would be greatly appreciated.