| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Update with pull-up options on GPIO.
BUG=b:201000844
TEST=zmake configure -b nereid
BRANCH=none
Signed-off-by: Andrew McRae <amcrae@google.com>
Change-Id: If64e7499902b7aa309f880b4bdddb46100220d63
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3372080
Reviewed-by: Peter Marheine <pmarheine@chromium.org>
Commit-Queue: Peter Marheine <pmarheine@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Turn on the smart battery config.
BUG=b:213410761
TEST=zmake configure -b nivviks
BRANCH=none
Signed-off-by: Andrew McRae <amcrae@google.com>
Change-Id: I6eb3302b57b8bafabc1cb363cb288a5266fa2151
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3372125
Reviewed-by: Abe Levkoy <alevkoy@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This enables MKBP protocol based communication from EC to AP.
BUG=b:212210652
BRANCH=none
TEST=make configure -B ~/tmp/brya/ brya -b
Signed-off-by: Rajesh Kumar <rajesh3.kumar@intel.com>
Change-Id: Ie80da285f613b7c34f057e66a970450eeadc64f4
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3358855
Reviewed-by: Jeremy Bettis <jbettis@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
BUG=b:203739613
TEST=hostcommand is working at AP<->EC
BRANCH=main
Change-Id: I87e98dccb3156c5134c565cc7b8632b76f76cab0
Signed-off-by: Eric Yilun Lin <yllin@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3302220
Reviewed-by: Ting Shen <phoenixshen@chromium.org>
Commit-Queue: Eric Yilun Lin <yllin@google.com>
Tested-by: Eric Yilun Lin <yllin@google.com>
Auto-Submit: Eric Yilun Lin <yllin@google.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This CL enables mt8186 power sequence on Corsola devices.
BUG=b:206338930, b:203739613
TEST=1) zmake krabby/kingler
2) See CL:3233783 for more detailed tests
BRANCH=none
Cq-Depend: chromium:3233783
Signed-off-by: Ting Shen <phoenixshen@google.com>
Change-Id: I5c5e34034ca605797c6995769a888b4eb6ed201d
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3366102
Tested-by: Ting Shen <phoenixshen@chromium.org>
Auto-Submit: Ting Shen <phoenixshen@chromium.org>
Reviewed-by: Eric Yilun Lin <yllin@google.com>
Commit-Queue: Ting Shen <phoenixshen@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Replace a bunch of instances of (GPIO_INPUT | GPIO_PULL_UP) and
(GPIO_INPUT | GPIO_PULL_DOWN) with the equivalent GPIO_INPUT_PULL_UP and
GPIO_INPUT_PULL_DOWN.
BRANCH=none
BUG=b:208436570
TEST=build on volteer
TEST=cq dry run
TEST=zmake testall
Signed-off-by: Fabio Baltieri <fabiobaltieri@google.com>
Change-Id: I6c66cbcdc2ae9a78431f0c5e5cf288534eb15012
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3370133
Reviewed-by: Aaron Massey <aaronmassey@google.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
I2C0: 400K
Lid Accel: BMA422
Base IMU: BMI323
I2C1: 1M
C0 BC1.2: PI3USB9201
C0 TCPC: ANX3447
C0 PPC: NX20P3483
I2C2: 1M
C1 MUX: PS8743
C1 PPC: NX20P3483
C1 TCPC: RT1718S
I2C3: 400K
Charger: ISL9238C
CBI EEPROM
I2C5: 100K
Smart Battery
BUG=b:203739613
TEST=i2c scan;
BRANCH=main
Change-Id: I2826668c03f8cf822e389acf099226d29698f8d0
Signed-off-by: Eric Yilun Lin <yllin@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3302221
Reviewed-by: Ting Shen <phoenixshen@chromium.org>
Tested-by: Eric Yilun Lin <yllin@google.com>
Auto-Submit: Eric Yilun Lin <yllin@google.com>
Commit-Queue: Eric Yilun Lin <yllin@google.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
BUG=b:203739613
TEST=uart:~$ adc
TEST=uart:~$ adc
ADC_CHARGER_PMON_R = 3345837 mV
ADC_EC_ID0 = 96 mV
ADC_EC_ID1 = 165 mV
ADC_AMON_R = 444 mV
BRANCH=none
Change-Id: I746a7d45b6993f87fd9fdb74f9b06f380cb8072d
Signed-off-by: Eric Yilun Lin <yllin@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3302219
Reviewed-by: Rong Chang <rongchang@chromium.org>
Reviewed-by: Ting Shen <phoenixshen@chromium.org>
Tested-by: Eric Yilun Lin <yllin@google.com>
Auto-Submit: Eric Yilun Lin <yllin@google.com>
Commit-Queue: Eric Yilun Lin <yllin@google.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Enable motion sensor driver configuration for brya
BUG=b:211877647
BRANCH=none
TEST=zmake testall
TEST=EC console command: "accelinfo","accelrate" and "accelread"
Signed-off-by: Rajesh Kumar <rajesh3.kumar@intel.com>
Change-Id: Ifb7c2923cad7b5ed87df0ead39118471ffc4bd8c
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3355355
Reviewed-by: Keith Short <keithshort@chromium.org>
Commit-Queue: Keith Short <keithshort@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Set up our CBI i2c bus and device.
BRANCH=None
BUG=b:208515128,b:195137794
TEST=on guybrush, verify cbi command dump matches the ECOS
version
Signed-off-by: Diana Z <dzigterman@chromium.org>
Change-Id: I776b3f11cc3a0c61da754c73d708f239d1eff702
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3352541
Reviewed-by: Keith Short <keithshort@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Break out any differing GPIOs into the board .dts files, and change the
main gpio_map.h and power_signals.c files to reflect what skyrim needs
for interrupts and power sequencing.
BRANCH=None
BUG=b:208515128
TEST=zmake testall
Signed-off-by: Diana Z <dzigterman@chromium.org>
Change-Id: If007bf77dc3d52616f97894d193af7b0e5cea4c2
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3352540
Reviewed-by: Rob Barnes <robbarnes@google.com>
Reviewed-by: Keith Short <keithshort@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Add support for input pull-up and pull-down.
Regenerated by:
./pinmap -output nivviks_generated.dts -chip=NPCX993 /tmp/nissa.csv
BUG=b:201000681
TEST=zmake configure -b nivviks
BRANCH=none
Signed-off-by: Andrew McRae <amcrae@google.com>
Change-Id: I2e363a5a1e91383b73829be265efdbe26b4b13bc
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3367364
Reviewed-by: Denis Brockus <dbrockus@chromium.org>
Commit-Queue: Denis Brockus <dbrockus@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Regenerate dts files for nereid and nivviks, this drops a bunch of label
properties.
BRANCH=none
BUG=b:208436570
TEST=cq dry-run
Signed-off-by: Fabio Baltieri <fabiobaltieri@google.com>
Change-Id: Ie917b1edf240639dab7930a1b5a2c699b97b347c
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3362468
Reviewed-by: Andrew McRae <amcrae@google.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Label property for named-pwm nodes is unused sice:
dcf34010e2 zephyr: use node name for gpio and pwm structures
Drop the label property from most board dts files, and change the node
name to match the net name used in the board schematics.
BRANCH=none
BUG=b:208436570
TEST=cq dry-run
Signed-off-by: Fabio Baltieri <fabiobaltieri@google.com>
Change-Id: I906ec8010a5bed5c14972e39253ce1a13105fcd6
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3362466
Reviewed-by: Sam Hurst <shurst@google.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Label property for named-gpio nodes is unused sice:
dcf34010e2 zephyr: use node name for gpio and pwm structures
Drop the label property from most board dts files, and in few cases
change the node name to match the net name used in the board schematics.
BRANCH=none
BUG=b:208436570
TEST=cq dry-run
Signed-off-by: Fabio Baltieri <fabiobaltieri@google.com>
Change-Id: Ic1d97ee216710e94640c854767237106fbeabf6c
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3362465
Reviewed-by: Denis Brockus <dbrockus@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Enable CBI configuration on brya.
BUG=b:212660485
BRANCH=none
TEST=zmake testall and ec console command "cbi"
Signed-off-by: Rajesh Kumar <rajesh3.kumar@intel.com>
Change-Id: I17d00546d2d7b950aae055d0c5d7ef0fa1ffd7b7
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3362496
Reviewed-by: Vijay P Hiremath <vijay.p.hiremath@intel.com>
Reviewed-by: Keith Short <keithshort@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Best practice to override the label for I2C bus from schematic.
BUG=b:210129104
TEST=Unit tests
BRANCH=NONE
Signed-off-by: Al Semjonovs <asemjonovs@google.com>
Change-Id: I04b525483fc40a198aefd9c483672ef4eb02c9d3
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3354944
Auto-Submit: Al Semjonovs <asemjonovs@google.com>
Reviewed-by: Keith Short <keithshort@chromium.org>
Reviewed-by: Eric Yilun Lin <yllin@google.com>
Tested-by: Al Semjonovs <asemjonovs@google.com>
Commit-Queue: Al Semjonovs <asemjonovs@google.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- Set GPIOE3, GPIO40 low-voltage pin
- Set EC_PEN_CHG_DIS_ODL input
- EN_PP5000_Z2 default high
BUG=b:203739613
TEST=measure the pins and ensure they are correct
BRANCH=none
Change-Id: Ib8f9ed5a3fa5aa73fd1b9acd82a36b750c1633d8
Signed-off-by: Eric Yilun Lin <yllin@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3322213
Tested-by: Eric Yilun Lin <yllin@google.com>
Auto-Submit: Eric Yilun Lin <yllin@google.com>
Reviewed-by: Ting Shen <phoenixshen@chromium.org>
Commit-Queue: Ting Shen <phoenixshen@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This enables chargers, TCPCs, BC1.2 and muxes all at once because each
is intertwined with the whole of USB-C support.
Board-specific functions are largely taken from lalala's implementation,
since that board also uses dual RAA489000s.
BUG=b:211693800,b:212490923
TEST=builds
BRANCH=none
Signed-off-by: Peter Marheine <pmarheine@chromium.org>
Change-Id: Ib84324d29d4435ed1a4dfeb4d48c3a79afda5516
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3354263
Reviewed-by: Andrew McRae <amcrae@google.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Add base and lid sensors to nivviks config.
BUG=b:212477477
TEST=zmake testall; zmake configure -b nivviks
BRANCH=none
Cq-Depend: chromium:3360326
Signed-off-by: Andrew McRae <amcrae@google.com>
Change-Id: Ieced286a428f00ff66113bf891c53bff06f2f026
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3361058
Reviewed-by: Peter Marheine <pmarheine@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
| |
BUG=b:212484644
TEST=zmake configure -b nivviksA
BRANCH=none
Signed-off-by: Andrew McRae <amcrae@google.com>
Change-Id: Icc7b6fc26de6b1009e17456a208228bb92878cbd
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3360318
Reviewed-by: Peter Marheine <pmarheine@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
EC_PSYS is no longer used, so remove the related config.
Regenerated DTS as:
pinmap --chip=NPCX993 --output=nivviks_generated.dts /tmp/nissa.csv
BUG=b:211828420
TEST=zmake configure -b nivviks
Signed-off-by: Andrew McRae <amcrae@google.com>
BRANCH=none
Change-Id: Ia965c86d389a61f9ae9e250a014df7e8adb5d03e
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3354264
Reviewed-by: Peter Marheine <pmarheine@chromium.org>
Commit-Queue: Peter Marheine <pmarheine@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The name was reversed.
BUG=b:203739613
TEST=zmake testall
BRANCH=none
Change-Id: Ib29fa1845364c6566cc4d333908da4315b4ab3ca
Signed-off-by: Eric Yilun Lin <yllin@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3319980
Tested-by: Eric Yilun Lin <yllin@google.com>
Auto-Submit: Eric Yilun Lin <yllin@google.com>
Reviewed-by: Rong Chang <rongchang@chromium.org>
Commit-Queue: Eric Yilun Lin <yllin@google.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
this file is unused
BUG=none
TEST=zmake configure -b krabby
BRANCH=none
Signed-off-by: Ting Shen <phoenixshen@google.com>
Change-Id: I0976c1bf75078fbf10fc015f9b5afcf53a8dce4a
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3354665
Reviewed-by: Rong Chang <rongchang@chromium.org>
Commit-Queue: Ting Shen <phoenixshen@chromium.org>
Tested-by: Ting Shen <phoenixshen@chromium.org>
Auto-Submit: Ting Shen <phoenixshen@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
BUG=b:209889887
TEST=battery can be probed
BRANCH=none
Change-Id: I65022ef84fee0344c052b746679124aab646dea7
Signed-off-by: Eric Yilun Lin <yllin@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3325625
Tested-by: Eric Yilun Lin <yllin@google.com>
Auto-Submit: Eric Yilun Lin <yllin@google.com>
Reviewed-by: Ting Shen <phoenixshen@chromium.org>
Commit-Queue: Ting Shen <phoenixshen@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This enables the CBI shim and configures the CBI EEPROM on I2C 0.
GPIO generation will need some changes to support the requisite changes
to GPIO definitions, because other device tree fragments need to refer
to the GPIO nodes.
BUG=b:211693800
TEST=builds
BRANCH=none
Change-Id: Id7bbd8545a18db2701b0ea528dd14ccb9015351d
Signed-off-by: Peter Marheine <pmarheine@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3351436
Reviewed-by: Andrew McRae <amcrae@google.com>
Reviewed-by: Keith Short <keithshort@chromium.org>
Commit-Queue: Andrew McRae <amcrae@google.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Drop the (now unused) label properties on Volteer GPIO and PWMs.
BRANCH=none
BUG=b:208436570
TEST=build and run on volteer
Signed-off-by: Fabio Baltieri <fabiobaltieri@google.com>
Change-Id: I52a52749fdafdaf17d46cae5cee971d527dd9e13
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3352466
Reviewed-by: Keith Short <keithshort@chromium.org>
Commit-Queue: Keith Short <keithshort@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Add initial Nereid files and configuration.
Quite a lot of configuration disabled because of the
broken host interface.
GPIO DTS generated by:
./pinmap --chip=IT81302 --output=nereid_generated.dts /tmp/nissa.csv
BUG=b:201000844
TEST=zmake configure -b nereid
BRANCH=none
Signed-off-by: Andrew McRae <amcrae@google.com>
Change-Id: I1f6b2c8f5199d3b2242e41de133b12260eced836
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3353049
Reviewed-by: Peter Marheine <pmarheine@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Update the generated DTS with latest pinmap output.
Generated by:
pinmap --chip=NPCX993 --output=nivviks_generated.dts /tmp/nissa.csv
BUG=b:201000681
TEST=zmake configure -b nivviks
BRANCH=none
Signed-off-by: Andrew McRae <amcrae@google.com>
Change-Id: I4f9a764256597d44055d1242daa939dcb0cfe6f2
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3354257
Reviewed-by: Peter Marheine <pmarheine@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
TEMP_SENSOR_2 is placed near the batter charger, so
label it accordingly.
BUG=b:210070037
TEST=zmake configure -b nivviks
BRANCH=none
Signed-off-by: Andrew McRae <amcrae@google.com>
Change-Id: I1b107ff08449a22fa7b072641a523b20496742f6
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3353046
Reviewed-by: Peter Marheine <pmarheine@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Fix the DTS PWM channel and inversion configs.
Generated by:
./pinmap --chip=NPCX993 --output=nivviks_generated.dts /tmp/nissa.csv
BUG=b:211697223
TEST=zmake configure -b nivviks
BRANCH=none
Signed-off-by: Andrew McRae <amcrae@google.com>
Change-Id: I0649719565db61712c9350e9977d459c71616643
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3353045
Reviewed-by: Peter Marheine <pmarheine@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Use the auto-generated DTS along with an overlay file,
replacing the manually created configs.
BUG=b:201000681
TEST=zmake configure -b nivviks
BRANCH=none
Signed-off-by: Andrew McRae <amcrae@google.com>
Cq-Depend: chromium:3343699
Change-Id: I946e51d4d034c300dd1277e5be689f789d872809
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3343698
Reviewed-by: Keith Short <keithshort@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Skyrim and guybrush will need to differ in their interrupt and power
sequencing behavior, so create separate files for them until support for
guybrush is dropped.
BRANCH=None
BUG=b:208515128
TEST=zmake testall
Signed-off-by: Diana Z <dzigterman@chromium.org>
Change-Id: I61958a431b021e1d76df1971f0d73c0b4089cc9a
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3352539
Reviewed-by: Keith Short <keithshort@chromium.org>
Commit-Queue: Keith Short <keithshort@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Move the non-common DTS config to project specific
DTS config for the npcx9 Zephyr board.
BUG=b:211056202
TEST=zmake configure -b {kingler,krabby,nissa}
BRANCH=none
Signed-off-by: Andrew McRae <amcrae@google.com>
Change-Id: I407495de9b46731afb79c1610434ce855ec444c9
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3343702
Reviewed-by: Abe Levkoy <alevkoy@chromium.org>
Commit-Queue: Keith Short <keithshort@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Correct the description of the label property and remove redundant
information from the strings e.g. "ADC_". The string is used only to
describe a channel in the adc console command.
BUG=b:208435885
TEST=zmake testall
BRANCH=main
Signed-off-by: Dawid Niedzwiecki <dn@semihalf.com>
Change-Id: Ia6af238e655362223959318821e0e36dd60fae94
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3347650
Reviewed-by: Keith Short <keithshort@chromium.org>
Commit-Queue: Keith Short <keithshort@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Configure ADC channels correctly, and also remove the unused isl9238c
code to make this CL compilable.
BUG=b:210754899
TEST=run `adc` command, verify vbus value looks reasonable
BRANCH=main
Signed-off-by: Ting Shen <phoenixshen@google.com>
Change-Id: If29ffce4f626e11062cc406322480e1f34aed6f3
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3341474
Reviewed-by: Eric Yilun Lin <yllin@google.com>
Commit-Queue: Ting Shen <phoenixshen@chromium.org>
Tested-by: Ting Shen <phoenixshen@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This costs ~16KB in Flash, but features like help and autocomplete are
very useful for debugging (and can be disabled later if we need to
reclaim that code space).
BUG=none
TEST=builds
BRANCH=none
Change-Id: If28d0deda297a3d200db76619b19dcdafade2eb0
Signed-off-by: Peter Marheine <pmarheine@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3350368
Reviewed-by: Andrew McRae <amcrae@google.com>
Commit-Queue: Andrew McRae <amcrae@google.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Add Fast Role Swap Pin Enable device tree nodes
to gpio.dts. This configures the pins as outputs
and sets them low.
BRANCH=none
BUG=b:211012670
TEST=Measured TP66 on board rev 1 and verified that
it was low.
Signed-off-by: Sam Hurst <shurst@google.com>
Change-Id: Ida36c93c41c6991d183a25921224e3d393d38c85
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3349024
Tested-by: Sam Hurst <shurst@google.com>
Reviewed-by: Wai-Hong Tam <waihong@google.com>
Commit-Queue: Wai-Hong Tam <waihong@google.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This commit removes prompt for SHI_NPCX and SHI_IT8XXX2.
They will be automatically enabled depending on host command
interface and soc family.
BRANCH=main
BUG=b:195416058
TEST=zmake testall
Change-Id: Ic84982697de4bd3363d56c6e34e188006ea6c0e4
Signed-off-by: Michał Barnaś <mb@semihalf.com>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3214035
Reviewed-by: Jack Rosenthal <jrosenth@chromium.org>
Commit-Queue: Keith Short <keithshort@chromium.org>
Tested-by: Keith Short <keithshort@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Rename PLATFORM_EC_ESPI to PLATFORM_EC_HOST_INTERFACE_ESPI to match the
cros-ec config CONFIG_HOST_INTERFACE_ESPI.
BUG=b:195416058
BRANCH=main
TEST=zmake testall
Signed-off-by: Keith Short <keithshort@chromium.org>
Change-Id: I30d8448854601c137f54152424c5ddac62a21cce
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3095844
Reviewed-by: Jeremy Bettis <jbettis@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Add the TMP112 sensors for the board.
BRANCH=None
BUG=b:195137794
TEST=on guybrush, load and verify temperatures from all sensors seem
valid, fan sounds like it's running at expected speed for temperature
Signed-off-by: Diana Z <dzigterman@chromium.org>
Change-Id: I41c81e88e08a659a4d70751622f6cb723b61e58c
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3340224
Reviewed-by: Jack Rosenthal <jrosenth@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Add the two thermistor sensors on the charger and memory. Note that
memory read will be different from CrosEC version, since it was
previously going through a chipset check in the board code.
Also adjust ADC node names to follow Linux convention with a dash.
BRANCH=None
BUG=b:195137794
TEST=load onto guybrush, confirm reasonable looking temperatures
Signed-off-by: Diana Z <dzigterman@chromium.org>
Change-Id: Ia7d8efc8fdc3422b290b30ae441719779675c53b
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3340218
Reviewed-by: Jack Rosenthal <jrosenth@chromium.org>
Reviewed-by: Keith Short <keithshort@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Since not all themerature sensors are thermistors, move the thermistor
fields into their own temp-sensor-thermistor definition.
BRANCH=None
BUG=b:195137794
TEST=zmake testall
Signed-off-by: Diana Z <dzigterman@chromium.org>
Change-Id: Ic6d06065145f784bb4f57677fa01e247629bb941
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3340216
Reviewed-by: Jack Rosenthal <jrosenth@chromium.org>
Reviewed-by: Keith Short <keithshort@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The PPC SYV682C chip uses the address 0x41 (7-bit). The ADDR pin has
44.2K Ohm pull-down.
BRANCH=None
BUG=b:210919549
TEST=Plugged a power source to the port-0, the charge manager
selected a port-0 supplier:
uart:~$ chgsup
port=0, type=2, cur=1500mA, vtg=5000mV, lsm=1
Change-Id: I45d37d305a4d38326104c2e6c34a074fe9d7299b
Signed-off-by: Wai-Hong Tam <waihong@google.com>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3343666
Reviewed-by: Sam Hurst <shurst@google.com>
Commit-Queue: Sam Hurst <shurst@google.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
CL:3315765 sets unused pins as INPUT|PULL_UP. This should not apply to
UART pins.
BUG=none
TEST=ec uart works
BRANCH=main
Signed-off-by: Ting Shen <phoenixshen@google.com>
Change-Id: I66acfc09cff301163918b06ee46affc3d016b142
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3340873
Reviewed-by: Eric Yilun Lin <yllin@google.com>
Commit-Queue: Ting Shen <phoenixshen@chromium.org>
Tested-by: Ting Shen <phoenixshen@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Change EC_FLASH_WP to EC_FLASH_WP_ODL on Krabby.
Also remove high-active WP support since corsola won't need it
BUG=b:210770334
TEST=build krabby & kingler
BRANCH=none
Signed-off-by: Ting Shen <phoenixshen@google.com>
Change-Id: I267cf5cb27c39989a525beb77c31cf912dc1ac53
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3340582
Reviewed-by: Eric Yilun Lin <yllin@google.com>
Commit-Queue: Ting Shen <phoenixshen@chromium.org>
Tested-by: Ting Shen <phoenixshen@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
|int_signal| was used to check interrupt signal to
protect from interrupt coming while processing FIFO.
Instead, use loop until all FIFO samples are processed,
as used in linux kernel sensor fifo routine.
[See for example see st_lsm6dsx_handler_thread() in
driver/iio/imu/st_lsm6dsx/st_lsm6dsx_core.c].
BUG=b:207055975,b:129159505
BRANCH="asurada atlas chameleon dedede drallion endeavour fpmcu grunt
hatch icarus kalista keeby kukui mistral nami nocturne octopus poppy
puff quiche rammus sarien trogdor volteer zork"
TEST=testall, both cros_ec and zephyr.
Signed-off-by: Gwendal Grignou <gwendal@chromium.org>
Change-Id: I3cfd63c73a7361522ddf42a686dcffdac38d8741
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3328808
Reviewed-by: Diana Z <dzigterman@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The I2C DTS config does not require a label attribute.
BUG=b:210527501
TEST=zmake configure -b nivviks
BRANCH=none
Signed-off-by: Andrew McRae <amcrae@google.com>
Change-Id: I4cfc402ff8932657270527b99aace35be2aab7c6
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3336637
Reviewed-by: Jeremy Bettis <jbettis@chromium.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Add PWM config for nissa variant nivviks.
BUG=b:210365971
TEST=zmake configure -b nivviks
BRANCH=none
Signed-off-by: Andrew McRae <amcrae@google.com>
Change-Id: I33a14dc78323951593ed67219e8f6a5ace74b2d6
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3330378
Reviewed-by: Fabio Baltieri <fabiobaltieri@google.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
move baseboard/trogdor/usbc_config.c to board file to
let board modify charger_profile_override.
BUG=none
BRANCH=trogdor
TEST="make BOARD" build pass for trogdor family (pompom,
pazquel, coachz, lazor, marzipan, homestar,
wormdingler, trogdor, mrbland, quackingstick,
kingoftown)
"zmake -D testall" without ERROR message.
Signed-off-by: Sue Chen <sue.chen@quanta.corp-partner.google.com>
Change-Id: I6dc71f64a1275fa1a71692f43611d3888f780cb6
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3255090
Reviewed-by: Wai-Hong Tam <waihong@google.com>
Commit-Queue: Bob Moragues <moragues@chromium.org>
|