blob: a5e45bb95c04ebd028ad9f0ab4d953ca3917f129 [file] [log] [blame]
Ben Whittene8274422018-06-15 14:40:53 +01001// SPDX-License-Identifier: GPL-2.0
2/*
3 * at91-wb50n.dts - Device Tree file for wb50n evaluation board
4 *
5 * Copyright (C) 2018 Laird
6 *
7 */
8
9/dts-v1/;
10#include "at91-wb50n.dtsi"
11
12/ {
13 model = "Laird Workgroup Bridge 50N - Atmel SAMA5D";
14 compatible = "laird,wb50n", "atmel,sama5d31", "atmel,sama5d3", "atmel,sama5";
15
16 gpio_keys {
17 compatible = "gpio-keys";
18 #address-cells = <1>;
19 #size-cells = <0>;
20
21 btn0@10 {
22 reg = <10>;
23 label = "BTNESC";
24 linux,code = <1>; /* ESC button */
25 gpios = <&pioA 10 GPIO_ACTIVE_LOW>;
Sudeep Holla31f031f2018-12-21 18:11:49 +000026 wakeup-source;
Ben Whittene8274422018-06-15 14:40:53 +010027 };
28
29 irqbtn@31 {
30 reg = <31>;
31 label = "IRQBTN";
32 linux,code = <99>; /* SysReq button */
33 gpios = <&pioE 31 GPIO_ACTIVE_LOW>;
Sudeep Holla31f031f2018-12-21 18:11:49 +000034 wakeup-source;
Ben Whittene8274422018-06-15 14:40:53 +010035 };
36 };
37
38 leds {
39 compatible = "gpio-leds";
40
41 led0 {
42 label = "wb50n:blue:led0";
43 gpios = <&pioA 12 GPIO_ACTIVE_LOW>;
44 default-state = "off";
45 };
46
47 led1 {
48 label = "wb50n:green:led1";
49 gpios = <&pioA 24 GPIO_ACTIVE_LOW>;
50 default-state = "off";
51 };
52
53 led2 {
54 label = "wb50n:red:led2";
55 gpios = <&pioA 26 GPIO_ACTIVE_LOW>;
56 default-state = "off";
57 };
58 };
59};
60
61&watchdog {
62 status = "okay";
63};
64
65&mmc0 {
66 status = "okay";
67};
68
69&macb1 {
70 status = "okay";
71};
72
73&dbgu {
74 status = "okay";
75};
76
77/* On BB40 this port is labeled UART1 */
78&usart0 {
79 status = "okay";
80};
81
82/* On BB40 this port is labeled UART0 */
83&usart1 {
84 status = "okay";
85};
86
87&i2c0 {
88 status = "okay";
89};
90
91&spi1 {
92 status = "okay";
93
94 spidev@0 {
95 compatible = "spidev";
96 reg = <0>;
97 spi-max-frequency = <8000000>;
98 };
99};
100
101&usb0 {
102 status = "okay";
103};
104
105&usb1 {
106 status = "okay";
107};
108
109&usb2 {
110 status = "okay";
111};
112