PBR-M1.dts 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150
  1. /dts-v1/;
  2. /include/ "mt7621.dtsi"
  3. / {
  4. compatible = "mediatek,mt7621-eval-board", "mediatek,mt7621-soc";
  5. model = "PBR-M1";
  6. memory@0 {
  7. device_type = "memory";
  8. reg = <0x0 0x10000000>;
  9. };
  10. chosen {
  11. bootargs = "console=ttyS0,115200";
  12. };
  13. sdhci@10130000 {
  14. status = "okay";
  15. };
  16. palmbus@1E000000 {
  17. spi@b00 {
  18. status = "okay";
  19. m25p80@0 {
  20. #address-cells = <1>;
  21. #size-cells = <1>;
  22. compatible = "w25q256";
  23. reg = <0 0>;
  24. linux,modalias = "m25p80";
  25. spi-max-frequency = <10000000>;
  26. partition@0 {
  27. label = "u-boot";
  28. reg = <0x0 0x30000>;
  29. read-only;
  30. };
  31. partition@30000 {
  32. label = "u-boot-env";
  33. reg = <0x30000 0x10000>;
  34. read-only;
  35. };
  36. factory: partition@40000 {
  37. label = "factory";
  38. reg = <0x40000 0x10000>;
  39. read-only;
  40. };
  41. partition@50000 {
  42. label = "firmware";
  43. reg = <0x50000 0xfb0000>;
  44. };
  45. };
  46. };
  47. i2c@900 {
  48. compatible = "ralink,i2c-mt7621";
  49. reg = <0x900 0x100>;
  50. #address-cells = <1>;
  51. #size-cells = <0>;
  52. pinctrl-names = "default";
  53. pinctrl-0 = <&i2c_pins>;
  54. status = "okay";
  55. pcf8563: rtc@51 {
  56. status = "okay";
  57. compatible = "nxp,pcf8563";
  58. reg = <0x51>;
  59. };
  60. };
  61. };
  62. pcie@1e140000 {
  63. status = "okay";
  64. pcie0 {
  65. mt76@0,0 {
  66. reg = <0x0000 0 0 0 0>;
  67. device_type = "pci";
  68. mediatek,mtd-eeprom = <&factory 0x0000>;
  69. mediatek,2ghz = <0>;
  70. };
  71. };
  72. pcie1 {
  73. mt76@1,0 {
  74. reg = <0x0000 0 0 0 0>;
  75. device_type = "pci";
  76. mediatek,mtd-eeprom = <&factory 0x8000>;
  77. mediatek,5ghz = <0>;
  78. };
  79. };
  80. };
  81. ethernet@1e100000 {
  82. mtd-mac-address = <&factory 0xe000>;
  83. };
  84. gpio-leds {
  85. compatible = "gpio-leds";
  86. buzzer {
  87. label = "pbr-m1:buzzer";
  88. gpios = <&gpio0 27 1>;
  89. };
  90. power {
  91. label = "pbr-m1:green:power";
  92. gpios = <&gpio0 25 1>;
  93. };
  94. sys {
  95. label = "pbr-m1:green:sys";
  96. gpios = <&gpio0 24 1>;
  97. };
  98. internet {
  99. label = "pbr-m1:green:internet";
  100. gpios = <&gpio0 23 1>;
  101. };
  102. };
  103. gpio-keys-polled {
  104. compatible = "gpio-keys-polled";
  105. #address-cells = <1>;
  106. #size-cells = <0>;
  107. poll-interval = <20>;
  108. reset {
  109. label = "reset";
  110. gpios = <&gpio0 18 1>;
  111. linux,code = <0x198>;
  112. };
  113. };
  114. pinctrl {
  115. state_default: pinctrl0 {
  116. gpio {
  117. ralink,group = "wdt", "rgmii2", "wdt rst", "jtag", "mdio";
  118. ralink,function = "gpio";
  119. };
  120. };
  121. };
  122. };