DGN3500.dtsi 3.1 KB

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