summaryrefslogtreecommitdiff
path: root/board/guybrush
Commit message (Collapse)AuthorAgeFilesLines
* ish: Trim down the release branchstabilize-wristpin-14469.59.B-ishstabilize-voshyr-14637.B-ishstabilize-quickfix-14695.187.B-ishstabilize-quickfix-14695.124.B-ishstabilize-quickfix-14526.91.B-ishstabilize-14695.85.B-ishstabilize-14695.107.B-ishstabilize-14682.B-ishstabilize-14633.B-ishstabilize-14616.B-ishstabilize-14589.B-ishstabilize-14588.98.B-ishstabilize-14588.14.B-ishstabilize-14588.123.B-ishstabilize-14536.B-ishstabilize-14532.B-ishstabilize-14528.B-ishstabilize-14526.89.B-ishstabilize-14526.84.B-ishstabilize-14526.73.B-ishstabilize-14526.67.B-ishstabilize-14526.57.B-ishstabilize-14498.B-ishstabilize-14496.B-ishstabilize-14477.B-ishstabilize-14469.9.B-ishstabilize-14469.8.B-ishstabilize-14469.58.B-ishstabilize-14469.41.B-ishstabilize-14442.B-ishstabilize-14438.B-ishstabilize-14411.B-ishstabilize-14396.B-ishstabilize-14395.B-ishstabilize-14388.62.B-ishstabilize-14388.61.B-ishstabilize-14388.52.B-ishstabilize-14385.B-ishstabilize-14345.B-ishstabilize-14336.B-ishstabilize-14333.B-ishrelease-R99-14469.B-ishrelease-R98-14388.B-ishrelease-R102-14695.B-ishrelease-R101-14588.B-ishrelease-R100-14526.B-ishfirmware-cherry-14454.B-ishfirmware-brya-14505.B-ishfirmware-brya-14505.71.B-ishfactory-kukui-14374.B-ishfactory-guybrush-14600.B-ishfactory-cherry-14455.B-ishfactory-brya-14517.B-ishJack Rosenthal2021-11-0510-1014/+0
| | | | | | | | | | | | | | | | | | | | | | In the interest of making long-term branch maintenance incur as little technical debt on us as possible, we should not maintain any files on the branch we are not actually using. This has the added effect of making it extremely clear when merging CLs from the main branch when changes have the possibility to affect us. The follow-on CL adds a convenience script to actually pull updates from the main branch and generate a CL for the update. BUG=b:204206272 BRANCH=ish TEST=make BOARD=arcada_ish && make BOARD=drallion_ish Signed-off-by: Jack Rosenthal <jrosenth@chromium.org> Change-Id: I17e4694c38219b5a0823e0a3e55a28d1348f4b18 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3262038 Reviewed-by: Jett Rink <jettrink@chromium.org> Reviewed-by: Tom Hughes <tomhughes@chromium.org>
* board/guybrush-dewat: Minor cleanupGwendal Grignou2021-09-231-29/+28
| | | | | | | | | | | | | | | 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-1/+27
| | | | | | | | | | | | | | | | 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>
* guybrush: Move Motion and ANX CONFIG flags to guybrushBhanu Prakash Maiya2021-08-122-0/+5
| | | | | | | | | | | | | | | | Motion sensor are only supported in guybrush convertible designs. Parade retimer is currently used by guybrush reference and OEM board. ANX flags are only required in guybrush reference board. BUG=b:194031783 BRANCH=None TEST=make BOARD=nipperkin make BOARD=guybrush Signed-off-by: Bhanu Prakash Maiya <bhanumaiya@google.com> Change-Id: Ia84f8396510ad833d033bb6743e22bbbdc4d5204 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3088587 Reviewed-by: Diana Z <dzigterman@chromium.org>
* lid_angle: Create a common callback for lid angle changesWai-Hong Tam2021-08-051-19/+0
| | | | | | | | | | | | | | | | | | | | | | Each board defines its own callback lid_angle_peripheral_enable(). The implementation is very similar. Create a common implementation and reduce the duplicated code. This CL removes the board callbacks which are identifical to the common callback. If it is slightly different, keep it and add the __override tag. The check of TEST_BUILD is unnecessary as the board callback is not linked in the test build. BRANCH=None BUG=b:194922043 TEST=Build all the images. Change-Id: I73d381730f35b80eff69399cdfc5fb54f839aee0 Signed-off-by: Wai-Hong Tam <waihong@google.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3069175 Reviewed-by: Aseda Aboagye <aaboagye@chromium.org>
* guybrush: Enable keyboard factory testRob Barnes2021-07-292-0/+18
| | | | | | | | | | | | | | Enable keyboard factory test. The keyboard pinout is similar to Ezkinil so this is used as starting point. BUG=b:178221983 TEST=ectool kbfactorytest passes BRANCH=None Change-Id: Ie365d184eb8144c2138e6ae56fe3a401b6035982 Signed-off-by: Rob Barnes <robbarnes@google.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3053096 Reviewed-by: Diana Z <dzigterman@chromium.org>
* guybrush: Use correct index for tmp112 SOCRob Barnes2021-07-211-1/+1
| | | | | | | | | | | | | | | This change fixes a bug where ADC_TEMP_SENSOR_SOC index was used in for the TMP112 SOC instead of TMP112_SOC BUG=b:176994331 BRANCH=None TEST=Check output of temps Change-Id: Ic27e38f5d4dfee3b270fe8490787575cf4cc7568 Signed-off-by: Rob Barnes <robbarnes@google.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3002883 Commit-Queue: Diana Z <dzigterman@chromium.org> Reviewed-by: Diana Z <dzigterman@chromium.org>
* guybrush: Enable LID ANGLE config on boardBhanu Prakash Maiya2021-07-171-0/+20
| | | | | | | | | | | | | | | | | | This patch implements lid_angle_peripheral_enable function. BRANCH=none BUG=b:178400750 TEST=Accel implementation tested on Guybrush $ ectool motionsense lid_angle Signed-off-by: Bhanu Prakash Maiya <bhanumaiya@chromium.org> Signed-off-by: Latchiamaran Senram <latchiamaran.senram@bosch.corp-partner.google.com> Change-Id: I0ece0c23350fd870c5fa696ae77dc221ef60dc4e Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3029667 Commit-Queue: Bhanu Prakash Maiya <bhanumaiya@google.com> Tested-by: Bhanu Prakash Maiya <bhanumaiya@google.com> Auto-Submit: Bhanu Prakash Maiya <bhanumaiya@google.com> Reviewed-by: Diana Z <dzigterman@chromium.org>
* guybrush: Move ec task list from basebord to board level.Bhanu Prakash Maiya2021-07-161-4/+17
| | | | | | | | | | | | | | | | | | | | The order of tasks in the tasklist decides the priority of the tasks. Splitting tasks between baseboard and board level puts baseboards task at low priority and board tasks at highest priority. To put motion task at right priority, patch maintains one list at board level. BRANCH=none BUG=b:178400750 TEST=Motion task implementation tested on Guybrush Signed-off-by: Bhanu Prakash Maiya <bhanumaiya@chromium.org> Signed-off-by: Latchiamaran Senram <latchiamaran.senram@bosch.corp-partner.google.com> Change-Id: Ib21e296d7c0af13f3439335f12348eb027b63e35 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3033337 Commit-Queue: Bhanu Prakash Maiya <bhanumaiya@google.com> Tested-by: Bhanu Prakash Maiya <bhanumaiya@google.com> Auto-Submit: Bhanu Prakash Maiya <bhanumaiya@google.com> Reviewed-by: Diana Z <dzigterman@chromium.org>
* guybrush: Fix default ODR of motion sensorsBhanu Prakash Maiya2021-07-151-4/+4
| | | | | | | | | | | | | | | | | | | | BMI323 and BMA422 support 12500 as the lowest ODR. BRANCH=none BUG=b:178400750 TEST=Accel implementation tested on Guybrush EC commands: > accelinfo > acceldata Signed-off-by: Bhanu Prakash Maiya <bhanumaiya@chromium.org> Signed-off-by: Latchiamaran Senram <latchiamaran.senram@bosch.corp-partner.google.com> Change-Id: Ic3cd5c304360b31abc4124e417b42a2262337e3e Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3029006 Tested-by: Bhanu Prakash Maiya <bhanumaiya@google.com> Auto-Submit: Bhanu Prakash Maiya <bhanumaiya@google.com> Commit-Queue: Diana Z <dzigterman@chromium.org> Reviewed-by: Diana Z <dzigterman@chromium.org>
* guybrush: Fix LID_ACCEL rotation matrixBhanu Prakash Maiya2021-07-151-2/+2
| | | | | | | | | | | | | | | | | | | | | After testing the LID_ACCEL on chassis the rotation matrix should be fixed for Y and Z axis. BRANCH=none BUG=b:178400750 TEST=Accel implementation tested on Guybrush EC commands: > accelinfo > acceldata Signed-off-by: Bhanu Prakash Maiya <bhanumaiya@chromium.org> Signed-off-by: Latchiamaran Senram <latchiamaran.senram@bosch.corp-partner.google.com> Change-Id: Ieb1d4e654a7417d22bb307a6f1589162ca7625e1 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3027382 Tested-by: Bhanu Prakash Maiya <bhanumaiya@google.com> Auto-Submit: Bhanu Prakash Maiya <bhanumaiya@google.com> Reviewed-by: Diana Z <dzigterman@chromium.org> Commit-Queue: Diana Z <dzigterman@chromium.org>
* Revert "Guybrush: Wait a long time to hibernate"Diana Z2021-07-151-4/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This reverts commit 4cb260ea26a3d6e18320bea2421624fa29b1b53d. Reason for revert: Next board version can correctly exit from hibernate. Original change's description: > Guybrush: Wait a long time to hibernate > > Avoid hibernating for now because hardware problems affect our ability > to wake properly. Leave the hibernate command in place, in case it's > needed for testing, but don't actually hibernate for an absurdly long > time. > > BRANCH=None > BUG=b:190056419 > TEST=on guybrush, confirm 'hibdelay' shows selected value > > Signed-off-by: Diana Z <dzigterman@chromium.org> > Change-Id: I477230e9f31cbb5be10fa9c29954e9634f227c41 > Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3018682 > Reviewed-by: Rob Barnes <robbarnes@google.com> Bug: b:190056419 Change-Id: I1c66e3fce4dcdfba76f7ab961260dd6e5c7679e3 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3032202 Auto-Submit: Diana Z <dzigterman@chromium.org> Tested-by: Diana Z <dzigterman@chromium.org> Commit-Queue: Rubber Stamper <rubber-stamper@appspot.gserviceaccount.com> Bot-Commit: Rubber Stamper <rubber-stamper@appspot.gserviceaccount.com>
* Guybrush: Add battery sleep informationDiana Z2021-07-141-0/+10
| | | | | | | | | | | | | | Two of the guybrush batteries support a sleep mode, so add that register information into the battery structures. BRANCH=None BUG=b:186774653 TEST=make -j buildall Signed-off-by: Diana Z <dzigterman@chromium.org> Change-Id: I156bf7878adbce95644cadaf071a37d5df4bf03e Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2967038 Reviewed-by: Aseda Aboagye <aaboagye@chromium.org>
* guybrush: Configure LID_ACCEL hardware without FIFOBhanu Prakash Maiya2021-07-131-5/+0
| | | | | | | | | | | | | | | | | | | | | | 1. This patch puts LID_ACCEL in forced mode. 2. This patch moves ACCEL_FIFO defines to baseboard BRANCH=none BUG=b:178213305 TEST=1. ectool motionsense Motion sensing active Sensor 0: 0 0 0 Sensor 1: 0 0 0 Sensor 2: -336 -1360 -16288 2. Lid accel data is showing up on ectool. Signed-off-by: Bhanu Prakash Maiya <bhanumaiya@chromium.org> Change-Id: If0eaa106478777a6266a77af2b47e91e354229ff Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3021753 Tested-by: Bhanu Prakash Maiya <bhanumaiya@google.com> Auto-Submit: Bhanu Prakash Maiya <bhanumaiya@google.com> Commit-Queue: Diana Z <dzigterman@chromium.org> Reviewed-by: Diana Z <dzigterman@chromium.org>
* Guybrush: Wait a long time to hibernateDiana Z2021-07-121-0/+4
| | | | | | | | | | | | | | | | Avoid hibernating for now because hardware problems affect our ability to wake properly. Leave the hibernate command in place, in case it's needed for testing, but don't actually hibernate for an absurdly long time. BRANCH=None BUG=b:190056419 TEST=on guybrush, confirm 'hibdelay' shows selected value Signed-off-by: Diana Z <dzigterman@chromium.org> Change-Id: I477230e9f31cbb5be10fa9c29954e9634f227c41 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3018682 Reviewed-by: Rob Barnes <robbarnes@google.com>
* guybrush: enable BMI323 sensor on guybrushBhanu Prakash Maiya2021-07-094-27/+123
| | | | | | | | | | | | | | | | | | | Enable BMI323 sensor as BASE ACCEL and BASE GYRO on guybrush board. BRANCH=none BUG=b:178398789 TEST=Accel implementation tested on Guybrush EC commands: > accelinfo > acceldata Signed-off-by: Bhanu Prakash Maiya <bhanumaiya@chromium.org> Change-Id: I1bda8d0836dcb62b0d4a33750246a15931c77389 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2984744 Commit-Queue: Bhanu Prakash Maiya <bhanumaiya@google.com> Tested-by: Bhanu Prakash Maiya <bhanumaiya@google.com> Auto-Submit: Bhanu Prakash Maiya <bhanumaiya@google.com> Reviewed-by: Diana Z <dzigterman@chromium.org>
* guybrush: enable BMA422 sensor on guybrushBhanu Prakash Maiya2021-06-292-0/+39
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Enable BMA422 sensor as LID ACCEL on guybrush board. BRANCH=none BUG=b:178400750 TEST=1. Flash ec.bin on Guybrush SKUA1 with BMA422 sensor 2. EC console commands > accelread 2 Current data 2: 6576 -464 14752 Last calib. data 2: 0 0 0 > accelinfo on sensor 2 name: Lid Accel active mask: 28 chip: 27 type: 0 location: 1 port: 8 addr: 24 range: 2 min_freq: 12500 max_freq: 200000 config: 0 - odr: 0mHz, ec_rate: 0us 1 - odr: 10000mHz, ec_rate: 100000us 2 - odr: 10000mHz, ec_rate: 0us 3 - odr: 0mHz, ec_rate: 0us > accelrate 2 <val> > accelres 2 Resolution for sensor 2: 12 Signed-off-by: Bhanu Prakash Maiya <bhanumaiya@chromium.org> Change-Id: I01aea418e426e546de9733b56dc465c70c704436 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2981466 Tested-by: Bhanu Prakash Maiya <bhanumaiya@google.com> Auto-Submit: Bhanu Prakash Maiya <bhanumaiya@google.com> Reviewed-by: Rob Barnes <robbarnes@google.com> Commit-Queue: Bhanu Prakash Maiya <bhanumaiya@google.com>
* guybrush: Adjust PS8811 Chan B pre-shootRob Barnes2021-06-221-3/+3
| | | | | | | | | | | | | | | Change PS8811 pre-shoot from 3dB to 1.5dB. This was incorrectly set to 3dB due to a misunderstanding of the datsheet. BUG=b:186586795 TEST=Boot guybrush BRANCH=None Signed-off-by: Rob Barnes <robbarnes@google.com> Change-Id: I49e150433408fc2b44fafb4bed406166f110fbeb Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2964957 Reviewed-by: Rock Chiu <rock.chiu@paradetech.corp-partner.google.com> Reviewed-by: Diana Z <dzigterman@chromium.org>
* guybrush: Enable base accel sensor fifoRob Barnes2021-06-211-0/+5
| | | | | | | | | | | | | | | Enable accel sensor fifo on guybrush boards. The base accel sensor relies on interrupts and fifo. BUG=b:191619818, b:187620322 TEST=Pass kernel_CrosECSysfsAccel BRANCH=None Change-Id: I697d254579fa86fa6ce5748a547142001de8048f Signed-off-by: Rob Barnes <robbarnes@google.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2976200 Reviewed-by: Diana Z <dzigterman@chromium.org> Commit-Queue: Diana Z <dzigterman@chromium.org>
* guybrush: Apply PS8811 tuning parametersRob Barnes2021-06-151-0/+26
| | | | | | | | | | | | | Applying tuning parameters recommended by retimer vendor. BUG=b:189317041 TEST=Build and boot guybrush BRANCH=None Signed-off-by: Rob Barnes <robbarnes@google.com> Change-Id: I59bf25b196a0f0da8e71bd41dffb3b9cef251666 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2920147 Reviewed-by: Diana Z <dzigterman@chromium.org>
* Guybrush: Init TMP112 sensors on S5->S3 transitionDiana Z2021-06-081-0/+8
| | | | | | | | | | | | | | | The TMP112 sensors will be tied to S5 rails, so init them as we power transition on boards past version 1. BRANCH=None BUG=b:188539950 TEST=on guybrush version 1, power on and verify no errors are present Signed-off-by: Diana Z <dzigterman@chromium.org> Change-Id: I74efb7e360329f05b33c845d556c0557d89668f9 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2940575 Reviewed-by: Rob Barnes <robbarnes@google.com> Commit-Queue: Rob Barnes <robbarnes@google.com>
* Gyubrush: Add TMP112 SOC sensor for board version 2Diana Z2021-06-071-7/+3
| | | | | | | | | | | | | | | | Add the TMP112 sensor which will be placed by the SOC and replaces the SOC ADC temperature input. BRANCH=None BUG=b:188539950 TEST=make -j buildall; load onto guybrush version 1 and verify temps read correctly Signed-off-by: Diana Z <dzigterman@chromium.org> Change-Id: Ic70d3c56e22f4e1f4343ab3f41191b46f66d2e65 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2938045 Reviewed-by: Rob Barnes <robbarnes@google.com> Commit-Queue: Rob Barnes <robbarnes@google.com>
* guybrush: Disable SOC_TEMP for board_version > 1Rob Barnes2021-05-241-0/+19
| | | | | | | | | | | | | | | | SOC_TEMP is being replaced with i2c temp sensor in board version 2. Disable SOC_TEMP so it doesn't cause thermal trips on board version 2. Move board_get_soc_temp to board level since variants will not need this logic. BUG=b:188540408 TEST=Boot guybrush, see SOC temp is correct BRANCH=None Signed-off-by: Rob Barnes <robbarnes@google.com> Change-Id: I8880b74993d0a942894f1c06346c534d1f39466d Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2906314 Reviewed-by: Diana Z <dzigterman@chromium.org>
* Guybrush: Add AEC batteryMatt_Wang2021-05-042-1/+28
| | | | | | | | | | | | | | | | Add a new battery for proto 0 support BUG=b:182847979 BRANCH=none TEST=make BOARD=guybrush Signed-off-by: Matt_Wang <Matt_Wang@compal.corp-partner.google.com> Change-Id: If359fcb262cc6232f496de62a59a604b5cee723a Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2866027 Tested-by: Matt Wang <matt_wang@compal.corp-partner.google.com> Reviewed-by: Diana Z <dzigterman@chromium.org> Commit-Queue: Matt Wang <matt_wang@compal.corp-partner.google.com> Auto-Submit: Matt Wang <matt_wang@compal.corp-partner.google.com>
* Guybrush: Add POW-TECH batteryDiana Z2021-05-032-2/+31
| | | | | | | | | | | | | | | Add a new battery for proto 0 support BRANCH=None BUG=b:186577625 TEST=on gubyrush, charge battery. Verify cutoff works and battery can come out of disconnect after cutoff Signed-off-by: Diana Z <dzigterman@chromium.org> Change-Id: Ieda447e7dc404f9138ac70b4d240fba739934d52 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2861056 Reviewed-by: Rob Barnes <robbarnes@google.com> Commit-Queue: Rob Barnes <robbarnes@google.com>
* Guybrush: Move batteries to board levelDiana Z2021-04-303-1/+70
| | | | | | | | | | | | | | | | Move battery information into the board level in anticipation of them probably varying with each board. BRANCH=None BUG=b:186577625 TEST=make -j buildall, load on guybrush with trembyle battery and ensure it's identified Signed-off-by: Diana Z <dzigterman@chromium.org> Change-Id: I1780949746cd30c3033b2c9f36d1ba8f5d331166 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2861055 Reviewed-by: Rob Barnes <robbarnes@google.com> Commit-Queue: Rob Barnes <robbarnes@google.com>
* ANX7451: Set upstream AUX FLIPRob Barnes2021-04-271-0/+11
| | | | | | | | | | | | | | | | | AUX flip control must be enabled. Otherwise alternate mode will not work on ANX7451 when cable is flipped. The USB registers use a separate i2c address that must be dynamically configured. Since there may be multiple ANX74** parts on a board, this address must be dynamically configured using a board callback. BUG=b:185276137 TEST=Display works when cable is flipped on B2 BRANCH=None Signed-off-by: Rob Barnes <robbarnes@google.com> Change-Id: I144131b2f53985d97e0be960e202366f726dd90b Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2854120 Reviewed-by: Diana Z <dzigterman@chromium.org>
* LED On/Off: Make battery LED optionalDiana Z2021-04-221-4/+5
| | | | | | | | | | | | | | | Currently, all boards using the LED On/Off module have battery LEDs. However, if we'd like to expand support to Chromeboxes then the battery LED must become optional. BRANCH=None BUG=b:185508707 TEST=make -j buildall Signed-off-by: Diana Z <dzigterman@chromium.org> Change-Id: Ieae098829ebe6c8b103f23d5abdbf70e7bcbdf2d Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2832692 Reviewed-by: Aseda Aboagye <aaboagye@chromium.org>
* Guybrush: Add LED behaviorDiana Z2021-04-133-1/+95
| | | | | | | | | | | | | | | | Use the common LED on/off states for LED behavior. Set it up for our two colors: amber and white. BRANCH=None BUG=b:184845299 TEST=on guybrush, confirm charging shows Amber, discharging is white, shutdown shows no LED on Signed-off-by: Diana Z <dzigterman@chromium.org> Change-Id: Idc57de843fd2addaaa3006d4abd8566d76b2de6b Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2818151 Reviewed-by: Rob Barnes <robbarnes@google.com> Commit-Queue: Rob Barnes <robbarnes@google.com>
* Guybrush: initial BMI160 sensorMatt_Wang2021-04-123-1/+91
| | | | | | | | | | | | | | | | | Initial base BMI160 sensor. BUG=b:178213305 BRANCH=none TEST=make -j BOARD=guybrush TEST=can read the sensor data in ec console by i2cxfer. Signed-off-by: Matt_Wang <Matt_Wang@compal.corp-partner.google.com> Change-Id: Id49ff98dc921ba173b24f3c389fcfbde337ce77c Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2783514 Tested-by: Matt Wang <matt_wang@compal.corp-partner.google.com> Reviewed-by: Bhanu Prakash Maiya <bhanumaiya@google.com> Reviewed-by: Rob Barnes <robbarnes@google.com> Commit-Queue: Rob Barnes <robbarnes@google.com>
* guybrush: Dynamically configure C1 muxRob Barnes2021-04-091-0/+78
| | | | | | | | | | | | | | | | | Two C1 muxes are currently supported for guybrush. Configure the correct C1 mux at runtime based on fw_config. Move board_c1_ps8818_mux_set to guybrush board.c since it's board specific tuning. BUG=b:184548806 TEST=Build and run on guybrush B2 BRANCH=None Signed-off-by: Rob Barnes <robbarnes@google.com> Change-Id: I6ff809a9cbd1ddc2a408d2ce84f75d6723b7844f Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2809259 Reviewed-by: Diana Z <dzigterman@chromium.org>
* guybrush: Add guybrush fw_configstabilize-glibc-13901.B-mainRob Barnes2021-04-083-0/+74
| | | | | | | | | | | | | | | | Each guybrush variant may have a different fw_config schema. Defining a schema agnostic fw_config interface at baseboard. Each guybrush variant must implement the interface. Fields that are not applicable outside a specific variant do not need to be exposed in the baseboard interface. BUG=b:178215011 TEST=Build and run on Guybrush B2 BRANCH=None Change-Id: I41d24ffddfc41d3148ba6d3685f728f6ec962919 Signed-off-by: Rob Barnes <robbarnes@google.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2722982 Reviewed-by: Diana Z <dzigterman@chromium.org>
* genvif: Use VIF overrides by defaultAbe Levkoy2021-03-301-0/+3
| | | | | | | | | | | | | | Use board-specific override files when generating VIFs for boards. BUG=b:172276715 TEST=make buildall BRANCH=none Signed-off-by: Abe Levkoy <alevkoy@chromium.org> Change-Id: I197365018ceb8197c22d631cebf4cbce1c0119f7 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2785506 Reviewed-by: Denis Brockus <dbrockus@chromium.org> Commit-Queue: Denis Brockus <dbrockus@chromium.org>
* guybrush: Fill in gpio.inc for guybrushRob Barnes2020-12-112-5/+7
| | | | | | | | | | | | | | Fill in guybrush gpio.inc based on schematic. Add minimal implementation required to get guybrush to build with gpio.inc filled in. BUG=b:175056466 TEST=Build guybrush binary BRANCH=None Change-Id: I2f66cebb02e174661950ec277175f63f85896c9c Signed-off-by: Rob Barnes <robbarnes@google.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2578256 Reviewed-by: Diana Z <dzigterman@chromium.org>
* Guybrush: Move implementation to baseboardRob Barnes2020-12-104-56/+5
| | | | | | | | | | | | | | | | Create a base_gpio.inc and base_ec.tasklist. Move nearly all the implementation to the baseboard. Parts of the implementation can be moved to the boards as needed. BUG=None TEST=Build BRANCH=None Change-Id: I3b6ae7539b152d8078f8ef49d7da143a6283d8d4 Signed-off-by: Rob Barnes <robbarnes@google.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2579647 Reviewed-by: Denis Brockus <dbrockus@chromium.org> Reviewed-by: Diana Z <dzigterman@chromium.org>
* guybrush: initial EC board setupRob Barnes2020-11-295-0/+144
Create guybrush skeleton build. Minimal configuration required to build. BUG=b:173820614 BRANCH=none TEST=make -j BOARD=guybrush Change-Id: I1e906da42abc565941e6e7e9ca2c79462556ce09 Signed-off-by: Rob Barnes <robbarnes@google.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2552855 Reviewed-by: Edward Hill <ecgh@chromium.org>