Timecloud.dts 1.7 KB

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