WMR300.dts 1.6 KB

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