Skip to content

Commit

Permalink
boards: silabs: Add support for si7021 sensor
Browse files Browse the repository at this point in the history
Signed-off-by: Jérôme Pouiller <[email protected]>
  • Loading branch information
jerome-pouiller committed Feb 4, 2025
1 parent d17dea1 commit 17b4e6f
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
19 changes: 18 additions & 1 deletion boards/silabs/radio_boards/siwx917_rb4338a/siwx917_rb4338a.dts
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,11 @@
pinmux = <ULPUART_RX_ULP9>;
};
};
ulpi2c_default: ulpi2c_default {
group {
pinmux = <ULPI2C_SDA_ULP6>, <ULPI2C_SCL_ULP7>;
};
};
};

&dma0 {
Expand All @@ -79,6 +84,18 @@
pinctrl-names = "default";
};

&ulpi2c {
status = "okay";
pinctrl-0 = <&ulpi2c_default>;
pinctrl-names = "default";
clock-frequency = <DT_FREQ_K(100)>;

si7021: si7021@40 {
compatible = "silabs,si7006";
reg = <0x40>;
};
};

&flash0 {
partitions {
compatible = "fixed-partitions";
Expand All @@ -98,4 +115,4 @@

&wifi0 {
status = "okay";
};
};
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,10 @@ CONFIG_PINCTRL=y
CONFIG_GPIO=y
CONFIG_CLOCK_CONTROL=y
CONFIG_DMA=y
CONFIG_I2C=y
CONFIG_ENTROPY_GENERATOR=y
CONFIG_FLASH=y
CONFIG_SENSOR=y
CONFIG_BT=y
CONFIG_BT_HCI=y
CONFIG_NETWORKING=y
Expand Down

0 comments on commit 17b4e6f

Please sign in to comment.