MLWG2.dts 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  1. /dts-v1/;
  2. /include/ "mt7620n.dtsi"
  3. / {
  4. compatible = "mlwg2", "ralink,mt7620n-soc";
  5. model = "Kingston MLWG2";
  6. palmbus@10000000 {
  7. gpio0: gpio@600 {
  8. status = "okay";
  9. };
  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 = "mx25l12805d";
  22. reg = <0 0>;
  23. linux,modalias = "m25p80";
  24. spi-max-frequency = <10000000>;
  25. partition@0 {
  26. label = "u-boot";
  27. reg = <0x0 0x30000>;
  28. read-only;
  29. };
  30. partition@30000 {
  31. label = "u-boot-env";
  32. reg = <0x30000 0x10000>;
  33. read-only;
  34. };
  35. factory: partition@40000 {
  36. label = "factory";
  37. reg = <0x40000 0x10000>;
  38. read-only;
  39. };
  40. partition@50000 {
  41. label = "firmware";
  42. reg = <0x50000 0xf60000>;
  43. };
  44. partition@fb0000 {
  45. label = "user-config";
  46. reg = <0xfb0000 0x50000>;
  47. };
  48. };
  49. };
  50. };
  51. ehci@101c0000 {
  52. status = "okay";
  53. };
  54. ohci@101c1000 {
  55. status = "okay";
  56. };
  57. ethernet@10100000 {
  58. mtd-mac-address = <&factory 0x4>;
  59. ralink,port-map = "wllll";
  60. };
  61. wmac@10180000 {
  62. ralink,mtd-eeprom = <&factory 0>;
  63. };
  64. pinctrl {
  65. state_default: pinctrl0 {
  66. default {
  67. ralink,group = "i2c", "ephy", "wled";
  68. ralink,function = "gpio";
  69. };
  70. };
  71. };
  72. gpio-leds {
  73. compatible = "gpio-leds";
  74. system {
  75. label = "kingston:blue:system";
  76. gpios = <&gpio2 3 1>;
  77. };
  78. wifi {
  79. label = "kingston:blue:wifi";
  80. gpios = <&gpio3 0 1>;
  81. };
  82. };
  83. gpio-keys-polled {
  84. compatible = "gpio-keys-polled";
  85. #address-cells = <1>;
  86. #size-cells = <0>;
  87. poll-interval = <20>;
  88. reset {
  89. label = "reset";
  90. gpios = <&gpio0 1 1>;
  91. linux,code = <0x198>;
  92. };
  93. system {
  94. label = "system";
  95. gpios = <&gpio0 2 1>;
  96. linux,code = <0x211>;
  97. };
  98. };
  99. };