summaryrefslogtreecommitdiff
path: root/zephyr/dts/bindings/adc
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2021-03-27 17:47:28 +1300
committerCommit Bot <commit-bot@chromium.org>2021-04-02 23:12:53 +0000
commit41025766295073696e2eace5b5be11cf80af525e (patch)
tree73e7a5dfe244d12b99da40c4070b0ad12a54a092 /zephyr/dts/bindings/adc
parent227d8ca20a7ac1cd6dd580b426998a36bdd22994 (diff)
downloadchrome-ec-41025766295073696e2eace5b5be11cf80af525e.tar.gz
zephyr: Update ADC shim for Zephyr 2.5
This seems to have changed with the new version. We now need to use an enum since we cannot get the label except as a string. Update it. BUG=b:175881324 BRANCH=none TEST=build Zephyr with lazor and some other CLs and see that the ADC enum is now available and there are not build errors Signed-off-by: Simon Glass <sjg@chromium.org> Change-Id: Iefa1a3582ec7d20a41b1e26a8210fdf7c8b7e1ef Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2788839 Reviewed-by: Keith Short <keithshort@chromium.org>
Diffstat (limited to 'zephyr/dts/bindings/adc')
-rw-r--r--zephyr/dts/bindings/adc/named-adc.yaml13
1 files changed, 13 insertions, 0 deletions
diff --git a/zephyr/dts/bindings/adc/named-adc.yaml b/zephyr/dts/bindings/adc/named-adc.yaml
index 91c247a20e..4e621b1484 100644
--- a/zephyr/dts/bindings/adc/named-adc.yaml
+++ b/zephyr/dts/bindings/adc/named-adc.yaml
@@ -29,3 +29,16 @@ child-binding:
type: int
default: 1
description: Division factor of ADC measurement
+ enum-name:
+ type: string
+ required: true
+ description:
+ Enum values used in the source code to refer to the ADC channels
+ enum:
+ - ADC_AMON_BMON
+ - ADC_VBUS
+ - ADC_PSYS
+ - ADC_TEMP_SENSOR_CHARGER
+ - ADC_TEMP_SENSOR_DDR_SOC
+ - ADC_TEMP_SENSOR_FAN
+ - ADC_TEMP_SENSOR_PP3300_REGULATOR