YOUKU-YK1.dts 1.8 KB

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