Timecloud.dts 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  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. pinctrl-names = "default";
  47. pinctrl-0 = <&sdhci_pins>;
  48. };
  49. &spi0 {
  50. status = "okay";
  51. m25p80@0 {
  52. compatible = "jedec,spi-nor";
  53. reg = <0>;
  54. spi-max-frequency = <10000000>;
  55. m25p,chunked-io = <32>;
  56. partitions {
  57. compatible = "fixed-partitions";
  58. #address-cells = <1>;
  59. #size-cells = <1>;
  60. partition@0 {
  61. label = "u-boot";
  62. reg = <0x0 0x30000>;
  63. read-only;
  64. };
  65. partition@30000 {
  66. label = "u-boot-env";
  67. reg = <0x30000 0x10000>;
  68. read-only;
  69. };
  70. factory: partition@40000 {
  71. label = "factory";
  72. reg = <0x40000 0x10000>;
  73. read-only;
  74. };
  75. partition@50000 {
  76. label = "firmware";
  77. reg = <0x50000 0xfb0000>;
  78. };
  79. };
  80. };
  81. };
  82. &ethernet {
  83. mtd-mac-address = <&factory 0xe000>;
  84. };
  85. &pinctrl {
  86. state_default: pinctrl0 {
  87. gpio {
  88. ralink,group = "i2c", "uart2", "jtag";
  89. ralink,function = "gpio";
  90. };
  91. };
  92. };