JHR-N926R.dts 2.3 KB

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