JHR-N926R.dts 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127
  1. /dts-v1/;
  2. #include "rt3050.dtsi"
  3. / {
  4. compatible = "JHR-N926R", "ralink,rt3052-soc";
  5. model = "JCG JHR-N926R";
  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. partition@0 {
  14. label = "u-boot";
  15. reg = <0x0 0x30000>;
  16. read-only;
  17. };
  18. partition@30000 {
  19. label = "u-boot-env";
  20. reg = <0x30000 0x10000>;
  21. read-only;
  22. };
  23. factory: partition@40000 {
  24. label = "factory";
  25. reg = <0x40000 0x10000>;
  26. read-only;
  27. };
  28. partition@50000 {
  29. label = "firmware";
  30. reg = <0x50000 0x3b0000>;
  31. };
  32. };
  33. gpio-leds {
  34. compatible = "gpio-leds";
  35. wlan1 {
  36. label = "jhr-n926r:red:wlan";
  37. gpios = <&gpio0 20 1>;
  38. };
  39. wlan2 {
  40. label = "jhr-n926r:yellow:wlan";
  41. gpios = <&gpio0 19 1>;
  42. };
  43. wlan3 {
  44. label = "jhr-n926r:green:wlan";
  45. gpios = <&gpio0 17 1>;
  46. };
  47. system {
  48. label = "jhr-n926r:blue:system";
  49. gpios = <&gpio0 13 1>;
  50. };
  51. };
  52. gpio_export {
  53. compatible = "gpio-export";
  54. #size-cells = <0>;
  55. display_data {
  56. gpio-export,name = "display_data";
  57. gpio-export,output = <1>;
  58. gpios = <&gpio0 7 1>;
  59. };
  60. display_clock {
  61. gpio-export,name = "display_clock";
  62. gpio-export,output = <1>;
  63. gpios = <&gpio0 8 0>;
  64. };
  65. display_blank {
  66. gpio-export,name = "display_blank";
  67. gpio-export,output = <1>;
  68. gpios = <&gpio0 11 0>;
  69. };
  70. };
  71. gpio-keys-polled {
  72. compatible = "gpio-keys-polled";
  73. #address-cells = <1>;
  74. #size-cells = <0>;
  75. poll-interval = <20>;
  76. reset_wps {
  77. label = "reset_wps";
  78. gpios = <&gpio0 10 1>;
  79. linux,code = <0x198>;
  80. };
  81. wlan {
  82. label = "wlan";
  83. gpios = <&gpio0 1 1>;
  84. linux,code = <0x100>;
  85. };
  86. };
  87. };
  88. &pinctrl {
  89. state_default: pinctrl0 {
  90. gpio {
  91. ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf";
  92. ralink,function = "gpio";
  93. };
  94. };
  95. };
  96. &ethernet {
  97. mtd-mac-address = <&factory 0x2e>;
  98. };
  99. &esw {
  100. mediatek,portmap = <0x3e>;
  101. };
  102. &wmac {
  103. ralink,mtd-eeprom = <&factory 0>;
  104. };