MAC1200RV2.dts 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. /dts-v1/;
  2. #include "mt7628an.dtsi"
  3. #include <dt-bindings/gpio/gpio.h>
  4. #include <dt-bindings/input/input.h>
  5. / {
  6. compatible = "mercury,mac1200r-v2", "mediatek,mt7628an-soc";
  7. model = "Mercury MAC1200R v2";
  8. chosen {
  9. bootargs = "console=ttyS0,57600";
  10. };
  11. memory@0 {
  12. device_type = "memory";
  13. reg = <0x0 0x2000000>;
  14. };
  15. gpio-leds {
  16. compatible = "gpio-leds";
  17. status {
  18. label = "mac1200rv2:green:status";
  19. gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
  20. };
  21. };
  22. };
  23. &spi0 {
  24. status = "okay";
  25. m25p80@0 {
  26. #address-cells = <1>;
  27. #size-cells = <1>;
  28. compatible = "jedec,spi-nor";
  29. reg = <0 0>;
  30. spi-max-frequency = <10000000>;
  31. m25p,chunked-io = <32>;
  32. partition@0 {
  33. label = "u-boot";
  34. reg = <0x0 0x1d800>;
  35. };
  36. factory: partition@0x1d800 {
  37. label = "factory_info";
  38. reg = <0x1d800 0x800>;
  39. read-only;
  40. };
  41. art: partition@0x1e000 {
  42. label = "art";
  43. reg = <0x1e000 0x2000>;
  44. read-only;
  45. };
  46. partition@20000 {
  47. label = "config";
  48. reg = <0x20000 0x10000>;
  49. };
  50. partition@30000 {
  51. label = "u-boot2";
  52. reg = <0x30000 0x10000>;
  53. };
  54. partition@40000 {
  55. label = "firmware";
  56. reg = <0x40000 0x7c0000>;
  57. };
  58. };
  59. };
  60. &ethernet {
  61. pinctrl-names = "default";
  62. mtd-mac-address = <&factory 0xd>;
  63. mediatek,portmap = "llllw";
  64. };
  65. &wmac {
  66. status = "okay";
  67. ralink,mtd-eeprom = <&art 0x0>;
  68. };
  69. &pcie {
  70. status = "okay";
  71. pcie-bridge {
  72. mt76@0,0 {
  73. reg = <0x0000 0 0 0 0>;
  74. device_type = "pci";
  75. mediatek,mtd-eeprom = <&art 0x1000>;
  76. ieee80211-freq-limit = <5000000 6000000>;
  77. };
  78. };
  79. };