kn_rf.dts 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151
  1. /dts-v1/;
  2. #include "mt7620n.dtsi"
  3. #include <dt-bindings/gpio/gpio.h>
  4. #include <dt-bindings/input/input.h>
  5. / {
  6. compatible = "zyxel,keenetic-omni-ii", "ralink,mt7620n-soc";
  7. model = "ZyXEL Keenetic Omni II";
  8. aliases {
  9. led-boot = &led_power;
  10. led-failsafe = &led_power;
  11. led-running = &led_power;
  12. led-upgrade = &led_power;
  13. };
  14. gpio-leds {
  15. compatible = "gpio-leds";
  16. wan {
  17. label = "kn_rc:green:wan";
  18. gpios = <&gpio1 14 GPIO_ACTIVE_LOW>;
  19. };
  20. usb {
  21. label = "kn_rc:green:usb";
  22. gpios = <&gpio0 20 GPIO_ACTIVE_LOW>;
  23. trigger-sources = <&ohci_port1>, <&ehci_port1>;
  24. linux,default-trigger = "usbport";
  25. };
  26. wifi {
  27. label = "kn_rc:green:wifi";
  28. gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
  29. };
  30. led_power: power {
  31. label = "kn_rc:green:power";
  32. gpios = <&gpio1 15 GPIO_ACTIVE_LOW>;
  33. };
  34. };
  35. gpio-keys-polled {
  36. compatible = "gpio-keys";
  37. poll-interval = <20>;
  38. reset {
  39. label = "reset";
  40. gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
  41. linux,code = <KEY_RESTART>;
  42. };
  43. wps {
  44. label = "wps";
  45. gpios = <&gpio0 2 GPIO_ACTIVE_LOW>;
  46. linux,code = <KEY_WPS_BUTTON>;
  47. };
  48. fn {
  49. label = "fn";
  50. gpios = <&gpio0 17 GPIO_ACTIVE_LOW>;
  51. linux,code = <BTN_0>;
  52. };
  53. };
  54. gpio_export {
  55. compatible = "gpio-export";
  56. #size-cells = <0>;
  57. usb_power {
  58. gpio-export,name = "usb";
  59. gpio-export,output = <1>;
  60. gpios = <&gpio0 21 GPIO_ACTIVE_HIGH>;
  61. };
  62. };
  63. };
  64. &gpio1 {
  65. status = "okay";
  66. };
  67. &gpio3 {
  68. status = "okay";
  69. };
  70. &spi0 {
  71. status = "okay";
  72. m25p80@0 {
  73. compatible = "jedec,spi-nor";
  74. reg = <0>;
  75. spi-max-frequency = <10000000>;
  76. partitions {
  77. compatible = "fixed-partitions";
  78. #address-cells = <1>;
  79. #size-cells = <1>;
  80. partition@0 {
  81. label = "u-boot";
  82. reg = <0x0 0x30000>;
  83. read-only;
  84. };
  85. partition@30000 {
  86. label = "u-boot-env";
  87. reg = <0x30000 0x10000>;
  88. read-only;
  89. };
  90. factory: partition@40000 {
  91. label = "factory";
  92. reg = <0x40000 0x10000>;
  93. read-only;
  94. };
  95. partition@50000 {
  96. label = "firmware";
  97. reg = <0x50000 0x7b0000>;
  98. };
  99. };
  100. };
  101. };
  102. &pinctrl {
  103. state_default: pinctrl0 {
  104. gpio {
  105. ralink,group = "i2c", "wdt", "pa", "spi refclk", "wled";
  106. ralink,function = "gpio";
  107. };
  108. };
  109. };
  110. &ethernet {
  111. mtd-mac-address = <&factory 0x4>;
  112. mediatek,portmap = "wllll";
  113. };
  114. &wmac {
  115. ralink,mtd-eeprom = <&factory 0>;
  116. };
  117. &ehci {
  118. status = "okay";
  119. };
  120. &ohci {
  121. status = "okay";
  122. };