CF-WR800N.dts 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  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. palmbus@10000000 {
  10. gpio0: gpio@600 {
  11. status = "okay";
  12. };
  13. gpio1: gpio@638 {
  14. status = "okay";
  15. };
  16. gpio2: gpio@660 {
  17. status = "okay";
  18. };
  19. gpio3: gpio@688 {
  20. status = "okay";
  21. };
  22. spi@b00 {
  23. status = "okay";
  24. m25p80@0 {
  25. #address-cells = <1>;
  26. #size-cells = <1>;
  27. compatible = "mx25l6405d";
  28. reg = <0 0>;
  29. linux,modalias = "m25p80", "w25q64";
  30. spi-max-frequency = <10000000>;
  31. partition@0 {
  32. label = "u-boot";
  33. reg = <0x0 0x30000>;
  34. read-only;
  35. };
  36. partition@30000 {
  37. label = "u-boot-env";
  38. reg = <0x30000 0x10000>;
  39. read-only;
  40. };
  41. factory: partition@40000 {
  42. label = "factory";
  43. reg = <0x40000 0x10000>;
  44. read-only;
  45. };
  46. partition@50000 {
  47. label = "firmware";
  48. reg = <0x50000 0x7b0000>;
  49. };
  50. };
  51. };
  52. };
  53. ethernet@10100000 {
  54. mtd-mac-address = <&factory 0x4>;
  55. };
  56. wmac@10180000 {
  57. ralink,mtd-eeprom = <&factory 0>;
  58. };
  59. pinctrl {
  60. state_default: pinctrl0 {
  61. default {
  62. ralink,group = "ephy", "wled", "spi refclk", "i2c";
  63. ralink,function = "gpio";
  64. };
  65. };
  66. };
  67. gpio-leds {
  68. compatible = "gpio-leds";
  69. ethernet {
  70. label = "comfast:white:ethernet";
  71. gpios = <&gpio2 4 1>;
  72. };
  73. wifi {
  74. label = "comfast:white:wifi";
  75. gpios = <&gpio3 0 1>;
  76. };
  77. wps {
  78. label = "comfast:white:wps";
  79. gpios = <&gpio1 15 1>;
  80. };
  81. };
  82. gpio-keys-polled {
  83. compatible = "gpio-keys-polled";
  84. #address-cells = <1>;
  85. #size-cells = <0>;
  86. poll-interval = <20>;
  87. reset {
  88. label = "reset";
  89. gpios = <&gpio0 2 1>;
  90. linux,code = <0x198>;
  91. };
  92. };
  93. };