Commit f119ffed authored by Martin Benda's avatar Martin Benda Committed by Carles Cufi
Browse files

boards: atsamd20_xpro: Add led/button info to DTS



Add on-board yellow LED and user button to the device tree.

Signed-off-by: default avatarMartin Benda <martin.benda@omsquare.com>
parent b34da1ad
Loading
Loading
Loading
Loading
+21 −0
Original line number Diff line number Diff line
@@ -11,11 +11,32 @@
	model = "SAM D20 Xplained Pro";
	compatible = "atsamd20,xpro", "atmel,samd20j18", "atmel,samd20";

	aliases {
		led0 = &yellow_led;
		sw0 = &user_button;
	};

	chosen {
		zephyr,console = &sercom3;
		zephyr,sram = &sram0;
		zephyr,flash = &flash0;
	};

	leds {
		compatible = "gpio-leds";
		yellow_led: led_0 {
			gpios = <&porta 14 0>;
			label = "LED0";
		};
	};

	buttons {
		compatible = "gpio-keys";
		user_button: button_0 {
			gpios = <&porta 15 (GPIO_PUD_PULL_UP | GPIO_INT_ACTIVE_LOW)>;
			label = "SW0";
		};
	};
};

&sercom0 {