WR8305RT.dts 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  1. /dts-v1/;
  2. /include/ "mt7620n.dtsi"
  3. / {
  4. compatible = "wr8305rt", "ralink,mt7620n-soc";
  5. model = "ZBT WR8305RT";
  6. palmbus@10000000 {
  7. gpio1: gpio@638 {
  8. status = "okay";
  9. };
  10. gpio3: gpio@688 {
  11. status = "okay";
  12. };
  13. spi@b00 {
  14. status = "okay";
  15. m25p80@0 {
  16. #address-cells = <1>;
  17. #size-cells = <1>;
  18. compatible = "mx25l6405d";
  19. reg = <0 0>;
  20. linux,modalias = "m25p80", "en25q64";
  21. spi-max-frequency = <10000000>;
  22. partition@0 {
  23. label = "u-boot";
  24. reg = <0x0 0x30000>;
  25. read-only;
  26. };
  27. partition@30000 {
  28. label = "u-boot-env";
  29. reg = <0x30000 0x10000>;
  30. read-only;
  31. };
  32. factory: partition@40000 {
  33. label = "factory";
  34. reg = <0x40000 0x10000>;
  35. read-only;
  36. };
  37. partition@50000 {
  38. label = "firmware";
  39. reg = <0x50000 0x7b0000>;
  40. };
  41. };
  42. };
  43. };
  44. ehci@101c0000 {
  45. status = "okay";
  46. };
  47. ohci@101c1000 {
  48. status = "okay";
  49. };
  50. ethernet@10100000 {
  51. mtd-mac-address = <&factory 0x4>;
  52. ralink,port-map = "llllw";
  53. };
  54. wmac@10180000 {
  55. ralink,mtd-eeprom = <&factory 0>;
  56. };
  57. pinctrl {
  58. state_default: pinctrl0 {
  59. ephy {
  60. ralink,group = "ephy";
  61. ralink,function = "ephy";
  62. };
  63. default {
  64. ralink,group = "i2c", "uartf", "spi refclk", "wled";
  65. ralink,function = "gpio";
  66. };
  67. };
  68. };
  69. gpio-leds {
  70. compatible = "gpio-leds";
  71. sys {
  72. label = "wr8305rt:sys";
  73. gpios = <&gpio1 14 1>;
  74. };
  75. lan {
  76. label = "wr8305rt:usb";
  77. gpios = <&gpio1 15 1>;
  78. };
  79. wifi {
  80. label = "wr8305rt:wifi";
  81. gpios = <&gpio3 0 1>;
  82. };
  83. };
  84. gpio-keys-polled {
  85. compatible = "gpio-keys-polled";
  86. #address-cells = <1>;
  87. #size-cells = <0>;
  88. poll-interval = <20>;
  89. reset {
  90. label = "reset";
  91. gpios = <&gpio0 1 1>;
  92. linux,code = <0x198>;
  93. };
  94. };
  95. };