diff options
author | Eric Yilun Lin <yllin@chromium.org> | 2022-11-08 14:45:08 +0800 |
---|---|---|
committer | Chromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2022-11-16 07:28:54 +0000 |
commit | 5165e73a987491d048c3bf47fccbb68bba41d435 (patch) | |
tree | 2537518936e1240955a0c965e32b4aee642cdac3 /zephyr/program/corsola/npcx_adc.dtsi | |
parent | 1d3a7723f310fd32a64e2ba59f3ab41d7f6c9042 (diff) | |
download | chrome-ec-5165e73a987491d048c3bf47fccbb68bba41d435.tar.gz |
corsola: zephyr project organization
Firstly, renames the .dts, .conf and places to the project folder.
For the components excluding battery and led, rename them by the rule:
- kingler -> npcx
- krabby -> ite
- prj.conf -> program.conf
- prj_npcx|ite.conf -> npcx|ite_program.conf
- move prj_*.conf to $project/project.conf
- rename .dts to .dtsi
- move consolidate project dts to $project/project.overlay
There will be following CLs for the next step organizing.
- clean up krabby family dtsi sharing
- add CMakeLists.txt for projects
reference: go/zephyr-projects
BUG=b:254097516
TEST=zmake compare-binaries -a
BRANCH=corsola
Change-Id: Ia4d9fe8750300185922f7e013fbdb4bf08265de2
Signed-off-by: Eric Yilun Lin <yllin@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/4022563
Auto-Submit: Eric Yilun Lin <yllin@google.com>
Tested-by: Eric Yilun Lin <yllin@google.com>
Code-Coverage: Zoss <zoss-cl-coverage@prod.google.com>
Reviewed-by: Ting Shen <phoenixshen@chromium.org>
Commit-Queue: Ting Shen <phoenixshen@chromium.org>
Diffstat (limited to 'zephyr/program/corsola/npcx_adc.dtsi')
-rw-r--r-- | zephyr/program/corsola/npcx_adc.dtsi | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/zephyr/program/corsola/npcx_adc.dtsi b/zephyr/program/corsola/npcx_adc.dtsi new file mode 100644 index 0000000000..7b69abe48a --- /dev/null +++ b/zephyr/program/corsola/npcx_adc.dtsi @@ -0,0 +1,46 @@ +/* Copyright 2022 The ChromiumOS Authors + * Use of this source code is governed by a BSD-style license that can be + * found in the LICENSE file. + */ + +/* + * Kingler and Steelix use the same dts, take care of this when modify it. + */ + +/ { + named-adc-channels { + compatible = "named-adc-channels"; + + adc_charger_pmon_r { + enum-name = "ADC_PSYS"; + io-channels = <&adc0 0>; + /* + * ISL9238C PSYS output is 1.44 uA/W over 33K resistor. + */ + mul = <21043>; + }; + adc_ec_id0 { + enum-name = "ADC_ID_0"; + io-channels = <&adc0 1>; + }; + adc_ec_id1 { + enum-name = "ADC_ID_1"; + io-channels = <&adc0 2>; + }; + adc_charger_amon_r { + enum-name = "ADC_AMON_BMON"; + io-channels = <&adc0 3>; + mul = <1000>; + div = <18>; + }; + }; +}; + +&adc0 { + status = "okay"; + pinctrl-0 = <&adc0_chan0_gp45 + &adc0_chan1_gp44 + &adc0_chan2_gp43 + &adc0_chan3_gp42>; + pinctrl-names = "default"; +}; |