Skip to content

Commit

Permalink
boards: hihope_wifi_iot: Add node for user button
Browse files Browse the repository at this point in the history
Let the sample/basic/button works

Signed-off-by: Chen Xingyu <[email protected]>
  • Loading branch information
xingrz committed Jun 30, 2023
1 parent dcd1755 commit 3f0d2dd
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions boards/riscv/hihope_wifi_iot/hihope_wifi_iot.dts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@

aliases {
led0 = &led_1;
sw0 = &sw_2;
};

chosen {
Expand All @@ -33,6 +34,15 @@
label = "LED1";
};
};

buttons {
compatible = "gpio-keys";

sw_2: sw_2 {
gpios = <&gpio 5 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>;
label = "SW2";
};
};
};

&uart0 {
Expand Down

0 comments on commit 3f0d2dd

Please sign in to comment.