Skip to content

Commit

Permalink
tests: drivers: build_all: w1: Add i2c-devices build test
Browse files Browse the repository at this point in the history
Add build tests for following devices.

- maxim,ds2482-800
- maxim,ds2484
- maxim,ds2485

(cherry picked from commit 06eaf05)

Original-Signed-off-by: TOKITA Hiroshi <tokita.hiroshi@gmail.com>
GitOrigin-RevId: 06eaf05
Cr-Build-Id: 8732659221460854369
Cr-Build-Url: https://cr-buildbucket.appspot.com/build/8732659221460854369
Copybot-Job-Name: zephyr-main-copybot-downstream
Change-Id: I6e8993e61eee2941d2224110c71c19819f50f2c1
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/zephyr/+/5976022
Reviewed-by: Ting Shen <phoenixshen@chromium.org>
Tested-by: ChromeOS Prod (Robot) <chromeos-ci-prod@chromeos-bot.iam.gserviceaccount.com>
Commit-Queue: Ting Shen <phoenixshen@chromium.org>
  • Loading branch information
soburi authored and Chromeos LUCI committed Oct 30, 2024
1 parent db5b051 commit e6846e3
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions tests/drivers/build_all/w1/app.overlay
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,41 @@
compatible = "zephyr,w1-gpio";
gpios = <&test_gpio 0 0>;
};

test_i2c: i2c@11112222 {
#address-cells = <1>;
#size-cells = <0>;
compatible = "vnd,i2c";
reg = <0x11112222 0x1000>;
status = "okay";
clock-frequency = <100000>;

test_i2c_ds2482_800: ds2482-800@0 {
compatible = "maxim,ds2482-800";
reg = <0x0>;

#address-cells = <1>;
#size-cells = <0>;

w1_0: ch@0 {
compatible = "maxim,ds2482-800-channel";
reg = <0>;
};
};

test_i2c_ds2484: ds2484@1 {
compatible = "maxim,ds2484";
reg = <0x1>;
};

test_i2c_ds2485: ds2485@2 {
compatible = "maxim,ds2485";
reg = <0x2>;

switching-threshold = "low";
active-pull-threshold = "low";
weak-pullup = "1000";
};
};
};
};

0 comments on commit e6846e3

Please sign in to comment.