Advertisement
Guest User

ALL0333CJ.dts

a guest
Nov 6th, 2016
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 14.25 KB | None | 0 0
  1. /dts-v1/;
  2.  
  3. #include "amazonse.dtsi"
  4.  
  5. / {
  6. model = "ALL0333CJ - Allnet ALL0333CJ DSL Modem";
  7.  
  8. chosen {
  9. bootargs = "console=ttyLTQ0,115200 init=/etc/preinit";
  10.  
  11. aliases {
  12. led-boot = &power;
  13. led-failsafe = &power;
  14. led-running = &power;
  15.  
  16. led-dsl = &dsl;
  17. led-internet = &online_green;
  18. };
  19. };
  20.  
  21. memory@0 {
  22. reg = <0x0 0x01000000>; // 16M
  23. };
  24.  
  25. fpi@10000000 {
  26. gpio: pinmux@E100B10 {
  27. pinctrl-names = "default";
  28. pinctrl-0 = <&state_default>;
  29.  
  30. state_default: pinmux {
  31. asc {
  32. lantiq,groups = "asc";
  33. lantiq,function = "asc";
  34. };
  35. keys_in {
  36. lantiq,pins = "io0",/* "io25", */"io29";
  37. lantiq,pull = <2>;
  38. lantiq,open-drain = <1>;
  39. };
  40. };
  41. pins_spi_default: pins_spi_default {
  42. spi_in {
  43. lantiq,groups = "spi_di";
  44. lantiq,function = "spi";
  45. };
  46. spi_out {
  47. lantiq,groups = "spi_do", "spi_clk",
  48. "spi_cs1";
  49. lantiq,function = "spi";
  50. lantiq,output = <1>;
  51. };
  52. };
  53. };
  54.  
  55. etop@E180000 {
  56. phy-mode = "mii";
  57. mac-address = [ 00 11 22 33 44 55 ];
  58. };
  59.  
  60. };
  61.  
  62.  
  63. gpio-keys-polled {
  64. compatible = "gpio-keys-polled";
  65. #address-cells = <1>;
  66. #size-cells = <0>;
  67. poll-interval = <100>;
  68.  
  69. reset {
  70. label = "reset";
  71. gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
  72. linux,code = <KEY_RESTART>;
  73. };
  74. };
  75.  
  76. /* XXX, adjust */
  77. gpio-leds {
  78. compatible = "gpio-leds";
  79. dsl: dsl {
  80. label = "all0333cj:green:dsl";
  81. gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
  82. default-state = "on";
  83. };
  84. online_green: online {
  85. label = "all0333cj:green:online";
  86. gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
  87. default-state = "on";
  88. };
  89. online2 {
  90. label = "all0333cj:red:online";
  91. gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
  92. default-state = "on";
  93. };
  94. power: power {
  95. label = "all0333cj:green:power";
  96. gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
  97. default-state = "keep";
  98. };
  99. };
  100. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement