mt7622-buffalo-wsr-2533dhp2.dts 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132
  1. // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
  2. /dts-v1/;
  3. #include "mt7622-buffalo-wsr.dtsi"
  4. / {
  5. model = "Buffalo WSR-2533DHP2";
  6. compatible = "buffalo,wsr-2533dhp2", "mediatek,mt7622";
  7. aliases {
  8. label-mac-device = &gmac0;
  9. };
  10. memory {
  11. reg = <0 0x40000000 0 0x0F000000>;
  12. };
  13. rtkgsw: rtkgsw@0 {
  14. compatible = "mediatek,rtk-gsw";
  15. mediatek,ethsys = <&ethsys>;
  16. mediatek,mdio = <&mdio>;
  17. mediatek,reset-pin = <&pio 54 GPIO_ACTIVE_HIGH>;
  18. };
  19. };
  20. &pio {
  21. /* Parallel nand is shared pin with eMMC */
  22. parallel_nand_pins: parallel-nand-pins {
  23. mux {
  24. function = "flash";
  25. groups = "par_nand";
  26. };
  27. conf-cmd-dat {
  28. pins = "NCEB", "NWEB", "NREB",
  29. "NDL4", "NDL5", "NDL6",
  30. "NDL7", "NRB", "NCLE",
  31. "NALE", "NDL0", "NDL1",
  32. "NDL2", "NDL3";
  33. input-enable;
  34. drive-strength = <8>;
  35. bias-pull-up;
  36. };
  37. };
  38. };
  39. &gmac0 {
  40. nvmem-cells = <&macaddr_factory_4 (-1)>;
  41. nvmem-cell-names = "mac-address";
  42. };
  43. &nandc {
  44. pinctrl-names = "default";
  45. pinctrl-0 = <&parallel_nand_pins>;
  46. status = "okay";
  47. nand@0 {
  48. reg = <0>;
  49. nand-ecc-mode = "hw";
  50. partitions {
  51. compatible = "fixed-partitions";
  52. #address-cells = <1>;
  53. #size-cells = <1>;
  54. partition@0 {
  55. label = "Preloader";
  56. reg = <0x0 0x80000>;
  57. read-only;
  58. };
  59. partition@80000 {
  60. label = "ATF";
  61. reg = <0x80000 0x40000>;
  62. read-only;
  63. };
  64. partition@c0000 {
  65. label = "Bootloader";
  66. reg = <0xc0000 0x80000>;
  67. read-only;
  68. };
  69. partition@140000 {
  70. label = "Config";
  71. reg = <0x140000 0x80000>;
  72. };
  73. factory: partition@1c0000 {
  74. label = "factory";
  75. reg = <0x1c0000 0x40000>;
  76. read-only;
  77. nvmem-layout {
  78. compatible = "fixed-layout";
  79. #address-cells = <1>;
  80. #size-cells = <1>;
  81. macaddr_factory_4: macaddr@4 {
  82. compatible = "mac-base";
  83. reg = <0x4 0x6>;
  84. #nvmem-cell-cells = <1>;
  85. };
  86. };
  87. };
  88. partition@200000 {
  89. compatible = "brcm,trx";
  90. brcm,trx-magic = <0x32504844>;
  91. label = "firmware";
  92. reg = <0x200000 0x3a00000>;
  93. };
  94. partition@3C00000 {
  95. label = "Kernel2";
  96. reg = <0x3c00000 0x3a00000>;
  97. };
  98. partition@7600000 {
  99. label = "glbcfg";
  100. reg = <0x7600000 0x200000>;
  101. read-only;
  102. };
  103. partition@7800000 {
  104. label = "board_data";
  105. reg = <0x7800000 0x200000>;
  106. read-only;
  107. };
  108. };
  109. };
  110. };