xref: /freebsd/sys/contrib/device-tree/src/powerpc/kuroboxHG.dts (revision c66ec88fed842fbaad62c30d510644ceb7bd2d71)
1*c66ec88fSEmmanuel Vadot/*
2*c66ec88fSEmmanuel Vadot * Device Tree Souce for Buffalo KuroboxHG
3*c66ec88fSEmmanuel Vadot *
4*c66ec88fSEmmanuel Vadot * Choose CONFIG_LINKSTATION to build a kernel for KuroboxHG, or use
5*c66ec88fSEmmanuel Vadot * the default configuration linkstation_defconfig.
6*c66ec88fSEmmanuel Vadot *
7*c66ec88fSEmmanuel Vadot * Based on sandpoint.dts
8*c66ec88fSEmmanuel Vadot *
9*c66ec88fSEmmanuel Vadot * 2006 (c) G. Liakhovetski <g.liakhovetski@gmx.de>
10*c66ec88fSEmmanuel Vadot * Copyright 2008 Freescale Semiconductor, Inc.
11*c66ec88fSEmmanuel Vadot *
12*c66ec88fSEmmanuel Vadot * This file is licensed under
13*c66ec88fSEmmanuel Vadot * the terms of the GNU General Public License version 2.  This program
14*c66ec88fSEmmanuel Vadot * is licensed "as is" without any warranty of any kind, whether express
15*c66ec88fSEmmanuel Vadot * or implied.
16*c66ec88fSEmmanuel Vadot
17*c66ec88fSEmmanuel VadotXXXX add flash parts, rtc, ??
18*c66ec88fSEmmanuel Vadot
19*c66ec88fSEmmanuel Vadot */
20*c66ec88fSEmmanuel Vadot
21*c66ec88fSEmmanuel Vadot/dts-v1/;
22*c66ec88fSEmmanuel Vadot
23*c66ec88fSEmmanuel Vadot/ {
24*c66ec88fSEmmanuel Vadot	model = "KuroboxHG";
25*c66ec88fSEmmanuel Vadot	compatible = "linkstation";
26*c66ec88fSEmmanuel Vadot	#address-cells = <1>;
27*c66ec88fSEmmanuel Vadot	#size-cells = <1>;
28*c66ec88fSEmmanuel Vadot
29*c66ec88fSEmmanuel Vadot	aliases {
30*c66ec88fSEmmanuel Vadot		serial0 = &serial0;
31*c66ec88fSEmmanuel Vadot		serial1 = &serial1;
32*c66ec88fSEmmanuel Vadot		pci0 = &pci0;
33*c66ec88fSEmmanuel Vadot	};
34*c66ec88fSEmmanuel Vadot
35*c66ec88fSEmmanuel Vadot	cpus {
36*c66ec88fSEmmanuel Vadot		#address-cells = <1>;
37*c66ec88fSEmmanuel Vadot		#size-cells = <0>;
38*c66ec88fSEmmanuel Vadot
39*c66ec88fSEmmanuel Vadot		PowerPC,603e { /* Really 8241 */
40*c66ec88fSEmmanuel Vadot			device_type = "cpu";
41*c66ec88fSEmmanuel Vadot			reg = <0x0>;
42*c66ec88fSEmmanuel Vadot			clock-frequency = <266000000>;	/* Fixed by bootloader */
43*c66ec88fSEmmanuel Vadot			timebase-frequency = <32522240>; /* Fixed by bootloader */
44*c66ec88fSEmmanuel Vadot			bus-frequency = <0>;		/* Fixed by bootloader */
45*c66ec88fSEmmanuel Vadot			/* Following required by dtc but not used */
46*c66ec88fSEmmanuel Vadot			i-cache-size = <0x4000>;
47*c66ec88fSEmmanuel Vadot			d-cache-size = <0x4000>;
48*c66ec88fSEmmanuel Vadot		};
49*c66ec88fSEmmanuel Vadot	};
50*c66ec88fSEmmanuel Vadot
51*c66ec88fSEmmanuel Vadot	memory {
52*c66ec88fSEmmanuel Vadot		device_type = "memory";
53*c66ec88fSEmmanuel Vadot		reg = <0x0 0x8000000>;
54*c66ec88fSEmmanuel Vadot	};
55*c66ec88fSEmmanuel Vadot
56*c66ec88fSEmmanuel Vadot	soc10x { /* AFAICT need to make soc for 8245's uarts to be defined */
57*c66ec88fSEmmanuel Vadot		#address-cells = <1>;
58*c66ec88fSEmmanuel Vadot		#size-cells = <1>;
59*c66ec88fSEmmanuel Vadot		device_type = "soc";
60*c66ec88fSEmmanuel Vadot		compatible = "mpc10x";
61*c66ec88fSEmmanuel Vadot		store-gathering = <0>; /* 0 == off, !0 == on */
62*c66ec88fSEmmanuel Vadot		reg = <0x80000000 0x100000>;
63*c66ec88fSEmmanuel Vadot		ranges = <0x80000000 0x80000000 0x70000000	/* pci mem space */
64*c66ec88fSEmmanuel Vadot			  0xfc000000 0xfc000000 0x100000	/* EUMB */
65*c66ec88fSEmmanuel Vadot			  0xfe000000 0xfe000000 0xc00000	/* pci i/o space */
66*c66ec88fSEmmanuel Vadot			  0xfec00000 0xfec00000 0x300000	/* pci cfg regs */
67*c66ec88fSEmmanuel Vadot			  0xfef00000 0xfef00000 0x100000>;	/* pci iack */
68*c66ec88fSEmmanuel Vadot
69*c66ec88fSEmmanuel Vadot		i2c@80003000 {
70*c66ec88fSEmmanuel Vadot			#address-cells = <1>;
71*c66ec88fSEmmanuel Vadot			#size-cells = <0>;
72*c66ec88fSEmmanuel Vadot			cell-index = <0>;
73*c66ec88fSEmmanuel Vadot			compatible = "fsl-i2c";
74*c66ec88fSEmmanuel Vadot			reg = <0x80003000 0x1000>;
75*c66ec88fSEmmanuel Vadot			interrupts = <5 2>;
76*c66ec88fSEmmanuel Vadot			interrupt-parent = <&mpic>;
77*c66ec88fSEmmanuel Vadot
78*c66ec88fSEmmanuel Vadot			rtc@32 {
79*c66ec88fSEmmanuel Vadot				compatible = "ricoh,rs5c372a";
80*c66ec88fSEmmanuel Vadot				reg = <0x32>;
81*c66ec88fSEmmanuel Vadot			};
82*c66ec88fSEmmanuel Vadot		};
83*c66ec88fSEmmanuel Vadot
84*c66ec88fSEmmanuel Vadot		serial0: serial@80004500 {
85*c66ec88fSEmmanuel Vadot			cell-index = <0>;
86*c66ec88fSEmmanuel Vadot			device_type = "serial";
87*c66ec88fSEmmanuel Vadot			compatible = "fsl,ns16550", "ns16550";
88*c66ec88fSEmmanuel Vadot			reg = <0x80004500 0x8>;
89*c66ec88fSEmmanuel Vadot			clock-frequency = <130041000>;
90*c66ec88fSEmmanuel Vadot			current-speed = <9600>;
91*c66ec88fSEmmanuel Vadot			interrupts = <9 0>;
92*c66ec88fSEmmanuel Vadot			interrupt-parent = <&mpic>;
93*c66ec88fSEmmanuel Vadot		};
94*c66ec88fSEmmanuel Vadot
95*c66ec88fSEmmanuel Vadot		serial1: serial@80004600 {
96*c66ec88fSEmmanuel Vadot			cell-index = <1>;
97*c66ec88fSEmmanuel Vadot			device_type = "serial";
98*c66ec88fSEmmanuel Vadot			compatible = "fsl,ns16550", "ns16550";
99*c66ec88fSEmmanuel Vadot			reg = <0x80004600 0x8>;
100*c66ec88fSEmmanuel Vadot			clock-frequency = <130041000>;
101*c66ec88fSEmmanuel Vadot			current-speed = <57600>;
102*c66ec88fSEmmanuel Vadot			interrupts = <10 0>;
103*c66ec88fSEmmanuel Vadot			interrupt-parent = <&mpic>;
104*c66ec88fSEmmanuel Vadot		};
105*c66ec88fSEmmanuel Vadot
106*c66ec88fSEmmanuel Vadot		mpic: interrupt-controller@80040000 {
107*c66ec88fSEmmanuel Vadot			#interrupt-cells = <2>;
108*c66ec88fSEmmanuel Vadot			#address-cells = <0>;
109*c66ec88fSEmmanuel Vadot			device_type = "open-pic";
110*c66ec88fSEmmanuel Vadot			compatible = "chrp,open-pic";
111*c66ec88fSEmmanuel Vadot			interrupt-controller;
112*c66ec88fSEmmanuel Vadot			reg = <0x80040000 0x40000>;
113*c66ec88fSEmmanuel Vadot		};
114*c66ec88fSEmmanuel Vadot
115*c66ec88fSEmmanuel Vadot		pci0: pci@fec00000 {
116*c66ec88fSEmmanuel Vadot			#address-cells = <3>;
117*c66ec88fSEmmanuel Vadot			#size-cells = <2>;
118*c66ec88fSEmmanuel Vadot			#interrupt-cells = <1>;
119*c66ec88fSEmmanuel Vadot			device_type = "pci";
120*c66ec88fSEmmanuel Vadot			compatible = "mpc10x-pci";
121*c66ec88fSEmmanuel Vadot			reg = <0xfec00000 0x400000>;
122*c66ec88fSEmmanuel Vadot			ranges = <0x1000000 0x0        0x0 0xfe000000 0x0 0xc00000
123*c66ec88fSEmmanuel Vadot				  0x2000000 0x0 0x80000000 0x80000000 0x0 0x70000000>;
124*c66ec88fSEmmanuel Vadot			bus-range = <0 255>;
125*c66ec88fSEmmanuel Vadot			clock-frequency = <133333333>;
126*c66ec88fSEmmanuel Vadot			interrupt-parent = <&mpic>;
127*c66ec88fSEmmanuel Vadot			interrupt-map-mask = <0xf800 0x0 0x0 0x7>;
128*c66ec88fSEmmanuel Vadot			interrupt-map = <
129*c66ec88fSEmmanuel Vadot				/* IDSEL 11 - IRQ0 ETH */
130*c66ec88fSEmmanuel Vadot				0x5800 0x0 0x0 0x1 &mpic 0x0 0x1
131*c66ec88fSEmmanuel Vadot				0x5800 0x0 0x0 0x2 &mpic 0x1 0x1
132*c66ec88fSEmmanuel Vadot				0x5800 0x0 0x0 0x3 &mpic 0x2 0x1
133*c66ec88fSEmmanuel Vadot				0x5800 0x0 0x0 0x4 &mpic 0x3 0x1
134*c66ec88fSEmmanuel Vadot				/* IDSEL 12 - IRQ1 IDE0 */
135*c66ec88fSEmmanuel Vadot				0x6000 0x0 0x0 0x1 &mpic 0x1 0x1
136*c66ec88fSEmmanuel Vadot				0x6000 0x0 0x0 0x2 &mpic 0x2 0x1
137*c66ec88fSEmmanuel Vadot				0x6000 0x0 0x0 0x3 &mpic 0x3 0x1
138*c66ec88fSEmmanuel Vadot				0x6000 0x0 0x0 0x4 &mpic 0x0 0x1
139*c66ec88fSEmmanuel Vadot				/* IDSEL 14 - IRQ3 USB2.0 */
140*c66ec88fSEmmanuel Vadot				0x7000 0x0 0x0 0x1 &mpic 0x3 0x1
141*c66ec88fSEmmanuel Vadot				0x7000 0x0 0x0 0x2 &mpic 0x3 0x1
142*c66ec88fSEmmanuel Vadot				0x7000 0x0 0x0 0x3 &mpic 0x3 0x1
143*c66ec88fSEmmanuel Vadot				0x7000 0x0 0x0 0x4 &mpic 0x3 0x1
144*c66ec88fSEmmanuel Vadot			>;
145*c66ec88fSEmmanuel Vadot		};
146*c66ec88fSEmmanuel Vadot	};
147*c66ec88fSEmmanuel Vadot};
148