DGN1000B.dts 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171
  1. /dts-v1/;
  2. #include "amazonse.dtsi"
  3. #include <dt-bindings/input/input.h>
  4. / {
  5. compatible = "netgear,dgn1000b", "lantiq,xway", "lantiq,ase";
  6. model = "Netgear DGN1000B";
  7. chosen {
  8. bootargs = "console=ttyLTQ0,115200";
  9. };
  10. aliases {
  11. led-boot = &power;
  12. led-failsafe = &power;
  13. led-running = &power;
  14. led-dsl = &dsl;
  15. led-internet = &online_green;
  16. };
  17. memory@0 {
  18. reg = <0x0 0x1000000>;
  19. };
  20. fpi@10000000 {
  21. gpio: pinmux@E100B10 {
  22. pinctrl-names = "default";
  23. pinctrl-0 = <&state_default>;
  24. state_default: pinmux {
  25. asc {
  26. lantiq,groups = "asc";
  27. lantiq,function = "asc";
  28. };
  29. keys_in {
  30. lantiq,pins = "io0",/* "io25", */"io29";
  31. lantiq,pull = <2>;
  32. lantiq,open-drain = <1>;
  33. };
  34. };
  35. pins_spi_default: pins_spi_default {
  36. spi_in {
  37. lantiq,groups = "spi_di";
  38. lantiq,function = "spi";
  39. };
  40. spi_out {
  41. lantiq,groups = "spi_do", "spi_clk",
  42. "spi_cs1";
  43. lantiq,function = "spi";
  44. lantiq,output = <1>;
  45. };
  46. };
  47. };
  48. etop@E180000 {
  49. phy-mode = "mii";
  50. mac-address = [ 00 11 22 33 44 55 ];
  51. };
  52. spi@E100800 {
  53. status = "okay";
  54. pinctrl-names = "default";
  55. pinctrl-0 = <&pins_spi_default>;
  56. m25p80@1 {
  57. #address-cells = <1>;
  58. #size-cells = <1>;
  59. compatible = "jedec,spi-nor";
  60. reg = <1 0>;
  61. spi-max-frequency = <5000000>;
  62. partitions {
  63. compatible = "fixed-partitions";
  64. #address-cells = <1>;
  65. #size-cells = <1>;
  66. partition@0 {
  67. reg = <0x0 0x20000>;
  68. label = "SPI (RO) U-Boot Image";
  69. read-only;
  70. };
  71. partition@20000 {
  72. reg = <0x20000 0x10000>;
  73. label = "ENV_MAC";
  74. read-only;
  75. };
  76. partition@30000 {
  77. reg = <0x30000 0x10000>;
  78. label = "DPF";
  79. read-only;
  80. };
  81. partition@40000 {
  82. reg = <0x40000 0x10000>;
  83. label = "NVRAM";
  84. read-only;
  85. };
  86. partition@500000 {
  87. reg = <0x50000 0x003a0000>;
  88. label = "kernel";
  89. };
  90. };
  91. };
  92. };
  93. ifxhcd@E101000 {
  94. status = "okay";
  95. };
  96. };
  97. gpio-keys-polled {
  98. compatible = "gpio-keys-polled";
  99. #address-cells = <1>;
  100. #size-cells = <0>;
  101. poll-interval = <100>;
  102. reset {
  103. label = "reset";
  104. gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
  105. linux,code = <KEY_RESTART>;
  106. };
  107. rfkill {
  108. label = "rfkill";
  109. gpios = <&gpio 25 GPIO_ACTIVE_LOW>;
  110. linux,code = <KEY_RFKILL>;
  111. };
  112. wps {
  113. label = "wps";
  114. gpios = <&gpio 29 GPIO_ACTIVE_LOW>;
  115. linux,code = <KEY_WPS_BUTTON>;
  116. };
  117. };
  118. gpio-leds {
  119. compatible = "gpio-leds";
  120. dsl: dsl {
  121. label = "dgn1000b:green:dsl";
  122. gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
  123. default-state = "on";
  124. };
  125. online_green: online {
  126. label = "dgn1000b:green:online";
  127. gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
  128. default-state = "on";
  129. };
  130. online2 {
  131. label = "dgn1000b:red:online";
  132. gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
  133. default-state = "on";
  134. };
  135. wps {
  136. label = "dgn1000b:green:wps";
  137. gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
  138. default-state = "on";
  139. };
  140. power: power {
  141. label = "dgn1000b:green:power";
  142. gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
  143. default-state = "keep";
  144. };
  145. /*
  146. power red is missing
  147. */
  148. };
  149. };