Skip to content

Commit b61574d

Browse files
pabigotnashif
authored andcommitted
boards: hifive1_revb: add ardunio_i2c support
Add node label and missing label property. Signed-off-by: Peter A. Bigot <[email protected]>
1 parent 0a8dc5b commit b61574d

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

boards/riscv/hifive1_revb/hifive1_revb.dts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
/dts-v1/;
55

66
#include <riscv32-fe310.dtsi>
7+
#include <dt-bindings/i2c/i2c.h>
78

89
/ {
910
model = "SiFive HiFive 1 Rev B";
@@ -123,8 +124,9 @@
123124
clock-frequency = <16000000>;
124125
};
125126

126-
&i2c0 {
127+
arduino_i2c: &i2c0 {
127128
status = "okay";
129+
label = "I2C_0";
128130
input-frequency = <16000000>;
129131
clock-frequency = <100000>;
130132
};

boards/riscv/hifive1_revb/hifive1_revb.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,6 @@ testing:
1111
- bluetooth
1212
supported:
1313
- arduino_gpio
14+
- arduino_i2c
1415
- gpio
16+
- i2c

0 commit comments

Comments
 (0)