YOUKU-YK1.dts 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  1. /dts-v1/;
  2. #include "mt7620a.dtsi"
  3. #include <dt-bindings/input/input.h>
  4. / {
  5. compatible = "YOUKU-YK1", "ralink,mt7620a-soc";
  6. model = "YOUKU YK1";
  7. gpio-leds {
  8. compatible = "gpio-leds";
  9. wan {
  10. label = "youku-yk1:blue:wan";
  11. gpios = <&gpio2 4 1>;
  12. };
  13. air {
  14. label = "youku-yk1:blue:air";
  15. gpios = <&gpio3 0 1>;
  16. };
  17. usb {
  18. label = "youku-yk1:blue:usb";
  19. gpios = <&gpio1 11 1>;
  20. };
  21. power {
  22. label = "youku-yk1:blue:power";
  23. gpios = <&gpio1 5 1>;
  24. };
  25. };
  26. gpio-keys-polled {
  27. compatible = "gpio-keys-polled";
  28. #address-cells = <1>;
  29. #size-cells = <0>;
  30. poll-interval = <20>;
  31. reset {
  32. label = "reset";
  33. gpios = <&gpio0 1 1>;
  34. linux,code = <KEY_RESTART>;
  35. };
  36. };
  37. };
  38. &gpio0 {
  39. status = "okay";
  40. };
  41. &gpio1 {
  42. status = "okay";
  43. };
  44. &gpio2 {
  45. status = "okay";
  46. };
  47. &gpio3 {
  48. status = "okay";
  49. };
  50. &spi0 {
  51. status = "okay";
  52. m25p80@0 {
  53. #address-cells = <1>;
  54. #size-cells = <1>;
  55. compatible = "jedec,spi-nor";
  56. reg = <0>;
  57. linux,modalias = "m25p80", "w25q256";
  58. spi-max-frequency = <10000000>;
  59. partition@0 {
  60. label = "u-boot";
  61. reg = <0x0 0x30000>;
  62. read-only;
  63. };
  64. partition@30000 {
  65. label = "u-boot-env";
  66. reg = <0x30000 0x10000>;
  67. read-only;
  68. };
  69. factory: partition@40000 {
  70. label = "factory";
  71. reg = <0x40000 0x10000>;
  72. read-only;
  73. };
  74. partition@50000 {
  75. label = "firmware";
  76. reg = <0x50000 0x1fb0000>;
  77. };
  78. };
  79. };
  80. &pinctrl {
  81. state_default: pinctrl0 {
  82. default {
  83. ralink,group = "i2c", "uartf", "rgmii1", "rgmii2", "ephy", "wled", "nd_sd";
  84. ralink,function = "gpio";
  85. };
  86. };
  87. };
  88. &ethernet {
  89. pinctrl-names = "default";
  90. pinctrl-0 = <&ephy_pins>;
  91. mtd-mac-address = <&factory 0x4>;
  92. mediatek,portmap = "llllw";
  93. };
  94. &wmac {
  95. ralink,mtd-eeprom = <&factory 0>;
  96. };
  97. &sdhci {
  98. status = "okay";
  99. };
  100. &ehci {
  101. status = "okay";
  102. };
  103. &ohci {
  104. status = "okay";
  105. };