diff options
author | Simon Glass <sjg@chromium.org> | 2021-06-04 13:39:22 -0600 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-06-09 18:35:53 +0000 |
commit | 1960035367a961bd92442a6049b1be4b5cbe857c (patch) | |
tree | 97b7e56f386e466dda536b597d3b265be9d0435f /zephyr | |
parent | 6c1928b5a03691231cfc961902326485d5a33e8a (diff) | |
download | chrome-ec-1960035367a961bd92442a6049b1be4b5cbe857c.tar.gz |
zephyr: asurada: Add the rest of the ADC channels
A few of these are missing. Update them so we can use the full ADC
capabilities, needed for Zephyr.
BUG=b:189855648
BRANCH=none
TEST=with other CLs, build asurada for Zephyr
Signed-off-by: Simon Glass <sjg@chromium.org>
Change-Id: I9d52404086b3aa8dda847a015a264d1fcfd805f9
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2941811
Reviewed-by: Denis Brockus <dbrockus@chromium.org>
Reviewed-by: Keith Short <keithshort@chromium.org>
Commit-Queue: Denis Brockus <dbrockus@chromium.org>
Tested-by: Denis Brockus <dbrockus@chromium.org>
Diffstat (limited to 'zephyr')
-rw-r--r-- | zephyr/dts/bindings/adc/named-adc.yaml | 2 | ||||
-rw-r--r-- | zephyr/projects/asurada/boards/riscv/asurada/asurada.dts | 15 |
2 files changed, 15 insertions, 2 deletions
diff --git a/zephyr/dts/bindings/adc/named-adc.yaml b/zephyr/dts/bindings/adc/named-adc.yaml index fa9f9733cc..a670a371ce 100644 --- a/zephyr/dts/bindings/adc/named-adc.yaml +++ b/zephyr/dts/bindings/adc/named-adc.yaml @@ -98,3 +98,5 @@ child-binding: - ADC_TEMP_SENSOR_FAN - ADC_TEMP_SENSOR_PP3300_REGULATOR - ADC_VBUS + - ADC_VBUS_C0 + - ADC_VBUS_C1 diff --git a/zephyr/projects/asurada/boards/riscv/asurada/asurada.dts b/zephyr/projects/asurada/boards/riscv/asurada/asurada.dts index 91018284fb..5e108f15fd 100644 --- a/zephyr/projects/asurada/boards/riscv/asurada/asurada.dts +++ b/zephyr/projects/asurada/boards/riscv/asurada/asurada.dts @@ -24,8 +24,8 @@ compatible = "named-adc-channels"; adc_vbus_c0 { - label = "ADC_VBUS"; - enum-name = "ADC_VBUS"; + label = "ADC_VBUS_C0"; + enum-name = "ADC_VBUS_C0"; channel = <0>; mul = <10>; }; @@ -46,11 +46,22 @@ mul = <1000>; div = <18>; }; + adc_vbus_c1 { + label = "ADC_VBUS_C1"; + enum-name = "ADC_VBUS_C1"; + channel = <5>; + mul = <10>; + }; adc_charger_pmon { label = "ADC_PMON"; enum-name = "ADC_PMON"; channel = <6>; }; + adc-psys { + label = "ADC_PSYS"; + enum-name = "ADC_PSYS"; + channel = <6>; + }; }; named-i2c-ports { |