Advertisement
Guest User

testing DTS file for mikrotik ath79 board

a guest
Feb 20th, 2020
175
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.01 KB | None | 0 0
  1. // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
  2. /dts-v1/;
  3.  
  4. #include <dt-bindings/gpio/gpio.h>
  5. #include <dt-bindings/input/input.h>
  6.  
  7. #include "qca953x.dtsi"
  8.  
  9. / {
  10. compatible = "mikrotik,routerboard-rb-mapl-2nd", "qca,qca9533";
  11. model = "Mikrotik RouterBOARD mAP L-2nD";
  12.  
  13. aliases {
  14. label-mac-device = &eth0;
  15. mdio-gpio1 = &mdio2;
  16. serial0 = &uart;
  17. };
  18.  
  19. chosen {
  20. bootargs = "console=ttyS0,115200n8";
  21. };
  22.  
  23. keys {
  24. compatible = "gpio-keys";
  25.  
  26. reset {
  27. label = "reset";
  28. linux,code = <KEY_RESTART>;
  29. gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
  30. debounce-interval = <60>;
  31. };
  32. };
  33.  
  34. mdio2: mdio {
  35. compatible = "virtual,mdio-gpio";
  36.  
  37. gpios = <&gpio 12 GPIO_ACTIVE_HIGH>, /* MDC */
  38. <&gpio 11 GPIO_ACTIVE_HIGH>; /* MDIO */
  39. #address-cells = <1>;
  40. #size-cells = <0>;
  41.  
  42. phy0: ethernet-phy@0 {
  43. reg = <0>;
  44. device_type = "ethernet-phy";
  45.  
  46. phy-mode = "sgmii";
  47.  
  48. at803x-override-sgmii-link-check;
  49. };
  50. };
  51. };
  52.  
  53. &spi {
  54. status = "okay";
  55.  
  56. num-cs = <1>;
  57.  
  58. flash@0 {
  59. compatible = "jedec,spi-nor";
  60. reg = <0>;
  61. spi-max-frequency = <104000000>;
  62.  
  63. partitions {
  64. compatible = "fixed-partitions";
  65. #address-cells = <1>;
  66. #size-cells = <1>;
  67.  
  68. partition@0 {
  69. label = "routerboot";
  70. reg = <0x000000 0x00e000>;
  71. read-only;
  72. };
  73.  
  74. art: partition@e000 {
  75. label = "art";
  76. reg = <0x000e000 0x001000>;
  77. read-only;
  78. };
  79.  
  80. partition@f000 {
  81. label = "bios";
  82. reg = <0x000f000 0x001000>;
  83. read-only;
  84. };
  85.  
  86. partition@10000 {
  87. label = "routerboot2";
  88. reg = <0x010000 0x00f000>;
  89. read-only;
  90. };
  91.  
  92. partition@1f000 {
  93. label = "soft_config";
  94. reg = <0x001f000 0x001000>;
  95. };
  96.  
  97. partition@20000 {
  98. compatible = "mikrotik,minor";
  99. label = "firmware";
  100. reg = <0x020000 0xfe0000>;
  101. };
  102. };
  103. };
  104. };
  105.  
  106. &uart {
  107. status = "okay";
  108. };
  109.  
  110. &wmac {
  111. status = "okay";
  112.  
  113. qca,no-eeprom;
  114. };
  115.  
  116. &pcie0 {
  117. status = "okay";
  118.  
  119. wifi@0,0 {
  120. compatible = "qcom,ath10k";
  121. reg = <0 0 0 0 0>;
  122. };
  123. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement