1
0

NBG-419N2.dts 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  1. /dts-v1/;
  2. #include "rt3352.dtsi"
  3. #include <dt-bindings/input/input.h>
  4. / {
  5. compatible = "NBG-419N2", "ralink,rt3352-soc";
  6. model = "ZyXEL NBG-419N v2";
  7. palmbus@10000000 {
  8. spi@b00 {
  9. status = "okay";
  10. m25p80@0 {
  11. #address-cells = <1>;
  12. #size-cells = <1>;
  13. compatible = "mx25l6405d";
  14. reg = <0 0>;
  15. linux,modalias = "m25p80", "mx25l6405d";
  16. spi-max-frequency = <10000000>;
  17. partition@0 {
  18. label = "u-boot";
  19. reg = <0x0 0x30000>;
  20. read-only;
  21. };
  22. partition@30000 {
  23. label = "u-boot-env";
  24. reg = <0x30000 0x10000>;
  25. read-only;
  26. };
  27. factory: partition@40000 {
  28. label = "factory";
  29. reg = <0x40000 0x10000>;
  30. read-only;
  31. };
  32. partition@50000 {
  33. label = "firmware";
  34. reg = <0x50000 0x7b0000>;
  35. };
  36. };
  37. };
  38. };
  39. gpio-leds {
  40. compatible = "gpio-leds";
  41. power {
  42. label = "nbg-419n2:green:power";
  43. gpios = <&gpio0 9 1>;
  44. };
  45. wps {
  46. label = "nbg-419n2:green:wps";
  47. gpios = <&gpio0 14 1>;
  48. };
  49. usb {
  50. label = "nbg-419n2:green:usb";
  51. gpios = <&gpio0 13 1>;
  52. };
  53. };
  54. gpio-keys-polled {
  55. compatible = "gpio-keys-polled";
  56. #address-cells = <1>;
  57. #size-cells = <0>;
  58. poll-interval = <20>;
  59. reset {
  60. label = "reset";
  61. gpios = <&gpio0 10 1>;
  62. linux,code = <KEY_RESTART>;
  63. };
  64. wps {
  65. label = "wps";
  66. gpios = <&gpio0 0 1>;
  67. linux,code = <KEY_WPS_BUTTON>;
  68. };
  69. rfkill {
  70. label = "rfkill";
  71. linux,input-type = <EV_SW>;
  72. gpios = <&gpio0 12 0>;
  73. linux,code = <KEY_RFKILL>;
  74. };
  75. };
  76. };
  77. &pinctrl {
  78. state_default: pinctrl0 {
  79. gpio {
  80. ralink,group = "i2c", "jtag", "rgmii", "mdio", "uartf";
  81. ralink,function = "gpio";
  82. };
  83. };
  84. };
  85. &ethernet {
  86. mtd-mac-address = <&factory 0x28>;
  87. };
  88. &esw {
  89. ralink,portmap = <0x2f>;
  90. };
  91. &wmac {
  92. ralink,mtd-eeprom = <&factory 0>;
  93. };
  94. &ehci {
  95. status = "okay";
  96. };
  97. &ohci {
  98. status = "okay";
  99. };