Thermal sensors update:
I found a way to get the thermal sensors working without changing patches. , but the specific method below is not a solution as it kills my wifi (I'm using ath10k-ct with the htt firmware). After repeat test, wifi is working. Test with caution
edit the thermal-sensor node in qcom-ipq8064.dtsi to be:
tsens: thermal-sensor@904000 {
compatible = "qcom,ipq8064-tsens";
reg = <0x904000 0x3680>;
nvmem-cells = <&tsens_calib>, <&tsens_backup>;
nvmem-cell-names = "calib", "calib_backup";
interrupts = <GIC_SPI 178 IRQ_TYPE_LEVEL_HIGH>;
#thermal-sensor-cells = <1>;
};
i.e. I'm hoping that just because the thermal sensors can share the gcc memory space (with an appropriate dts/kernel driver), does not mean they have to when using the exiting kernel driver patches.
Now should I find an unused memory region for tsens to occupy? Or should I work harder at figuring out how to define a shared memory region for gcc and tsens?
It be good if actually understood what the problem is or how memory is mapped...