Commit 640e2c51 authored by Baolin Wang's avatar Baolin Wang Committed by Arnd Bergmann

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: default avatarBaolin Wang <baolin.wang@linaro.org>
Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
parent 5863dbe0
......@@ -63,6 +63,14 @@ efuse@380 {
#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 @@ pmic_adc: adc@480 {
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 {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment