@ansuel, regarding thermal sensors:
see EDITs: below
in k414, qcom-ipq8064.dtsi, under the label: node "tsens: thermal-sensor@900000" there's
interrupts = <0 178 0>;
in k419 its:
interrupts = <GIC_SPI 178 IRQ_TYPE_LEVEL_HIGH>;
I found:
linux-4.19.57/include/dt-bindings/interrupt-controller/arm-gic.h:#define GIC_SPI 0
but
linux-4.19.57/include/dt-bindings/interrupt-controller/irq.h:#define IRQ_TYPE_LEVEL_HIGH 4
have you tried:
interrupts = <0 178 0>;
on k419 yet?
Also, it looks like irq.h is not in the dtsi include files at the top... so may try that next... nvmd, its included in arm-gic.h...
EDIT 0: I got a chance to try it:
dmesg before:
root@OpenWrt:/# dmesg | grep tsens
[ 2.384480] qcom-tsens 900000.thermal-sensor: can't request region for resource [mem 0x00900000-0x0090367f]
[ 2.386855] qcom-tsens 900000.thermal-sensor: tsens init failed
dmesg after:
root@OpenWrt:/# dmesg | grep tsens
[ 3.104406] [<c05bcee8>] (platform_get_irq) from [<c0667210>] (tsens_probe+0x120/0x2b0)
[ 3.112210] [<c0667210>] (tsens_probe) from [<c05bcae4>] (platform_drv_probe+0x3c/0x84)
[ 3.229016] qcom-tsens 900000.thermal-sensor: can't request region for resource [mem 0x00900000-0x0090367f]
[ 3.233830] qcom-tsens 900000.thermal-sensor: tsens init failed
so a change..., but need to look into the resource error
EDIT 1: there is a possible solution to the resource error here (by making tsens a sub-node of the gcc node just above) which makes some sense given this. I'll try it when I have a chance.
I see that IRQ_TYPE_LEVEL_HIGH (4) is used in other places in the dtsi file where in k414 it was 0.
EDIT 2: making tsens a sub node of gcc in the style of the link above will remove the error but no thermal sensors (I tried a few variants here). If I return the tsens back the way it was but change the reg property under tsens to
reg = <0x900000 0x4000>;
I get:
root@OpenWrt:/# dmesg | grep tsens
[ 2.490618] qcom-tsens 900000.thermal-sensor: can't request region for resource [mem 0x00900000-0x00903fff]
so it looks like the driver is exhausitng its memory allocation.
Looking at the k414 patches (also in k419 but I have not checked for diffs yet), there have been a few changes since the linked thread above about getting the thermal sensors working on ipq806x. This post links back to the caf site that the current patches seem to have been pulled from.
After reading about dts interrupts, I suspect the interrupt change from 0 to 4 is ok (and either likely will work).
At this point I have some clues to work on and will go back to thinking about it.