WBMR.dts 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186
  1. /dts-v1/;
  2. /include/ "ar9.dtsi"
  3. / {
  4. model = "WBMR - Buffalo WBMR-HP-G300H";
  5. chosen {
  6. bootargs = "console=ttyLTQ0,115200 init=/etc/preinit";
  7. leds {
  8. boot = &power_green;
  9. failsafe = &power_red;
  10. running = &power_green;
  11. dsl = &dsl;
  12. internet = &online_green;
  13. usb = &usb;
  14. wifi = &wifi;
  15. };
  16. };
  17. memory@0 {
  18. reg = <0x0 0x4000000>;
  19. };
  20. fpi@10000000 {
  21. localbus@0 {
  22. nor-boot@0 {
  23. compatible = "lantiq,nor";
  24. bank-width = <2>;
  25. reg = <0 0x0 0x2000000>;
  26. #address-cells = <1>;
  27. #size-cells = <1>;
  28. partitions {
  29. compatible = "fixed-partitions";
  30. #address-cells = <1>;
  31. #size-cells = <1>;
  32. partition@0 {
  33. label = "uboot";
  34. reg = <0x00000 0x40000>;
  35. read-only;
  36. };
  37. partition@40000 {
  38. label = "uboot_env";
  39. reg = <0x40000 0x20000>;
  40. read-only;
  41. };
  42. partition@20000 {
  43. label = "firmware";
  44. reg = <0x60000 0x1f20000>;
  45. };
  46. partition@0x1fc0000 {
  47. label = "board";
  48. reg = <0x1fc0000 0x20000>;
  49. read-only;
  50. };
  51. partition@0x1fe0000 {
  52. label = "calibration";
  53. reg = <0x1fe0000 0x20000>;
  54. read-only;
  55. };
  56. };
  57. };
  58. mac_addr {
  59. compatible = "lantiq,eth-mac";
  60. reg = <0 0x1fd0024 0x6>;
  61. };
  62. };
  63. gpio: pinmux@E100B10 {
  64. pinctrl-names = "default";
  65. pinctrl-0 = <&state_default>;
  66. state_default: pinmux {
  67. pci-in {
  68. lantiq,groups = "req1";
  69. lantiq,output = <0>;
  70. lantiq,open-drain = <1>;
  71. lantiq,pull = <2>;
  72. };
  73. pci-out {
  74. lantiq,groups = "gnt1";
  75. lantiq,output = <1>;
  76. lantiq,pull = <0>;
  77. };
  78. pci_rst {
  79. lantiq,pins = "io21";
  80. lantiq,pull = <0>;
  81. lantiq,output = <1>;
  82. };
  83. };
  84. };
  85. etop@E180000 {
  86. phy-mode = "rgmii";
  87. };
  88. ifxhcd@E101000 {
  89. status = "okay";
  90. gpios = <&gpio 36 0>;
  91. };
  92. pci@E105400 {
  93. status = "okay";
  94. };
  95. };
  96. gpio-keys-polled {
  97. compatible = "gpio-keys-polled";
  98. #address-cells = <1>;
  99. #size-cells = <0>;
  100. poll-interval = <100>;
  101. wps {
  102. label = "wps";
  103. gpios = <&gpio 0 1>;
  104. linux,code = <0x211>;
  105. };
  106. reset {
  107. label = "reset";
  108. gpios = <&gpio 37 1>;
  109. linux,code = <0x198>;
  110. };
  111. eject {
  112. label = "eject";
  113. gpios = <&gpio 34 1>;
  114. linux,code = <0xf7>;
  115. };
  116. movie {
  117. label = "movie";
  118. gpios = <&gpio 22 1>;
  119. linux,code = <0x109>;
  120. };
  121. };
  122. gpio-leds {
  123. compatible = "gpio-leds";
  124. power_green: power {
  125. label = "wbmr:green:power";
  126. gpios = <&gpio 1 1>;
  127. default-state = "keep";
  128. };
  129. power_red: power2 {
  130. label = "wbmr:red:power";
  131. gpios = <&gpio 5 1>;
  132. };
  133. security {
  134. label = "wbmr:yellow:security";
  135. gpios = <&gpio 14 1>;
  136. };
  137. wifi: wifi {
  138. label = "wbmr:green:wireless";
  139. gpios = <&gpio 15 1>;
  140. };
  141. dsl: dsl {
  142. label = "wbmr:green:dsl";
  143. gpios = <&gpio 16 1>;
  144. };
  145. online_green: online {
  146. label = "wbmr:green:internet";
  147. gpios = <&gpio 17 1>;
  148. };
  149. online2 {
  150. label = "wbmr:red:internet";
  151. gpios = <&gpio 18 1>;
  152. };
  153. movie {
  154. label = "wbmr:blue:movie";
  155. gpios = <&gpio 20 1>;
  156. };
  157. usb: usb {
  158. label = "wbmr:green:usb";
  159. gpios = <&gpio 28 1>;
  160. default-state = "on";
  161. };
  162. };
  163. };