SK-WB8.dts 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124
  1. /dts-v1/;
  2. #include "mt7621.dtsi"
  3. / {
  4. compatible = "mediatek,mt7621-eval-board", "mediatek,mt7621-soc";
  5. model = "SamKnows Whitebox 8";
  6. memory@0 {
  7. device_type = "memory";
  8. reg = <0x0 0x8000000>;
  9. };
  10. chosen {
  11. bootargs = "console=ttyS0,57600";
  12. };
  13. gpio-leds {
  14. compatible = "gpio-leds";
  15. wps {
  16. label = "sk-wb8:green:wps";
  17. gpios = <&gpio1 14 1>;
  18. };
  19. usb {
  20. label = "sk-wb8:green:usb";
  21. gpios = <&gpio1 15 1>;
  22. };
  23. };
  24. gpio-keys-polled {
  25. compatible = "gpio-keys-polled";
  26. #address-cells = <1>;
  27. #size-cells = <0>;
  28. poll-interval = <20>;
  29. wps {
  30. label = "wps";
  31. gpios = <&gpio1 11 1>;
  32. linux,code = <0x211>;
  33. };
  34. reset {
  35. label = "reset";
  36. gpios = <&gpio1 9 1>;
  37. linux,code = <0x198>;
  38. };
  39. };
  40. };
  41. &spi0 {
  42. status = "okay";
  43. m25p80@0 {
  44. #address-cells = <1>;
  45. #size-cells = <1>;
  46. compatible = "jedec,spi-nor";
  47. reg = <0>;
  48. linux,modalias = "m25p80";
  49. spi-max-frequency = <10000000>;
  50. partition@0 {
  51. label = "u-boot";
  52. reg = <0x0 0x30000>;
  53. read-only;
  54. };
  55. partition@30000 {
  56. label = "u-boot-env";
  57. reg = <0x30000 0x10000>;
  58. };
  59. factory: partition@40000 {
  60. label = "factory";
  61. reg = <0x40000 0x10000>;
  62. read-only;
  63. };
  64. partition@50000 {
  65. label = "firmware";
  66. reg = <0x50000 0x7b0000>;
  67. };
  68. partition@e30000 {
  69. label = "recovery";
  70. reg = <0xe30000 0x1d0000>;
  71. };
  72. };
  73. };
  74. &pcie {
  75. status = "okay";
  76. pcie0 {
  77. mt76@0,0 {
  78. reg = <0x0000 0 0 0 0>;
  79. device_type = "pci";
  80. mediatek,mtd-eeprom = <&factory 0x8000>;
  81. mediatek,2ghz = <0>;
  82. };
  83. };
  84. pcie1 {
  85. mt76@1,0 {
  86. reg = <0x0000 0 0 0 0>;
  87. device_type = "pci";
  88. mediatek,mtd-eeprom = <&factory 0x0000>;
  89. mediatek,5ghz = <0>;
  90. };
  91. };
  92. };
  93. &ethernet {
  94. mtd-mac-address = <&factory 0xe000>;
  95. };
  96. &pinctrl {
  97. state_default: pinctrl0 {
  98. gpio {
  99. ralink,group = "i2c", "uart2", "uart3", "rgmii2", "sdhci";
  100. ralink,function = "gpio";
  101. };
  102. };
  103. };