2019-07-01 22:54:34 +08:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2019 Linaro Limited
|
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
|
|
*/
|
|
|
|
|
2019-10-08 22:40:58 +08:00
|
|
|
#include "arduino_r3_connector.dtsi"
|
|
|
|
|
2019-07-01 22:54:34 +08:00
|
|
|
/ {
|
|
|
|
leds {
|
|
|
|
compatible = "gpio-leds";
|
|
|
|
green_led_1:led_1 {
|
2019-10-04 00:30:21 +08:00
|
|
|
gpios = <&gpioi 12 GPIO_ACTIVE_HIGH>;
|
2019-07-01 22:54:34 +08:00
|
|
|
label = "User LD1";
|
|
|
|
status = "disabled";
|
|
|
|
};
|
|
|
|
orange_led_2:led_2 {
|
2019-10-04 00:30:21 +08:00
|
|
|
gpios = <&gpioi 13 GPIO_ACTIVE_HIGH>;
|
2019-07-01 22:54:34 +08:00
|
|
|
label = "User LD2";
|
|
|
|
status = "disabled";
|
|
|
|
};
|
|
|
|
red_led_3:led_3 {
|
2019-10-04 00:30:21 +08:00
|
|
|
gpios = <&gpioi 14 GPIO_ACTIVE_HIGH>;
|
2019-07-01 22:54:34 +08:00
|
|
|
label = "User LD3";
|
|
|
|
status = "disabled";
|
|
|
|
};
|
|
|
|
blue_led_4:led_4 {
|
2019-10-04 00:30:21 +08:00
|
|
|
gpios = <&gpioi 15 GPIO_ACTIVE_HIGH>;
|
2019-07-01 22:54:34 +08:00
|
|
|
label = "User LD4";
|
|
|
|
status = "disabled";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
gpio_keys {
|
|
|
|
compatible = "gpio-keys";
|
|
|
|
wake_up: button {
|
|
|
|
label = "Wakeup";
|
2019-10-08 16:00:32 +08:00
|
|
|
gpios = <&gpioc 13 GPIO_ACTIVE_LOW>;
|
2019-07-01 22:54:34 +08:00
|
|
|
status = "disabled";
|
|
|
|
};
|
|
|
|
joy_center: joystick_center {
|
|
|
|
label = "joystick center";
|
2019-10-04 00:30:21 +08:00
|
|
|
gpios = <&gpiok 2 GPIO_ACTIVE_LOW>;
|
2019-07-01 22:54:34 +08:00
|
|
|
status = "disabled";
|
|
|
|
};
|
|
|
|
joy_down: joystick_down {
|
|
|
|
label = "joystick down";
|
2019-10-04 00:30:21 +08:00
|
|
|
gpios = <&gpiok 3 GPIO_ACTIVE_LOW>;
|
2019-07-01 22:54:34 +08:00
|
|
|
status = "disabled";
|
|
|
|
};
|
|
|
|
joy_up: joystick_up {
|
|
|
|
label = "joystick up";
|
2019-10-04 00:30:21 +08:00
|
|
|
gpios = <&gpiok 6 GPIO_ACTIVE_LOW>;
|
2019-07-01 22:54:34 +08:00
|
|
|
status = "disabled";
|
|
|
|
};
|
|
|
|
joy_left: joystick_left {
|
|
|
|
label = "joystick left";
|
2019-10-04 00:30:21 +08:00
|
|
|
gpios = <&gpiok 4 GPIO_ACTIVE_LOW>;
|
2019-09-11 19:31:15 +08:00
|
|
|
status = "disabled";
|
2019-07-01 22:54:34 +08:00
|
|
|
};
|
|
|
|
joy_right: joystick_right {
|
|
|
|
label = "joystick right";
|
2019-10-04 00:30:21 +08:00
|
|
|
gpios = <&gpiok 5 GPIO_ACTIVE_LOW>;
|
2019-07-01 22:54:34 +08:00
|
|
|
status = "disabled";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
arduino_serial: &uart8 {};
|