CF-WR800N.dts 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  1. /dts-v1/;
  2. #include "mt7620n.dtsi"
  3. #include <dt-bindings/gpio/gpio.h>
  4. #include <dt-bindings/input/input.h>
  5. / {
  6. compatible = "comfast,cf-wr800n", "ralink,mt7620n-soc";
  7. model = "Comfast CF-WR800N";
  8. chosen {
  9. bootargs = "console=ttyS0,115200";
  10. };
  11. gpio-leds {
  12. compatible = "gpio-leds";
  13. ethernet {
  14. label = "cf-wr800n:white:ethernet";
  15. gpios = <&gpio2 4 GPIO_ACTIVE_LOW>;
  16. };
  17. wifi {
  18. label = "cf-wr800n:white:wifi";
  19. gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
  20. };
  21. wps {
  22. label = "cf-wr800n:white:wps";
  23. gpios = <&gpio1 15 GPIO_ACTIVE_LOW>;
  24. };
  25. };
  26. gpio-keys-polled {
  27. compatible = "gpio-keys-polled";
  28. #address-cells = <1>;
  29. #size-cells = <0>;
  30. poll-interval = <20>;
  31. reset {
  32. label = "reset";
  33. gpios = <&gpio0 2 GPIO_ACTIVE_LOW>;
  34. linux,code = <KEY_RESTART>;
  35. };
  36. };
  37. };
  38. &gpio0 {
  39. status = "okay";
  40. };
  41. &gpio1 {
  42. status = "okay";
  43. };
  44. &gpio2 {
  45. status = "okay";
  46. };
  47. &gpio3 {
  48. status = "okay";
  49. };
  50. &spi0 {
  51. status = "okay";
  52. m25p80@0 {
  53. #address-cells = <1>;
  54. #size-cells = <1>;
  55. compatible = "jedec,spi-nor";
  56. reg = <0>;
  57. spi-max-frequency = <10000000>;
  58. partition@0 {
  59. label = "u-boot";
  60. reg = <0x0 0x30000>;
  61. read-only;
  62. };
  63. partition@30000 {
  64. label = "u-boot-env";
  65. reg = <0x30000 0x10000>;
  66. read-only;
  67. };
  68. factory: partition@40000 {
  69. label = "factory";
  70. reg = <0x40000 0x10000>;
  71. read-only;
  72. };
  73. partition@50000 {
  74. label = "firmware";
  75. reg = <0x50000 0x7b0000>;
  76. };
  77. };
  78. };
  79. &ethernet {
  80. mtd-mac-address = <&factory 0x4>;
  81. };
  82. &wmac {
  83. ralink,mtd-eeprom = <&factory 0>;
  84. };
  85. &pinctrl {
  86. state_default: pinctrl0 {
  87. default {
  88. ralink,group = "ephy", "wled", "spi refclk", "i2c";
  89. ralink,function = "gpio";
  90. };
  91. };
  92. };