Re: [PATCH] thermal: imx: interpret fsl,tempmon-data through nvmem

2017-07-05 Thread Leonard Crestez
On Tue, 2017-07-04 at 11:54 -0700, Eduardo Valentin wrote: > On Mon, Jun 19, 2017 at 04:40:43PM +0300, Leonard Crestez wrote: > > > > On imx6sx accessing the ocotp memory area directly is wrong because the > > ocotp clock needs to be enabled first. Fix this by reinterpreting the > > fsl,tempmon-da

Re: [PATCH] thermal: imx: interpret fsl,tempmon-data through nvmem

2017-07-04 Thread Srinivas Kandagatla
On 19/06/17 14:40, Leonard Crestez wrote: On imx6sx accessing the ocotp memory area directly is wrong because the ocotp clock needs to be enabled first. Fix this by reinterpreting the fsl,tempmon-data phandle as a reference to a nvmem_device and doing all the read through that. This looks lik

Re: [PATCH] thermal: imx: interpret fsl,tempmon-data through nvmem

2017-07-04 Thread Eduardo Valentin
On Mon, Jun 19, 2017 at 04:40:43PM +0300, Leonard Crestez wrote: > On imx6sx accessing the ocotp memory area directly is wrong because the > ocotp clock needs to be enabled first. Fix this by reinterpreting the > fsl,tempmon-data phandle as a reference to a nvmem_device and doing all > the read thr

Re: [PATCH] thermal: imx: interpret fsl,tempmon-data through nvmem

2017-07-04 Thread Leonard Crestez
On Mon, 2017-06-19 at 16:40 +0300, Leonard Crestez wrote: > On imx6sx accessing the ocotp memory area directly is wrong because the > ocotp clock needs to be enabled first. Fix this by reinterpreting the > fsl,tempmon-data phandle as a reference to a nvmem_device and doing all > the read through th

[PATCH] thermal: imx: interpret fsl,tempmon-data through nvmem

2017-06-19 Thread Leonard Crestez
On imx6sx accessing the ocotp memory area directly is wrong because the ocotp clock needs to be enabled first. Fix this by reinterpreting the fsl,tempmon-data phandle as a reference to a nvmem_device and doing all the read through that. This clock requirement does not apply to older imx6qdl chips