1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * STx/Freescale ADS5125 MPC5125 silicon
5 * Copyright (C) 2009 Freescale Semiconductor Inc. All rights reserved.
7 * Reworked by Matteo Facchinetti (engineering@sirius-es.it)
8 * Copyright (C) 2013 Sirius Electronic Systems
11 #include <dt-bindings/clock/mpc512x-clock.h>
16 model = "mpc5125twr"; // In BSP "mpc5125ads"
17 compatible = "fsl,mpc5125ads", "fsl,mpc5125";
20 interrupt-parent = <&ipic>;
35 d-cache-line-size = <0x20>; // 32 bytes
36 i-cache-line-size = <0x20>; // 32 bytes
37 d-cache-size = <0x8000>; // L1, 32K
38 i-cache-size = <0x8000>; // L1, 32K
39 timebase-frequency = <49500000>;// 49.5 MHz (csb/4)
40 bus-frequency = <198000000>; // 198 MHz csb bus
41 clock-frequency = <396000000>; // 396 MHz ppc core
46 device_type = "memory";
47 reg = <0x00000000 0x10000000>; // 256MB at 0
51 compatible = "fsl,mpc5121-sram";
52 reg = <0x30000000 0x08000>; // 32K at 0x30000000
60 compatible = "fixed-clock";
62 clock-frequency = <33000000>;
67 compatible = "fsl,mpc5121-immr";
70 ranges = <0x0 0x80000000 0x400000>;
71 reg = <0x80000000 0x400000>;
72 bus-frequency = <66000000>; // 66 MHz ips bus
75 // interrupts cell = <intr #, sense>
76 // sense values match linux IORESOURCE_IRQ_* defines:
77 // sense == 8: Level, low assertion
78 // sense == 2: Edge, high-to-low change
80 ipic: interrupt-controller@c00 {
81 compatible = "fsl,mpc5121-ipic", "fsl,ipic";
84 #interrupt-cells = <2>;
88 rtc@a00 { // Real time clock
89 compatible = "fsl,mpc5121-rtc";
91 interrupts = <79 0x8 80 0x8>;
94 reset@e00 { // Reset module
95 compatible = "fsl,mpc5125-reset";
99 clks: clock@f00 { // Clock control
100 compatible = "fsl,mpc5121-clock";
107 pmc@1000{ // Power Management Controller
108 compatible = "fsl,mpc5121-pmc";
109 reg = <0x1000 0x100>;
110 interrupts = <83 0x2>;
114 compatible = "fsl,mpc5125-gpio";
115 reg = <0x1100 0x080>;
116 interrupts = <78 0x8>;
120 compatible = "fsl,mpc5125-gpio";
121 reg = <0x1180 0x080>;
122 interrupts = <86 0x8>;
125 can@1300 { // CAN rev.2
126 compatible = "fsl,mpc5121-mscan";
127 interrupts = <12 0x8>;
129 clocks = <&clks MPC512x_CLK_BDLC>,
130 <&clks MPC512x_CLK_IPS>,
131 <&clks MPC512x_CLK_SYS>,
132 <&clks MPC512x_CLK_REF>,
133 <&clks MPC512x_CLK_MSCAN0_MCLK>;
134 clock-names = "ipg", "ips", "sys", "ref", "mclk";
138 compatible = "fsl,mpc5121-mscan";
139 interrupts = <13 0x8>;
141 clocks = <&clks MPC512x_CLK_BDLC>,
142 <&clks MPC512x_CLK_IPS>,
143 <&clks MPC512x_CLK_SYS>,
144 <&clks MPC512x_CLK_REF>,
145 <&clks MPC512x_CLK_MSCAN1_MCLK>;
146 clock-names = "ipg", "ips", "sys", "ref", "mclk";
150 compatible = "fsl,mpc5121-sdhc";
151 interrupts = <8 0x8>;
152 reg = <0x1500 0x100>;
153 clocks = <&clks MPC512x_CLK_IPS>,
154 <&clks MPC512x_CLK_SDHC>;
155 clock-names = "ipg", "per";
159 #address-cells = <1>;
161 compatible = "fsl,mpc5121-i2c", "fsl-i2c";
163 interrupts = <0x9 0x8>;
164 clocks = <&clks MPC512x_CLK_I2C>;
169 #address-cells = <1>;
171 compatible = "fsl,mpc5121-i2c", "fsl-i2c";
173 interrupts = <0xa 0x8>;
174 clocks = <&clks MPC512x_CLK_I2C>;
179 #address-cells = <1>;
181 compatible = "fsl,mpc5121-i2c", "fsl-i2c";
183 interrupts = <0xb 0x8>;
184 clocks = <&clks MPC512x_CLK_I2C>;
189 compatible = "fsl,mpc5121-i2c-ctrl";
194 compatible = "fsl,mpc5121-diu";
195 reg = <0x2100 0x100>;
196 interrupts = <64 0x8>;
197 clocks = <&clks MPC512x_CLK_DIU>;
202 compatible = "fsl,mpc5121-fec-mdio";
203 reg = <0x2800 0x800>;
204 #address-cells = <1>;
206 phy0: ethernet-phy@0 {
211 eth0: ethernet@2800 {
212 compatible = "fsl,mpc5125-fec";
213 reg = <0x2800 0x800>;
214 local-mac-address = [ 00 00 00 00 00 00 ];
215 interrupts = <4 0x8>;
216 phy-handle = < &phy0 >;
217 phy-connection-type = "rmii";
218 clocks = <&clks MPC512x_CLK_FEC>;
224 compatible = "fsl,mpc5125-ioctl";
225 reg = <0xA000 0x1000>;
230 // correct pinmux config and fix USB3320 ulpi dependency
231 // before re-enabling it
233 compatible = "fsl,mpc5121-usb2-dr";
234 reg = <0x3000 0x400>;
235 #address-cells = <1>;
237 interrupts = <43 0x8>;
240 clocks = <&clks MPC512x_CLK_USB1>;
246 compatible = "fsl,mpc512x-lpbfifo";
247 reg = <0x10100 0x50>;
248 interrupts = <7 0x8>;
253 // 5125 PSCs are not 52xx or 5121 PSC compatible
254 // PSC1 uart0 aka ttyPSC0
256 compatible = "fsl,mpc5125-psc-uart", "fsl,mpc5125-psc";
257 reg = <0x11100 0x100>;
258 interrupts = <40 0x8>;
259 fsl,rx-fifo-size = <16>;
260 fsl,tx-fifo-size = <16>;
261 clocks = <&clks MPC512x_CLK_PSC1>,
262 <&clks MPC512x_CLK_PSC1_MCLK>;
263 clock-names = "ipg", "mclk";
266 // PSC9 uart1 aka ttyPSC1
268 compatible = "fsl,mpc5125-psc-uart", "fsl,mpc5125-psc";
269 reg = <0x11900 0x100>;
270 interrupts = <40 0x8>;
271 fsl,rx-fifo-size = <16>;
272 fsl,tx-fifo-size = <16>;
273 clocks = <&clks MPC512x_CLK_PSC9>,
274 <&clks MPC512x_CLK_PSC9_MCLK>;
275 clock-names = "ipg", "mclk";
279 compatible = "fsl,mpc5121-psc-fifo";
280 reg = <0x11f00 0x100>;
281 interrupts = <40 0x8>;
282 clocks = <&clks MPC512x_CLK_PSC_FIFO>;
287 compatible = "fsl,mpc5121-dma"; // BSP name: "mpc512x-dma2"
288 reg = <0x14000 0x1800>;
289 interrupts = <65 0x8>;