H201L.dts 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157
  1. /dts-v1/;
  2. #include "ar9.dtsi"
  3. #include <dt-bindings/input/input.h>
  4. / {
  5. compatible = "zte,h201l", "lantiq,xway", "lantiq,ar9";
  6. model = "ZTE H210L";
  7. chosen {
  8. bootargs = "console=ttyLTQ0,115200";
  9. };
  10. aliases {
  11. led-boot = &power_green;
  12. led-failsafe = &power_green;
  13. led-running = &power_green;
  14. led-dsl = &dsl;
  15. led-internet = &online;
  16. led-usb = &led_usb;
  17. led-wifi = &wifi;
  18. };
  19. memory@0 {
  20. reg = <0x0 0x2000000>;
  21. };
  22. gpio-keys-polled {
  23. compatible = "gpio-keys-polled";
  24. #address-cells = <1>;
  25. #size-cells = <0>;
  26. poll-interval = <100>;
  27. reset {
  28. label = "reset";
  29. gpios = <&gpio 53 GPIO_ACTIVE_LOW>;
  30. linux,code = <KEY_RESTART>;
  31. };
  32. wps {
  33. label = "wps";
  34. gpios = <&gpio 54 GPIO_ACTIVE_LOW>;
  35. linux,code = <KEY_WPS_BUTTON>;
  36. };
  37. rfkill {
  38. label = "rfkill";
  39. gpios = <&gpio 55 GPIO_ACTIVE_LOW>;
  40. linux,code = <KEY_RFKILL>;
  41. };
  42. };
  43. gpio-leds {
  44. compatible = "gpio-leds";
  45. power_green: power {
  46. label = "h201l:green:power";
  47. gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
  48. default-state = "keep";
  49. };
  50. online: online {
  51. label = "h201l:green:internet";
  52. gpios = <&gpio 37 GPIO_ACTIVE_LOW>;
  53. };
  54. dsl: dsl {
  55. label = "h201l:green:dsl";
  56. gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
  57. };
  58. phone {
  59. label = "h201l:green:phone";
  60. gpios = <&gpio 39 GPIO_ACTIVE_LOW>;
  61. };
  62. wps {
  63. label = "h201l:green:wps";
  64. gpios = <&gpio 22 GPIO_ACTIVE_LOW>;
  65. };
  66. wifi: wifi {
  67. label = "h201l:green:wlan";
  68. gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
  69. };
  70. led_usb: usb {
  71. label = "h201l:green:usb";
  72. gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
  73. };
  74. };
  75. gpio_export {
  76. compatible = "gpio-export";
  77. #size-cells = <0>;
  78. switch {
  79. gpio-export,name = "switch";
  80. gpio-export,output = <1>;
  81. gpios = <&gpio 38 GPIO_ACTIVE_HIGH>;
  82. };
  83. usb {
  84. gpio-export,name = "usb";
  85. gpio-export,output = <1>;
  86. gpios = <&gpio 28 GPIO_ACTIVE_HIGH>;
  87. };
  88. wifi {
  89. gpio-export,name = "wifi";
  90. gpio-export,output = <1>;
  91. gpios = <&gpio 7 GPIO_ACTIVE_HIGH>;
  92. };
  93. };
  94. };
  95. &gpio {
  96. pinctrl-names = "default";
  97. pinctrl-0 = <&state_default>;
  98. state_default: pinmux {
  99. };
  100. };
  101. &gsw {
  102. phy-mode = "rgmii";
  103. };
  104. &localbus {
  105. nor@0 {
  106. compatible = "lantiq,nor";
  107. bank-width = <2>;
  108. reg = <0 0x0 0x2000000>;
  109. #address-cells = <1>;
  110. #size-cells = <1>;
  111. partitions {
  112. compatible = "fixed-partitions";
  113. #address-cells = <1>;
  114. #size-cells = <1>;
  115. partition@0 {
  116. label = "uboot";
  117. reg = <0x00000 0x20000>;
  118. read-only;
  119. };
  120. partition@20000 {
  121. label = "uboot_env";
  122. reg = <0x20000 0x10000>;
  123. read-only;
  124. };
  125. partition@30000 {
  126. label = "firmware";
  127. reg = <0x30000 0x7d0000>;
  128. };
  129. };
  130. };
  131. };
  132. &usb0 {
  133. status = "okay";
  134. gpios = <&gpio 36 GPIO_ACTIVE_HIGH>;
  135. };