summaryrefslogtreecommitdiff
path: root/zephyr/projects/nissa/yaviks
Commit message (Collapse)AuthorAgeFilesLines
* yaviks: update thermal settingfactory-trogdor-15210.B-mainZick Wei2022-10-241-16/+16
| | | | | | | | | | | | | | Update thermal table to V1-2_20221024. BUG=b:253557900 BRANCH=none TEST=verify fan speed work intended. Signed-off-by: Zick Wei <zick.wei@quanta.corp-partner.google.com> Change-Id: Ib4413c7bad5dc9d5e49cd6565415f23e31b1d1bb Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3971461 Reviewed-by: Peter Marheine <pmarheine@chromium.org> Commit-Queue: Peter Marheine <pmarheine@chromium.org>
* zephyr: cleanup license informationKeith Short2022-10-212-2/+2
| | | | | | | | | | | | | | | | Remove the trailing period after ChromiumOS Authors, which is not allowed by the pre-sumbit checks. BUG=none BRANCH=none TEST=zmake build -a Signed-off-by: Keith Short <keithshort@chromium.org> Change-Id: I6075656f4b565a768448102c750b8a1299efc40d Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3968443 Reviewed-by: Yuval Peress <peress@google.com> Commit-Queue: Yuval Peress <peress@google.com> Code-Coverage: Zoss <zoss-cl-coverage@prod.google.com>
* yaviks: update keyboard mappingZick Wei2022-10-201-2/+58
| | | | | | | | | | | | | | | | Update different keyboard mapping to cbi fw_config. BUG=b:249388097, b:249388270 BRANCH=none TEST=manually update cbi fw_config and make sure keyboard work intended. LOW_COVERAGE_REASON=board-specific code Signed-off-by: Zick Wei <zick.wei@quanta.corp-partner.google.com> Change-Id: I09970d16626d74d6c103c83f9eadd217009d7fa3 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3954784 Reviewed-by: Shou-Chieh Hsu <shouchieh@chromium.org> Code-Coverage: Zoss <zoss-cl-coverage@prod.google.com> Commit-Queue: Shou-Chieh Hsu <shouchieh@chromium.org>
* yaviks: update cbi fw_config fieldZick Wei2022-10-191-0/+99
| | | | | | | | | | | | | BUG=b:251593313 BRANCH=none TEST=On yaviks, manually set fw_config make sure each function work intended. Signed-off-by: Zick Wei <zick.wei@quanta.corp-partner.google.com> Change-Id: If3448655ee6efb397dae1af6c969212670af3369 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3954783 Reviewed-by: Shou-Chieh Hsu <shouchieh@chromium.org> Commit-Queue: Shou-Chieh Hsu <shouchieh@chromium.org>
* nissa/vif: report DFPs as PDUSB hostPeter Marheine2022-10-101-2/+2
| | | | | | | | | | | | | | We now use CONFIG_SVDM_RSP_DFP_ONLY, which reports the product type as PDUSB Host. Update VIFs accordingly. BUG=b:242671457 TEST=XML changes match equivalent change in the VIF editor tool BRANCH=none Signed-off-by: Peter Marheine <pmarheine@chromium.org> Change-Id: I1e03bf8158a10a6c5e999ee32556f7996fe9ae29 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3941324 Reviewed-by: Andrew McRae <amcrae@google.com>
* yaviks: remove HDMI related codeZick Wei2022-10-063-51/+3
| | | | | | | | | | | | | yaviks design without HDMI port. BUG=b:241964549 BRANCH=none TEST=zmake build yaviks Signed-off-by: Zick Wei <zick.wei@quanta.corp-partner.google.com> Change-Id: Ic164323aa16e2f19d9297641d69a218da1003ca6 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3858967 Reviewed-by: Peter Marheine <pmarheine@chromium.org>
* yaviks: remove keyboard backlight enable pinZick Wei2022-10-063-5/+4
| | | | | | | | | | | | | Yaviks design without keyboard backlight enable pin. BUG=b:241964549 BRANCH=none TEST=Keyboard backlight work intended. Signed-off-by: Zick Wei <zick.wei@quanta.corp-partner.google.com> Change-Id: Ib226d99f64a6a7c87625b9cb433e9ce0c04d61d8 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3930165 Reviewed-by: Peter Marheine <pmarheine@chromium.org>
* yaviks: update fan settingZick Wei2022-09-301-4/+4
| | | | | | | | | | | | | | Update Fan min rpm to 2500, max rpm to 4100, pwm frequency to 25KHz. BUG=none BRANCH=none TEST=make sure fan work intended. Signed-off-by: Zick Wei <zick.wei@quanta.corp-partner.google.com> Change-Id: I0df27e3c95338be2ebe4cb5664646273962b462c Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3925092 Reviewed-by: Andrew McRae <amcrae@google.com>
* yaviks: update fan PWM settingZick Wei2022-09-301-1/+1
| | | | | | | | | | | | | Update fan prescaler to PWM_PRESCALER_C6. BUG=b:249709387 BRANCH=none TEST=make sure PWM frequency to fan not change. Signed-off-by: Zick Wei <zick.wei@quanta.corp-partner.google.com> Change-Id: I49d8d07312be396d180be3a849bc190783ebf486 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3925091 Reviewed-by: Andrew McRae <amcrae@google.com>
* yaviks: Detect the number of battery cellsKyle Lin2022-09-282-3/+21
| | | | | | | | | | | | | | | | Determine the default battery type by detecting the number of battery cells at runtime. Add the definition of default 3S battery. BUG=b:242477985 BRANCH=none TEST=verify on boards with different battery, AC only can power on system normally. Change-Id: Ib3b18cf29c2d61c539266fdae084372606512be6 Signed-off-by: Kyle Lin <kylelinck@google.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3891426 Tested-by: Zick Wei <zick.wei@quanta.corp-partner.google.com> Reviewed-by: Zhuohao Lee <zhuohao@chromium.org>
* zephyr: dts: fix a bunch of duplicate node nameFabio Baltieri2022-09-261-24/+21
| | | | | | | | | | | | | | | | | Upstream Zephyr recently introduced a change to detect duplicate dts node names, as that is against the devicetree specs. Fix various internal dts files by deduplicating few nodes and merging some aliases blocks. BRANCH=none BUG=none TEST=zmake build <board> Signed-off-by: Fabio Baltieri <fabiobaltieri@google.com> Change-Id: I8697a8dfc93748d90d11cada6b0b0b9bb3a74fe9 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3916394 Reviewed-by: Paul Fagerburg <pfagerburg@chromium.org>
* yaviks: add fan supportZick Wei2022-09-263-2/+70
| | | | | | | | | | | | | | BUG=b:241964549 BRANCH=none TEST=Probe PWM work intended. Signed-off-by: Zick Wei <zick.wei@quanta.corp-partner.google.com> Change-Id: I6545e145676549494e7e2fa2a49019de36f8da42 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3915761 Reviewed-by: Peter Marheine <pmarheine@chromium.org> Commit-Queue: Andrew McRae <amcrae@google.com> Reviewed-by: Devin Lu <devin.lu@quantatw.com> Code-Coverage: Andrew McRae <amcrae@google.com>
* yaviks: add 3S batteries supportZick Wei2022-09-221-0/+6
| | | | | | | | | | | | | | | Add batteries Cosmx si03058xl and SMP highpower_si03058xl into yaviks EC. BUG=b:245441421 BRANCH=none TEST=verify battery can discharge, charge, cut-off. Signed-off-by: Zick Wei <zick.wei@quanta.corp-partner.google.com> Change-Id: Ic820d4d7387706c0b46657c90cfeaaf398cfcaae Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3912396 Reviewed-by: Andrew McRae <amcrae@google.com> Reviewed-by: Devin Lu <devin.lu@quantatw.com>
* nereid: Use low power clock for keyboard b/l PWMAndrew McRae2022-09-211-1/+5
| | | | | | | | | | | | | | | Use low power clock for the keyboard backlight PWM so that the keyboard backlight does not flicker when using battery. BUG=b:247919980 TEST=zmake build yaviks; flash and check keyboard BRANCH=none Signed-off-by: Andrew McRae <amcrae@google.com> Change-Id: Ic76b433c1d02775c06af0827a6da17155b42538b Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3906516 Reviewed-by: Peter Marheine <pmarheine@chromium.org>
* zephyr: rework temperature sensorsDawid Niedzwiecki2022-09-201-15/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Rework how the temperature sensors are presented in dts files. A temperature sensor has to be declared independently from the named-temp-sensors node. The sensor nodes have to specify all properties that are handled by driver- i2c port/address, used adc channel etc. Children nodes of the named-temp-sensors set meta values needed for EC code like enum-names, power-good-pin and temperature thresholds. Also, every child node has a pointer to a physical temperature sensor. It implicates a different way of indexing the temperature sensors. This change is done to separate defining physical sensors from metadata for EC application and move some sensors onto i2c buses BUG=b:240619570 TEST=zmake build -a && ./twister -T zephyr/test/ && make sure temperature sensors work with the "temps" EC CC BRANCH=main Signed-off-by: Dawid Niedzwiecki <dn@semihalf.com> Change-Id: Ia0dfc0b98455e8e28233c17d5feff27a7cc5b96d Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3879364 Commit-Queue: Dawid Niedzwiecki <dawidn@google.com> Code-Coverage: Zoss <zoss-cl-coverage@prod.google.com> Reviewed-by: Keith Short <keithshort@chromium.org>
* nissa: split SoC kconfigs into top-level filesPeter Marheine2022-09-201-52/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This means we don't need to duplicate a lot of options for every board using the same chip, which is error-prone and difficult to update. Config changes that are made: * USB FRS is enabled on all RAA489000 boards (from pujjo) * Shell RX ring buffer is uniformly 256 bytes on NPCX * FPU is enabled on yaviks (matching other ITE boards) BUG=none TEST=No unexpected diff in generated zephyr configs: BOARDS=(nivviks nereid craask pujjo xivu joxer yaviks) git checkout m/main; zmake build ${BOARDS[@]} for b in ${BOARDS[@]}; do cp build/zephyr/$b/build-rw/zephyr/.config $b.config done git checkout HEAD for b in ${BOARDS[@]}; do diff -u build/zephyr/$b/build-rw/zephyr/.config $b.config done BRANCH=none Signed-off-by: Peter Marheine <pmarheine@chromium.org> Change-Id: I93d0dbc4465c1c2c63b86e40856deafabfde3101 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3905592 Reviewed-by: Andrew McRae <amcrae@google.com>
* nissa/ite: Set maximum sensor frequency to 100Hz.Sam McNally2022-09-191-0/+1
| | | | | | | | | | | | BUG=b:238597720 TEST=x86 CtsSensorTestCases can pass on nereid BRANCH=none Signed-off-by: Sam McNally <sammc@chromium.org> Change-Id: Ica8304be047ccd9bef78d8b417698672df5fdcbe Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3899958 Reviewed-by: Peter Marheine <pmarheine@chromium.org> Commit-Queue: Peter Marheine <pmarheine@chromium.org>
* yaviks: update thermistor namingZick Wei2022-09-141-6/+6
| | | | | | | | | | | | | BUG=b:241964549 BRANCH=none TEST="ectool temps all" thermistor name is intended. Signed-off-by: Zick Wei <zick.wei@quanta.corp-partner.google.com> Change-Id: I97206424eb6ed9db913d4e78a1f91e01e4994242 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3893689 Reviewed-by: Andrew McRae <amcrae@google.com> Commit-Queue: Andrew McRae <amcrae@google.com> Reviewed-by: Peter Marheine <pmarheine@chromium.org>
* yaviks: update led behaviorZick Wei2022-09-135-65/+247
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | yaviks has charge leds on left side and right side, each side have two colors: amber and white. The led behavior define as following: Charging led: led on with charging port active, other port is off. Charging: Amber. Discharging: Off. Battery Error: Blinking amber on both side (0.5 sec on, 0.5 sec off) Fuel < 10%: Blinking amber on both side (1 sec on, 1 sec off) Force idle for factory: Blinking amber (1 sec on, 1 sec off) System suspend with non-charging state: Blinking both side LED white (1 sec on, 1 sec off) BUG=b:246414045 BRANCH=none TEST=verify led behavior as intended, verify VT2 command: ectool led left/right auto/white/amber/off. Signed-off-by: Zick Wei <zick.wei@quanta.corp-partner.google.com> Change-Id: I7d7ecaba5f1a78609d9093b94b67a23a40d62812 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3878626 Commit-Queue: Andrew McRae <amcrae@google.com> Reviewed-by: Andrew McRae <amcrae@google.com> Code-Coverage: Andrew McRae <amcrae@google.com> Reviewed-by: Peter Marheine <pmarheine@chromium.org> Reviewed-by: Devin Lu <devin.lu@quantatw.com>
* zephyr: Add alternative usb_mux_chain config for nissaTomasz Michalec2022-09-131-4/+5
| | | | | | | | | | | | | | | | | | Add alternative USB mux configuration in DTS for nissa. LOW_COVERAGE_REASON=no test for nissa board yet BUG=b:234482311 TEST=zmake build -a TEST=./twister -T zephyr/test BRANCH=none Signed-off-by: Tomasz Michalec <tm@semihalf.com> Change-Id: Id367005334cc378c7495b615bab5333a72d39bf8 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3875325 Commit-Queue: Tomasz Michalec <tmichalec@google.com> Tested-by: Tomasz Michalec <tmichalec@google.com> Reviewed-by: Keith Short <keithshort@chromium.org> Reviewed-by: Adam Mills <adamjmills@google.com>
* zephyr: nissa: usb_mux: Split struct usb_mux in nissa boardsTomasz Michalec2022-09-131-6/+12
| | | | | | | | | | | | | | | | | | Update nissa boards to use new struct usb_mux_chain. BUG=b:236274003 TEST=zmake build -a TEST=./twister -T zephyr/test BRANCH=None Cq-Depend: chromium:3779618 Signed-off-by: Tomasz Michalec <tm@semihalf.com> Change-Id: Icf0dbef327d8cc5172fef960b6cecb792e1eb887 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3780417 Reviewed-by: Keith Short <keithshort@chromium.org> Code-Coverage: Zoss <zoss-cl-coverage@prod.google.com> Tested-by: Tomasz Michalec <tmichalec@google.com> Commit-Queue: Tomasz Michalec <tmichalec@google.com>
* Update license boilerplate text in source code filesMike Frysinger2022-09-1210-10/+10
| | | | | | | | | | | | | | | Normally we don't do this, but enough changes have accumulated that we're doing a tree-wide one-off update of the name & style. BRANCH=none BUG=chromium:1098010 TEST=`repo upload` works Change-Id: Icd3a1723c20595356af83d190b2c6a9078b3013b Signed-off-by: Mike Frysinger <vapier@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3891203 Reviewed-by: Jeremy Bettis <jbettis@chromium.org> Reviewed-by: Jack Rosenthal <jrosenth@chromium.org>
* yaviks: set refresh key to row3Zick Wei2022-09-121-0/+4
| | | | | | | | | | | | | | | yaviks support vivaldi keyboard which refresh key is on row3, follow up CL:3829207. BUG=none BRANCH=none TEST=verify can enter recovery by hotkey esc+refresh+power button. Signed-off-by: Zick Wei <zick.wei@quanta.corp-partner.google.com> Change-Id: I770f93d55d7e13e1f5293225b664517396493c82 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3881524 Reviewed-by: Devin Lu <devin.lu@quantatw.com> Reviewed-by: Andrew McRae <amcrae@google.com>
* yaviks: update keyboard settingZick Wei2022-09-082-9/+31
| | | | | | | | | | | | | | | | | Yaviks has keypad and 13 keys on top row function key, will update another CL mapping keyboard with fw config. BUG=none BRANCH=none TEST=verify top row function key and keypad in evtest. Signed-off-by: Zick Wei <zick.wei@quanta.corp-partner.google.com> Change-Id: Ibb62c570a56c3dcef98e6002635bdd02725ecb30 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3878625 Reviewed-by: Devin Lu <devin.lu@quantatw.com> Reviewed-by: Peter Marheine <pmarheine@chromium.org> Code-Coverage: Zoss <zoss-cl-coverage@prod.google.com> Reviewed-by: Andrew McRae <amcrae@google.com>
* yaviks: update batteries settingZick Wei2022-09-081-2/+14
| | | | | | | | | | | | BUG=b:245441421 BRANCH=none TEST=verify batteries can charge/discharge, cutoff. Signed-off-by: Zick Wei <zick.wei@quanta.corp-partner.google.com> Change-Id: I671886cc228baec3deed2955827a0e757faee085 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3840225 Reviewed-by: Andrew McRae <amcrae@google.com> Reviewed-by: Peter Marheine <pmarheine@chromium.org>
* yaviks: correct misspelled board namePeter Marheine2022-09-021-0/+0
| | | | | | | | | | | BUG=none TEST=none BRANCH=none Signed-off-by: Peter Marheine <pmarheine@chromium.org> Change-Id: I37513eb43d98fc88caf546a4d163060bad3fd066 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3865419 Reviewed-by: Andrew McRae <amcrae@google.com>
* yaviks: remove imu sensorZick Wei2022-08-294-191/+19
| | | | | | | | | | | | | | | | yaviks is clamshell system, remove imu related code. BUG=b:242933564 BRANCH=none TEST=zmake build yaviks Signed-off-by: Zick Wei <zick.wei@quanta.corp-partner.google.com> Change-Id: Ia87bc947433856e3990e4887b0f88c78e1364e36 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3837714 Reviewed-by: Devin Lu <devin.lu@quantatw.com> Reviewed-by: Andrew McRae <amcrae@google.com> Reviewed-by: Peter Marheine <pmarheine@chromium.org>
* yaviks: initial EC imageZick Wei2022-08-1912-0/+1945
Clone from nereid, rename to yaviks. BUG=b:242936869 BRANCH=none TEST=zmake build yaviks Signed-off-by: Zick Wei <zick.wei@quanta.corp-partner.google.com> Change-Id: I2146c33e17fcd8ad011dd56f05e6fd6d7fe96fee Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3837542 Reviewed-by: Andrew McRae <amcrae@google.com>