1
0

WHR-G300N.dts 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  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. };
  15. gpio-leds {
  16. compatible = "gpio-leds";
  17. diag {
  18. label = "whr-g300n:red:diag";
  19. gpios = <&gpio0 7 1>;
  20. };
  21. router {
  22. label = "whr-g300n:green:router";
  23. gpios = <&gpio0 9 1>;
  24. };
  25. security {
  26. label = "whr-g300n:amber:security";
  27. gpios = <&gpio0 14 1>;
  28. };
  29. };
  30. gpio-keys-polled {
  31. compatible = "gpio-keys-polled";
  32. #address-cells = <1>;
  33. #size-cells = <0>;
  34. poll-interval = <20>;
  35. reset {
  36. label = "reset";
  37. gpios = <&gpio0 10 1>;
  38. linux,code = <KEY_RESTART>;
  39. };
  40. aoss {
  41. label = "aoss";
  42. gpios = <&gpio0 0 1>;
  43. linux,code = <KEY_WPS_BUTTON>;
  44. };
  45. router-off {
  46. label = "router-off";
  47. gpios = <&gpio0 11 1>;
  48. linux,code = <BTN_2>;
  49. };
  50. router-on {
  51. label = "router-on";
  52. gpios = <&gpio0 8 1>;
  53. linux,code = <BTN_3>;
  54. };
  55. };
  56. };
  57. &pinctrl {
  58. state_default: pinctrl0 {
  59. gpio {
  60. ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf";
  61. ralink,function = "gpio";
  62. };
  63. };
  64. };
  65. &esw {
  66. mediatek,portmap = <0x2f>;
  67. };
  68. /* FIXME: no partitions defined */
  69. /*&wmac {
  70. ralink,mtd-eeprom = <&factory 0>;
  71. };
  72. */