lantiq: copy target to kernel 5.4
[openwrt/staging/mkresin.git] / target / linux / lantiq / files-5.4 / arch / mips / boot / dts / lantiq / amazonse_allnet_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 device_type = "memory";
25 reg = <0x0 0x1000000>;
26 };
27
28 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 keys_in {
65 lantiq,pins = "io0",/* "io25", */"io29";
66 lantiq,pull = <2>;
67 lantiq,open-drain = <1>;
68 };
69 };
70 };
71
72 &gsw {
73 phy-mode = "mii";
74 };
75
76 &localbus {
77 flash@0 {
78 compatible = "lantiq,nor";
79 bank-width = <2>;
80 reg = <0 0x0 0x400000>;
81
82 partitions {
83 compatible = "fixed-partitions";
84 #address-cells = <1>;
85 #size-cells = <1>;
86
87 partition@0 {
88 label = "uboot";
89 reg = <0x00000 0x10000>;
90 read-only;
91 };
92
93 partition@10000 {
94 label = "firmware";
95 reg = <0x10000 0x3ef200>;
96 };
97
98 partition@3ff200 {
99 label = "uboot_env";
100 reg = <0x3ff200 0xc00>;
101 read-only;
102 };
103
104 partition@3ffe00 {
105 label = "dummy_bits";
106 reg = <0x3ffe00 0x200>;
107 read-only;
108 };
109 };
110 };
111 };