ZBT-WR8305RT.dts 1.6 KB

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