NBG-419N2.dts 1.8 KB

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