xref: /freebsd/sys/contrib/device-tree/src/arm/microchip/at91-gatwick.dts (revision f126890ac5386406dadf7c4cfa9566cbb56537c5)
1*f126890aSEmmanuel Vadot// SPDX-License-Identifier: GPL-2.0
2*f126890aSEmmanuel Vadot/*
3*f126890aSEmmanuel Vadot * at91-gatwick.dts - Device Tree file for the Gatwick board
4*f126890aSEmmanuel Vadot *
5*f126890aSEmmanuel Vadot *  Copyright (C) 2018 Laird
6*f126890aSEmmanuel Vadot *
7*f126890aSEmmanuel Vadot */
8*f126890aSEmmanuel Vadot/dts-v1/;
9*f126890aSEmmanuel Vadot#include "at91-wb50n.dtsi"
10*f126890aSEmmanuel Vadot#include <dt-bindings/input/input.h>
11*f126890aSEmmanuel Vadot
12*f126890aSEmmanuel Vadot/ {
13*f126890aSEmmanuel Vadot	model = "Laird Workgroup Bridge 50N - Project Gatwick";
14*f126890aSEmmanuel Vadot	compatible = "laird,gatwick", "laird,wb50n", "atmel,sama5d31", "atmel,sama5d3", "atmel,sama5";
15*f126890aSEmmanuel Vadot
16*f126890aSEmmanuel Vadot	gpio-keys {
17*f126890aSEmmanuel Vadot		compatible = "gpio-keys";
18*f126890aSEmmanuel Vadot		autorepeat;
19*f126890aSEmmanuel Vadot
20*f126890aSEmmanuel Vadot		pinctrl-names = "default";
21*f126890aSEmmanuel Vadot		pinctrl-0 = <&pinctrl_key_gpio>;
22*f126890aSEmmanuel Vadot
23*f126890aSEmmanuel Vadot		reset-button {
24*f126890aSEmmanuel Vadot			label = "Reset Button";
25*f126890aSEmmanuel Vadot			linux,code = <KEY_SETUP>;
26*f126890aSEmmanuel Vadot			gpios = <&pioE 31 GPIO_ACTIVE_LOW>;
27*f126890aSEmmanuel Vadot			wakeup-source;
28*f126890aSEmmanuel Vadot		};
29*f126890aSEmmanuel Vadot	};
30*f126890aSEmmanuel Vadot
31*f126890aSEmmanuel Vadot	leds {
32*f126890aSEmmanuel Vadot		compatible = "gpio-leds";
33*f126890aSEmmanuel Vadot
34*f126890aSEmmanuel Vadot		led-ethernet {
35*f126890aSEmmanuel Vadot			label = "gatwick:yellow:ethernet";
36*f126890aSEmmanuel Vadot			gpios = <&pioA 10 GPIO_ACTIVE_LOW>;
37*f126890aSEmmanuel Vadot			default-state = "off";
38*f126890aSEmmanuel Vadot		};
39*f126890aSEmmanuel Vadot
40*f126890aSEmmanuel Vadot		led-wifi {
41*f126890aSEmmanuel Vadot			label = "gatwick:green:wifi";
42*f126890aSEmmanuel Vadot			gpios = <&pioA 28 GPIO_ACTIVE_LOW>;
43*f126890aSEmmanuel Vadot			default-state = "off";
44*f126890aSEmmanuel Vadot		};
45*f126890aSEmmanuel Vadot
46*f126890aSEmmanuel Vadot		led-ble {
47*f126890aSEmmanuel Vadot			label = "gatwick:blue:ble";
48*f126890aSEmmanuel Vadot			gpios = <&pioA 22 GPIO_ACTIVE_LOW>;
49*f126890aSEmmanuel Vadot			default-state = "off";
50*f126890aSEmmanuel Vadot		};
51*f126890aSEmmanuel Vadot
52*f126890aSEmmanuel Vadot		led-lora {
53*f126890aSEmmanuel Vadot			label = "gatwick:orange:lora";
54*f126890aSEmmanuel Vadot			gpios = <&pioA 26 GPIO_ACTIVE_LOW>;
55*f126890aSEmmanuel Vadot			default-state = "off";
56*f126890aSEmmanuel Vadot		};
57*f126890aSEmmanuel Vadot
58*f126890aSEmmanuel Vadot		led-blank {
59*f126890aSEmmanuel Vadot			label = "gatwick:green:blank";
60*f126890aSEmmanuel Vadot			gpios = <&pioA 24 GPIO_ACTIVE_LOW>;
61*f126890aSEmmanuel Vadot			default-state = "off";
62*f126890aSEmmanuel Vadot		};
63*f126890aSEmmanuel Vadot
64*f126890aSEmmanuel Vadot		led-user {
65*f126890aSEmmanuel Vadot			label = "gatwick:yellow:user";
66*f126890aSEmmanuel Vadot			gpios = <&pioA 12 GPIO_ACTIVE_LOW>;
67*f126890aSEmmanuel Vadot			default-state = "off";
68*f126890aSEmmanuel Vadot		};
69*f126890aSEmmanuel Vadot	};
70*f126890aSEmmanuel Vadot};
71*f126890aSEmmanuel Vadot
72*f126890aSEmmanuel Vadot&pinctrl {
73*f126890aSEmmanuel Vadot	board {
74*f126890aSEmmanuel Vadot		pinctrl_key_gpio: key_gpio_0 {
75*f126890aSEmmanuel Vadot		  atmel,pins =
76*f126890aSEmmanuel Vadot			  <AT91_PIOE 31 AT91_PERIPH_GPIO AT91_PINCTRL_PULL_UP_DEGLITCH>; /* PE31 GPIO with pullup deglitch */
77*f126890aSEmmanuel Vadot	  };
78*f126890aSEmmanuel Vadot	};
79*f126890aSEmmanuel Vadot};
80*f126890aSEmmanuel Vadot
81*f126890aSEmmanuel Vadot&mmc0 {
82*f126890aSEmmanuel Vadot	status = "okay";
83*f126890aSEmmanuel Vadot};
84*f126890aSEmmanuel Vadot
85*f126890aSEmmanuel Vadot&macb1 {
86*f126890aSEmmanuel Vadot	status = "okay";
87*f126890aSEmmanuel Vadot};
88*f126890aSEmmanuel Vadot
89*f126890aSEmmanuel Vadot&dbgu {
90*f126890aSEmmanuel Vadot	status = "okay";
91*f126890aSEmmanuel Vadot};
92*f126890aSEmmanuel Vadot
93*f126890aSEmmanuel Vadot/* FTDI USART */
94*f126890aSEmmanuel Vadot&usart0 {
95*f126890aSEmmanuel Vadot	status = "okay";
96*f126890aSEmmanuel Vadot};
97*f126890aSEmmanuel Vadot
98*f126890aSEmmanuel Vadot/* GPS USART */
99*f126890aSEmmanuel Vadot&usart1 {
100*f126890aSEmmanuel Vadot	pinctrl-0 = <&pinctrl_usart1>;
101*f126890aSEmmanuel Vadot	status = "okay";
102*f126890aSEmmanuel Vadot};
103*f126890aSEmmanuel Vadot
104*f126890aSEmmanuel Vadot&spi1 {
105*f126890aSEmmanuel Vadot	status = "okay";
106*f126890aSEmmanuel Vadot
107*f126890aSEmmanuel Vadot	spidev@0 {
108*f126890aSEmmanuel Vadot		compatible = "semtech,sx1301";
109*f126890aSEmmanuel Vadot		reg = <0>;
110*f126890aSEmmanuel Vadot		spi-max-frequency = <8000000>;
111*f126890aSEmmanuel Vadot	};
112*f126890aSEmmanuel Vadot};
113*f126890aSEmmanuel Vadot
114*f126890aSEmmanuel Vadot&usb1 {
115*f126890aSEmmanuel Vadot	status = "okay";
116*f126890aSEmmanuel Vadot	/delete-property/atmel,oc-gpio;
117*f126890aSEmmanuel Vadot};
118*f126890aSEmmanuel Vadot
119*f126890aSEmmanuel Vadot&usb2 {
120*f126890aSEmmanuel Vadot	status = "okay";
121*f126890aSEmmanuel Vadot};
122