Re: [PATCH v3 1/4] thermal: rockchip: add driver for thermal
From: Huang Tao
Date: Fri Aug 29 2014 - 08:09:08 EST
Dear Eduardo Bezerra Valentin:
å 2014å08æ29æ 19:39, edubezval@xxxxxxxxx åé:
> Hello Zhao,
> On Thu, Aug 28, 2014 at 9:54 PM, èäå <zyf@xxxxxxxxxxxxxx> wrote:
>> Hi Heikoï
>> The TS-ADC on RK3288 has two component, a tsadc and a tsadc controller.
>> The tsadc controller is similar like the thermal manager unit on other SOCs.
>> We followed the naming of 3066, but not named as the Thermal Manager.
>> Moreover,there is only one set of apb registers to access the tsadc
>> controller,and the tsadc is controlled by the tsadc controller,could not
>> access directly. If we write a general tsadc driver by accessed tsadc
>> controller registers, and it hardly to write a driver for the tsadc
> As suggested by Arnd, you can use the generic driver as interface
> between thermal framework and IIO layer. The driver you are going to
> write to your ADC is going to be in the IIO subsystem. The only
> difference is that the generic driver would work for any ADC driver in
> the IIO subsystem.
> In fact, there is already a generic driver. We just need to get it up
> to date. I see some testing has been already done, and results sound
This iio_thermal driver only support get temperature from the ADC IIO
It dose not support any advanced feature such as configure the
temperature when system should be reset.
So if we adapt it, we will access the register form both TSADC IIO
driver and thermal driver.
I don't thank this is a good ideal.
In fact, we should ignore the "ADC" stuff. This sensor use ADC internal,
but it is transparent to software, especially in automatic mode.
>> So, I do not agree to write a generic adc driver for the rk3288-tsadc.
>> Yifeng Zhao
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/