1
0

NBG-419N2.dts 2.2 KB

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