summaryrefslogtreecommitdiff
path: root/zephyr/dts/bindings
Commit message (Collapse)AuthorAgeFilesLines
* zephyr: add temperature sensor nameZick Wei2022-09-141-0/+1
| | | | | | | | | | | | | | | Add TEMP_SENSOR_5V_REGULATOR to enum names. BUG=none BRANCH=none TEST=none Signed-off-by: Zick Wei <zick.wei@quanta.corp-partner.google.com> Change-Id: I196d10cc6108824297401f2145a88bf1f070e9de Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3891563 Reviewed-by: Peter Marheine <pmarheine@chromium.org> Commit-Queue: Andrew McRae <amcrae@google.com> Reviewed-by: Andrew McRae <amcrae@google.com>
* zephyr: Support alternative usb_mux_chain config in DTSTomasz Michalec2022-09-131-2/+17
| | | | | | | | | | | | | | | | | | | | | Add support for alternative usb_mux configuration from the devicetree. Alternate USB mux chain is created by adding "cros-ec,usb-mux-chain" in DTS with alternative-chain property. To enable alternate configuration, USB_MUX_ENABLE_ALTERNATE_NODE macro has to be used at runtime. BUG=b:234482311 TEST=zmake build -a TEST=./twister -T zephyr/test BRANCH=none Signed-off-by: Tomasz Michalec <tm@semihalf.com> Change-Id: I0ae8889b225800d8741f01f8ea70c5f4f5547065 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3700330 Reviewed-by: Keith Short <keithshort@chromium.org> Tested-by: Tomasz Michalec <tmichalec@google.com> Commit-Queue: Tomasz Michalec <tmichalec@google.com>
* zephyr: usb_mux: Update shim to use struct usb_mux_chainTomasz Michalec2022-09-132-7/+32
| | | | | | | | | | | | | | | | | | | | Update Zephyr shim layer to generate struct usb_mux_chain from DTS. Now chain has separate node instead of property in named-usbc-port. BUG=b:236274003 TEST=zmake build -a TEST=./twister -T zephyr/test BRANCH=None Cq-Depend: chromium:3780414, chromium:3780415, chromium:3780416 Cq-Depend: chromium:3780417, chromium:3780418, chromium:3780419 Cq-Depend: chromium:3780420, chromium:3780421, chromium:3858650 Signed-off-by: Tomasz Michalec <tm@semihalf.com> Change-Id: I3bc1cccc33fe64e7743baa1fe0a58c37ca1dce7f Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3779618 Commit-Queue: Tomasz Michalec <tmichalec@google.com> Tested-by: Tomasz Michalec <tmichalec@google.com> Reviewed-by: Keith Short <keithshort@chromium.org>
* Update license boilerplate text in source code filesMike Frysinger2022-09-12164-164/+164
| | | | | | | | | | | | | | | 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>
* zephyr: Create RTC emulatorAl Semjonovs2022-09-081-0/+9
| | | | | | | | | | | | | | Emulate RTC driver BUG=b:236074639 BRANCH=NONE TEST=./twister -T zephyr/test Signed-off-by: Al Semjonovs <asemjonovs@google.com> Change-Id: Ib1073c0e30c0c39d8e778c228a89cc9b6638c887 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3880865 Code-Coverage: Zoss <zoss-cl-coverage@prod.google.com> Reviewed-by: Tomasz Michalec <tmichalec@google.com>
* Zephyr: Add AOZ1380 to PPC devicetreeDiana Z2022-09-081-0/+9
| | | | | | | | | | | | | | | | Add the AOZ1380 as an option into the zephyr shim for boards to set up in their devicetree. BRANCH=None BUG=b:244457125 TEST=zmake build skyrim; make -j buildall Signed-off-by: Diana Z <dzigterman@chromium.org> Change-Id: I1876cdca462fe9d7db0dcc0f4d2043cb43639c6d Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3880670 Reviewed-by: Keith Short <keithshort@chromium.org> Code-Coverage: Zoss <zoss-cl-coverage@prod.google.com> Commit-Queue: Keith Short <keithshort@chromium.org>
* Zephyr: Add alternative charger to the device treeDiana Z2022-09-011-0/+5
| | | | | | | | | | | | | | Some boards may use an alternative charger chip option, so enable this in the devicetree, similar to the alternative PPC chip. BRANCH=None BUG=b:231153273 TEST=zmake buildall Signed-off-by: Diana Z <dzigterman@chromium.org> Change-Id: Ie95671d74b0df57fd43ded73fb548e849d269c69 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3868032 Reviewed-by: Keith Short <keithshort@chromium.org>
* zephyr: Reorganize USB-C chip yaml filesTomasz Michalec2022-09-0115-0/+0
| | | | | | | | | | | | | | | | | | | | Move DTS bindings for USB-C related devices into sub-directories specific for their types. Crated sub-directories under zephyr/dts/bindings/usbc are tcpc, bc12, and ppc. USB-C muxes have their sub-directory already created. BUG=b:229420806 TEST=zmake build -a TEST=./twister -T zephyr/test BRANCH=None Signed-off-by: Tomasz Michalec <tm@semihalf.com> Change-Id: Ic1344e818cd80a6bf400f0b641c1caac4ade5fb4 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3670274 Tested-by: Tomasz Michalec <tmichalec@google.com> Reviewed-by: Keith Short <keithshort@chromium.org> Commit-Queue: Keith Short <keithshort@chromium.org> Auto-Submit: Tomasz Michalec <tmichalec@google.com>
* temp-sensor-rt9490: migrate to common thermistor codeTing Shen2022-09-011-0/+4
| | | | | | | | | | | | | | | | | | | Reuse existing linear interpolation algorithm and dts structure for rt9490 temperature calculation. BUG=none TEST=`temps` in ec console looks reasonable: ec:~$ temps ambient 324 K (= 51 C) charger 322 K (= 49 C) BRANCH=none Signed-off-by: Ting Shen <phoenixshen@google.com> Change-Id: If69d9332d81a5b23b851c76c2e0539d62cbdfe09 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3865584 Tested-by: Ting Shen <phoenixshen@chromium.org> Reviewed-by: Eric Yilun Lin <yllin@google.com> Commit-Queue: Ting Shen <phoenixshen@chromium.org>
* winterhold: Implement battery parameterLeila Lin2022-09-0110-0/+436
| | | | | | | | | | | | | | | | Setup battery parameter for winterhold BUG=b:242491702 BRANCH=none TEST=zmake build Signed-off-by: Leila Lin <leilacy_lin@compal.corp-partner.google.com> Change-Id: Ib236fc2d95ac0907ff0fd73194ede8f30083fa71 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3861708 Tested-by: LeilaCY Lin <leilacy_lin@compal.corp-partner.google.com.test-google-a.com> Reviewed-by: Elthan Huang <elthan_huang@compal.corp-partner.google.com> Reviewed-by: Diana Z <dzigterman@chromium.org> Commit-Queue: LeilaCY Lin <leilacy_lin@compal.corp-partner.google.com.test-google-a.com>
* dts-battery: Expand descriptions to explain useAndrew McRae2022-08-301-2/+8
| | | | | | | | | | | | | | Expand the manuf_name and device_name so that it is clear what their use and origin is for. BUG=none TEST=zmake build nissa BRANCH=none Signed-off-by: Andrew McRae <amcrae@google.com> Change-Id: I8defd0cd02eff15f4924866ca9268cad264819b3 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3864747 Reviewed-by: Peter Marheine <pmarheine@chromium.org>
* Xivu: Battery cut off failridden_liu2022-08-301-2/+2
| | | | | | | | | | | | | | | | Battery cut off fail. Modify manufacturerName and devicename can fix it. BUG=b:244129838 BRANCH=Xivu TEST=zmake build xivu.Xivu battery cutoff success. Signed-off-by: ridden_liu <ridden_liu@compal.corp-partner.google.com> Change-Id: I4bb9a1f5133b8849bc997a16ac01b44d8a91e17d Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3864744 Reviewed-by: Peter Marheine <pmarheine@chromium.org> Reviewed-by: SamSP Liu <samsp_liu2@compal.corp-partner.google.com> Reviewed-by: Andrew McRae <amcrae@google.com>
* RT9490 : Use ADC thermistor on RT9490jeffrey2022-08-291-0/+16
| | | | | | | | | | | | | | | | | Use thermistor RT9490 for charger temperature. BUG=b:242267801 TEST=ectool temps all to check it can read thermistor temperature. BRANCH=None Signed-off-by: jeffrey <jeffrey_lin@pegatron.corp-partner.google.com> Change-Id: I91a01adafdc6aca7fcd2afb14c4e6a099826e46e Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3853779 Reviewed-by: Ting Shen <phoenixshen@chromium.org> Reviewed-by: Jeffrey Lin <jeffrey_lin@pegatron.corp-partner.google.com> Commit-Queue: Jeffrey Lin <jeffrey_lin@pegatron.corp-partner.google.com> Tested-by: Jeffrey Lin <jeffrey_lin@pegatron.corp-partner.google.com>
* zephyr: remove label usage from i2c_mock emulatorKeith Short2022-08-261-8/+1
| | | | | | | | | | | | | | Remove all devicetree label usage from the i2c_mock emulator. BUG=b:239165779 BRANCH=none TEST=./twister --clobber Signed-off-by: Keith Short <keithshort@chromium.org> Change-Id: Iece16f5aa8ff48e280db4487f38b776554556174 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3855428 Reviewed-by: Aaron Massey <aaronmassey@google.com> Code-Coverage: Zoss <zoss-cl-coverage@prod.google.com>
* zephyr: remove label usage from sn5s330 emulatorKeith Short2022-08-261-8/+1
| | | | | | | | | | | | | | Remove all devicetree label usage from the sn5s330 emulator. BUG=b:239165779 BRANCH=none TEST=./twister --clobber Signed-off-by: Keith Short <keithshort@chromium.org> Change-Id: I9f30cb5ba28b85d1cef1a838327a4ff599e28506 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3855427 Reviewed-by: Tristan Honscheid <honscheid@google.com> Code-Coverage: Zoss <zoss-cl-coverage@prod.google.com>
* zephyr: remove label usage from lis2dw12 emulatorKeith Short2022-08-261-8/+1
| | | | | | | | | | | | | | Remove all devicetree label usage from the lis2dw12 emulator. BUG=b:239165779 BRANCH=none TEST=./twister --clobber Signed-off-by: Keith Short <keithshort@chromium.org> Change-Id: Ice425e988f1d39e1eb3293c1ac1e9ff97de174d6 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3855426 Code-Coverage: Zoss <zoss-cl-coverage@prod.google.com> Reviewed-by: Jeremy Bettis <jbettis@chromium.org>
* zephyr: Mark label property deprecated for tcpci emulatorsKeith Short2022-08-261-8/+1
| | | | | | | | | | | | | | | The previous CLs remove the label property from the ps8xxx and generate TCPCI emulators. Restore the tcpci.yaml file so the label property is deprecated. BUG=b:239165779 BRANCH=none TEST=./twister --clobber Signed-off-by: Keith Short <keithshort@chromium.org> Change-Id: I9169a13fc9db07a76fe12abba64bac6b56b8a02f Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3855425 Reviewed-by: Wai-Hong Tam <waihong@google.com>
* zephyr: Remove label usage from isl923x emulatorKeith Short2022-08-261-8/+1
| | | | | | | | | | | | | | Remove all devicetree label usage from the isl923x emulator. BUG=b:239165779 BRANCH=none TEST=./twister --clobber Signed-off-by: Keith Short <keithshort@chromium.org> Change-Id: Ie7bd86eadb0804d8d8321c56a2e1a06390b8d1e7 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3855422 Code-Coverage: Zoss <zoss-cl-coverage@prod.google.com> Reviewed-by: Wai-Hong Tam <waihong@google.com>
* zephyr: Remove label usage from ln9310 emulatorKeith Short2022-08-261-8/+1
| | | | | | | | | | | | | | Remove all devcietree label references from the ln9310 emulator. BUG=b:239165779 BRANCH=none TEST=./twister --clobber Signed-off-by: Keith Short <keithshort@chromium.org> Change-Id: Id56fe974d4f18b32fcd47f9e0a2c4b69412fb827 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3855420 Reviewed-by: Yuval Peress <peress@google.com> Code-Coverage: Zoss <zoss-cl-coverage@prod.google.com>
* zephyr: move mux nodes onto i2c busesDawid Niedzwiecki2022-08-266-141/+8
| | | | | | | | | | | | | | | | | Move all USB-C mux nodes onto the i2c buses from named-usbc-port nodes. The change should simplify the upstream process of the mux chips drivers. BUG=b:240618099 TEST=zmake build -a; make sure usb-c works BRANCH=main Signed-off-by: Dawid Niedzwiecki <dn@semihalf.com> Change-Id: Ieab80f2ccf2f47f93597e90f5afbda8072b71d49 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3827181 Reviewed-by: Tomasz Michalec <tmichalec@google.com> Commit-Queue: Keith Short <keithshort@chromium.org> Reviewed-by: Keith Short <keithshort@chromium.org>
* Craask: New gauge IC for battery AP20CBLSue Chen2022-08-262-0/+58
| | | | | | | | | | | | | | | AP20CBL new gauge IC to solve watchdog timeout issue. Add cosmx,ap20cbl-2.yaml to define it as another battery for Craask. BUG=b:243772306 BRANCH=none TEST=battery information, cut off and resume work fine Signed-off-by: Sue Chen <sue.chen@quanta.corp-partner.google.com> Change-Id: I23d340578a4f28bfcbf774baf2bb6bbcedfff2c6 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3858764 Reviewed-by: Andrew McRae <amcrae@google.com>
* zephyr: isl923x emulator: add explicit label propertyKeith Short2022-08-241-1/+9
| | | | | | | | | | | | | | The isl923x emulator and tests currently require the label property. Override the deprecated attribute from the base.yaml. BUG=b:239165779 BRANCH=none TEST=./twister --clobber Signed-off-by: Keith Short <keithshort@chromium.org> Change-Id: I69a3622f6f9c5e0b97ad84603305f490172bfa50 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3852904 Reviewed-by: Aaron Massey <aaronmassey@google.com>
* zephyr: i2c_mock emulator: add explicit label propertyKeith Short2022-08-241-1/+9
| | | | | | | | | | | | | | | The i2c_mock emulator and tests currently require the label property. Override the deprecated attribute from the base.yaml. BUG=b:239165779 BRANCH=none TEST=./twister --clobber Signed-off-by: Keith Short <keithshort@chromium.org> Change-Id: Iae40d695a6ae0e92a448a6a0b123d9cb3f1b1899 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3852903 Reviewed-by: Jeremy Bettis <jbettis@chromium.org> Reviewed-by: Fabio Baltieri <fabiobaltieri@google.com>
* zephyr: lis2dw12 emulator: add explicit label propertyKeith Short2022-08-241-1/+9
| | | | | | | | | | | | | | The lis2dw12 emulator and tests currently require the label property. Override the deprecated attribute from the base.yaml. BUG=b:239165779 BRANCH=none TEST=./twister --clobber Signed-off-by: Keith Short <keithshort@chromium.org> Change-Id: I03aaee950bc674036646a8598eaa3baf451bcc97 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3852902 Reviewed-by: Aaron Massey <aaronmassey@google.com>
* zephyr: ln9310 emulator: add explicit label propertyKeith Short2022-08-241-2/+8
| | | | | | | | | | | | | | The ln9310 emulator and tests currently require the label property. Override the deprecated attribute from the base.yaml. BUG=b:239165779 BRANCH=none TEST=./twister --clobber Signed-off-by: Keith Short <keithshort@chromium.org> Change-Id: I0c7596ed1a0f1564be15e30c8f4b59f5127a3563 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3852901 Reviewed-by: Tristan Honscheid <honscheid@google.com>
* zephyr: tcpci emulator: add explicit label propertyKeith Short2022-08-241-1/+8
| | | | | | | | | | | | | | The TCPCI emulator and tests currently require the label property. Override the deprecated attribute from the base.yaml. BUG=b:239165779 BRANCH=none TEST=./twister --clobber Signed-off-by: Keith Short <keithshort@chromium.org> Change-Id: I3bbc85dc882ae7cd17b178189979f81e3657d521 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3852576 Reviewed-by: Sam Hurst <shurst@google.com>
* zephyr: sn5s330 emulator: add explicit label propertyKeith Short2022-08-241-1/+8
| | | | | | | | | | | | | | | The sn5s330 emulator and tests currently require the label property. Override the deprecated attribute from the base.yaml. BUG=b:239165779 BRANCH=none TEST=./twister --clobber Signed-off-by: Keith Short <keithshort@chromium.org> Change-Id: I48e603607236c4837b10a89e403e1b826c15a4d4 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3852575 Reviewed-by: Abe Levkoy <alevkoy@chromium.org> Reviewed-by: Fabio Baltieri <fabiobaltieri@google.com>
* zephyr: test: implement pwm_mock driverTing Shen2022-08-181-0/+14
| | | | | | | | | | | | | | | | | | | Implement a mock pwm device for testing pwm_led driver. This driver supports 1 channel, and an extra get_duty function for verification. BUG=b:241064591 TEST=passed the new test in CL:3792590 BRANCH=none Signed-off-by: Ting Shen <phoenixshen@google.com> Change-Id: Ife27e29bd615f37733b3592c9c8b0a6df61defb0 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3825344 Commit-Queue: Ting Shen <phoenixshen@chromium.org> Code-Coverage: Zoss <zoss-cl-coverage@prod.google.com> Reviewed-by: Jeremy Bettis <jbettis@chromium.org> Tested-by: Ting Shen <phoenixshen@chromium.org>
* nissa: Use separate data structure for lsm6dso sensor entriesAndrew McRae2022-08-182-2/+8
| | | | | | | | | | | | | | | | Use separate data structures for each lsm6dso driver data sensor entry. v2 - add comments BUG=b:242009482 TEST=zmake build nivviks; flash & run BRANCH=none Signed-off-by: Andrew McRae <amcrae@google.com> Change-Id: Ib0bfb95ba44e1e4b90f7afc52675d777dc665600 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3834903 Reviewed-by: Peter Marheine <pmarheine@chromium.org> Reviewed-by: Adam Mills <adamjmills@google.com>
* zephyr: LED: Remove extra_flag propertyParth Malkan2022-08-181-17/+9
| | | | | | | | | | | | | | | | | | This change removes extra_flag property used to differentiate between forced and unforced PWR_STATE_IDLE. Instead, it uses additional charge_state PWR_STATE_FORCED_IDLE to make this differentiation. BUG=b:241167493 TEST=zmake build --all Tested on Skyrim proto using console command chgstate idle on|off and observed LED behavior BRANCH=None Signed-off-by: Parth Malkan <parthmalkan@google.com> Change-Id: I368a09c8b0f7b12a15a834ad850c219e976b58a7 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3807136 Code-Coverage: Zoss <zoss-cl-coverage@prod.google.com> Reviewed-by: Wai-Hong Tam <waihong@google.com>
* krabby: use proper battery vendor nameTing Shen2022-08-153-5/+4
| | | | | | | | | | | | | | | the first part of a compatible string should be a vendor name. BUG=b:240110919 TEST=zmake build krabby BRANCH=none Signed-off-by: Ting Shen <phoenixshen@google.com> Change-Id: I6c25115b85887c02635054ee7202eeb0dfa51b33 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3825345 Reviewed-by: Eric Yilun Lin <yllin@google.com> Tested-by: Ting Shen <phoenixshen@chromium.org> Commit-Queue: Ting Shen <phoenixshen@chromium.org>
* zephyr: Move ppc nodes under i2c busAdam Mills2022-08-146-55/+12
| | | | | | | | | | | | | | | | Move all ppc nodes under the i2c bus nodes instead of named-usbc-port nodes. The change should simplify the upstream process of the ppc chip drivers. BUG=b:240617931 TEST=zmake testall; zephyr/zmake/run_tests.sh BRANCH=main Signed-off-by: Adam Mills <adamjmills@google.com> Change-Id: I4fcf95cd200fc82b3fedd4b3bc166e8aa8243c79 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3810131 Reviewed-by: Andrew McRae <amcrae@google.com> Reviewed-by: Dawid Niedzwiecki <dawidn@google.com>
* zephyr: move charger nodes onto i2c busesDawid Niedzwiecki2022-08-052-44/+36
| | | | | | | | | | | | | | | | Move all charger nodes onto the i2c buses from named-usbc-port nodes. The change should simplify the upstream process of the charger chips drivers. BUG=b:241062565 TEST=zmake testall; make sure charging works BRANCH=main Signed-off-by: Dawid Niedzwiecki <dn@semihalf.com> Change-Id: I5c8e358cc56d5fd7b5a91971d41e4269e84e949e Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3805199 Reviewed-by: Keith Short <keithshort@chromium.org> Commit-Queue: Keith Short <keithshort@chromium.org>
* zephyr: move tcpc nodes onto i2c busesDawid Niedzwiecki2022-08-059-118/+16
| | | | | | | | | | | | | | | | | | Move all tcpc nodes onto the i2c buses from named-usbc-port nodes. The change should simplify the upstream process of the tcpc chips drivers. BUG=b:240617928 TEST=zmake testall; make sure all TCPCs work by attaching a charger BRANCH=main Signed-off-by: Dawid Niedzwiecki <dn@semihalf.com> Change-Id: I9dfd1187fcb222df41bc3f129265e7dfd0e0c4eb Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3797608 Reviewed-by: Keith Short <keithshort@chromium.org> Commit-Queue: Keith Short <keithshort@chromium.org> Tested-by: Dawid Niedźwiecki <dn@semihalf.com>
* Nissa/Craask: add 2nd source for LID ACCELSue Chen2022-08-051-0/+1
| | | | | | | | | | | | | | | Use ssfc bit2-3 to identify LID ACCEL sensor. 0: lis2dw12 1: bma422 BUG=b:240040384 BRANCH=none TEST=can read raw data from bma422 after setting ssfc=0x4 Signed-off-by: Sue Chen <sue.chen@quanta.corp-partner.google.com> Change-Id: I515b808b94b344c7c2f134a4ab1ab862a69e8370 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3807187 Reviewed-by: Andrew McRae <amcrae@google.com>
* usb_mux/anx7447: use anx7447 usb_mux driverEric Yilun Lin2022-08-041-5/+5
| | | | | | | | | | | | | | | | | | Anx7447 is not able to use tcpci_usb_mux_driver, so fix this by using anx7447_usb_mux_driver instead. Also, add property hpd-update-enable for anx7447_tcpc_update_hpd_status. BUG=b:227359727 b:238170235 TEST=Kingler C0 is able to DP out BRANCH=none Change-Id: I34d04a2d434f0140b326c9ae41b6b5c6cd8b0a80 Signed-off-by: Eric Yilun Lin <yllin@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3801772 Commit-Queue: Eric Yilun Lin <yllin@google.com> Reviewed-by: Ting Shen <phoenixshen@chromium.org> Tested-by: Eric Yilun Lin <yllin@google.com>
* zephyr: LED: yaml files cleanupParth Malkan2022-07-294-128/+161
| | | | | | | | | | | | | | | | | | | | | | Rename cros-ec,led-colors.yaml to cros-ec,led-policy.yaml to avoid name conflict with child node of the same name and to reflect the purpose of the nodes. Also, update description of properties. BRANCH=None BUG=b:227798487 TEST=zmake build --all Signed-off-by: Parth Malkan <parthmalkan@google.com> Cq-Depend: chromium:3685751, chromium:3685752 Cq-Depend: chromium:3685753, chromium:3783354 Cq-Depend: chromium:3783355, chromium:3783356 Cq-Depend: chromium:3783357, chromium:3783185 Cq-Depend: chromium:3783183 Change-Id: I10567f48da3978ead99150bf23853d3a376a14ba Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3685750 Tested-by: Bob Moragues <moragues@chromium.org> Commit-Queue: Bob Moragues <moragues@chromium.org> Reviewed-by: Keith Short <keithshort@chromium.org>
* zephyr: move bc12 node under i2c busDawid Niedzwiecki2022-07-285-25/+15
| | | | | | | | | | | | | | | | Move all bc12 nodes under the i2c bus nodes instead of named-usbc-port nodes. The change should simplify the upstream process of the bc12 chip drivers. BUG=b:228240586 TEST=zmake testall; make sure all bc12 chip works BRANCH=main Signed-off-by: Dawid Niedzwiecki <dn@semihalf.com> Change-Id: Icbf961ccc3846da53c3841bb616c3706a1876b53 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3763906 Reviewed-by: Keith Short <keithshort@chromium.org> Commit-Queue: Keith Short <keithshort@chromium.org>
* zephyr: shim: led: Remove 'frequency' from device treeMadhurima Paruchuri2022-07-281-8/+1
| | | | | | | | | | | | | | | | Remove 'frequency' from device tree as driver is consuming that information from 'period' of PWM spec BUG=b:230093078 BRANCH=none TEST=zmake testall TEST=gdb ./build/zephyr/${BOARD}/build-ro/zephyr/zephyr.elf p _pwm_dt_spec_0_ch_1 Signed-off-by: Madhurima Paruchuri <mparuchuri@google.com> Change-Id: Ied878863009ec74e973b19d240ff1326b9a04e2d Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3787657 Reviewed-by: Fabio Baltieri <fabiobaltieri@google.com>
* tentacruel: Modify battery vendor config.jeffrey_lin2022-07-282-5/+5
| | | | | | | | | | | | | modify battery-smart.yaml naming and battery vendor BUG=b:237432841 TEST=zmake build tentacruel --clobber BRANCH=None Signed-off-by: jeffrey_lin <jeffrey_lin@pegatron.corp-partner.google.com> Change-Id: If8966368fe1d23f7f02b0945fe0cdba67b9cf02f Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3789209 Reviewed-by: Ting Shen <phoenixshen@chromium.org>
* zephyr: rework i2c enumsDawid Niedzwiecki2022-07-281-46/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add additional enum that is created based on used I2C ports from devicetree. Use the new enums to create i2c enums listed in the named-i2c-ports node. The named-i2c-port enums that point to the same i2c port have the same value. The change should allow getting the i2c enum value from the named-i2c-ports node and the i2c port node(the node created by the chip vendor) alternately. It will be useful in process of moving usbc chips e.g. bc12 under the i2c bus, not in the named-usbc-port node. Since i2c enums using the same port have the same value, the i2c_physical_ports is no longer needed. The commit reduces the usage of memory a bit because I2C_PORT_COUNT is lower and initialization of i2c_physical_ports isn't needed. Also, change how the enum values are defined in the dts files. Only one node should be created per physical i2c port and define multiple enum values. BUG=b:228240586 TEST=zmake testall; make sure all i2c ports work BRANCH=main Signed-off-by: Dawid Niedzwiecki <dn@semihalf.com> Change-Id: I95c3f6845cfb71a69d408f33a6c7b22383f10028 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3763905 Reviewed-by: Keith Short <keithshort@chromium.org> Commit-Queue: Dawid Niedzwiecki <dawidn@google.com>
* pujjo: Add all batteries node for pujjojimmy.wu2022-07-271-0/+2
| | | | | | | | | | | | | | Add all batteries node for pujjo. BUG=b:236791102 TEST=zmake build pujjo BRANCH=none Signed-off-by: jimmy.wu <jimmy.wu@lcfc.corp-partner.google.com> Change-Id: Ia395fe8e9de20198ebefeed0dcf072b38636e358 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3787368 Reviewed-by: Andrew McRae <amcrae@google.com> Reviewed-by: Peter Marheine <pmarheine@chromium.org>
* zephyr: ite,it8801: drop the label propertyFabio Baltieri2022-07-261-1/+0
| | | | | | | | | | | | | It's not used. BRANCH=none BUG=b:239165779 TEST=zmake testall Signed-off-by: Fabio Baltieri <fabiobaltieri@google.com> Change-Id: Ia7ce07c4564c315898f50fbbcd5e62608bb9965d Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3763916 Reviewed-by: Jeremy Bettis <jbettis@chromium.org>
* zephyr: cros_rtc: drop the label propertyFabio Baltieri2022-07-264-21/+0
| | | | | | | | | | | | | | | It's not used for anything, drop it, and drop the "common" file since it's now empty. BRANCH=none BUG=b:239165779 TEST=zmake testall Cq-Depend: chromium:3767557 Signed-off-by: Fabio Baltieri <fabiobaltieri@google.com> Change-Id: Id99495522d7c508e60b00e3b197bf3bd45d88bba Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3763915 Reviewed-by: Sam Hurst <shurst@google.com>
* zephyr: shim: leds: Remove 'pwm-frequency' from device treeMadhurima Paruchuri2022-07-251-6/+0
| | | | | | | | | | | | | | Remove 'pwm-frequency' from device tree as driver is consuming that information from 'period' of PWM spec BUG=b:230093078 BRANCH=none TEST=zmake testall Signed-off-by: Madhurima Paruchuri <mparuchuri@google.com> Change-Id: I94a527ea4547631f546c2565e82eff007d08312d Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3778930 Reviewed-by: Fabio Baltieri <fabiobaltieri@google.com>
* zephyr: bindigs: ensure binding file names are consistentFabio Baltieri2022-07-2218-12/+12
| | | | | | | | | | | | | | | Zephyr DTS bindings are normally named to match their compatible strings. Rename few bindings that were misnamed in the EC bindings directory. BUG=none BRANCH=none TEST=zmake testall Signed-off-by: Fabio Baltieri <fabiobaltieri@google.com> Change-Id: I789c6fea96cda0d0fb4b697574ed7037097f6b1e Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3779901 Reviewed-by: Al Semjonovs <asemjonovs@google.com>
* zephyr: add batteries into vendor-prefixes.txtScott Chao2022-07-226-16/+17
| | | | | | | | | | | | | | | This will avoid build warning due to new batteries. Also modify battery .yaml naming. Change Vendor_Manuf,Device.yaml to Vendor,Manuf_Device.yaml BRANCH=none BUG=b:239502723 TEST=zmake build joxer Signed-off-by: Scott Chao <scott_chao@wistron.corp-partner.google.com> Change-Id: I8534b8f4170dfff3b58869d39b15aaf71d2217a7 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3778934 Reviewed-by: Andrew McRae <amcrae@google.com>
* nerwin: support battery ap19b8mDavid Huang2022-07-212-0/+55
| | | | | | | | | | | | | | Support battery ap19b8m for nerwin. BUG=b:239366024, b:239682988 TEST=zmake build nivviks; flash run, found battery ap19b8m. BRANCH=none Signed-off-by: David Huang <david.huang@quanta.corp-partner.google.com> Change-Id: I0ad722139140eb49b04c4d7842a2436b3de273fa Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3778920 Reviewed-by: Andrew McRae <amcrae@google.com> Commit-Queue: Andrew McRae <amcrae@google.com>
* zephyr: bindings: drop cros-kb-raw-controller.yamlFabio Baltieri2022-07-205-12/+4
| | | | | | | | | | | | | This is empty now, no sense keeping it around. BRANCH=none BUG=none TEST=zmake testall Signed-off-by: Fabio Baltieri <fabiobaltieri@google.com> Change-Id: I585008317dab45e0df8755f2d1f4a406ffb5aaff Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3763912 Reviewed-by: Jeremy Bettis <jbettis@chromium.org>
* zephyr: cros_kb_raw: drop the label propertyFabio Baltieri2022-07-201-4/+0
| | | | | | | | | | | | | | Seems like this is unused. BRANCH=none BUG=b:239165779 TEST=zmake testall Signed-off-by: Fabio Baltieri <fabiobaltieri@google.com> Change-Id: I059f388fe3301f6d7f48fdbe9cfdb6cb1c5b7ec8 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3763911 Reviewed-by: Keith Short <keithshort@chromium.org> Reviewed-by: Tristan Honscheid <honscheid@google.com>