kn_rf.dts 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  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 II";
  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 20 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 39 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. };
  48. &spi0 {
  49. status = "okay";
  50. m25p80@0 {
  51. #address-cells = <1>;
  52. #size-cells = <1>;
  53. compatible = "jedec,spi-nor";
  54. reg = <0>;
  55. spi-max-frequency = <10000000>;
  56. partition@0 {
  57. label = "u-boot";
  58. reg = <0x0 0x30000>;
  59. read-only;
  60. };
  61. partition@30000 {
  62. label = "u-boot-env";
  63. reg = <0x30000 0x10000>;
  64. read-only;
  65. };
  66. factory: partition@40000 {
  67. label = "factory";
  68. reg = <0x40000 0x10000>;
  69. read-only;
  70. };
  71. partition@50000 {
  72. label = "firmware";
  73. reg = <0x50000 0x7b0000>;
  74. };
  75. };
  76. };
  77. &pinctrl {
  78. state_default: pinctrl0 {
  79. gpio {
  80. ralink,group = "i2c", "wdt", "pa", "spi refclk", "wled";
  81. ralink,function = "gpio";
  82. };
  83. };
  84. };
  85. &ethernet {
  86. mtd-mac-address = <&factory 0x4>;
  87. ralink,port-map = "wllll";
  88. };
  89. &wmac {
  90. ralink,mtd-eeprom = <&factory 0>;
  91. };
  92. &ehci {
  93. status = "okay";
  94. };
  95. &ohci {
  96. status = "okay";
  97. };