mt7621-gnubee-gb-pc2.dts 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138
  1. // SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
  2. /dts-v1/;
  3. #include "mt7621.dtsi"
  4. #include <dt-bindings/gpio/gpio.h>
  5. #include <dt-bindings/input/input.h>
  6. / {
  7. compatible = "gnubee,gb-pc2", "mediatek,mt7621-soc";
  8. model = "GB-PC2";
  9. memory@0 {
  10. device_type = "memory";
  11. reg = <0x00000000 0x1c000000>,
  12. <0x20000000 0x04000000>;
  13. };
  14. chosen {
  15. bootargs = "console=ttyS0,57600";
  16. };
  17. gpio-keys {
  18. compatible = "gpio-keys";
  19. key-reset {
  20. label = "reset";
  21. gpios = <&gpio 18 GPIO_ACTIVE_HIGH>;
  22. linux,code = <KEY_RESTART>;
  23. };
  24. };
  25. gpio-leds {
  26. compatible = "gpio-leds";
  27. ethblack-green {
  28. label = "green:ethblack";
  29. gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
  30. };
  31. ethblue-green {
  32. label = "green:ethblue";
  33. gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
  34. };
  35. ethyellow-green {
  36. label = "green:ethyellow";
  37. gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
  38. };
  39. ethyellow-orange {
  40. label = "orange:ethyellow";
  41. gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
  42. };
  43. power {
  44. label = "green:power";
  45. gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
  46. linux,default-trigger = "default-on";
  47. };
  48. system {
  49. label = "green:system";
  50. gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
  51. linux,default-trigger = "disk-activity";
  52. };
  53. };
  54. };
  55. &mmc {
  56. status = "okay";
  57. };
  58. &spi0 {
  59. status = "okay";
  60. flash@0 {
  61. #address-cells = <1>;
  62. #size-cells = <1>;
  63. compatible = "jedec,spi-nor";
  64. reg = <0>;
  65. spi-max-frequency = <50000000>;
  66. broken-flash-reset;
  67. partition@0 {
  68. label = "u-boot";
  69. reg = <0x0 0x30000>;
  70. read-only;
  71. };
  72. partition@30000 {
  73. label = "u-boot-env";
  74. reg = <0x30000 0x10000>;
  75. read-only;
  76. };
  77. factory: partition@40000 {
  78. label = "factory";
  79. reg = <0x40000 0x10000>;
  80. read-only;
  81. };
  82. partition@50000 {
  83. label = "firmware";
  84. reg = <0x50000 0x1fb0000>;
  85. };
  86. };
  87. };
  88. &pcie {
  89. status = "okay";
  90. };
  91. &gmac1 {
  92. status = "okay";
  93. phy-handle = <&ethphy5>;
  94. };
  95. &mdio {
  96. ethphy5: ethernet-phy@5 {
  97. reg = <5>;
  98. phy-mode = "rgmii-rxid";
  99. };
  100. };
  101. &switch0 {
  102. ports {
  103. port@0 {
  104. status = "okay";
  105. label = "ethblack";
  106. };
  107. port@4 {
  108. status = "okay";
  109. label = "ethblue";
  110. };
  111. };
  112. };