commit | a918d301fe91a21d8f9121371035c7ed35e2b4cc | [log] [tgz] |
---|---|---|
author | Kumar Gala <kumar.gala@linaro.org> | Tue Apr 28 16:35:58 2020 -0500 |
committer | Kumar Gala <kumar.gala@gmail.com> | Wed Apr 29 08:02:36 2020 -0500 |
tree | 5c96313d86444bd5f549f612c2105b0fc2f612d1 | |
parent | b8dec4805a6cec0d1094cb63a70a5b53448027c2 [diff] |
drivers: adc: adc_sam0: rework devicetree support Rework the devicetree to utilize new DT_INST macros and extract per instance data for clocks from devicetree. We add a property ('calib-offset') for the SAM{D,E}5x family of SoCs that is the bit position offset from ADC0 BIASCOMP in the NVM Software Calibration Area Mapping. For ADC0 this is typically 0 and for ADC1 this will be 14. Signed-off-by: Kumar Gala <kumar.gala@linaro.org>