xref: /freebsd/sys/contrib/device-tree/src/powerpc/a4m072.dts (revision c66ec88fed842fbaad62c30d510644ceb7bd2d71)
1*c66ec88fSEmmanuel Vadot// SPDX-License-Identifier: GPL-2.0-or-later
2*c66ec88fSEmmanuel Vadot/*
3*c66ec88fSEmmanuel Vadot * a4m072 board Device Tree Source
4*c66ec88fSEmmanuel Vadot *
5*c66ec88fSEmmanuel Vadot * Copyright (C) 2011 DENX Software Engineering GmbH
6*c66ec88fSEmmanuel Vadot * Heiko Schocher <hs@denx.de>
7*c66ec88fSEmmanuel Vadot *
8*c66ec88fSEmmanuel Vadot * Copyright (C) 2007 Semihalf
9*c66ec88fSEmmanuel Vadot * Marian Balakowicz <m8@semihalf.com>
10*c66ec88fSEmmanuel Vadot */
11*c66ec88fSEmmanuel Vadot
12*c66ec88fSEmmanuel Vadot/include/ "mpc5200b.dtsi"
13*c66ec88fSEmmanuel Vadot
14*c66ec88fSEmmanuel Vadot&gpt0 { fsl,has-wdt; };
15*c66ec88fSEmmanuel Vadot&gpt3 { gpio-controller; };
16*c66ec88fSEmmanuel Vadot&gpt4 { gpio-controller; };
17*c66ec88fSEmmanuel Vadot&gpt5 { gpio-controller; };
18*c66ec88fSEmmanuel Vadot
19*c66ec88fSEmmanuel Vadot/ {
20*c66ec88fSEmmanuel Vadot	model = "anonymous,a4m072";
21*c66ec88fSEmmanuel Vadot	compatible = "anonymous,a4m072";
22*c66ec88fSEmmanuel Vadot
23*c66ec88fSEmmanuel Vadot	soc5200@f0000000 {
24*c66ec88fSEmmanuel Vadot		#address-cells = <1>;
25*c66ec88fSEmmanuel Vadot		#size-cells = <1>;
26*c66ec88fSEmmanuel Vadot		compatible = "fsl,mpc5200b-immr";
27*c66ec88fSEmmanuel Vadot		ranges = <0 0xf0000000 0x0000c000>;
28*c66ec88fSEmmanuel Vadot		reg = <0xf0000000 0x00000100>;
29*c66ec88fSEmmanuel Vadot		bus-frequency = <0>; /* From boot loader */
30*c66ec88fSEmmanuel Vadot		system-frequency = <0>; /* From boot loader */
31*c66ec88fSEmmanuel Vadot
32*c66ec88fSEmmanuel Vadot		cdm@200 {
33*c66ec88fSEmmanuel Vadot			fsl,init-ext-48mhz-en = <0x0>;
34*c66ec88fSEmmanuel Vadot			fsl,init-fd-enable = <0x01>;
35*c66ec88fSEmmanuel Vadot			fsl,init-fd-counters = <0x3333>;
36*c66ec88fSEmmanuel Vadot		};
37*c66ec88fSEmmanuel Vadot
38*c66ec88fSEmmanuel Vadot		spi@f00 {
39*c66ec88fSEmmanuel Vadot			status = "disabled";
40*c66ec88fSEmmanuel Vadot		};
41*c66ec88fSEmmanuel Vadot
42*c66ec88fSEmmanuel Vadot		psc@2000 {
43*c66ec88fSEmmanuel Vadot			compatible = "fsl,mpc5200b-psc-uart","fsl,mpc5200-psc-uart";
44*c66ec88fSEmmanuel Vadot			reg = <0x2000 0x100>;
45*c66ec88fSEmmanuel Vadot			interrupts = <2 1 0>;
46*c66ec88fSEmmanuel Vadot		};
47*c66ec88fSEmmanuel Vadot
48*c66ec88fSEmmanuel Vadot		psc@2200 {
49*c66ec88fSEmmanuel Vadot			compatible = "fsl,mpc5200b-psc-uart","fsl,mpc5200-psc-uart";
50*c66ec88fSEmmanuel Vadot			reg = <0x2200 0x100>;
51*c66ec88fSEmmanuel Vadot			interrupts = <2 2 0>;
52*c66ec88fSEmmanuel Vadot		};
53*c66ec88fSEmmanuel Vadot
54*c66ec88fSEmmanuel Vadot		psc@2400 {
55*c66ec88fSEmmanuel Vadot			compatible = "fsl,mpc5200b-psc-uart","fsl,mpc5200-psc-uart";
56*c66ec88fSEmmanuel Vadot			reg = <0x2400 0x100>;
57*c66ec88fSEmmanuel Vadot			interrupts = <2 3 0>;
58*c66ec88fSEmmanuel Vadot		};
59*c66ec88fSEmmanuel Vadot
60*c66ec88fSEmmanuel Vadot		psc@2600 {
61*c66ec88fSEmmanuel Vadot			status = "disabled";
62*c66ec88fSEmmanuel Vadot		};
63*c66ec88fSEmmanuel Vadot
64*c66ec88fSEmmanuel Vadot		psc@2800 {
65*c66ec88fSEmmanuel Vadot			status = "disabled";
66*c66ec88fSEmmanuel Vadot		};
67*c66ec88fSEmmanuel Vadot
68*c66ec88fSEmmanuel Vadot		psc@2c00 {
69*c66ec88fSEmmanuel Vadot			compatible = "fsl,mpc5200b-psc-uart","fsl,mpc5200-psc-uart";
70*c66ec88fSEmmanuel Vadot			reg = <0x2c00 0x100>;
71*c66ec88fSEmmanuel Vadot			interrupts = <2 4 0>;
72*c66ec88fSEmmanuel Vadot		};
73*c66ec88fSEmmanuel Vadot
74*c66ec88fSEmmanuel Vadot		ethernet@3000 {
75*c66ec88fSEmmanuel Vadot			phy-handle = <&phy0>;
76*c66ec88fSEmmanuel Vadot		};
77*c66ec88fSEmmanuel Vadot
78*c66ec88fSEmmanuel Vadot		mdio@3000 {
79*c66ec88fSEmmanuel Vadot			phy0: ethernet-phy@1f {
80*c66ec88fSEmmanuel Vadot				reg = <0x1f>;
81*c66ec88fSEmmanuel Vadot				interrupts = <1 2 0>; /* IRQ 2 active low */
82*c66ec88fSEmmanuel Vadot			};
83*c66ec88fSEmmanuel Vadot		};
84*c66ec88fSEmmanuel Vadot
85*c66ec88fSEmmanuel Vadot		i2c@3d00 {
86*c66ec88fSEmmanuel Vadot			status = "disabled";
87*c66ec88fSEmmanuel Vadot		};
88*c66ec88fSEmmanuel Vadot
89*c66ec88fSEmmanuel Vadot		i2c@3d40 {
90*c66ec88fSEmmanuel Vadot			hwmon@2e {
91*c66ec88fSEmmanuel Vadot				compatible = "nsc,lm87";
92*c66ec88fSEmmanuel Vadot				reg = <0x2e>;
93*c66ec88fSEmmanuel Vadot			};
94*c66ec88fSEmmanuel Vadot			rtc@51 {
95*c66ec88fSEmmanuel Vadot				compatible = "nxp,rtc8564";
96*c66ec88fSEmmanuel Vadot				reg = <0x51>;
97*c66ec88fSEmmanuel Vadot			};
98*c66ec88fSEmmanuel Vadot		};
99*c66ec88fSEmmanuel Vadot	};
100*c66ec88fSEmmanuel Vadot
101*c66ec88fSEmmanuel Vadot	localbus {
102*c66ec88fSEmmanuel Vadot		compatible = "fsl,mpc5200b-lpb","simple-bus";
103*c66ec88fSEmmanuel Vadot		#address-cells = <2>;
104*c66ec88fSEmmanuel Vadot		#size-cells = <1>;
105*c66ec88fSEmmanuel Vadot		ranges = <0 0 0xfe000000 0x02000000
106*c66ec88fSEmmanuel Vadot			  1 0 0x62000000 0x00400000
107*c66ec88fSEmmanuel Vadot			  2 0 0x64000000 0x00200000
108*c66ec88fSEmmanuel Vadot			  3 0 0x66000000 0x01000000
109*c66ec88fSEmmanuel Vadot			  6 0 0x68000000 0x01000000
110*c66ec88fSEmmanuel Vadot			  7 0 0x6a000000 0x00000004>;
111*c66ec88fSEmmanuel Vadot
112*c66ec88fSEmmanuel Vadot		flash@0,0 {
113*c66ec88fSEmmanuel Vadot			compatible = "cfi-flash";
114*c66ec88fSEmmanuel Vadot			reg = <0 0 0x02000000>;
115*c66ec88fSEmmanuel Vadot			bank-width = <2>;
116*c66ec88fSEmmanuel Vadot			#size-cells = <1>;
117*c66ec88fSEmmanuel Vadot			#address-cells = <1>;
118*c66ec88fSEmmanuel Vadot		};
119*c66ec88fSEmmanuel Vadot		sram0@1,0 {
120*c66ec88fSEmmanuel Vadot			compatible = "mtd-ram";
121*c66ec88fSEmmanuel Vadot			reg = <1 0x00000 0x00400000>;
122*c66ec88fSEmmanuel Vadot			bank-width = <2>;
123*c66ec88fSEmmanuel Vadot		};
124*c66ec88fSEmmanuel Vadot	};
125*c66ec88fSEmmanuel Vadot
126*c66ec88fSEmmanuel Vadot	pci@f0000d00 {
127*c66ec88fSEmmanuel Vadot		#interrupt-cells = <1>;
128*c66ec88fSEmmanuel Vadot		#size-cells = <2>;
129*c66ec88fSEmmanuel Vadot		#address-cells = <3>;
130*c66ec88fSEmmanuel Vadot		device_type = "pci";
131*c66ec88fSEmmanuel Vadot		compatible = "fsl,mpc5200-pci";
132*c66ec88fSEmmanuel Vadot		reg = <0xf0000d00 0x100>;
133*c66ec88fSEmmanuel Vadot		interrupt-map-mask = <0xf800 0 0 7>;
134*c66ec88fSEmmanuel Vadot		interrupt-map = <
135*c66ec88fSEmmanuel Vadot				 /* IDSEL 0x16 */
136*c66ec88fSEmmanuel Vadot				 0xc000 0 0 1 &mpc5200_pic 1 3 3
137*c66ec88fSEmmanuel Vadot				 0xc000 0 0 2 &mpc5200_pic 1 3 3
138*c66ec88fSEmmanuel Vadot				 0xc000 0 0 3 &mpc5200_pic 1 3 3
139*c66ec88fSEmmanuel Vadot				 0xc000 0 0 4 &mpc5200_pic 1 3 3>;
140*c66ec88fSEmmanuel Vadot		clock-frequency = <0>; /* From boot loader */
141*c66ec88fSEmmanuel Vadot		interrupts = <2 8 0 2 9 0 2 10 0>;
142*c66ec88fSEmmanuel Vadot		bus-range = <0 0>;
143*c66ec88fSEmmanuel Vadot		ranges = <0x42000000 0 0x80000000 0x80000000 0 0x10000000
144*c66ec88fSEmmanuel Vadot			  0x02000000 0 0x90000000 0x90000000 0 0x10000000
145*c66ec88fSEmmanuel Vadot			  0x01000000 0 0x00000000 0xa0000000 0 0x01000000>;
146*c66ec88fSEmmanuel Vadot	};
147*c66ec88fSEmmanuel Vadot};
148