CF-WR800N.dts 1.6 KB

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