GB-PC1.dts 1.9 KB

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