I often use this Mikrotik RB750gr3 non-wifi router.
Using stock f/w, this device is able to report its (cpu?) temperature and the voltage of the powersupply.
Does anyone know how to do this with OpenWrt?
I found some attempts on its predecessor RB750r2, which has an ATtiny microcontroller onboard that does this I/O stuff.
But I don't know (yet) if the r3 version also has such a component to be read.
I would be very interested to monitor the supply voltage because I'd like this router to be powered from a backup battery.
So this measurement is done by the ZT2046 (placed on board as U902)? Great!
But how to read the figures? I found the package " kmod-input-touchscreen-ads7846"
How to treat it? Should I call it in some way and does it place the results in /proc/... or such?
Once you have the ads7846 driver installed and configured (through DTS) then you can read data under /sys/class/hwmon/hwmon*/, or through /sys:
My 760igs, with 12V supply:
So this isn't simply done by reading some registers I see.
I wasn't familiar with DTS so I have to study that. I just started to set up a new build environment and see if I can build a standard firmware (that won't end op in an error).
Then, I suppose, I will have to add your DTS patch to get the SPI stuff working.
I give up on this. After numerous attempts to compile OpenWrt I keep ending up in failures. I tried different versions, different targets and even different build-distro's. Most seen failure was about LLVM.
It looks like compiling is not there for me anymore. Maybe, in half a year or so, when I have te time and courage I'll try again.
For now I just hope that someone will pick this up and add your patch to some release one day.