1
0

WHR-G300N.dts 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  1. /dts-v1/;
  2. #include "rt3050.dtsi"
  3. #include <dt-bindings/input/input.h>
  4. / {
  5. compatible = "WHR-G300N", "ralink,rt3052-soc";
  6. model = "Buffalo WHR-G300N";
  7. cfi@1f000000 {
  8. compatible = "cfi-flash";
  9. reg = <0x1f000000 0x800000>;
  10. bank-width = <2>;
  11. device-width = <2>;
  12. #address-cells = <1>;
  13. #size-cells = <1>;
  14. partition@0 {
  15. label = "u-boot";
  16. reg = <0x0 0x30000>;
  17. read-only;
  18. };
  19. partition@30000 {
  20. label = "u-boot-env";
  21. reg = <0x30000 0x10000>;
  22. read-only;
  23. };
  24. factory: partition@40000 {
  25. label = "factory";
  26. reg = <0x40000 0x10000>;
  27. read-only;
  28. };
  29. partition@50000 {
  30. label = "firmware";
  31. reg = <0x50000 0x3a0000>;
  32. };
  33. partition@3f0000 {
  34. label = "user";
  35. reg = <0x3f0000 0x10000>;
  36. read-only;
  37. };
  38. };
  39. gpio-leds {
  40. compatible = "gpio-leds";
  41. diag {
  42. label = "whr-g300n:red:diag";
  43. gpios = <&gpio0 7 1>;
  44. };
  45. router {
  46. label = "whr-g300n:green:router";
  47. gpios = <&gpio0 9 1>;
  48. };
  49. security {
  50. label = "whr-g300n:amber:security";
  51. gpios = <&gpio0 14 1>;
  52. };
  53. };
  54. gpio-keys-polled {
  55. compatible = "gpio-keys-polled";
  56. #address-cells = <1>;
  57. #size-cells = <0>;
  58. poll-interval = <20>;
  59. reset {
  60. label = "reset";
  61. gpios = <&gpio0 10 1>;
  62. linux,code = <KEY_RESTART>;
  63. };
  64. aoss {
  65. label = "aoss";
  66. gpios = <&gpio0 0 1>;
  67. linux,code = <KEY_WPS_BUTTON>;
  68. };
  69. router-off {
  70. label = "router-off";
  71. gpios = <&gpio0 11 1>;
  72. linux,code = <BTN_2>;
  73. };
  74. router-on {
  75. label = "router-on";
  76. gpios = <&gpio0 8 1>;
  77. linux,code = <BTN_3>;
  78. };
  79. };
  80. };
  81. &pinctrl {
  82. state_default: pinctrl0 {
  83. gpio {
  84. ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf";
  85. ralink,function = "gpio";
  86. };
  87. };
  88. };
  89. &esw {
  90. mediatek,portmap = <0x2f>;
  91. };
  92. &wmac {
  93. ralink,mtd-eeprom = <&factory 0>;
  94. };