Timecloud.dts 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  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. memory@0 {
  15. device_type = "memory";
  16. reg = <0x0 0x10000000>;
  17. };
  18. chosen {
  19. bootargs = "console=ttyS0,115200";
  20. };
  21. gpio-leds {
  22. compatible = "gpio-leds";
  23. statw {
  24. label = "timecloud:white:status";
  25. gpios = <&gpio0 7 GPIO_ACTIVE_HIGH>;
  26. };
  27. led_statuso: stato {
  28. label = "timecloud:orange:status";
  29. gpios = <&gpio0 8 GPIO_ACTIVE_HIGH>;
  30. };
  31. };
  32. gpio-keys-polled {
  33. compatible = "gpio-keys-polled";
  34. poll-interval = <20>;
  35. reset {
  36. label = "reset";
  37. gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
  38. linux,code = <KEY_RESTART>;
  39. };
  40. BTN_0 {
  41. label = "BTN_0";
  42. gpios = <&gpio0 4 GPIO_ACTIVE_LOW>;
  43. linux,code = <BTN_0>;
  44. };
  45. };
  46. };
  47. &sdhci {
  48. status = "okay";
  49. };
  50. &spi0 {
  51. status = "okay";
  52. m25p80@0 {
  53. compatible = "jedec,spi-nor";
  54. reg = <0>;
  55. spi-max-frequency = <10000000>;
  56. m25p,chunked-io = <32>;
  57. partitions {
  58. compatible = "fixed-partitions";
  59. #address-cells = <1>;
  60. #size-cells = <1>;
  61. partition@0 {
  62. label = "u-boot";
  63. reg = <0x0 0x30000>;
  64. read-only;
  65. };
  66. partition@30000 {
  67. label = "u-boot-env";
  68. reg = <0x30000 0x10000>;
  69. read-only;
  70. };
  71. factory: partition@40000 {
  72. label = "factory";
  73. reg = <0x40000 0x10000>;
  74. read-only;
  75. };
  76. partition@50000 {
  77. label = "firmware";
  78. reg = <0x50000 0xfb0000>;
  79. };
  80. };
  81. };
  82. };
  83. &ethernet {
  84. mtd-mac-address = <&factory 0xe000>;
  85. };
  86. &pinctrl {
  87. state_default: pinctrl0 {
  88. gpio {
  89. ralink,group = "i2c", "uart2", "jtag";
  90. ralink,function = "gpio";
  91. };
  92. };
  93. };