0001 // SPDX-License-Identifier: GPL-2.0
0002 /*
0003 * at91-gatwick.dts - Device Tree file for the Gatwick board
0004 *
0005 * Copyright (C) 2018 Laird
0006 *
0007 */
0008 /dts-v1/;
0009 #include "at91-wb50n.dtsi"
0010 #include <dt-bindings/input/input.h>
0011
0012 / {
0013 model = "Laird Workgroup Bridge 50N - Project Gatwick";
0014 compatible = "laird,gatwick", "laird,wb50n", "atmel,sama5d31", "atmel,sama5d3", "atmel,sama5";
0015
0016 gpio-keys {
0017 compatible = "gpio-keys";
0018 autorepeat;
0019
0020 pinctrl-names = "default";
0021 pinctrl-0 = <&pinctrl_key_gpio>;
0022
0023 reset-button {
0024 label = "Reset Button";
0025 linux,code = <KEY_SETUP>;
0026 gpios = <&pioE 31 GPIO_ACTIVE_LOW>;
0027 wakeup-source;
0028 };
0029 };
0030
0031 leds {
0032 compatible = "gpio-leds";
0033
0034 ethernet {
0035 label = "gatwick:yellow:ethernet";
0036 gpios = <&pioA 10 GPIO_ACTIVE_LOW>;
0037 default-state = "off";
0038 };
0039
0040 wifi {
0041 label = "gatwick:green:wifi";
0042 gpios = <&pioA 28 GPIO_ACTIVE_LOW>;
0043 default-state = "off";
0044 };
0045
0046 ble {
0047 label = "gatwick:blue:ble";
0048 gpios = <&pioA 22 GPIO_ACTIVE_LOW>;
0049 default-state = "off";
0050 };
0051
0052 lora {
0053 label = "gatwick:orange:lora";
0054 gpios = <&pioA 26 GPIO_ACTIVE_LOW>;
0055 default-state = "off";
0056 };
0057
0058 blank {
0059 label = "gatwick:green:blank";
0060 gpios = <&pioA 24 GPIO_ACTIVE_LOW>;
0061 default-state = "off";
0062 };
0063
0064 user {
0065 label = "gatwick:yellow:user";
0066 gpios = <&pioA 12 GPIO_ACTIVE_LOW>;
0067 default-state = "off";
0068 };
0069 };
0070 };
0071
0072 &pinctrl {
0073 board {
0074 pinctrl_key_gpio: key_gpio_0 {
0075 atmel,pins =
0076 <AT91_PIOE 31 AT91_PERIPH_GPIO AT91_PINCTRL_PULL_UP_DEGLITCH>; /* PE31 GPIO with pullup deglitch */
0077 };
0078 };
0079 };
0080
0081 &mmc0 {
0082 status = "okay";
0083 };
0084
0085 &macb1 {
0086 status = "okay";
0087 };
0088
0089 &dbgu {
0090 status = "okay";
0091 };
0092
0093 /* FTDI USART */
0094 &usart0 {
0095 status = "okay";
0096 };
0097
0098 /* GPS USART */
0099 &usart1 {
0100 pinctrl-0 = <&pinctrl_usart1>;
0101 status = "okay";
0102 };
0103
0104 &spi1 {
0105 status = "okay";
0106
0107 spidev@0 {
0108 compatible = "semtech,sx1301";
0109 reg = <0>;
0110 spi-max-frequency = <8000000>;
0111 };
0112 };
0113
0114 &usb1 {
0115 status = "okay";
0116 /delete-property/atmel,oc-gpio;
0117 };
0118
0119 &usb2 {
0120 status = "okay";
0121 };