ALL0333CJ.dts 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  1. /dts-v1/;
  2. #include "amazonse.dtsi"
  3. / {
  4. compatible = "allnet,all0333cj", "lantiq,xway", "lantiq,ase";
  5. model = "Allnet ALL0333CJ DSL Modem";
  6. chosen {
  7. bootargs = "console=ttyLTQ0,115200";
  8. aliases {
  9. led-boot = &power;
  10. led-failsafe = &power;
  11. led-running = &power;
  12. led-upgrade = &power;
  13. led-dsl = &dsl;
  14. led-internet = &online_green;
  15. };
  16. };
  17. memory@0 {
  18. reg = <0x0 0x1000000>;
  19. };
  20. gpio-leds {
  21. compatible = "gpio-leds";
  22. /* power led: red=off, green=on */
  23. power: power {
  24. label = "all0333cj:green:power";
  25. gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
  26. default-state = "keep";
  27. };
  28. lan: lan {
  29. label = "all0333cj:green:lan";
  30. gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
  31. };
  32. dsl: dsl {
  33. label = "all0333cj:green:dsl";
  34. gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
  35. };
  36. online_green: online {
  37. label = "all0333cj:green:online";
  38. gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
  39. };
  40. online_red {
  41. label = "all0333cj:red:online";
  42. gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
  43. };
  44. };
  45. };
  46. &gpio {
  47. pinctrl-names = "default";
  48. pinctrl-0 = <&state_default>;
  49. state_default: pinmux {
  50. asc {
  51. lantiq,groups = "asc";
  52. lantiq,function = "asc";
  53. };
  54. keys_in {
  55. lantiq,pins = "io0",/* "io25", */"io29";
  56. lantiq,pull = <2>;
  57. lantiq,open-drain = <1>;
  58. };
  59. };
  60. };
  61. &gsw {
  62. phy-mode = "mii";
  63. };
  64. &localbus {
  65. nor@0 {
  66. compatible = "lantiq,nor";
  67. bank-width = <2>;
  68. reg = <0 0x0 0x400000>;
  69. #address-cells = <1>;
  70. #size-cells = <1>;
  71. partitions {
  72. compatible = "fixed-partitions";
  73. #address-cells = <1>;
  74. #size-cells = <1>;
  75. partition@0 {
  76. label = "uboot";
  77. reg = <0x00000 0x10000>;
  78. read-only;
  79. };
  80. partition@10000 {
  81. label = "firmware";
  82. reg = <0x10000 0x3ef200>;
  83. };
  84. partition@3ff200 {
  85. label = "uboot_env";
  86. reg = <0x3ff200 0xc00>;
  87. read-only;
  88. };
  89. partition@3ffe00 {
  90. label = "dummy_bits";
  91. reg = <0x3ffe00 0x200>;
  92. read-only;
  93. };
  94. };
  95. };
  96. };