WBMR.dts 3.3 KB

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