Hello Paolo,
Can you please send the content of your DTS file, and output of dmesg
and lsmod, if you are still working on it. I can give it a try for you.
Regards,
Gediz
You're welcome.
I did not see any obvious warning/error in dmesg output. I'm not very
familiar with DTBO files but compared "lradc-enable.dts" to valid ones
and it looks okay. But I'd still somehow check if overlay is
recognized/loaded properly. That's not your case but, even if module is
built in to the kernel, it obviously does not start with a missing lradc
node.
I've set LRADC node status to "disabled" in the DTS to test it and there
were no complaints about LRADC in the dmesg. Of course, I could not see
the device under "/dev/input/eventX" anymore using "evtest" after
disabling it.
If you have compiled the kernel yourself, I'd recommend to check if
CONFIG_KEYBOARD_SUN4I_LRADC is enabled. Otherwise, looking at
"/proc/configz.gz" may help.
I've tested the following on my device which has an A13. Their LRADC is
probably identical. Maybe the output may help as a reference.
# grep lradc /lib/modules/5.10.1/modules.builtin
kernel/drivers/input/keyboard/sun4i-lradc-keys.ko
# dmesg | grep lradc
[ 1.597213] input: 1c22800.lradc as
/devices/platform/soc/1c22800.lradc/input/input0
Regards,
Gediz
sudo apt-get install device-tree-compiler
dtc -I fs -O dts /sys/firmware/devicetree/base--
You received this message because you are subscribed to the Google Groups "linux-sunxi" group.
To unsubscribe from this group and stop receiving emails from it, send an email to linux-sunxi...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/linux-sunxi/f9d9406e3e7b4c74819adfc2d97b7927%40genemek.com.
Today I learned... That's really good to know. So I've tried it.
Apparently there's a directory (or a node? perhaps a tree?) for LRADC.
Full path for it is:
|/proc/device-tree/soc/lradc@1c22800|
"ls" yields the following result:
|# ls /proc/device-tree/soc/lradc@1c22800/
button-1000 button-200 interrupts reg vref-supply
button-1200 compatible name status
#|
An even better thing for Paolo is that it would be guaranteed to know
that if an overlay file is actually loaded. I've simple tweaked "status"
property of the DTS and it's really easy to check like this.
|# cat /proc/device-tree/soc/lradc@1c22800/status
disabled
# cat /proc/device-tree/soc/lradc@1c22800/status
okay|
Apparently most of the files contain binary data, and I've used hexdump
to view them, fyi.
Thanks, by the way. I hope it'd also help Paolo :)
> I don't know if this is really valid for LRADC driver, but one can
> basically see like:
>
> |sudo apt-get install device-tree-compiler dtc -I fs -O dts
> /sys/firmware/devicetree/base|