ARV4518PWR01.dtsi 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198
  1. #include "danube.dtsi"
  2. #include <dt-bindings/input/input.h>
  3. / {
  4. chosen {
  5. bootargs = "console=ttyLTQ0,115200";
  6. };
  7. aliases {
  8. led-boot = &power;
  9. led-failsafe = &power;
  10. led-running = &power;
  11. led-dsl = &dsl;
  12. led-internet = &online;
  13. led-usb = &usb;
  14. led-wifi = &wifi;
  15. };
  16. memory@0 {
  17. reg = <0x0 0x4000000>;
  18. };
  19. sram@1F000000 {
  20. vmmc@107000 {
  21. status = "okay";
  22. gpios = <&gpio 31 GPIO_ACTIVE_HIGH>;
  23. };
  24. };
  25. fpi@10000000 {
  26. localbus@0 {
  27. nor-boot@0 {
  28. compatible = "lantiq,nor";
  29. bank-width = <2>;
  30. reg = <0 0x0 0x2000000>;
  31. #address-cells = <1>;
  32. #size-cells = <1>;
  33. partitions {
  34. compatible = "fixed-partitions";
  35. #address-cells = <1>;
  36. #size-cells = <1>;
  37. partition@0 {
  38. label = "uboot";
  39. reg = <0x00000 0x10000>; /* 64 KB */
  40. read-only;
  41. };
  42. partition@10000 {
  43. label = "uboot_env";
  44. reg = <0x10000 0x10000>; /* 64 KB */
  45. read-only;
  46. };
  47. partition@20000 {
  48. label = "firmware";
  49. reg = <0x20000 0x3d0000>;
  50. };
  51. boardconfig: partition@400000 {
  52. label = "boardconfig";
  53. reg = <0x3f0000 0x10000>;
  54. read-only;
  55. };
  56. };
  57. };
  58. gpiomm: gpiomm@4000000 {
  59. compatible = "lantiq,gpio-mm";
  60. reg = <1 0x0 0x10 >;
  61. #address-cells = <1>;
  62. #size-cells = <1>;
  63. #gpio-cells = <2>;
  64. gpio-controller;
  65. lantiq,shadow = <0x0>;
  66. };
  67. ath5k_eep {
  68. compatible = "ath5k,eeprom";
  69. ath,eep-flash = <&boardconfig 0x400>;
  70. ath,mac-offset = <0x16>;
  71. ath,mac-increment = <1>;
  72. ath,eep-swap;
  73. };
  74. };
  75. gpio: pinmux@E100B10 {
  76. pinctrl-names = "default";
  77. pinctrl-0 = <&state_default>;
  78. state_default: pinmux {
  79. ebu {
  80. lantiq,groups = "ebu cs1";
  81. lantiq,function = "ebu";
  82. };
  83. pci_in {
  84. lantiq,groups = "req1", "req2";
  85. lantiq,function = "pci";
  86. lantiq,open-drain = <1>;
  87. lantiq,pull = <2>;
  88. lantiq,output = <0>;
  89. };
  90. pci_out {
  91. lantiq,groups = "gnt1", "gnt2";
  92. lantiq,function = "pci";
  93. lantiq,pull = <0>;
  94. lantiq,output = <1>;
  95. };
  96. };
  97. };
  98. etop@E180000 {
  99. phy-mode = "mii";
  100. mtd-mac-address = <&boardconfig 0x16>;
  101. };
  102. ifxhcd@E101000 {
  103. status = "okay";
  104. gpios = <&gpio 14 GPIO_ACTIVE_HIGH>;
  105. };
  106. pci@E105400 {
  107. status = "okay";
  108. gpio-reset = <&gpio 21 GPIO_ACTIVE_HIGH>;
  109. req-mask = <0xf>;
  110. };
  111. };
  112. gpio-keys-polled {
  113. compatible = "gpio-keys-polled";
  114. #address-cells = <1>;
  115. #size-cells = <0>;
  116. poll-interval = <100>;
  117. rfkill {
  118. label = "rfkill";
  119. gpios = <&gpio 28 GPIO_ACTIVE_LOW>;
  120. linux,code = <KEY_RFKILL>;
  121. };
  122. reset {
  123. label = "reset";
  124. gpios = <&gpio 30 GPIO_ACTIVE_LOW>;
  125. linux,code = <KEY_RESTART>;
  126. };
  127. };
  128. gpio-leds {
  129. compatible = "gpio-leds";
  130. power: power {
  131. label = "power";
  132. gpios = <&gpio 3 GPIO_ACTIVE_HIGH>;
  133. default-state = "keep";
  134. };
  135. dsl: dsl {
  136. label = "dsl";
  137. gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
  138. };
  139. online: online {
  140. label = "online";
  141. gpios = <&gpio 5 GPIO_ACTIVE_LOW>;
  142. };
  143. wifi: wifi {
  144. label = "wifi";
  145. gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
  146. };
  147. wps {
  148. label = "wps";
  149. gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
  150. };
  151. dsl2 {
  152. label = "dsl2";
  153. gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
  154. };
  155. usb: usb {
  156. label = "usb";
  157. gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
  158. };
  159. voice {
  160. label = "voice";
  161. gpios = <&gpiomm 0 GPIO_ACTIVE_LOW>;
  162. };
  163. fxs1 {
  164. label = "fxs1";
  165. gpios = <&gpiomm 1 GPIO_ACTIVE_LOW>;
  166. };
  167. fxs2 {
  168. label = "fxs2";
  169. gpios = <&gpiomm 2 GPIO_ACTIVE_LOW>;
  170. };
  171. fxo {
  172. label = "fxo";
  173. gpios = <&gpiomm 3 GPIO_ACTIVE_LOW>;
  174. };
  175. };
  176. };