File tree Expand file tree Collapse file tree 2 files changed +28
-0
lines changed
boards/microchip/sam/sam_e54_xpro Expand file tree Collapse file tree 2 files changed +28
-0
lines changed Original file line number Diff line number Diff line change 2121 };
2222
2323 aliases {
24+ led0 = &led0;
2425 pwm-led0 = &pwm_led0;
26+ sw0 = &button0;
27+ };
28+
29+ leds {
30+ compatible = "gpio-leds";
31+ led0: led_0 {
32+ gpios = <&portc 18 GPIO_ACTIVE_LOW>;
33+ label = "Yellow LED";
34+ };
2535 };
2636
2737 pwmleds {
3242 pwms = <&tcc0 2 PWM_MSEC(20) 0>;
3343 };
3444 };
45+
46+ buttons {
47+ compatible = "gpio-keys";
48+ button0: button_0 {
49+ gpios = <&portb 31 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>;
50+ label = "SW0";
51+ zephyr,code = <INPUT_KEY_0>;
52+ };
53+ };
3554};
3655
3756&flash0 {
84103 prescaler = <8>;
85104 channels = <6>;
86105};
106+
107+ &portb {
108+ status = "okay";
109+ };
110+
111+ &portc {
112+ status = "okay";
113+ };
Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ toolchain:
1010flash : 1024
1111ram : 256
1212supported :
13+ - gpio
1314 - pinctrl
1415 - pwm
1516 - reset
You can’t perform that action at this time.
0 commit comments