kn_rc.dts 2.0 KB

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