1
0

ar9331_8dev_carambola2.dts 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135
  1. // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
  2. /dts-v1/;
  3. #include <dt-bindings/gpio/gpio.h>
  4. #include <dt-bindings/input/input.h>
  5. #include "ar9331.dtsi"
  6. / {
  7. model = "8devices Carambola2";
  8. compatible = "8dev,carambola2", "qca,ar9331";
  9. aliases {
  10. serial0 = &uart;
  11. };
  12. leds {
  13. compatible = "gpio-leds";
  14. wlan {
  15. label = "carambola2:green:wlan";
  16. gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
  17. linux,default-trigger = "phy0tpt";
  18. };
  19. eth0 {
  20. label = "carambola2:orange:eth0";
  21. gpios = <&gpio 13 GPIO_ACTIVE_HIGH>;
  22. };
  23. eth1 {
  24. label = "carambola2:orange:eth1";
  25. gpios = <&gpio 14 GPIO_ACTIVE_HIGH>;
  26. };
  27. };
  28. keys {
  29. compatible = "gpio-keys";
  30. wps {
  31. label = "wps";
  32. linux,code = <KEY_WPS_BUTTON>;
  33. gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
  34. };
  35. };
  36. };
  37. &ref {
  38. clock-frequency = <40000000>;
  39. };
  40. &uart {
  41. status = "okay";
  42. };
  43. &gpio {
  44. status = "okay";
  45. };
  46. &usb {
  47. dr_mode = "host";
  48. status = "okay";
  49. };
  50. &usb_phy {
  51. status = "okay";
  52. };
  53. &spi {
  54. num-chipselects = <0>;
  55. status = "okay";
  56. flash@0 {
  57. compatible = "jedec,spi-nor";
  58. spi-max-frequency = <104000000>;
  59. reg = <0>;
  60. partitions {
  61. compatible = "fixed-partitions";
  62. #address-cells = <1>;
  63. #size-cells = <1>;
  64. uboot: partition@0 {
  65. label = "u-boot";
  66. reg = <0x000000 0x040000>;
  67. read-only;
  68. };
  69. partition@40000 {
  70. label = "u-boot-env";
  71. reg = <0x040000 0x010000>;
  72. read-only;
  73. };
  74. partition@50000 {
  75. compatible = "denx,uimage";
  76. label = "firmware";
  77. reg = <0x50000 0xfa0000>;
  78. };
  79. art: partition@ff0000 {
  80. label = "art";
  81. reg = <0xff0000 0x010000>;
  82. read-only;
  83. };
  84. };
  85. };
  86. };
  87. &mdio0 {
  88. status = "okay";
  89. };
  90. &eth0 {
  91. status = "okay";
  92. mtd-mac-address = <&art 0x0>;
  93. gmac-config {
  94. device = <&gmac>;
  95. switch-phy-addr-swap = <1>;
  96. switch-phy-swap = <1>;
  97. };
  98. };
  99. &eth1 {
  100. status = "okay";
  101. mtd-mac-address = <&art 0x6>;
  102. };
  103. &wmac {
  104. status = "okay";
  105. mtd-cal-data = <&art 0x1000>;
  106. mtd-mac-address = <&art 0x1002>;
  107. };