lantiq: dts: use generic node names
[oweals/openwrt.git] / target / linux / lantiq / files / 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                 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                 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         flash@0 {
82                 compatible = "lantiq,nor";
83                 bank-width = <2>;
84                 reg = <0 0x0 0x400000>;
85
86                 partitions {
87                         compatible = "fixed-partitions";
88                         #address-cells = <1>;
89                         #size-cells = <1>;
90
91                         partition@0 {
92                                 label = "uboot";
93                                 reg = <0x00000 0x10000>;
94                                 read-only;
95                         };
96
97                         partition@10000 {
98                                 label = "firmware";
99                                 reg = <0x10000 0x3ef200>;
100                         };
101
102                         partition@3ff200 {
103                                 label = "uboot_env";
104                                 reg = <0x3ff200 0xc00>;
105                                 read-only;
106                         };
107
108                         partition@3ffe00 {
109                                 label = "dummy_bits";
110                                 reg = <0x3ffe00 0x200>;
111                                 read-only;
112                         };
113                 };
114         };
115 };