MicroWRT.dts 1.6 KB

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