GR7000.dts 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149
  1. /dts-v1/;
  2. /include/ "ar9.dtsi"
  3. / {
  4. model = "GR7000 - Aztech GR7000";
  5. chosen {
  6. bootargs = "console=ttyLTQ0,115200 init=/etc/preinit";
  7. leds {
  8. boot = &power_red;
  9. failsafe = &power_red;
  10. internet = &internet_green;
  11. usb = &usb;
  12. wifi = &wifi;
  13. };
  14. };
  15. memory@0 {
  16. reg = <0x0 0x2000000>;
  17. };
  18. fpi@10000000 {
  19. localbus@0 {
  20. nor-boot@0 {
  21. compatible = "lantiq,nor";
  22. bank-width = <2>;
  23. reg = <0 0x0 0x2000000>;
  24. #address-cells = <1>;
  25. #size-cells = <1>;
  26. partitions {
  27. compatible = "fixed-partitions";
  28. #address-cells = <1>;
  29. #size-cells = <1>;
  30. partition@0 {
  31. label = "uboot";
  32. reg = <0x0 0x20000>;
  33. read-only;
  34. };
  35. partition@20000 {
  36. label = "uboot_env";
  37. reg = <0x20000 0x10000>;
  38. read-only;
  39. };
  40. partition@30000 {
  41. label = "firmware";
  42. reg = <0x30000 0x7d0000>;
  43. };
  44. };
  45. };
  46. };
  47. gpio: pinmux@E100B10 {
  48. compatible = "lantiq,pinctrl-xr9";
  49. pinctrl-names = "default";
  50. pinctrl-0 = <&state_default>;
  51. state_default: pinmux {
  52. stp {
  53. lantiq,groups = "stp";
  54. lantiq,function = "stp";
  55. };
  56. pci-in {
  57. lantiq,groups = "req1";
  58. lantiq,output = <0>;
  59. lantiq,open-drain = <1>;
  60. lantiq,pull = <2>;
  61. };
  62. pci-out {
  63. lantiq,groups = "gnt1";
  64. lantiq,output = <1>;
  65. lantiq,pull = <0>;
  66. };
  67. pci_rst {
  68. lantiq,pins = "io21";
  69. lantiq,pull = <0>;
  70. lantiq,output = <1>;
  71. };
  72. };
  73. };
  74. ifxhcd@E101000 {
  75. status = "okay";
  76. };
  77. pci@E105400 {
  78. status = "okay";
  79. };
  80. stp: stp@E100BB0 {
  81. compatible = "lantiq,gpio-stp-xway";
  82. #gpio-cells = <2>;
  83. gpio-controller;
  84. reg = <0xE100BB0 0x40>;
  85. lantiq,shadow = <0xfff>;
  86. lantiq,groups = <0x3>;
  87. };
  88. };
  89. gpio-keys-polled {
  90. compatible = "gpio-keys-polled";
  91. #address-cells = <1>;
  92. #size-cells = <0>;
  93. poll-interval = <100>;
  94. reset {
  95. label = "reset";
  96. gpios = <&gpio 53 1>;
  97. linux,code = <0x198>;
  98. };
  99. wps {
  100. label = "wps";
  101. gpios = <&gpio 54 1>;
  102. linux,code = <0x211>;
  103. };
  104. };
  105. gpio-leds {
  106. compatible = "gpio-leds";
  107. power_red: power2 {
  108. label = "gr7000:red:power";
  109. gpios = <&stp 4 0>;
  110. };
  111. internet_green: internet {
  112. label = "gr7000:green:internet";
  113. gpios = <&stp 2 1>;
  114. };
  115. internet2 {
  116. label = "gr7000:red:internet";
  117. gpios = <&stp 3 1>;
  118. };
  119. usb: usb {
  120. label = "gr7000:green:usb";
  121. gpios = <&stp 10 1>;
  122. };
  123. wifi: wifi {
  124. label = "gr7000:green:wireless";
  125. gpios = <&stp 15 1>;
  126. };
  127. };
  128. };