a157104dbf21f379bd7d14bb631096a4e7110684
[openwrt/openwrt.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
24 memory@0 {
25 reg = <0x0 0x1000000>;
26 };
27
28 gpio-leds {
29 compatible = "gpio-leds";
30
31 /* power led: red=off, green=on */
32 power: power {
33 label = "all0333cj:green:power";
34 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
35 default-state = "keep";
36 };
37
38 lan: lan {
39 label = "all0333cj:green:lan";
40 gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
41 };
42
43 dsl: dsl {
44 label = "all0333cj:green:dsl";
45 gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
46 };
47
48 online_green: online {
49 label = "all0333cj:green:online";
50 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
51 };
52 online_red {
53 label = "all0333cj:red:online";
54 gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
55 };
56 };
57 };
58
59 &gpio {
60 pinctrl-names = "default";
61 pinctrl-0 = <&state_default>;
62
63 state_default: pinmux {
64 asc {
65 lantiq,groups = "asc";
66 lantiq,function = "asc";
67 };
68 keys_in {
69 lantiq,pins = "io0",/* "io25", */"io29";
70 lantiq,pull = <2>;
71 lantiq,open-drain = <1>;
72 };
73 };
74 };
75
76 &gsw {
77 phy-mode = "mii";
78 };
79
80 &localbus {
81 nor@0 {
82 compatible = "lantiq,nor";
83 bank-width = <2>;
84 reg = <0 0x0 0x400000>;
85 #address-cells = <1>;
86 #size-cells = <1>;
87
88 partitions {
89 compatible = "fixed-partitions";
90 #address-cells = <1>;
91 #size-cells = <1>;
92
93 partition@0 {
94 label = "uboot";
95 reg = <0x00000 0x10000>;
96 read-only;
97 };
98
99 partition@10000 {
100 label = "firmware";
101 reg = <0x10000 0x3ef200>;
102 };
103
104 partition@3ff200 {
105 label = "uboot_env";
106 reg = <0x3ff200 0xc00>;
107 read-only;
108 };
109
110 partition@3ffe00 {
111 label = "dummy_bits";
112 reg = <0x3ffe00 0x200>;
113 read-only;
114 };
115 };
116 };
117 };