H201L.dts 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174
  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. usb_vbus: regulator-usb-vbus {
  95. compatible = "regulator-fixed";
  96. regulator-name = "USB_VBUS";
  97. regulator-min-microvolt = <5000000>;
  98. regulator-max-microvolt = <5000000>;
  99. gpio = <&gpio 36 GPIO_ACTIVE_HIGH>;
  100. enable-active-high;
  101. };
  102. };
  103. &gpio {
  104. pinctrl-names = "default";
  105. pinctrl-0 = <&state_default>;
  106. state_default: pinmux {
  107. };
  108. };
  109. &gsw {
  110. phy-mode = "rgmii";
  111. };
  112. &localbus {
  113. nor@0 {
  114. compatible = "lantiq,nor";
  115. bank-width = <2>;
  116. reg = <0 0x0 0x2000000>;
  117. #address-cells = <1>;
  118. #size-cells = <1>;
  119. partitions {
  120. compatible = "fixed-partitions";
  121. #address-cells = <1>;
  122. #size-cells = <1>;
  123. partition@0 {
  124. label = "uboot";
  125. reg = <0x00000 0x20000>;
  126. read-only;
  127. };
  128. partition@20000 {
  129. label = "uboot_env";
  130. reg = <0x20000 0x10000>;
  131. read-only;
  132. };
  133. partition@30000 {
  134. label = "firmware";
  135. reg = <0x30000 0x7d0000>;
  136. };
  137. };
  138. };
  139. };
  140. &usb_phy0 {
  141. status = "okay";
  142. };
  143. &usb0 {
  144. status = "okay";
  145. vbus-supply = <&usb_vbus>;
  146. };