1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * Device Tree Source for the MPC5121e based ac14xx board
5 * Copyright 2012 Anatolij Gustschin <agust@denx.de>
9 #include "mpc5121.dtsi"
13 compatible = "ifm,ac14xx", "fsl,mpc5121";
26 timebase-frequency = <40000000>; /* 40 MHz (csb/4) */
27 bus-frequency = <160000000>; /* 160 MHz csb bus */
28 clock-frequency = <400000000>; /* 400 MHz ppc core */
33 reg = <0x00000000 0x10000000>; /* 256MB at 0 */
41 ranges = <0x0 0x0 0xfc000000 0x04000000 /* CS0: NOR flash */
42 0x1 0x0 0xe0000000 0x00010000 /* CS1: FRAM */
43 0x2 0x0 0xe0100000 0x00080000 /* CS2: asi1 */
44 0x3 0x0 0xe0300000 0x00020000 /* CS3: comm */
45 0x5 0x0 0xe0400000 0x00010000 /* CS5: safety */
46 0x6 0x0 0xe0200000 0x00080000>; /* CS6: asi2 */
49 compatible = "cfi-flash";
50 reg = <0 0x00000000 0x04000000>;
57 label = "dtb-kernel-production";
58 reg = <0x00000000 0x00400000>;
61 label = "filesystem-production";
62 reg = <0x00400000 0x03400000>;
67 reg = <0x03800000 0x00700000>;
72 reg = <0x03f00000 0x00040000>;
76 reg = <0x03f40000 0x00020000>;
80 reg = <0x03f60000 0x00020000>;
85 compatible = "ifm,ac14xx-fram", "linux,uio-pdrv-genirq";
86 reg = <1 0x00000000 0x00010000>;
90 /* masters mapping: CS, CS offset, size */
91 reg = <2 0x00000000 0x00080000
92 6 0x00000000 0x00080000>;
95 compatible = "ifm,ac14xx-asi-fpga";
97 &gpio_pic 26 0 /* prog */
98 &gpio_pic 27 0 /* done */
99 &gpio_pic 10 0 /* reset */
103 interrupts = <20 0x2>;
104 interrupt-parent = <&gpio_pic>;
105 chipselect = <2 0x00009000 0x00009100>;
106 label = "AS-i master 1";
110 interrupts = <21 0x2>;
111 interrupt-parent = <&gpio_pic>;
112 chipselect = <6 0x00009000 0x00009100>;
113 label = "AS-i master 2";
118 compatible = "ifm,netx";
119 reg = <0x3 0x00000000 0x00020000>;
120 chipselect = <3 0x00101140 0x00203100>;
121 interrupts = <17 0x8>;
122 gpios = <&gpio_pic 15 0>;
126 compatible = "ifm,safety";
127 reg = <0x5 0x00000000 0x00010000>;
128 chipselect = <5 0x00009000 0x00009100>;
129 interrupts = <22 0x2>;
130 interrupt-parent = <&gpio_pic>;
132 &gpio_pic 12 0 /* prog */
133 &gpio_pic 11 0 /* done */
140 clock-frequency = <25000000>;
145 bus-frequency = <80000000>; /* 80 MHz ips bus */
148 compatible = "fsl,mpc5121rev2-clock", "fsl,mpc5121-clock";
153 * interrupts cell = <pin nr, sense>
154 * sense == 8: Level, low assertion
155 * sense == 2: Edge, high-to-low change
157 gpio_pic: gpio@1100 {
160 interrupt-controller;
161 #interrupt-cells = <2>;
165 cd-gpios = <&gpio_pic 23 0>; /* card detect */
166 wp-gpios = <&gpio_pic 24 0>; /* write protect */
167 wp-inverted; /* WP active high */
172 clock-frequency = <400000>;
175 compatible = "atmel,24c01";
180 compatible = "atmel,24c01";
185 compatible = "ad,ad7414";
190 compatible = "atmel,24c01";
195 compatible = "atmel,24c01";
200 compatible = "atmel,24c01";
205 compatible = "atmel,24c01";
210 compatible = "atmel,24c01";
215 compatible = "atmel,24c01";
220 compatible = "atmel,24c01";
225 compatible = "atmel,24c01";
230 compatible = "st,m41t00";
235 axe_pic: axe-base@2000 {
236 compatible = "fsl,mpc5121-axe-base";
237 reg = <0x2000 0x100>;
238 interrupts = <42 0x8>;
239 interrupt-controller;
240 #interrupt-cells = <2>;
244 compatible = "fsl,mpc5121-axe-app";
245 interrupt-parent = <&axe_pic>;
247 /* soft interrupts */
248 0 0x0 1 0x0 2 0x0 3 0x0
249 4 0x0 5 0x0 6 0x0 7 0x0
250 /* fifo interrupts */
251 8 0x0 9 0x0 10 0x0 11 0x0
256 edid = [00 FF FF FF FF FF FF 00 14 94 00 00 00 00 00 00
257 0A 12 01 03 80 1C 23 78 CA 88 FF 94 52 54 8E 27
258 1E 4C 50 00 00 00 01 01 01 01 01 01 01 01 01 01
259 01 01 01 01 01 01 FB 00 B0 14 00 DC 05 00 08 04
260 21 00 1C 23 00 00 00 18 00 00 00 FD 00 38 3C 1F
261 3C 01 0A 20 20 20 20 20 20 20 00 00 00 FC 00 45
262 54 30 31 38 30 30 33 44 4D 55 0A 0A 00 00 00 10
263 00 41 30 30 30 30 30 30 30 30 30 30 30 31 00 D5];
279 phy0: ethernet-phy@1f {
280 compatible = "smsc,lan8700";
285 enet: ethernet@2800 {
286 phy-handle = <&phy0>;
297 /* PSC3 serial port A, aka ttyPSC0 */
299 compatible = "fsl,mpc5121-psc-uart", "fsl,mpc5121-psc";
300 fsl,rx-fifo-size = <512>;
301 fsl,tx-fifo-size = <512>;
304 /* PSC4 in SPI mode */
306 compatible = "fsl,mpc5121-psc-spi", "fsl,mpc5121-psc";
307 fsl,rx-fifo-size = <768>;
308 fsl,tx-fifo-size = <768>;
309 #address-cells = <1>;
312 cs-gpios = <&gpio_pic 25 0>;
315 compatible = "st,m25p128";
316 spi-max-frequency = <20000000>;
318 #address-cells = <1>;
322 label = "spi-flash0";
323 reg = <0x00000000 0x01000000>;
328 /* PSC5 in SPI mode */
330 compatible = "fsl,mpc5121-psc-spi", "fsl,mpc5121-psc";
331 fsl,mode = "spi-master";
332 fsl,rx-fifo-size = <128>;
333 fsl,tx-fifo-size = <128>;
334 #address-cells = <1>;
338 compatible = "ilitek,ili922x";
340 spi-max-frequency = <100000>;
346 /* PSC7 serial port C, aka ttyPSC2 */
348 compatible = "fsl,mpc5121-psc-uart", "fsl,mpc5121-psc";
349 fsl,rx-fifo-size = <512>;
350 fsl,tx-fifo-size = <512>;
354 compatible = "gpio-matrix-keypad";
355 debounce-delay-ms = <5>;
356 col-scan-delay-us = <1>;
359 col-switch-delay-ms = <200>;
361 col-gpios = <&gpio_pic 1 0>; /* pin1 */
363 row-gpios = <&gpio_pic 2 0 /* pin2 */
364 &gpio_pic 3 0 /* pin3 */
365 &gpio_pic 4 0>; /* pin4 */
367 linux,keymap = <0x0000006e /* FN LEFT */
369 0x02000066 /* FN RIGHT */
370 0x00010069 /* LEFT */
371 0x0101006a /* DOWN */
372 0x0201006c>; /* RIGHT */
377 compatible = "gpio-leds";
381 gpios = <&gpio_pic 0 0>;
382 default-state = "keep";
386 gpios = <&gpio_pic 18 0>;
387 default-state = "keep";
391 gpios = <&gpio_pic 19 0>;
392 default-state = "keep";