W06.dts 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  1. /dts-v1/;
  2. #include "mt7628an.dtsi"
  3. #include <dt-bindings/gpio/gpio.h>
  4. #include <dt-bindings/input/input.h>
  5. / {
  6. compatible = "tama,w06", "mediatek,mt7628an-soc";
  7. model = "Tama W06";
  8. memory@0{
  9. device_type = "memory";
  10. reg = <0x0 0x4000000>;
  11. };
  12. gpio-leds {
  13. compatible = "gpio-leds";
  14. wps {
  15. label = "w06:green:wps";
  16. gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
  17. };
  18. wan {
  19. label = "w06:green:wan";
  20. gpios = <&gpio1 11 GPIO_ACTIVE_LOW>;
  21. };
  22. wireless {
  23. label = "w06:green:wlan";
  24. gpios = <&gpio1 14 GPIO_ACTIVE_LOW>;
  25. };
  26. };
  27. gpio-keys-polled {
  28. compatible = "gpio-keys-polled";
  29. poll-interval = <20>;
  30. reset {
  31. label = "reset";
  32. gpios = <&gpio1 6 GPIO_ACTIVE_LOW>;
  33. linux,code = <KEY_RESTART>;
  34. };
  35. };
  36. };
  37. &ehci {
  38. status = "okay";
  39. };
  40. &ethernet {
  41. mtd-mac-address = <&factory 0x28>;
  42. };
  43. &ohci {
  44. status = "okay";
  45. };
  46. &pinctrl {
  47. state_default: pinctrl0 {
  48. gpio {
  49. ralink,group = "uart1", "p0led_an", "wdt";
  50. ralink,function = "gpio";
  51. };
  52. };
  53. };
  54. &spi0 {
  55. status = "okay";
  56. m25p80@0 {
  57. compatible = "jedec,spi-nor";
  58. reg = <0>;
  59. spi-max-frequency = <10000000>;
  60. m25p,chunked-io = <32>;
  61. partitions {
  62. compatible = "fixed-partitions";
  63. #address-cells = <1>;
  64. #size-cells = <1>;
  65. partition@0 {
  66. label = "u-boot";
  67. reg = <0x0 0x30000>;
  68. read-only;
  69. };
  70. partition@30000 {
  71. label = "u-boot-env";
  72. reg = <0x30000 0x10000>;
  73. read-only;
  74. };
  75. factory: partition@40000 {
  76. label = "factory";
  77. reg = <0x40000 0x10000>;
  78. read-only;
  79. };
  80. partition@50000 {
  81. label = "firmware";
  82. reg = <0x50000 0xeb0000>;
  83. };
  84. partition@f00000 {
  85. label = "user-data";
  86. reg = <0xf00000 0x100000>;
  87. read-only;
  88. };
  89. };
  90. };
  91. };
  92. &wmac {
  93. status = "okay";
  94. };