DGN1000B.dts 3.0 KB

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