rtl8382_inaba_aml2-17gp.dts 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151
  1. // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
  2. #include "rtl838x.dtsi"
  3. #include <dt-bindings/input/input.h>
  4. #include <dt-bindings/gpio/gpio.h>
  5. / {
  6. compatible = "inaba,aml2-17gp", "realtek,rtl838x-soc";
  7. model = "INABA Abaniact AML2-17GP";
  8. memory@0 {
  9. device_type = "memory";
  10. reg = <0x0 0x8000000>;
  11. };
  12. keys {
  13. pinctrl-names = "default";
  14. pinctrl-0 = <&pinmux_disable_sys_led>;
  15. compatible = "gpio-keys";
  16. reset {
  17. label = "reset";
  18. gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
  19. linux,code = <KEY_RESTART>;
  20. };
  21. };
  22. };
  23. &spi0 {
  24. status = "okay";
  25. flash@0 {
  26. compatible = "jedec,spi-nor";
  27. reg = <0>;
  28. spi-max-frequency = <10000000>;
  29. partitions {
  30. compatible = "fixed-partitions";
  31. #address-cells = <1>;
  32. #size-cells = <1>;
  33. partition@0 {
  34. label = "u-boot";
  35. reg = <0x0 0x80000>;
  36. read-only;
  37. };
  38. partition@80000 {
  39. label = "u-boot-env";
  40. reg = <0x80000 0x10000>;
  41. read-only;
  42. };
  43. partition@90000 {
  44. label = "u-boot-env2";
  45. reg = <0x90000 0x10000>;
  46. };
  47. partition@a0000 {
  48. label = "jffs2_cfg";
  49. reg = <0xa0000 0x400000>;
  50. read-only;
  51. };
  52. partition@4a0000 {
  53. label = "jffs2_log";
  54. reg = <0x4a0000 0x100000>;
  55. read-only;
  56. };
  57. partition@5a0000 {
  58. compatible = "openwrt,uimage", "denx,uimage";
  59. label = "firmware";
  60. reg = <0x5a0000 0xd30000>;
  61. openwrt,ih-magic = <0x83800000>;
  62. };
  63. partition@12d0000 {
  64. label = "runtime2";
  65. reg = <0x12d0000 0xd30000>;
  66. };
  67. };
  68. };
  69. };
  70. &mdio_bus0 {
  71. INTERNAL_PHY(8)
  72. INTERNAL_PHY(9)
  73. INTERNAL_PHY(10)
  74. INTERNAL_PHY(11)
  75. INTERNAL_PHY(12)
  76. INTERNAL_PHY(13)
  77. INTERNAL_PHY(14)
  78. INTERNAL_PHY(15)
  79. EXTERNAL_PHY(16)
  80. EXTERNAL_PHY(17)
  81. EXTERNAL_PHY(18)
  82. EXTERNAL_PHY(19)
  83. EXTERNAL_PHY(20)
  84. EXTERNAL_PHY(21)
  85. EXTERNAL_PHY(22)
  86. EXTERNAL_PHY(23)
  87. EXTERNAL_PHY(24)
  88. };
  89. &switch0 {
  90. ports {
  91. #address-cells = <1>;
  92. #size-cells = <0>;
  93. SWITCH_PORT(8, 1, internal)
  94. SWITCH_PORT(9, 2, internal)
  95. SWITCH_PORT(10, 3, internal)
  96. SWITCH_PORT(11, 4, internal)
  97. SWITCH_PORT(12, 5, internal)
  98. SWITCH_PORT(13, 6, internal)
  99. SWITCH_PORT(14, 7, internal)
  100. SWITCH_PORT(15, 8, internal)
  101. SWITCH_PORT_SDS(16, 9, 2, qsgmii)
  102. SWITCH_PORT_SDS(17, 10, 2, qsgmii)
  103. SWITCH_PORT_SDS(18, 11, 2, qsgmii)
  104. SWITCH_PORT_SDS(19, 12, 2, qsgmii)
  105. SWITCH_PORT_SDS(20, 13, 3, qsgmii)
  106. SWITCH_PORT_SDS(21, 14, 3, qsgmii)
  107. SWITCH_PORT_SDS(22, 15, 3, qsgmii)
  108. SWITCH_PORT_SDS(23, 16, 3, qsgmii)
  109. port@24 {
  110. reg = <24>;
  111. label = "wan";
  112. phy-handle = <&phy24>;
  113. phy-mode = "qsgmii";
  114. };
  115. port@28 {
  116. ethernet = <&ethernet0>;
  117. reg = <28>;
  118. phy-mode = "internal";
  119. fixed-link {
  120. speed = <1000>;
  121. full-duplex;
  122. };
  123. };
  124. };
  125. };