1
0

GB-PC1.dts 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135
  1. /dts-v1/;
  2. #include "mt7621.dtsi"
  3. #include <dt-bindings/gpio/gpio.h>
  4. #include <dt-bindings/input/input.h>
  5. / {
  6. compatible = "mediatek,mt7621-eval-board", "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. sdhci@10130000 {
  16. status = "okay";
  17. };
  18. palmbus@1E000000 {
  19. spi@b00 {
  20. status = "okay";
  21. m25p80@0 {
  22. #address-cells = <1>;
  23. #size-cells = <1>;
  24. compatible = "jedec,spi-nor";
  25. reg = <0 0>;
  26. linux,modalias = "m25p80";
  27. spi-max-frequency = <10000000>;
  28. m25p,chunked-io = <32>;
  29. partition@0 {
  30. label = "u-boot";
  31. reg = <0x0 0x30000>;
  32. read-only;
  33. };
  34. partition@30000 {
  35. label = "u-boot-env";
  36. reg = <0x30000 0x10000>;
  37. };
  38. partition@40000 {
  39. label = "firmware";
  40. reg = <0x50000 0x1fb0000>;
  41. };
  42. };
  43. };
  44. i2c@900 {
  45. compatible = "ralink,i2c-mt7621";
  46. reg = <0x900 0x100>;
  47. #address-cells = <1>;
  48. #size-cells = <0>;
  49. pinctrl-names = "default";
  50. pinctrl-0 = <&i2c_pins>;
  51. status = "okay";
  52. };
  53. };
  54. pcie@1e140000 {
  55. status = "okay";
  56. };
  57. ethernet@1e100000 {
  58. status = "okay";
  59. };
  60. gpio-keys-polled {
  61. compatible = "gpio-keys-polled";
  62. #address-cells = <1>;
  63. #size-cells = <0>;
  64. poll-interval = <20>;
  65. reset {
  66. label = "reset";
  67. gpios = <&gpio0 18 GPIO_ACTIVE_HIGH>;
  68. linux,code = <KEY_RESTART>;
  69. };
  70. };
  71. gpio-leds {
  72. compatible = "gpio-leds";
  73. status {
  74. label = "gnubee:green:status";
  75. gpios = <&gpio0 6 GPIO_ACTIVE_HIGH>;
  76. };
  77. system {
  78. label = "gnubee:green:system";
  79. gpios = <&gpio0 8 GPIO_ACTIVE_HIGH>;
  80. };
  81. };
  82. gpio-power {
  83. compatible = "gpio-power";
  84. 26 {
  85. label = "gnubee:power:gpio26";
  86. gpios = <&gpio0 26 GPIO_ACTIVE_LOW>;
  87. };
  88. 28 {
  89. label = "gnubee:power:gpio28";
  90. gpios = <&gpio0 28 GPIO_ACTIVE_HIGH>;
  91. };
  92. 29 {
  93. label = "gnubee:power:gpio29";
  94. gpios = <&gpio0 29 GPIO_ACTIVE_LOW>;
  95. };
  96. 30 {
  97. label = "gnubee:power:gpio30";
  98. gpios = <&gpio0 30 GPIO_ACTIVE_HIGH>;
  99. };
  100. };
  101. pinctrl {
  102. state_default: pinctrl0 {
  103. gpio {
  104. ralink,group = "wdt", "rgmii2", "mdio";
  105. ralink,function = "gpio";
  106. };
  107. };
  108. };
  109. };