WT3020-8M.dts 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. /dts-v1/;
  2. /include/ "mt7620n.dtsi"
  3. / {
  4. compatible = "wt3020", "ralink,mt7620n-soc";
  5. model = "Nexx WT3020";
  6. palmbus@10000000 {
  7. gpio2: gpio@660 {
  8. status = "okay";
  9. };
  10. gpio3: gpio@688 {
  11. status = "okay";
  12. };
  13. spi@b00 {
  14. status = "okay";
  15. m25p80@0 {
  16. #address-cells = <1>;
  17. #size-cells = <1>;
  18. compatible = "w25q64";
  19. reg = <0 0>;
  20. linux,modalias = "m25p80", "w25q64";
  21. spi-max-frequency = <10000000>;
  22. partition@0 {
  23. label = "u-boot";
  24. reg = <0x0 0x30000>;
  25. read-only;
  26. };
  27. partition@30000 {
  28. label = "u-boot-env";
  29. reg = <0x30000 0x10000>;
  30. read-only;
  31. };
  32. factory: partition@40000 {
  33. label = "factory";
  34. reg = <0x40000 0x10000>;
  35. read-only;
  36. };
  37. partition@50000 {
  38. label = "firmware";
  39. reg = <0x50000 0x7b0000>;
  40. };
  41. };
  42. };
  43. };
  44. ehci@101c0000 {
  45. status = "okay";
  46. };
  47. ohci@101c1000 {
  48. status = "okay";
  49. };
  50. ethernet@10100000 {
  51. mtd-mac-address = <&factory 0x4>;
  52. ralink,port-map = "wllll";
  53. };
  54. wmac@10180000 {
  55. ralink,mtd-eeprom = <&factory 0>;
  56. };
  57. pinctrl {
  58. state_default: pinctrl0 {
  59. default {
  60. ralink,group = "ephy", "wled", "pa", "i2c", "wdt", "uartf";
  61. ralink,function = "gpio";
  62. };
  63. };
  64. };
  65. gpio-keys-polled {
  66. compatible = "gpio-keys-polled";
  67. #address-cells = <1>;
  68. #size-cells = <0>;
  69. poll-interval = <20>;
  70. reset {
  71. label = "reset";
  72. gpios = <&gpio0 1 1>;
  73. linux,code = <0x198>;
  74. };
  75. };
  76. gpio-leds {
  77. compatible = "gpio-leds";
  78. power {
  79. label = "nexx:blue:power";
  80. gpios = <&gpio3 0 0>;
  81. };
  82. };
  83. };