H201L.dts 2.7 KB

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