JHR-N926R.dts 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129
  1. /dts-v1/;
  2. #include "rt3050.dtsi"
  3. #include <dt-bindings/input/input.h>
  4. / {
  5. compatible = "JHR-N926R", "ralink,rt3052-soc";
  6. model = "JCG JHR-N926R";
  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 0x3b0000>;
  32. };
  33. };
  34. gpio-leds {
  35. compatible = "gpio-leds";
  36. wlan1 {
  37. label = "jhr-n926r:red:wlan";
  38. gpios = <&gpio0 20 1>;
  39. };
  40. wlan2 {
  41. label = "jhr-n926r:yellow:wlan";
  42. gpios = <&gpio0 19 1>;
  43. };
  44. wlan3 {
  45. label = "jhr-n926r:green:wlan";
  46. gpios = <&gpio0 17 1>;
  47. };
  48. system {
  49. label = "jhr-n926r:blue:system";
  50. gpios = <&gpio0 13 1>;
  51. };
  52. };
  53. gpio_export {
  54. compatible = "gpio-export";
  55. #size-cells = <0>;
  56. display_data {
  57. gpio-export,name = "display_data";
  58. gpio-export,output = <1>;
  59. gpios = <&gpio0 7 1>;
  60. };
  61. display_clock {
  62. gpio-export,name = "display_clock";
  63. gpio-export,output = <1>;
  64. gpios = <&gpio0 8 0>;
  65. };
  66. display_blank {
  67. gpio-export,name = "display_blank";
  68. gpio-export,output = <1>;
  69. gpios = <&gpio0 11 0>;
  70. };
  71. };
  72. gpio-keys-polled {
  73. compatible = "gpio-keys-polled";
  74. #address-cells = <1>;
  75. #size-cells = <0>;
  76. poll-interval = <20>;
  77. reset_wps {
  78. label = "reset_wps";
  79. gpios = <&gpio0 10 1>;
  80. linux,code = <KEY_RESTART>;
  81. };
  82. wlan {
  83. label = "wlan";
  84. gpios = <&gpio0 1 1>;
  85. linux,code = <BTN_0>;
  86. };
  87. };
  88. };
  89. &pinctrl {
  90. state_default: pinctrl0 {
  91. gpio {
  92. ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf";
  93. ralink,function = "gpio";
  94. };
  95. };
  96. };
  97. &ethernet {
  98. mtd-mac-address = <&factory 0x2e>;
  99. };
  100. &esw {
  101. mediatek,portmap = <0x3e>;
  102. };
  103. &wmac {
  104. ralink,mtd-eeprom = <&factory 0>;
  105. };