H201L.dts 2.5 KB

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