WHR-G300N.dts 1.3 KB

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