H201L.dts 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175
  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-upgrade = &power_green;
  15. led-dsl = &dsl;
  16. led-internet = &online;
  17. led-usb = &led_usb;
  18. led-wifi = &wifi;
  19. };
  20. memory@0 {
  21. reg = <0x0 0x2000000>;
  22. };
  23. gpio-keys-polled {
  24. compatible = "gpio-keys-polled";
  25. #address-cells = <1>;
  26. #size-cells = <0>;
  27. poll-interval = <100>;
  28. reset {
  29. label = "reset";
  30. gpios = <&gpio 53 GPIO_ACTIVE_LOW>;
  31. linux,code = <KEY_RESTART>;
  32. };
  33. wps {
  34. label = "wps";
  35. gpios = <&gpio 54 GPIO_ACTIVE_LOW>;
  36. linux,code = <KEY_WPS_BUTTON>;
  37. };
  38. rfkill {
  39. label = "rfkill";
  40. gpios = <&gpio 55 GPIO_ACTIVE_LOW>;
  41. linux,code = <KEY_RFKILL>;
  42. };
  43. };
  44. gpio-leds {
  45. compatible = "gpio-leds";
  46. power_green: power {
  47. label = "h201l:green:power";
  48. gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
  49. default-state = "keep";
  50. };
  51. online: online {
  52. label = "h201l:green:internet";
  53. gpios = <&gpio 37 GPIO_ACTIVE_LOW>;
  54. };
  55. dsl: dsl {
  56. label = "h201l:green:dsl";
  57. gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
  58. };
  59. phone {
  60. label = "h201l:green:phone";
  61. gpios = <&gpio 39 GPIO_ACTIVE_LOW>;
  62. };
  63. wps {
  64. label = "h201l:green:wps";
  65. gpios = <&gpio 22 GPIO_ACTIVE_LOW>;
  66. };
  67. wifi: wifi {
  68. label = "h201l:green:wlan";
  69. gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
  70. };
  71. led_usb: usb {
  72. label = "h201l:green:usb";
  73. gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
  74. };
  75. };
  76. gpio_export {
  77. compatible = "gpio-export";
  78. #size-cells = <0>;
  79. switch {
  80. gpio-export,name = "switch";
  81. gpio-export,output = <1>;
  82. gpios = <&gpio 38 GPIO_ACTIVE_HIGH>;
  83. };
  84. usb {
  85. gpio-export,name = "usb";
  86. gpio-export,output = <1>;
  87. gpios = <&gpio 28 GPIO_ACTIVE_HIGH>;
  88. };
  89. wifi {
  90. gpio-export,name = "wifi";
  91. gpio-export,output = <1>;
  92. gpios = <&gpio 7 GPIO_ACTIVE_HIGH>;
  93. };
  94. };
  95. usb_vbus: regulator-usb-vbus {
  96. compatible = "regulator-fixed";
  97. regulator-name = "USB_VBUS";
  98. regulator-min-microvolt = <5000000>;
  99. regulator-max-microvolt = <5000000>;
  100. gpio = <&gpio 36 GPIO_ACTIVE_HIGH>;
  101. enable-active-high;
  102. };
  103. };
  104. &gpio {
  105. pinctrl-names = "default";
  106. pinctrl-0 = <&state_default>;
  107. state_default: pinmux {
  108. };
  109. };
  110. &gsw {
  111. phy-mode = "rgmii";
  112. };
  113. &localbus {
  114. nor@0 {
  115. compatible = "lantiq,nor";
  116. bank-width = <2>;
  117. reg = <0 0x0 0x2000000>;
  118. #address-cells = <1>;
  119. #size-cells = <1>;
  120. partitions {
  121. compatible = "fixed-partitions";
  122. #address-cells = <1>;
  123. #size-cells = <1>;
  124. partition@0 {
  125. label = "uboot";
  126. reg = <0x00000 0x20000>;
  127. read-only;
  128. };
  129. partition@20000 {
  130. label = "uboot_env";
  131. reg = <0x20000 0x10000>;
  132. read-only;
  133. };
  134. partition@30000 {
  135. label = "firmware";
  136. reg = <0x30000 0x7d0000>;
  137. };
  138. };
  139. };
  140. };
  141. &usb_phy0 {
  142. status = "okay";
  143. };
  144. &usb0 {
  145. status = "okay";
  146. vbus-supply = <&usb_vbus>;
  147. };