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