Skip to content

Commit acbbcf6

Browse files
kartbenabhinavnxp
authored andcommitted
dts: bindings: sensor: update brcm,afbr-s50 example snippet
Update the dt snippet so that it includes all the required properties Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
1 parent 3347a37 commit acbbcf6

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

dts/bindings/sensor/brcm,afbr-s50.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ description: |
1515
1616
Example:
1717
18+
#include <zephyr/dt-bindings/sensor/afbr_s50.h>
19+
1820
&spi_bus {
1921
status = "okay";
2022
pinctrl-0 = <&spi_bus_default>;
@@ -26,6 +28,9 @@ description: |
2628
compatible = "brcm,afbr-s50";
2729
reg = <0>;
2830
spi-max-frequency = <10000000>;
31+
measurement-mode = <AFBR_S50_DT_MODE_SHORT_RANGE>;
32+
dual-freq-mode = <AFBR_S50_DT_DFM_MODE_OFF>;
33+
odr = <10>;
2934
int-gpios = <&gpio0 10 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>;
3035
spi-mosi-gpios = <&gpio0 24 GPIO_ACTIVE_HIGH>;
3136
spi-sck-gpios = <&gpio0 25 GPIO_ACTIVE_HIGH>;

0 commit comments

Comments
 (0)