qoriq: add kernel 6.1 support
[openwrt/openwrt.git] / target / linux / lantiq / dts / ARV4518PWR01.dtsi
1 #include "danube.dtsi"
2
3 #include <dt-bindings/input/input.h>
4
5 / {
6 chosen {
7 bootargs = "console=ttyLTQ0,115200";
8 };
9
10 aliases {
11 led-boot = &power;
12 led-failsafe = &power;
13 led-running = &power;
14
15 led-dsl = &dsl;
16 led-internet = &online;
17 led-usb = &usb;
18 led-wifi = &wifi;
19 };
20
21 memory@0 {
22 reg = <0x0 0x4000000>;
23 };
24
25 sram@1F000000 {
26 vmmc@107000 {
27 status = "okay";
28 gpios = <&gpio 31 GPIO_ACTIVE_HIGH>;
29 };
30 };
31
32 fpi@10000000 {
33 localbus@0 {
34 nor-boot@0 {
35 compatible = "lantiq,nor";
36 bank-width = <2>;
37 reg = <0 0x0 0x2000000>;
38 #address-cells = <1>;
39 #size-cells = <1>;
40
41 partitions {
42 compatible = "fixed-partitions";
43 #address-cells = <1>;
44 #size-cells = <1>;
45
46 partition@0 {
47 label = "uboot";
48 reg = <0x00000 0x10000>; /* 64 KB */
49 read-only;
50 };
51
52 partition@10000 {
53 label = "uboot_env";
54 reg = <0x10000 0x10000>; /* 64 KB */
55 read-only;
56 };
57
58 partition@20000 {
59 label = "firmware";
60 reg = <0x20000 0x3d0000>;
61 };
62
63 boardconfig: partition@400000 {
64 label = "boardconfig";
65 reg = <0x3f0000 0x10000>;
66 read-only;
67 };
68 };
69 };
70
71 gpiomm: gpiomm@4000000 {
72 compatible = "lantiq,gpio-mm";
73 reg = <1 0x0 0x10 >;
74 #address-cells = <1>;
75 #size-cells = <1>;
76 #gpio-cells = <2>;
77 gpio-controller;
78 lantiq,shadow = <0x0>;
79 };
80
81 ath5k_eep {
82 compatible = "ath5k,eeprom";
83 ath,eep-flash = <&boardconfig 0x400>;
84 ath,mac-offset = <0x16>;
85 ath,mac-increment = <1>;
86 ath,eep-swap;
87 };
88 };
89
90 gpio: pinmux@E100B10 {
91 pinctrl-names = "default";
92 pinctrl-0 = <&state_default>;
93
94 state_default: pinmux {
95 ebu {
96 lantiq,groups = "ebu cs1";
97 lantiq,function = "ebu";
98 };
99 pci_in {
100 lantiq,groups = "req1", "req2";
101 lantiq,function = "pci";
102 lantiq,open-drain = <1>;
103 lantiq,pull = <2>;
104 lantiq,output = <0>;
105 };
106 pci_out {
107 lantiq,groups = "gnt1", "gnt2";
108 lantiq,function = "pci";
109 lantiq,pull = <0>;
110 lantiq,output = <1>;
111 };
112 };
113 };
114
115 etop@E180000 {
116 phy-mode = "mii";
117 mtd-mac-address = <&boardconfig 0x16>;
118 };
119
120 ifxhcd@E101000 {
121 status = "okay";
122 gpios = <&gpio 14 GPIO_ACTIVE_HIGH>;
123 };
124
125 pci@E105400 {
126 status = "okay";
127 gpio-reset = <&gpio 21 GPIO_ACTIVE_HIGH>;
128 req-mask = <0xf>;
129 };
130 };
131
132 gpio-keys-polled {
133 compatible = "gpio-keys-polled";
134 #address-cells = <1>;
135 #size-cells = <0>;
136 poll-interval = <100>;
137
138 rfkill {
139 label = "rfkill";
140 gpios = <&gpio 28 GPIO_ACTIVE_LOW>;
141 linux,code = <KEY_RFKILL>;
142 };
143 reset {
144 label = "reset";
145 gpios = <&gpio 30 GPIO_ACTIVE_LOW>;
146 linux,code = <KEY_RESTART>;
147 };
148 };
149
150 gpio-leds {
151 compatible = "gpio-leds";
152 power: power {
153 label = "power";
154 gpios = <&gpio 3 GPIO_ACTIVE_HIGH>;
155 default-state = "keep";
156 };
157 dsl: dsl {
158 label = "dsl";
159 gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
160 };
161 online: online {
162 label = "online";
163 gpios = <&gpio 5 GPIO_ACTIVE_LOW>;
164 };
165 wifi: wifi {
166 label = "wifi";
167 gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
168 };
169 wps {
170 label = "wps";
171 gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
172 };
173 dsl2 {
174 label = "dsl2";
175 gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
176 };
177 usb: usb {
178 label = "usb";
179 gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
180 };
181 voice {
182 label = "voice";
183 gpios = <&gpiomm 0 GPIO_ACTIVE_LOW>;
184 };
185 fxs1 {
186 label = "fxs1";
187 gpios = <&gpiomm 1 GPIO_ACTIVE_LOW>;
188 };
189 fxs2 {
190 label = "fxs2";
191 gpios = <&gpiomm 2 GPIO_ACTIVE_LOW>;
192 };
193 fxo {
194 label = "fxo";
195 gpios = <&gpiomm 3 GPIO_ACTIVE_LOW>;
196 };
197 };
198 };