wb50n.dts 1.9 KB

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