at91-gatwick.dts 1.9 KB

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