DGN3500.dtsi 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202
  1. /include/ "ar9.dtsi"
  2. / {
  3. chosen {
  4. bootargs = "root= console=ttyLTQ0,115200";
  5. leds {
  6. boot = &power_green;
  7. failsafe = &power_red;
  8. running = &power_green;
  9. dsl = &dsl;
  10. internet = &internet;
  11. usb = &usb;
  12. wifi = &wifi;
  13. };
  14. };
  15. memory@0 {
  16. reg = <0x0 0x4000000>;
  17. };
  18. fpi@10000000 {
  19. gpio: pinmux@E100B10 {
  20. pinctrl-names = "default";
  21. pinctrl-0 = <&state_default>;
  22. state_default: pinmux {
  23. exin {
  24. lantiq,groups = "exin1";
  25. lantiq,function = "exin";
  26. };
  27. pci {
  28. lantiq,groups = "gnt1", "req1";
  29. lantiq,function = "pci";
  30. };
  31. pci-in {
  32. lantiq,groups = "req1";
  33. lantiq,output = <0>;
  34. lantiq,open-drain = <1>;
  35. lantiq,pull = <2>;
  36. };
  37. pci-out {
  38. lantiq,groups = "gnt1";
  39. lantiq,output = <1>;
  40. lantiq,pull = <0>;
  41. };
  42. };
  43. pins_spi_default: pins_spi_default {
  44. spi_in {
  45. lantiq,groups = "spi_di";
  46. lantiq,function = "spi";
  47. };
  48. spi_out {
  49. lantiq,groups = "spi_do", "spi_clk",
  50. "spi_cs4";
  51. lantiq,function = "spi";
  52. lantiq,output = <1>;
  53. };
  54. };
  55. };
  56. etop@E180000 {
  57. phy-mode = "mii";
  58. mac-address = [ 00 11 22 33 44 55 ];
  59. };
  60. ifxhcd@E101000 {
  61. status = "okay";
  62. };
  63. pci@E105400 {
  64. status = "okay";
  65. lantiq,bus-clock = <33333333>;
  66. interrupt-map-mask = <0xf800 0x0 0x0 0x7>;
  67. interrupt-map = <0x7000 0 0 1 &icu0 30 1>;
  68. gpio-reset = <&gpio 21 0>;
  69. req-mask = <0x1>; /* GNT1 */
  70. };
  71. };
  72. ath9k_eep {
  73. compatible = "ath9k,eeprom";
  74. ath,eep-flash = <&ath9k_cal 0xf000>;
  75. ath,pci-slot = <14>;
  76. ath,eep-endian;
  77. ath,eep-swap;
  78. };
  79. rtl8366rb {
  80. compatible = "rtl8366rb";
  81. gpio-sda = <&gpio 35 0>;
  82. gpio-sck = <&gpio 37 0>;
  83. };
  84. gpio-keys-polled {
  85. compatible = "gpio-keys-polled";
  86. #address-cells = <1>;
  87. #size-cells = <0>;
  88. poll-interval = <100>;
  89. rfkill {
  90. label = "rfkill";
  91. gpios = <&gpio 36 1>;
  92. linux,code = <0xf7>;
  93. };
  94. wps {
  95. label = "wps";
  96. gpios = <&gpio 54 1>;
  97. linux,code = <0x211>;
  98. };
  99. reset {
  100. label = "reset";
  101. gpios = <&gpio 53 1>;
  102. linux,code = <0x198>;
  103. };
  104. };
  105. gpio-leds {
  106. compatible = "gpio-leds";
  107. internet: internet {
  108. label = "dgn3500:green:internet";
  109. gpios = <&gpio 2 1>;
  110. };
  111. /*
  112. internet red is missing
  113. */
  114. dsl: dsl {
  115. label = "dgn3500:green:dsl";
  116. gpios = <&gpio 4 1>;
  117. };
  118. usb: usb {
  119. label = "dgn3500:green:usb";
  120. gpios = <&gpio 22 1>;
  121. };
  122. power_green: power {
  123. label = "dgn3500:green:power";
  124. gpios = <&gpio 34 1>;
  125. default-state = "keep";
  126. };
  127. power_red: power2 {
  128. label = "dgn3500:red:power";
  129. gpios = <&gpio 39 1>;
  130. };
  131. /*
  132. power amber is missing
  133. */
  134. wifi: wifi {
  135. label = "dgn3500:blue:wireless";
  136. gpios = <&gpio 51 1>;
  137. };
  138. wps {
  139. label = "dgn3500:green:wps";
  140. gpios = <&gpio 52 1>;
  141. };
  142. };
  143. };
  144. &spi {
  145. pinctrl-names = "default";
  146. pinctrl-0 = <&pins_spi_default>;
  147. status = "ok";
  148. m25p80@4 {
  149. #address-cells = <1>;
  150. #size-cells = <1>;
  151. compatible = "jedec,spi-nor";
  152. reg = <4 0>;
  153. spi-max-frequency = <20000000>;
  154. partitions {
  155. compatible = "fixed-partitions";
  156. #address-cells = <1>;
  157. #size-cells = <1>;
  158. partition@0 {
  159. reg = <0x0 0x10000>;
  160. label = "uboot";
  161. read-only;
  162. };
  163. partition@10000 {
  164. reg = <0x10000 0x10000>;
  165. label = "uboot-env";
  166. read-only;
  167. };
  168. ath9k_cal: partition@20000 {
  169. reg = <0x20000 0x10000>;
  170. label = "calibration";
  171. read-only;
  172. };
  173. partition@50000 {
  174. reg = <0x50000 0xfa0000>;
  175. label = "firmware";
  176. };
  177. };
  178. };
  179. };