samples: drivers: w1: Enable arduino_i2c and arduino_serial explicitly

This sample uses the arduino_i2c and arduino_serial DT nodes, so it
should enable them explicitly, not assume they will be enabled by
default for a given board.

Signed-off-by: Andrzej Głąbek <andrzej.glabek@nordicsemi.no>
This commit is contained in:
Andrzej Głąbek 2023-01-12 16:33:03 +01:00 committed by Carles Cufí
commit 507f4b31d1
3 changed files with 6 additions and 0 deletions

View file

@ -1,4 +1,6 @@
&arduino_i2c {
status = "okay";
w1: w1@18 {
compatible = "maxim,ds2484";
reg = <0x18>;

View file

@ -1,4 +1,6 @@
&arduino_i2c {
status = "okay";
w1: w1@40 {
compatible = "maxim,ds2485";
reg = <0x40>;

View file

@ -1,4 +1,6 @@
&arduino_serial {
status = "okay";
w1: w1 {
compatible = "zephyr,w1-serial";
};