Timecloud.dts 1.7 KB

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