I wish to add my two-cents: There is a way to check if the DTB / DTBO is really recognised / in-use by kernel:
https://unix.stackexchange.com/questions/265890/is-it-possible-to-get-the-information-for-a-device-tree-using-sys-of-a-running 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 Nazım Gediz AYDINDOĞMUŞ <[email protected]>, 5 Oca 2021 Sal, 10:02 tarihinde şunu yazdı: > On 4.01.2021 18:16, Ing. Paolo Cremonese wrote: > > Hello Gediz, > > thank you for your kind reply. > > in attachment the files describing the device tree. > > lradc is noted in the .dtsi and is disabled for default: to enable it > > I'm using the overlay lradc_enable.dtbo (the source is lradc-enable.dts) > > the dmesg and lsmod outputs are in the related .txt > > Thank you again for your time. > > Best regards, > > Paolo Cremonese > > 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 > > -- > 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 [email protected]. > To view this discussion on the web, visit > https://groups.google.com/d/msgid/linux-sunxi/f9d9406e3e7b4c74819adfc2d97b7927%40genemek.com > . > -- Sertac TULLUK Electronics Engineer +90 532 5683928 -- 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 [email protected]. To view this discussion on the web, visit https://groups.google.com/d/msgid/linux-sunxi/CANUFAR%2B5svOpYz6LHnKyQjMb6BUuicQP9Bi5-EQWz%2BBe_Exkjw%40mail.gmail.com.
