Skip to content

Commit

Permalink
boards: hifive1_revb: add ardunio_i2c support
Browse files Browse the repository at this point in the history
Add node label and missing label property.

Signed-off-by: Peter A. Bigot <[email protected]>
  • Loading branch information
pabigot authored and nashif committed Nov 19, 2019
1 parent 0a8dc5b commit b61574d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 3 additions & 1 deletion boards/riscv/hifive1_revb/hifive1_revb.dts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
/dts-v1/;

#include <riscv32-fe310.dtsi>
#include <dt-bindings/i2c/i2c.h>

/ {
model = "SiFive HiFive 1 Rev B";
Expand Down Expand Up @@ -123,8 +124,9 @@
clock-frequency = <16000000>;
};

&i2c0 {
arduino_i2c: &i2c0 {
status = "okay";
label = "I2C_0";
input-frequency = <16000000>;
clock-frequency = <100000>;
};
2 changes: 2 additions & 0 deletions boards/riscv/hifive1_revb/hifive1_revb.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,6 @@ testing:
- bluetooth
supported:
- arduino_gpio
- arduino_i2c
- gpio
- i2c

0 comments on commit b61574d

Please sign in to comment.