DGN1000B.dts 2.8 KB

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