summaryrefslogtreecommitdiffstats
path: root/arch/arm64/boot/dts/sprd
diff options
context:
space:
mode:
authorBaolin Wang <baolin.wang@linaro.org>2019-02-13 20:32:46 +0800
committerArnd Bergmann <arnd@arndb.de>2019-02-18 11:32:47 +0100
commit640e2c51bdf227a540480c0f0e0d68e94113931c (patch)
treee01805aad8abef5f17b105b9c610b60e064ea810 /arch/arm64/boot/dts/sprd
parent5863dbe071caabe752ce6f9f6782fa03914527ab (diff)
downloadlinux-640e2c51bdf227a540480c0f0e0d68e94113931c.tar.bz2
arm64: dts: sprd: Add ADC calibration support
This patch adds phandles to the calibration cells provided by the Efuse device, which is used to calibrate the ADC channel scales. Signed-off-by: Baolin Wang <baolin.wang@linaro.org> Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Diffstat (limited to 'arch/arm64/boot/dts/sprd')
-rw-r--r--arch/arm64/boot/dts/sprd/sc2731.dtsi10
1 files changed, 10 insertions, 0 deletions
diff --git a/arch/arm64/boot/dts/sprd/sc2731.dtsi b/arch/arm64/boot/dts/sprd/sc2731.dtsi
index f2f2aa50f66b..a2edc25936b3 100644
--- a/arch/arm64/boot/dts/sprd/sc2731.dtsi
+++ b/arch/arm64/boot/dts/sprd/sc2731.dtsi
@@ -63,6 +63,14 @@
#address-cells = <1>;
#size-cells = <1>;
hwlocks = <&hwlock 12>;
+
+ adc_big_scale: calib@24 {
+ reg = <0x24 0x2>;
+ };
+
+ adc_small_scale: calib@26 {
+ reg = <0x26 0x2>;
+ };
};
pmic_adc: adc@480 {
@@ -72,6 +80,8 @@
interrupts = <0>;
#io-channel-cells = <1>;
hwlocks = <&hwlock 4>;
+ nvmem-cell-names = "big_scale_calib", "small_scale_calib";
+ nvmem-cells = <&adc_big_scale>, <&adc_small_scale>;
};
vibrator@ec8 {