summaryrefslogtreecommitdiff
path: root/arch/arm/boot/dts/at91-gatwick.dts
blob: 2c718cf84d7b444926ec3db9a1bb204db0aedc2c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
// SPDX-License-Identifier: GPL-2.0
/*
 * at91-gatwick.dts - Device Tree file for the Gatwick board
 *
 *  Copyright (C) 2018 Laird
 *
 */
/dts-v1/;
#include "at91-wb50n.dtsi"
#include <dt-bindings/input/input.h>

/ {
	model = "Laird Workgroup Bridge 50N - Project Gatwick";
	compatible = "laird,gatwick", "laird,wb50n", "atmel,sama5d31", "atmel,sama5d3", "atmel,sama5";

	gpio-keys {
		compatible = "gpio-keys";
		autorepeat;

		pinctrl-names = "default";
		pinctrl-0 = <&pinctrl_key_gpio>;

		reset-button {
			label = "Reset Button";
			linux,code = <KEY_SETUP>;
			gpios = <&pioE 31 GPIO_ACTIVE_LOW>;
			wakeup-source;
		};
	};

	leds {
		compatible = "gpio-leds";

		ethernet {
			label = "gatwick:yellow:ethernet";
			gpios = <&pioA 10 GPIO_ACTIVE_LOW>;
			default-state = "off";
		};

		wifi {
			label = "gatwick:green:wifi";
			gpios = <&pioA 28 GPIO_ACTIVE_LOW>;
			default-state = "off";
		};

		ble {
			label = "gatwick:blue:ble";
			gpios = <&pioA 22 GPIO_ACTIVE_LOW>;
			default-state = "off";
		};

		lora {
			label = "gatwick:orange:lora";
			gpios = <&pioA 26 GPIO_ACTIVE_LOW>;
			default-state = "off";
		};

		blank {
			label = "gatwick:green:blank";
			gpios = <&pioA 24 GPIO_ACTIVE_LOW>;
			default-state = "off";
		};

		user {
			label = "gatwick:yellow:user";
			gpios = <&pioA 12 GPIO_ACTIVE_LOW>;
			default-state = "off";
		};
	};
};

&pinctrl {
	board {
		pinctrl_key_gpio: key_gpio_0 {
		  atmel,pins =
			  <AT91_PIOE 31 AT91_PERIPH_GPIO AT91_PINCTRL_PULL_UP_DEGLITCH>; /* PE31 GPIO with pullup deglitch */
	  };
	};
};

&mmc0 {
	status = "okay";
};

&macb1 {
	status = "okay";
};

&dbgu {
	status = "okay";
};

/* FTDI USART */
&usart0 {
	status = "okay";
};

/* GPS USART */
&usart1 {
	pinctrl-0 = <&pinctrl_usart1>;
	status = "okay";
};

&spi1 {
	status = "okay";

	spidev@0 {
		compatible = "semtech,sx1301";
		reg = <0>;
		spi-max-frequency = <8000000>;
	};
};

&usb1 {
	status = "okay";
	/delete-property/atmel,oc-gpio;
};

&usb2 {
	status = "okay";
};