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