1
0

GB-PC1.dts 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128
  1. /dts-v1/;
  2. #include "mt7621.dtsi"
  3. #include <dt-bindings/gpio/gpio.h>
  4. #include <dt-bindings/input/input.h>
  5. / {
  6. compatible = "gnubee,gb-pc1", "mediatek,mt7621-soc";
  7. model = "GB-PC1";
  8. aliases {
  9. led-boot = &led_status;
  10. led-failsafe = &led_status;
  11. led-running = &led_status;
  12. led-upgrade = &led_status;
  13. };
  14. memory@0 {
  15. device_type = "memory";
  16. reg = <0x0 0x1c000000>, <0x20000000 0x4000000>;
  17. };
  18. chosen {
  19. bootargs = "console=ttyS0,57600";
  20. };
  21. gpio-keys-polled {
  22. compatible = "gpio-keys-polled";
  23. poll-interval = <20>;
  24. reset {
  25. label = "reset";
  26. gpios = <&gpio0 18 GPIO_ACTIVE_HIGH>;
  27. linux,code = <KEY_RESTART>;
  28. };
  29. };
  30. gpio-leds {
  31. compatible = "gpio-leds";
  32. system {
  33. label = "gb-pc1:green:system";
  34. gpios = <&gpio0 6 GPIO_ACTIVE_LOW>;
  35. };
  36. led_status: status {
  37. label = "gb-pc1:green:status";
  38. gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
  39. };
  40. lan1 {
  41. label = "gb-pc1:green:lan1";
  42. gpios = <&gpio0 24 GPIO_ACTIVE_LOW>;
  43. };
  44. lan2 {
  45. label = "gb-pc1:green:lan2";
  46. gpios = <&gpio0 25 GPIO_ACTIVE_LOW>;
  47. };
  48. };
  49. };
  50. &sdhci {
  51. status = "okay";
  52. };
  53. &spi0 {
  54. status = "okay";
  55. m25p80@0 {
  56. compatible = "jedec,spi-nor";
  57. reg = <0>;
  58. spi-max-frequency = <10000000>;
  59. m25p,chunked-io = <32>;
  60. partitions {
  61. compatible = "fixed-partitions";
  62. #address-cells = <1>;
  63. #size-cells = <1>;
  64. partition@0 {
  65. label = "u-boot";
  66. reg = <0x0 0x30000>;
  67. read-only;
  68. };
  69. partition@30000 {
  70. label = "u-boot-env";
  71. reg = <0x30000 0x10000>;
  72. read-only;
  73. };
  74. factory: partition@40000 {
  75. label = "factory";
  76. reg = <0x40000 0x10000>;
  77. read-only;
  78. };
  79. partition@50000 {
  80. label = "firmware";
  81. reg = <0x50000 0x1fb0000>;
  82. };
  83. };
  84. };
  85. };
  86. &cpuclock {
  87. compatible = "fixed-clock";
  88. clock-frequency = <900000000>;
  89. };
  90. &pcie {
  91. status = "okay";
  92. };
  93. &ethernet {
  94. mtd-mac-address = <&factory 0xe000>;
  95. };
  96. &pinctrl {
  97. state_default: pinctrl0 {
  98. gpio {
  99. ralink,group = "jtag", "rgmii2", "uart3", "wdt";
  100. ralink,function = "gpio";
  101. };
  102. };
  103. };