]> asedeno.scripts.mit.edu Git - linux.git/commit
thermal: imx: Add nvmem-cells alternate binding for OCOTP access
authorLeonard Crestez <leonard.crestez@nxp.com>
Fri, 14 Jul 2017 14:11:06 +0000 (17:11 +0300)
committerZhang Rui <rui.zhang@intel.com>
Wed, 20 Sep 2017 01:36:18 +0000 (09:36 +0800)
commit4633f7a156bf41003b1527f88ddf843ce0bb7d68
tree855ae25d07a31e962116e9113841212f0105e7d1
parent2bd6bf03f4c1c59381d62c61d03f6cc3fe71f66e
thermal: imx: Add nvmem-cells alternate binding for OCOTP access

On newer imx SOCs accessing OCOTP directly is wrong because the ocotp
clock needs to be enabled first. Add a binding for accessing the same
values through the imx-ocotp nvmem driver using nvmem-cells. This is
similar to other thermal drivers.

The old binding is preserved for compatibility and because it still
works fine on imx6qdl series chips.

In theory this problem could be solved by adding a reference to the
OCOTP clock instead but it is better to hide such details in a specific
nvmem driver.

Signed-off-by: Leonard Crestez <leonard.crestez@nxp.com>
Acked-by: Rob Herring <robh@kernel.org>
Signed-off-by: Zhang Rui <rui.zhang@intel.com>
Documentation/devicetree/bindings/thermal/imx-thermal.txt