DGN1000B.dts 2.9 KB

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