2
0

NBG-419N.dts 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. /dts-v1/;
  2. #include "rt3050.dtsi"
  3. #include <dt-bindings/input/input.h>
  4. / {
  5. compatible = "NBG-419N", "ralink,rt3052-soc";
  6. model = "ZyXEL NBG-419N";
  7. cfi@1f000000 {
  8. compatible = "cfi-flash";
  9. reg = <0x1f000000 0x800000>;
  10. bank-width = <2>;
  11. device-width = <2>;
  12. #address-cells = <1>;
  13. #size-cells = <1>;
  14. partition@0 {
  15. label = "u-boot";
  16. reg = <0x0 0x30000>;
  17. read-only;
  18. };
  19. partition@30000 {
  20. label = "u-boot-env";
  21. reg = <0x30000 0x10000>;
  22. read-only;
  23. };
  24. factory: partition@40000 {
  25. label = "factory";
  26. reg = <0x40000 0x10000>;
  27. read-only;
  28. };
  29. partition@50000 {
  30. label = "firmware";
  31. reg = <0x50000 0x3b0000>;
  32. };
  33. };
  34. gpio-leds {
  35. compatible = "gpio-leds";
  36. power {
  37. label = "nbg-419n:green:power";
  38. gpios = <&gpio0 9 1>;
  39. };
  40. wps {
  41. label = "nbg-419n:green:wps";
  42. gpios = <&gpio0 14 1>;
  43. };
  44. };
  45. gpio-keys-polled {
  46. compatible = "gpio-keys-polled";
  47. #address-cells = <1>;
  48. #size-cells = <0>;
  49. poll-interval = <20>;
  50. reset {
  51. label = "reset";
  52. gpios = <&gpio0 10 1>;
  53. linux,code = <KEY_RESTART>;
  54. };
  55. wps {
  56. label = "wps";
  57. gpios = <&gpio0 0 1>;
  58. linux,code = <KEY_WPS_BUTTON>;
  59. };
  60. };
  61. };
  62. &pinctrl {
  63. state_default: pinctrl0 {
  64. gpio {
  65. ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf";
  66. ralink,function = "gpio";
  67. };
  68. };
  69. };
  70. &ethernet {
  71. mtd-mac-address = <&factory 0x28>;
  72. };
  73. &esw {
  74. mediatek,portmap = <0x2f>;
  75. };
  76. &wmac {
  77. ralink,mtd-eeprom = <&factory 0>;
  78. };