mt7621-gnubee-gb-pc1.dts 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  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-pc1", "mediatek,mt7621-soc";
  8. model = "GB-PC1";
  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. power {
  28. label = "green:power";
  29. gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
  30. linux,default-trigger = "default-on";
  31. };
  32. system {
  33. label = "green:system";
  34. gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
  35. linux,default-trigger = "disk-activity";
  36. };
  37. };
  38. };
  39. &mmc {
  40. status = "okay";
  41. };
  42. &spi0 {
  43. status = "okay";
  44. flash@0 {
  45. #address-cells = <1>;
  46. #size-cells = <1>;
  47. compatible = "jedec,spi-nor";
  48. reg = <0>;
  49. spi-max-frequency = <50000000>;
  50. broken-flash-reset;
  51. partition@0 {
  52. label = "u-boot";
  53. reg = <0x0 0x30000>;
  54. read-only;
  55. };
  56. partition@30000 {
  57. label = "u-boot-env";
  58. reg = <0x30000 0x10000>;
  59. read-only;
  60. };
  61. factory: partition@40000 {
  62. label = "factory";
  63. reg = <0x40000 0x10000>;
  64. read-only;
  65. };
  66. partition@50000 {
  67. label = "firmware";
  68. reg = <0x50000 0x1fb0000>;
  69. };
  70. };
  71. };
  72. &pcie {
  73. status = "okay";
  74. };
  75. &gmac1 {
  76. status = "okay";
  77. phy-handle = <&ethphy4>;
  78. };
  79. &mdio {
  80. ethphy4: ethernet-phy@4 {
  81. reg = <4>;
  82. };
  83. };
  84. &switch0 {
  85. ports {
  86. port@0 {
  87. status = "okay";
  88. label = "ethblack";
  89. };
  90. };
  91. };