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