2
0

TEW-638APB-V2.dts 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. /dts-v1/;
  2. #include "rt3050.dtsi"
  3. #include <dt-bindings/gpio/gpio.h>
  4. #include <dt-bindings/input/input.h>
  5. / {
  6. compatible = "trendnet,tew-638apb-v2", "ralink,rt3050-soc";
  7. model = "TRENDnet TEW-638APB v2";
  8. cfi@1f000000 {
  9. compatible = "cfi-flash";
  10. reg = <0x1f000000 0x400000>;
  11. bank-width = <2>;
  12. device-width = <2>;
  13. #address-cells = <1>;
  14. #size-cells = <1>;
  15. partition@0 {
  16. label = "u-boot";
  17. reg = <0x0 0x30000>;
  18. read-only;
  19. };
  20. partition@30000 {
  21. label = "u-boot-env";
  22. reg = <0x30000 0x10000>;
  23. read-only;
  24. };
  25. factory: partition@40000 {
  26. label = "factory";
  27. reg = <0x40000 0x10000>;
  28. read-only;
  29. };
  30. partition@50000 {
  31. label = "firmware";
  32. reg = <0x50000 0x3b0000>;
  33. };
  34. };
  35. gpio-keys-polled {
  36. compatible = "gpio-keys-polled";
  37. #address-cells = <1>;
  38. #size-cells = <0>;
  39. poll-interval = <20>;
  40. reset {
  41. label = "reset";
  42. gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
  43. linux,code = <KEY_RESTART>;
  44. };
  45. wps {
  46. label = "wps";
  47. gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
  48. linux,code = <KEY_WPS_BUTTON>;
  49. };
  50. };
  51. gpio-leds {
  52. compatible = "gpio-leds";
  53. wps {
  54. label = "tew-638apb-v2:orange:wps";
  55. gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
  56. };
  57. wps2 {
  58. label = "tew-638apb-v2:green:wps";
  59. gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
  60. };
  61. };
  62. };
  63. &pinctrl {
  64. state_default: pinctrl0 {
  65. gpio {
  66. ralink,group = "uartf";
  67. ralink,function = "gpio";
  68. };
  69. };
  70. };
  71. &ethernet {
  72. mtd-mac-address = <&factory 0x4>;
  73. };
  74. &esw {
  75. mediatek,portmap = <0x2f>;
  76. };
  77. &wmac {
  78. ralink,mtd-eeprom = <&factory 0>;
  79. };