wb50n.dts 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  1. // SPDX-License-Identifier: GPL-2.0-or-later
  2. /*
  3. * wb50n.dts - Device Tree file for wb50n board
  4. *
  5. * Copyright (C) 2015 Laird
  6. */
  7. /dts-v1/;
  8. #include "wb50n.dtsi"
  9. / {
  10. model = "Laird Workgroup Bridge 50N - Atmel SAMA5D";
  11. compatible = "laird,wb50n", "atmel,sama5d31ek", "atmel,sama5d3xmb", "atmel,sama5d3xcm", "atmel,sama5d31", "atmel,sama5d3", "atmel,sama5";
  12. chosen {
  13. bootargs = "console=ttyS0,115200 earlyprintk loglevel=4 mem=64M";
  14. };
  15. ahb {
  16. apb {
  17. mmc0: mmc@f0000000 {
  18. status = "okay";
  19. };
  20. macb1: ethernet@f802c000 {
  21. status = "okay";
  22. };
  23. dbgu: serial@ffffee00 {
  24. status = "okay";
  25. };
  26. /* On BB40 this port is labeled UART1 */
  27. usart0: serial@f001c000 {
  28. status = "okay";
  29. };
  30. /* On BB40 this port is labeled UART0 */
  31. usart1: serial@f0020000 {
  32. status = "okay";
  33. };
  34. i2c0: i2c@f0014000 {
  35. status = "okay";
  36. };
  37. spi1: spi@f8008000 {
  38. status = "okay";
  39. spidev@0 {
  40. compatible = "spidev";
  41. reg = <0>;
  42. spi-max-frequency = <8000000>;
  43. };
  44. };
  45. watchdog@fffffe40 {
  46. status = "okay";
  47. };
  48. };
  49. usb0: gadget@00500000 {
  50. status = "okay";
  51. };
  52. usb1: ohci@00600000 {
  53. status = "okay";
  54. };
  55. usb2: ehci@00700000 {
  56. status = "okay";
  57. };
  58. };
  59. keys {
  60. compatible = "gpio-keys";
  61. #address-cells = <1>;
  62. #size-cells = <0>;
  63. btn0@pa10 {
  64. label = "BTNESC";
  65. linux,code = <1>; /* ESC button */
  66. gpios = <&pioA 10 GPIO_ACTIVE_LOW>;
  67. gpio-key,wakeup = <1>;
  68. };
  69. irqbtn@pe31 {
  70. label = "IRQBTN";
  71. linux,code = <99>; /* SysReq button */
  72. gpios = <&pioE 31 GPIO_ACTIVE_LOW>;
  73. gpio-key,wakeup = <1>;
  74. };
  75. };
  76. leds {
  77. compatible = "gpio-leds";
  78. led0 {
  79. label = "wb50n:blue:led0";
  80. gpios = <&pioA 12 GPIO_ACTIVE_LOW>;
  81. };
  82. led1 {
  83. label = "wb50n:green:led1";
  84. gpios = <&pioA 24 GPIO_ACTIVE_LOW>;
  85. };
  86. led2 {
  87. label = "wb50n:red:led2";
  88. gpios = <&pioA 26 GPIO_ACTIVE_LOW>;
  89. };
  90. };
  91. };