rtl8380_netgear_gigabit.dtsi 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141
  1. // SPDX-License-Identifier: GPL-2.0-or-later
  2. #include "rtl838x.dtsi"
  3. #include <dt-bindings/input/input.h>
  4. #include <dt-bindings/gpio/gpio.h>
  5. / {
  6. compatible = "realtek,rtl838x-soc";
  7. memory@0 {
  8. device_type = "memory";
  9. reg = <0x0 0x8000000>;
  10. };
  11. keys {
  12. pinctrl-names = "default";
  13. pinctrl-0 = <&pinmux_disable_sys_led>;
  14. compatible = "gpio-keys";
  15. mode {
  16. label = "reset";
  17. gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
  18. linux,code = <KEY_RESTART>;
  19. };
  20. };
  21. gpio-restart {
  22. compatible = "gpio-restart";
  23. gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
  24. open-source;
  25. };
  26. gpio1: rtl8231-gpio {
  27. compatible = "realtek,rtl8231-gpio";
  28. #gpio-cells = <2>;
  29. gpio-controller;
  30. indirect-access-bus-id = <31>;
  31. };
  32. };
  33. &ethernet0 {
  34. mdio: mdio-bus {
  35. compatible = "realtek,rtl838x-mdio";
  36. regmap = <&ethernet0>;
  37. #address-cells = <1>;
  38. #size-cells = <0>;
  39. INTERNAL_PHY(8)
  40. INTERNAL_PHY(9)
  41. INTERNAL_PHY(10)
  42. INTERNAL_PHY(11)
  43. INTERNAL_PHY(12)
  44. INTERNAL_PHY(13)
  45. INTERNAL_PHY(14)
  46. INTERNAL_PHY(15)
  47. };
  48. };
  49. &spi0 {
  50. status = "okay";
  51. flash@0 {
  52. compatible = "jedec,spi-nor";
  53. reg = <0>;
  54. spi-max-frequency = <50000000>;
  55. partitions {
  56. compatible = "fixed-partitions";
  57. #address-cells = <1>;
  58. #size-cells = <1>;
  59. partition@0 {
  60. label = "u-boot";
  61. reg = <0x0000000 0x00e0000>;
  62. read-only;
  63. };
  64. partition@e0000 {
  65. label = "u-boot-env";
  66. reg = <0x00e0000 0x0010000>;
  67. };
  68. partition@f0000 {
  69. label = "u-boot-env2";
  70. reg = <0x00f0000 0x0010000>;
  71. };
  72. partition@100000 {
  73. label = "jffs";
  74. reg = <0x0100000 0x0100000>;
  75. read-only;
  76. };
  77. partition@200000 {
  78. label = "jffs2";
  79. reg = <0x0200000 0x0100000>;
  80. read-only;
  81. };
  82. firmware: partition@300000 {
  83. label = "firmware";
  84. compatible = "openwrt,uimage", "denx,uimage";
  85. reg = <0x0300000 0x0e80000>;
  86. };
  87. partition@1180000 {
  88. label = "runtime2";
  89. reg = <0x1180000 0x0e80000>;
  90. read-only;
  91. };
  92. };
  93. };
  94. };
  95. &switch0 {
  96. ports {
  97. #address-cells = <1>;
  98. #size-cells = <0>;
  99. SWITCH_PORT(8, 1, internal)
  100. SWITCH_PORT(9, 2, internal)
  101. SWITCH_PORT(10, 3, internal)
  102. SWITCH_PORT(11, 4, internal)
  103. SWITCH_PORT(12, 5, internal)
  104. SWITCH_PORT(13, 6, internal)
  105. SWITCH_PORT(14, 7, internal)
  106. SWITCH_PORT(15, 8, internal)
  107. port@28 {
  108. ethernet = <&ethernet0>;
  109. reg = <28>;
  110. phy-mode = "internal";
  111. fixed-link {
  112. speed = <1000>;
  113. full-duplex;
  114. };
  115. };
  116. };
  117. };