summaryrefslogtreecommitdiff
path: root/zephyr/projects
Commit message (Collapse)AuthorAgeFilesLines
...
* nissa: Update nereid generated GPIOsAndrew McRae2022-01-101-7/+7
| | | | | | | | | | | | | | 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>
* nissa: Enable smart battery configAndrew McRae2022-01-081-0/+1
| | | | | | | | | | | | | 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>
* zephyr: brya: Enable mkbp protocolRajesh Kumar2022-01-071-0/+9
| | | | | | | | | | | | | 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>
* zephyr: kingler: enable host commandEric Yilun Lin2022-01-072-1/+4
| | | | | | | | | | | | | | 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>
* corsola: enable mt8186 powerseqTing Shen2022-01-077-64/+82
| | | | | | | | | | | | | | | | | | 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>
* zephyr: dts: use GPIO_INPUT_PULL_UP and GPIO_INPUT_PULL_DOWNFabio Baltieri2022-01-0612-108/+108
| | | | | | | | | | | | | | | | | 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>
* zephyr: kingler: configure i2cEric Yilun Lin2022-01-062-47/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
* zephyr: kingler: configure ADCEric Yilun Lin2022-01-063-0/+46
| | | | | | | | | | | | | | | | | | | | 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>
* zephyr: brya: Enable motion sensorsRajesh Kumar2022-01-065-0/+337
| | | | | | | | | | | | | | | 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>
* Guybrush: Zephyr: Enable CBIDiana Z2022-01-052-4/+23
| | | | | | | | | | | | | | 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>
* Skyrim: GPIOs and Power SequencingDiana Z2022-01-057-120/+237
| | | | | | | | | | | | | | | | 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>
* nissa: Regenerate config to add pull-up pinsAndrew McRae2022-01-051-7/+7
| | | | | | | | | | | | | | | | | 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>
* zephyr: dts: regenerate nereid and nivviks dts filesFabio Baltieri2022-01-042-110/+0
| | | | | | | | | | | | | | 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>
* zephyr: dts: drop named-pwm labels and match up net namesFabio Baltieri2022-01-046-30/+16
| | | | | | | | | | | | | | | | | | 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>
* zephyr: dts: drop named-gpio labels and match up net namesFabio Baltieri2022-01-0413-583/+9
| | | | | | | | | | | | | | | | | | 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>
* zephyr: brya: Enable CBI configurationRajesh Kumar2022-01-045-4/+32
| | | | | | | | | | | | | | 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>
* krabby: Add I2C bus labels to DTSAl Semjonovs2022-01-041-0/+4
| | | | | | | | | | | | | | | | | 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>
* zephyr: kingler: fix GPIO default statesEric Yilun Lin2022-01-031-4/+13
| | | | | | | | | | | | | | | | | | - 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>
* nissa/nivviks: configure USB-CPeter Marheine2021-12-316-1/+400
| | | | | | | | | | | | | | | | | 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>
* Nissa: Add base and lid sensor to nivviks configAndrew McRae2021-12-313-0/+170
| | | | | | | | | | | | | 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>
* nissa: Add battery config to nivviksAndrew McRae2021-12-291-0/+6
| | | | | | | | | | | 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>
* nissa: Remove EC_PSYS config from nissaAndrew McRae2021-12-292-11/+0
| | | | | | | | | | | | | | | | 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>
* zephyr: kingler: fix GPIO_EC_X_GPIO1 namingEric Yilun Lin2021-12-281-3/+3
| | | | | | | | | | | | | | | | 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>
* krabby: drop board.cTing Shen2021-12-281-174/+0
| | | | | | | | | | | | | | | | 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>
* zephyr: kingler: support LGC L20L3PG2Eric Yilun Lin2021-12-281-0/+3
| | | | | | | | | | | | | | 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>
* nissa/nivviks: configure CBI EEPROMPeter Marheine2021-12-272-2/+15
| | | | | | | | | | | | | | | | | | | 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>
* zephyr: drop label properties for gpio and pwm nodesFabio Baltieri2021-12-232-79/+0
| | | | | | | | | | | | | | 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>
* nissa: Add initial nereid configurationAndrew McRae2021-12-237-8/+676
| | | | | | | | | | | | | | | | | | | 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>
* nissa: Update generated DTSAndrew McRae2021-12-231-0/+52
| | | | | | | | | | | | | | | | 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>
* nissa: Fix label of TEMP_SENSOR_2Andrew McRae2021-12-231-2/+2
| | | | | | | | | | | | | | 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>
* nissa: Fix PWM channel and inversion configAndrew McRae2021-12-231-5/+5
| | | | | | | | | | | | | | | | 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>
* nissa: Update DTS using latest generated configAndrew McRae2021-12-237-468/+518
| | | | | | | | | | | | | | | 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: Create separate interrupt and power signalsDiana Z2021-12-226-2/+201
| | | | | | | | | | | | | | | | 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>
* npcx9: Move non-common config to project configAndrew McRae2021-12-222-0/+120
| | | | | | | | | | | | | | | 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>
* zephyr: adc: update labelDawid Niedzwiecki2021-12-211-4/+4
| | | | | | | | | | | | | | | 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>
* krabby: configure adcstabilize-14411.B-mainTing Shen2021-12-214-23/+6
| | | | | | | | | | | | | | | | 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>
* nissa: enable the full-featured consolePeter Marheine2021-12-211-0/+1
| | | | | | | | | | | | | | | | 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>
* zephyr: herobrine: Add FRS Pin Enables to DTSSam Hurst2021-12-191-2/+10
| | | | | | | | | | | | | | | | | | | 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>
* zephyr: remove prompt for npcx/ite shi driversMichał Barnaś2021-12-173-9/+0
| | | | | | | | | | | | | | | | | 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>
* zephyr: Rename eSPI configuration to match cros-ecKeith Short2021-12-172-2/+2
| | | | | | | | | | | | | | 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>
* Guybrush: Zephyr: Add TMP112 sensorsDiana Z2021-12-163-0/+36
| | | | | | | | | | | | | | 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>
* Guybrush: Zephyr: Add thermistorsDiana Z2021-12-162-5/+36
| | | | | | | | | | | | | | | | | | 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>
* Zephyr: Create device tree thermistor sensorsDiana Z2021-12-161-2/+2
| | | | | | | | | | | | | | | 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>
* herobrine: Change the address of the port-0 alt PPC chipWai-Hong Tam2021-12-161-1/+1
| | | | | | | | | | | | | | | | | | 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>
* krabby: remove uart_rx from unused pinTing Shen2021-12-151-2/+0
| | | | | | | | | | | | | | | | 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>
* corsola: make write protect pin low activeTing Shen2021-12-153-9/+5
| | | | | | | | | | | | | | | | 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>
* motion_sensor: Remove |int_signal| fieldGwendal Grignou2021-12-141-2/+0
| | | | | | | | | | | | | | | | | | | | | |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>
* nissa: Remove unnecessary label attributeAndrew McRae2021-12-141-5/+0
| | | | | | | | | | | | | 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>
* nissa: Add PWM config for nivviksAndrew McRae2021-12-133-0/+59
| | | | | | | | | | | | | 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>
* baseboard/trogdor: move usbc_config.c to board levelSue Chen2021-12-112-4/+4
| | | | | | | | | | | | | | | | | | | 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>