WHR-G300N.dts 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. /dts-v1/;
  2. #include "rt3050.dtsi"
  3. / {
  4. compatible = "WHR-G300N", "ralink,rt3052-soc";
  5. model = "Buffalo WHR-G300N";
  6. cfi@1f000000 {
  7. compatible = "cfi-flash";
  8. reg = <0x1f000000 0x800000>;
  9. bank-width = <2>;
  10. device-width = <2>;
  11. #address-cells = <1>;
  12. #size-cells = <1>;
  13. };
  14. gpio-leds {
  15. compatible = "gpio-leds";
  16. diag {
  17. label = "whr-g300n:red:diag";
  18. gpios = <&gpio0 7 1>;
  19. };
  20. router {
  21. label = "whr-g300n:green:router";
  22. gpios = <&gpio0 9 1>;
  23. };
  24. security {
  25. label = "whr-g300n:amber:security";
  26. gpios = <&gpio0 14 1>;
  27. };
  28. };
  29. gpio-keys-polled {
  30. compatible = "gpio-keys-polled";
  31. #address-cells = <1>;
  32. #size-cells = <0>;
  33. poll-interval = <20>;
  34. reset {
  35. label = "reset";
  36. gpios = <&gpio0 10 1>;
  37. linux,code = <0x198>;
  38. };
  39. aoss {
  40. label = "aoss";
  41. gpios = <&gpio0 0 1>;
  42. linux,code = <0x211>;
  43. };
  44. router-off {
  45. label = "router-off";
  46. gpios = <&gpio0 11 1>;
  47. linux,code = <0x102>;
  48. };
  49. router-on {
  50. label = "router-on";
  51. gpios = <&gpio0 8 1>;
  52. linux,code = <0x103>;
  53. };
  54. };
  55. };
  56. &pinctrl {
  57. state_default: pinctrl0 {
  58. gpio {
  59. ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf";
  60. ralink,function = "gpio";
  61. };
  62. };
  63. };
  64. &esw {
  65. mediatek,portmap = <0x2f>;
  66. };
  67. /* FIXME: no partitions defined */
  68. /*&wmac {
  69. ralink,mtd-eeprom = <&factory 0>;
  70. };
  71. */