mt7621_thunder_timecloud.dts 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  1. /dts-v1/;
  2. #include "mt7621.dtsi"
  3. #include <dt-bindings/gpio/gpio.h>
  4. #include <dt-bindings/input/input.h>
  5. / {
  6. compatible = "thunder,timecloud", "mediatek,mt7621-soc";
  7. model = "Thunder Timecloud";
  8. aliases {
  9. led-boot = &led_statuso;
  10. led-failsafe = &led_statuso;
  11. led-running = &led_statuso;
  12. led-upgrade = &led_statuso;
  13. };
  14. chosen {
  15. bootargs = "console=ttyS0,115200";
  16. };
  17. leds {
  18. compatible = "gpio-leds";
  19. statw {
  20. label = "timecloud:white:status";
  21. gpios = <&gpio0 7 GPIO_ACTIVE_HIGH>;
  22. };
  23. led_statuso: stato {
  24. label = "timecloud:orange:status";
  25. gpios = <&gpio0 8 GPIO_ACTIVE_HIGH>;
  26. };
  27. };
  28. keys {
  29. compatible = "gpio-keys";
  30. reset {
  31. label = "reset";
  32. gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
  33. linux,code = <KEY_RESTART>;
  34. };
  35. BTN_0 {
  36. label = "BTN_0";
  37. gpios = <&gpio0 4 GPIO_ACTIVE_LOW>;
  38. linux,code = <BTN_0>;
  39. };
  40. };
  41. };
  42. &sdhci {
  43. status = "okay";
  44. };
  45. &spi0 {
  46. status = "okay";
  47. m25p80@0 {
  48. compatible = "jedec,spi-nor";
  49. reg = <0>;
  50. spi-max-frequency = <10000000>;
  51. partitions {
  52. compatible = "fixed-partitions";
  53. #address-cells = <1>;
  54. #size-cells = <1>;
  55. partition@0 {
  56. label = "u-boot";
  57. reg = <0x0 0x30000>;
  58. read-only;
  59. };
  60. partition@30000 {
  61. label = "u-boot-env";
  62. reg = <0x30000 0x10000>;
  63. read-only;
  64. };
  65. factory: partition@40000 {
  66. label = "factory";
  67. reg = <0x40000 0x10000>;
  68. read-only;
  69. };
  70. partition@50000 {
  71. compatible = "denx,uimage";
  72. label = "firmware";
  73. reg = <0x50000 0xfb0000>;
  74. };
  75. };
  76. };
  77. };
  78. &ethernet {
  79. mtd-mac-address = <&factory 0xe000>;
  80. };
  81. &state_default {
  82. gpio {
  83. ralink,group = "i2c", "uart2", "jtag";
  84. ralink,function = "gpio";
  85. };
  86. };