DGN1000B.dts 2.9 KB

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