Skip to content

Commit

Permalink
tests: drivers: build_all: charger: Add config for sbs,sbs-charger
Browse files Browse the repository at this point in the history
Add configuration to add `sbs,sbs-charger` to build test.

Also, adding emulator build test.

Signed-off-by: TOKITA Hiroshi <[email protected]>
  • Loading branch information
soburi committed Sep 27, 2024
1 parent 2485102 commit ab63deb
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/drivers/build_all/charger/i2c.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -39,3 +39,8 @@ bq25180@2 {
constant-charge-current-max-microamp = <500000>;
constant-charge-voltage-max-microvolt = <4200000>;
};

sbs-charger@3 {
compatible = "sbs,sbs-charger";
reg = <0x3>;
};
10 changes: 10 additions & 0 deletions tests/drivers/build_all/charger/testcase.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,13 @@ tests:
build_only: true
platform_allow:
- native_sim

drivers.charger.emul.build:
tags:
- drivers
- charger
build_only: true
platform_allow:
- native_sim
extra_configs:
- CONFIG_EMUL=y

0 comments on commit ab63deb

Please sign in to comment.