Skip to content

Commit f63c611

Browse files
jerome-pouillerkartben
authored andcommitted
boards: silabs: siwx91x: Add support for si7021 sensor
Report configuration of the Si7021 in the board definitions. Signed-off-by: Jérôme Pouiller <jerome.pouiller@silabs.com>
1 parent 2deab04 commit f63c611

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

boards/silabs/radio_boards/siwx917_rb4338a/siwx917_rb4338a.dts

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
led1 = &led1;
2929
sw0 = &button0;
3030
sw1 = &button1;
31+
dht0 = &si7021;
3132
};
3233

3334
leds {
@@ -66,6 +67,12 @@
6667
pinmux = <ULPUART_RX_ULP9>;
6768
};
6869
};
70+
71+
ulpi2c_default: ulpi2c_default {
72+
group {
73+
pinmux = <ULPI2C_SDA_ULP6>, <ULPI2C_SCL_ULP7>;
74+
};
75+
};
6976
};
7077

7178
&ulpuart {
@@ -74,6 +81,18 @@
7481
pinctrl-names = "default";
7582
};
7683

84+
&ulpi2c {
85+
status = "okay";
86+
pinctrl-0 = <&ulpi2c_default>;
87+
pinctrl-names = "default";
88+
clock-frequency = <DT_FREQ_K(100)>;
89+
90+
si7021: si7021@40 {
91+
compatible = "silabs,si7006";
92+
reg = <0x40>;
93+
};
94+
};
95+
7796
&flash0 {
7897
partitions {
7998
compatible = "fixed-partitions";

0 commit comments

Comments
 (0)