summaryrefslogtreecommitdiff
path: root/board/dewatt
Commit message (Collapse)AuthorAgeFilesLines
* Zephyr: Add shim support for PS8818Diana Z2022-09-201-1/+1
| | | | | | | | | | | | | | | | | Add support for the PS8818 in the shim so it can be configured using the devicetree. Note that all of the PS8818's include file is "public" in that boards regularly manipulate the registers directly rather than through well-formed APIs. BRANCH=None BUG=b:244457125 TEST=zmake build skyrim Signed-off-by: Diana Z <dzigterman@chromium.org> Change-Id: Ia182ca5617d312db2acb8fb7680a7847a3a7ecb8 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3905887 Code-Coverage: Zoss <zoss-cl-coverage@prod.google.com> Reviewed-by: Keith Short <keithshort@chromium.org>
* 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>
* util: remove unused includesYuval Peress2022-08-051-0/+1
| | | | | | | | | | | | | | | | Remove these includes as they're not needed in this header. Instead, the includes should go where they're actually being used. BRANCH=none BUG=b:240574048 TEST=make buildall -j TEST=zmake build -a Signed-off-by: Yuval Peress <peress@google.com> Change-Id: I64b10af3216654b2a20caa1cabd267661a0bca39 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3791980 Reviewed-by: Tristan Honscheid <honscheid@google.com> Commit-Queue: Tristan Honscheid <honscheid@google.com>
* board/dewatt/board_fw_config.h: Format with clang-formatJack Rosenthal2022-07-011-13/+12
| | | | | | | | | | | BUG=b:236386294 BRANCH=none TEST=none Change-Id: I9839e0025c0a80f6b9399cb1ebf36a00a1fa7cde Signed-off-by: Jack Rosenthal <jrosenth@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3728224 Reviewed-by: Jeremy Bettis <jbettis@chromium.org>
* board/dewatt/board.c: Format with clang-formatJack Rosenthal2022-07-011-53/+41
| | | | | | | | | | | BUG=b:236386294 BRANCH=none TEST=none Change-Id: I152ef6898ce1ba8a4b816d13a92c9a27e1b82b23 Signed-off-by: Jack Rosenthal <jrosenth@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3728223 Reviewed-by: Jeremy Bettis <jbettis@chromium.org>
* board/dewatt/thermal.c: Format with clang-formatJack Rosenthal2022-06-301-13/+11
| | | | | | | | | | | BUG=b:236386294 BRANCH=none TEST=none Change-Id: I2cc1e224672f708f0f6c46404b891db3dceeade9 Signed-off-by: Jack Rosenthal <jrosenth@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3728201 Reviewed-by: Jeremy Bettis <jbettis@chromium.org>
* board/dewatt/board.h: Format with clang-formatJack Rosenthal2022-06-291-5/+5
| | | | | | | | | | | BUG=b:236386294 BRANCH=none TEST=none Change-Id: I13ca74f42230bb0be15693fdc131f5bbc906fbbe Signed-off-by: Jack Rosenthal <jrosenth@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3728198 Reviewed-by: Jeremy Bettis <jbettis@chromium.org>
* board/dewatt/led.c: Format with clang-formatJack Rosenthal2022-06-281-17/+26
| | | | | | | | | | | BUG=b:236386294 BRANCH=none TEST=none Change-Id: I134836db3efab83d9dbe80632c35c8d6788a94d3 Signed-off-by: Jack Rosenthal <jrosenth@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3728200 Reviewed-by: Jeremy Bettis <jbettis@chromium.org>
* board/dewatt/board_fw_config.c: Format with clang-formatJack Rosenthal2022-06-281-1/+2
| | | | | | | | | | | BUG=b:236386294 BRANCH=none TEST=none Change-Id: Ia0126a44862ac9b348c2411cf4311fd36bf06128 Signed-off-by: Jack Rosenthal <jrosenth@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3728199 Reviewed-by: Jeremy Bettis <jbettis@chromium.org>
* Dewatt: update thermal table for temp sensor CPUSue Chen2022-06-011-3/+4
| | | | | | | | | | | | | | | | | temp_host WARN 100'C HIGH 105'C HALT 108'C temp_host_release HIGH 85'C BUG=b:232981797, b:212658444 BRANCH=guybrush TEST=verify by thermal team Signed-off-by: Sue Chen <sue.chen@quanta.corp-partner.google.com> Change-Id: I22c5f93b4a398275ada68b2fff38c3406f4e28ad Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3682978 Reviewed-by: Jonathon Murphy <jpmurphy@google.com> Commit-Queue: Jonathon Murphy <jpmurphy@google.com>
* board/baseboard: Remove ACCEL_INTERRUPTSGwendal Grignou2022-05-231-1/+0
| | | | | | | | | | | | | | Use a finer grain set of define, to allow some sensors to use interrupt when wired properly and some use force mode when not using interrupt. BUG=b:230401133 BRANCH=asurada,dedede,brya TEST=Build all. Check Zephyr with herobrine. Check on bugzzy. Signed-off-by: Gwendal Grignou <gwendal@chromium.org> Change-Id: I9c7d50b88a0eaec017f4e5e2ccfdb80761d71fb3 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3609121 Reviewed-by: Yuval Peress <peress@google.com>
* MonkeyIsland: Remove resolved TODO'sJon Murphy2022-05-201-5/+0
| | | | | | | | | | | | | | | A number of TODO's are still in our code base, but have been resolved. Remove them. BUG=b:232952508 BRANCH=guybrush TEST=N/A Signed-off-by: Jon Murphy <jpmurphy@google.com> Change-Id: Ie2d2705ae546b10cded2f4612ef68a1f8aeedc67 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3656818 Reviewed-by: Diana Z <dzigterman@chromium.org> Reviewed-by: Rob Barnes <robbarnes@google.com>
* dewatt: Enable CONFIG_TABLET_MODE_SWITCHRob Barnes2022-04-161-0/+3
| | | | | | | | | | | | | | Dewatt needs CONFIG_TABLET_MODE_SWITCH enabled for tablet switch to be passed over MKBP. BUG=b:228868883 TEST=Tablet mode works on dewatt BRANCH=guybrush Change-Id: I23ff1f0d7fec02ddfa9ea39c316d857bb754305c Signed-off-by: Rob Barnes <robbarnes@google.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3589052 Reviewed-by: Robert Zieba <robertzieba@google.com>
* dewatt: Override current limit when no batteryRob Barnes2022-03-041-0/+19
| | | | | | | | | | | | | | When there is no battery, override charger current limit to be 6A to prevent brownouts during boot. BUG=b:219981049 BRANCH=guybrush TEST=no battery + 65w charger can pass 500 reboot test Change-Id: Ic57ac8217aebad9d4b7d8d724bf0f66fed8249fa Signed-off-by: Rob Barnes <robbarnes@google.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3471121 Reviewed-by: Diana Z <dzigterman@chromium.org>
* guybrush: Correctly set IOEX_USB_C1_IN_HPDRob Barnes2022-01-061-2/+2
| | | | | | | | | | | | | | | | | IOEX_USB_C1_IN_HPD was not being correctly set in board_c1_ps8818_mux_set. Code from Zork was incorrectly copied and changed to set the HPD signal to the SOC instead of the HPD signal to the PS8818 retimer. According to the PS8818 datasheet, asserting IN_HPD will pull PS8818 out of DP Idle mode. BUG=b:212640973 BRANCH=None TEST=C1 to HDMI works on Nipperkin Change-Id: I477e2f534dbddc4fa8771d4c2bf830d5c9e89d9c Signed-off-by: Rob Barnes <robbarnes@google.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3368353 Reviewed-by: Diana Z <dzigterman@chromium.org>
* Dewatt: Update thermal table and fan controlSue Chen2022-01-063-60/+115
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Modify thermal_params and fan_rpm. temp_fan_off = 27'C temp_fan_max = 80'C Add fan table: on | off | rpm ----------------------------------- X | 0'C ( 1.0%) | 0 30'C ( 5.7%) | 28'C ( 1.9%) | 3000 42'C (28.3%) | 35'C (15.1%) | 3300 45'C (34.0%) | 41'C (26.4%) | 3700 48'C (39.6%) | 44'C (32.1%) | 4000 51'C (45.3%) | 47'C (37.7%) | 4300 54'C (50.9%) | 50'C (43.4%) | 4700 66'C (73.6%) | 60'C (62.3%) | 5400 BUG=b:212658444 BRANCH=none TEST=make sure fan rpm is set correctly as the temperature of temp sensor SOC change. Signed-off-by: Sue Chen <sue.chen@quanta.corp-partner.google.com> Change-Id: Ie72289d3f7b49023b13afe8db96848ce6dd4bbf5 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3361705 Reviewed-by: Rob Barnes <robbarnes@google.com>
* baseboard/guybrush: move fan setting to board levelSue Chen2022-01-052-1/+35
| | | | | | | | | | | | | | Create new file thermal.c and move fan settings, fans[], fan_rpm and fan_conf to it. BUG=none BRANCH=none TEST="make BAORD=$BOARD" pass for guybrush family. Signed-off-by: Sue Chen <sue.chen@quanta.corp-partner.google.com> Change-Id: I83c476b3569f24722ff375a19e4dfabbd7bede07 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3361069 Reviewed-by: Rob Barnes <robbarnes@google.com>
* Dewatt: Ambient temp sensor use PCT2075Sue Chen2021-12-232-14/+21
| | | | | | | | | | | | | | | Dewatt use PCT2075 for ambient temp sensor. BUG=none BRANCH=none TEST=make sure ectool/console can read ambient temp correctly. Signed-off-by: Sue Chen <sue.chen@quanta.corp-partner.google.com> Change-Id: I6590462170816d850d96283de31a2e3620941f06 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3350268 Reviewed-by: Diana Z <dzigterman@chromium.org> Reviewed-by: Rob Barnes <robbarnes@google.com>
* Dewatt: Set Type A1 retimer to unknownSue Chen2021-12-211-1/+1
| | | | | | | | | | | | | | | | Let board_get_usb_a1_retimer always return USB_A1_RETIMER_UNKNOWN for Dewatt doesn't have type A port 1. BUG=none BRANCH=none TEST=EC console won't show "A1: PS8811 retimer not detected!" Signed-off-by: Sue Chen <sue.chen@quanta.corp-partner.google.com> Change-Id: I9a7c292ffc739e81fd1e553617f17abd25a67564 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3346760 Reviewed-by: Rob Barnes <robbarnes@google.com>
* Dewatt: fix orientation of Base accel BMI260Sue Chen2021-12-081-3/+3
| | | | | | | | | | | | | | | | orientation -1, 0, 0 0, 1, 0 0, 0, -1 BUG=b:209523571 BRANCH=none TEST=The lid angle and display are correct. Signed-off-by: Sue Chen <sue.chen@quanta.corp-partner.google.com> Change-Id: I3e1168e5211e63f1f1ddf91233bc9a2ec6443ec6 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3319619 Reviewed-by: Diana Z <dzigterman@chromium.org>
* Dewatt: Fix board fw configSue Chen2021-12-071-17/+3
| | | | | | | | | | | | | | The C1 mux only use PS8818. All skus are convertible now. BUG=b:208167982, b:204347734 BRANCH=none TEST=Can initialize successfully C1 MUX PS8818 and motion sensors with empty fw_config. Signed-off-by: Sue Chen <sue.chen@quanta.corp-partner.google.com> Change-Id: I44dc387c50e0cb2c7f7dc4f99ff0fb8841143d52 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3315763 Reviewed-by: Rob Barnes <robbarnes@google.com>
* Dewatt: fix LED behavior for Ver1 boardSue Chen2021-12-071-8/+31
| | | | | | | | | | | | | | | Ver1 board: GPIOC4(PWM2) -> Blue LED GPIO80(PWM3) -> Amber LED BUG=b:208179462 BRANCH=none TEST=LED behavior is correct for all states. Signed-off-by: Sue Chen <sue.chen@quanta.corp-partner.google.com> Change-Id: I6f07b69119583675651a76cf9f0f67caff5afad1 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3312918 Reviewed-by: Rob Barnes <robbarnes@google.com>
* Dewatt: Modify LED color and LED behavior definitionSue Chen2021-12-071-9/+10
| | | | | | | | | | | | | | | | | | | | | | Modify the color of EC_PWM_LED_FULL_L to blue, LED spec: Charging Amber on (S0/S3/S5) Full Charged Blue on (S0/S3/S5) Discharge in S3 Amber on 1sec, off 3sec Discharge in S5 Off Error Amber on 1sec, off 1sec Discharge in S0 Blue on Factory mode Blue on 2sec, Amber on 2 sec BUG=b:208179462 BRANCH=none TEST=LED behavior is correct for all states. Signed-off-by: Sue Chen <sue.chen@quanta.corp-partner.google.com> Change-Id: I9549c6b5c290b9d73fa9b18ec8d40480591c9a6e Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3312516 Reviewed-by: Rob Barnes <robbarnes@google.com>
* Dewatt: Modify motion_sensorsSue Chen2021-12-012-82/+21
| | | | | | | | | | | | | | Lid Accel -> BMA422 Base Accelgyro -> BMI260 BUG=none BRANCH=none TEST=make BOARD=dewatt Signed-off-by: Sue Chen <sue.chen@quanta.corp-partner.google.com> Change-Id: I5ec35fc992934bfdc579f6aae0ad58fa1477545f Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3292645 Reviewed-by: Diana Z <dzigterman@chromium.org>
* guybrush: move CONFIG TMP112 to variantZick Wei2021-11-231-0/+3
| | | | | | | | | | | | | | | | This patch move CONFIG_TEMP_SENSOR_TMP112 from baseboard to variant. BUG=none BRANCH=main TEST=make BOARD=nipperkin, make BOARD=guybrush, make BOARD=dewatt Signed-off-by: Zick Wei <zick.wei@quanta.corp-partner.google.com> Change-Id: Ib126d447be4be34e723085f9b9c049cc9da3807f Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3291216 Reviewed-by: Rob Barnes <robbarnes@google.com>
* Dewatt: Add new batterySue Chen2021-11-172-78/+12
| | | | | | | | | | | | | | Remove unused battery New battery: AP19B8M BUG=b:205094982 BRANCH=none TEST=make BOARD=dewatt Signed-off-by: Sue Chen <sue.chen@quanta.corp-partner.google.com> Change-Id: Ib4081a35d0bfb7d6d34ba21cdb511feca473c221 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3274697 Reviewed-by: Diana Z <dzigterman@chromium.org>
* Dewatt: support 65w adapterSue Chen2021-11-031-0/+6
| | | | | | | | | | | | | Modify max power and max current to support 65w adapter. BUG=b:204386852 BRANCH=none TEST="make BOARD" pass for board dewatt, guybrush and nipperkin Signed-off-by: Sue Chen <sue.chen@quanta.corp-partner.google.com> Change-Id: Ic18ab3021e39913f2a69550fac269e91d3e83508 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3247739 Reviewed-by: Rob Barnes <robbarnes@google.com>
* Dewatt: Initialize the vivaldi keyboardSue Chen2021-10-202-0/+26
| | | | | | | | | | | | | | Override board_vivaldi_keybd_config to change the action_keys. BUG=b:202918526 BRANCH=none TEST=make BOARD=dewatt Signed-off-by: Sue Chen <sue.chen@quanta.corp-partner.google.com> Change-Id: I51df79723283eb2032c98640537e60b1bdd7e0d0 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3211867 Reviewed-by: Rob Barnes <robbarnes@google.com> Reviewed-by: Bhanu Prakash Maiya <bhanumaiya@google.com>
* board/guybrush-dewat: Minor cleanupGwendal Grignou2021-09-231-6/+5
| | | | | | | | | | | | | | | Remove g_bmi323 static variable, use same structure as bmi160. Fill motion_sensors array with index in order. BUG=b:195264765 BRANCH=none TEST=compile Change-Id: I2c16fa64db7786bf5ff977cd6626c3d9de9b66b4 Signed-off-by: Gwendal Grignou <gwendal@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3172268 Reviewed-by: Rob Barnes <robbarnes@google.com> Reviewed-by: Diana Z <dzigterman@chromium.org>
* guybrush: move thermal sensor/setting to variantZick Wei2021-09-072-0/+172
| | | | | | | | | | | | | | | | | This patch move thermal sensor and setting to variant, let variant have their own setting. BUG=none BRANCH=none TEST=make BOARD=dewatt, make BOARD=guybrush, make BOARD=nipperkin Signed-off-by: Zick Wei <zick.wei@quanta.corp-partner.google.com> Change-Id: Ibf37a0a45d1a728abc5ed88dde230f0561698bbc Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3132547 Reviewed-by: Devin Lu <Devin.Lu@quantatw.com> Reviewed-by: Rob Barnes <robbarnes@google.com> Commit-Queue: Rob Barnes <robbarnes@google.com>
* guybrush: move unuse/led gpio to varianetZick Wei2021-09-011-0/+15
| | | | | | | | | | | | | | | | | | Move test point and led gpio from base_gpio.inc to variant. BUG=none BRANCH=none TEST=make BOARD=guybrush, make BOARD=nipperkin, make BOARD=dewatt all pass. Signed-off-by: Zick Wei <zick.wei@quanta.corp-partner.google.com> Change-Id: Ic6ef1d74e1e751cbc39c2d63cd782c70f85d0644 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3122696 Reviewed-by: Devin Lu <Devin.Lu@quantatw.com> Reviewed-by: Rob Barnes <robbarnes@google.com> Reviewed-by: Diana Z <dzigterman@chromium.org> Commit-Queue: Rob Barnes <robbarnes@google.com>
* guybrush: Enable AMD STTRob Barnes2021-08-251-5/+16
| | | | | | | | | | | | | | | | Enable AMD STT driver. The AMD STT driver will read the SOC and ambient temperature sensors every second and send the result to the SOC via SB RMI on the i2c bus. BUG=b:176994331 TEST=stt debug BRANCH=None Signed-off-by: Rob Barnes <robbarnes@google.com> Change-Id: I45157acf172dcce00c24971be70c5ec609d460dd Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3082326 Commit-Queue: Diana Z <dzigterman@chromium.org> Reviewed-by: Diana Z <dzigterman@chromium.org>
* tmp112: Support reading TMP112 in millikelvinRob Barnes2021-08-251-1/+1
| | | | | | | | | | | | | | | TMP112 supports .0625 degrees of resolution. Retain this resolution and support reading the temp in degrees millikelvin. BUG=b:176994331 TEST=Build and run on guybrush BRANCH=None Change-Id: I2802016b1edb08678953238e7f01acdd320c37cf Signed-off-by: Rob Barnes <robbarnes@google.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3001391 Commit-Queue: Diana Z <dzigterman@chromium.org> Reviewed-by: Diana Z <dzigterman@chromium.org>
* dewatt: Initial EC imageBhanu Prakash Maiya2021-08-2410-0/+802
Create the initial EC image for the dewatt variant by copying the guybrush reference board EC files into a new directory named for the variant. (Auto-Generated by create_initial_ec_image.sh version 1.5.0). BUG=b:196460993 BRANCH=None TEST=make BOARD=dewatt Signed-off-by: Bhanu Prakash Maiya <bhanumaiya@google.com> Change-Id: Ie4c683e10f15054c137784547aa535932ca77800 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3114048 Commit-Queue: Rob Barnes <robbarnes@google.com> Reviewed-by: Rob Barnes <robbarnes@google.com>