Timecloud.dts 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  1. /dts-v1/;
  2. #include "mt7621.dtsi"
  3. #include <dt-bindings/input/input.h>
  4. / {
  5. model = "Thunder Timecloud";
  6. memory@0 {
  7. device_type = "memory";
  8. reg = <0x0 0x10000000>;
  9. };
  10. chosen {
  11. bootargs = "console=ttyS0,115200";
  12. };
  13. gpio-leds {
  14. compatible = "gpio-leds";
  15. statw {
  16. label = "timecloud:white:status";
  17. gpios = <&gpio0 7 0>;
  18. };
  19. stato {
  20. label = "timecloud:orange:status";
  21. gpios = <&gpio0 8 0>;
  22. };
  23. };
  24. gpio-keys-polled {
  25. compatible = "gpio-keys-polled";
  26. #address-cells = <1>;
  27. #size-cells = <0>;
  28. poll-interval = <20>;
  29. reset {
  30. label = "reset";
  31. gpios = <&gpio0 13 1>;
  32. linux,code = <KEY_RESTART>;
  33. };
  34. BTN_0 {
  35. label = "BTN_0";
  36. gpios = <&gpio0 4 1>;
  37. linux,code = <BTN_0>;
  38. };
  39. };
  40. };
  41. &sdhci {
  42. status = "okay";
  43. pinctrl-names = "default";
  44. pinctrl-0 = <&sdhci_pins>;
  45. };
  46. &spi0 {
  47. status = "okay";
  48. m25p80@0 {
  49. #address-cells = <1>;
  50. #size-cells = <1>;
  51. compatible = "jedec,spi-nor";
  52. reg = <0>;
  53. spi-max-frequency = <10000000>;
  54. m25p,chunked-io = <32>;
  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. label = "firmware";
  72. reg = <0x50000 0xfb0000>;
  73. };
  74. };
  75. };
  76. &ethernet {
  77. mtd-mac-address = <&factory 0xe000>;
  78. };
  79. &pinctrl {
  80. state_default: pinctrl0 {
  81. gpio {
  82. ralink,group = "i2c", "uart2", "jtag";
  83. ralink,function = "gpio";
  84. };
  85. };
  86. };