YOUKU-YK2.dts 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157
  1. // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
  2. /dts-v1/;
  3. #include "mt7621.dtsi"
  4. #include <dt-bindings/gpio/gpio.h>
  5. #include <dt-bindings/input/input.h>
  6. / {
  7. compatible = "youku,yk-l2", "mediatek,mt7621-soc";
  8. model = "Youku YK-L2";
  9. aliases {
  10. led-boot = &led_power;
  11. led-failsafe = &led_power;
  12. led-running = &led_power;
  13. led-upgrade = &led_wps;
  14. };
  15. memory@0 {
  16. device_type = "memory";
  17. reg = <0x0 0x10000000>;
  18. };
  19. chosen {
  20. bootargs = "console=ttyS0,115200";
  21. };
  22. leds {
  23. compatible = "gpio-leds";
  24. led_power: power {
  25. label = "yk-l2:blue:power";
  26. gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
  27. default-state = "on";
  28. };
  29. led_wps: wps {
  30. label = "yk-l2:blue:wps";
  31. gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
  32. };
  33. usb {
  34. label = "yk-l2:blue:usb";
  35. gpios = <&gpio0 16 GPIO_ACTIVE_LOW>;
  36. trigger-sources = <&xhci_ehci_port1>, <&ehci_port2>;
  37. linux,default-trigger = "usbport";
  38. };
  39. };
  40. keys {
  41. compatible = "gpio-keys-polled";
  42. poll-interval = <20>;
  43. reset {
  44. label = "reset";
  45. gpios = <&gpio0 18 GPIO_ACTIVE_LOW>;
  46. linux,code = <KEY_RESTART>;
  47. };
  48. wps {
  49. label = "wps";
  50. gpios = <&gpio0 17 GPIO_ACTIVE_LOW>;
  51. linux,code = <KEY_WPS_BUTTON>;
  52. };
  53. };
  54. };
  55. &sdhci {
  56. status = "okay";
  57. };
  58. &xhci {
  59. status = "okay";
  60. };
  61. &spi0 {
  62. status = "okay";
  63. flash@0 {
  64. compatible = "jedec,spi-nor";
  65. reg = <0>;
  66. spi-max-frequency = <10000000>;
  67. partitions {
  68. compatible = "fixed-partitions";
  69. #address-cells = <1>;
  70. #size-cells = <1>;
  71. partition@0 {
  72. label = "u-boot";
  73. reg = <0x0 0x30000>;
  74. read-only;
  75. };
  76. partition@30000 {
  77. label = "u-boot-env";
  78. reg = <0x30000 0x10000>;
  79. read-only;
  80. };
  81. factory: partition@40000 {
  82. label = "factory";
  83. reg = <0x40000 0x10000>;
  84. read-only;
  85. };
  86. partition@50000 {
  87. compatible = "denx,uimage";
  88. label = "firmware";
  89. reg = <0x50000 0xfb0000>;
  90. };
  91. };
  92. };
  93. };
  94. &pcie {
  95. status = "okay";
  96. };
  97. &pcie0 {
  98. wifi@0,0 {
  99. compatible = "pci14c3,7603";
  100. reg = <0x0000 0 0 0 0>;
  101. mediatek,mtd-eeprom = <&factory 0x0000>;
  102. ieee80211-freq-limit = <2400000 2500000>;
  103. led {
  104. led-active-low;
  105. };
  106. };
  107. };
  108. &pcie1 {
  109. wifi@0,0 {
  110. compatible = "pci14c3,7662";
  111. reg = <0x0000 0 0 0 0>;
  112. mediatek,mtd-eeprom = <&factory 0x8000>;
  113. ieee80211-freq-limit = <5000000 6000000>;
  114. led {
  115. led-sources = <2>;
  116. led-active-low;
  117. };
  118. };
  119. };
  120. &ethernet {
  121. mtd-mac-address = <&factory 0xe000>;
  122. };
  123. &pinctrl {
  124. state_default: pinctrl0 {
  125. gpio {
  126. ralink,group = "jtag", "wdt";
  127. ralink,function = "gpio";
  128. };
  129. };
  130. };