1*f126890aSEmmanuel Vadot// SPDX-License-Identifier: GPL-2.0+
2*f126890aSEmmanuel Vadot// Copyright 2018 IBM Corp
3*f126890aSEmmanuel Vadot
4*f126890aSEmmanuel Vadot&fsi {
5*f126890aSEmmanuel Vadot	cfam@0,0 {
6*f126890aSEmmanuel Vadot		reg = <0 0>;
7*f126890aSEmmanuel Vadot		#address-cells = <1>;
8*f126890aSEmmanuel Vadot		#size-cells = <1>;
9*f126890aSEmmanuel Vadot		chip-id = <0>;
10*f126890aSEmmanuel Vadot
11*f126890aSEmmanuel Vadot		scom@1000 {
12*f126890aSEmmanuel Vadot			compatible = "ibm,fsi2pib";
13*f126890aSEmmanuel Vadot			reg = <0x1000 0x400>;
14*f126890aSEmmanuel Vadot		};
15*f126890aSEmmanuel Vadot
16*f126890aSEmmanuel Vadot		i2c@1800 {
17*f126890aSEmmanuel Vadot			compatible = "ibm,fsi-i2c-master";
18*f126890aSEmmanuel Vadot			reg = <0x1800 0x400>;
19*f126890aSEmmanuel Vadot			#address-cells = <1>;
20*f126890aSEmmanuel Vadot			#size-cells = <0>;
21*f126890aSEmmanuel Vadot
22*f126890aSEmmanuel Vadot			cfam0_i2c0: i2c-bus@0 {
23*f126890aSEmmanuel Vadot				reg = <0>;
24*f126890aSEmmanuel Vadot			};
25*f126890aSEmmanuel Vadot
26*f126890aSEmmanuel Vadot			cfam0_i2c1: i2c-bus@1 {
27*f126890aSEmmanuel Vadot				reg = <1>;
28*f126890aSEmmanuel Vadot			};
29*f126890aSEmmanuel Vadot
30*f126890aSEmmanuel Vadot			cfam0_i2c2: i2c-bus@2 {
31*f126890aSEmmanuel Vadot				reg = <2>;
32*f126890aSEmmanuel Vadot			};
33*f126890aSEmmanuel Vadot
34*f126890aSEmmanuel Vadot			cfam0_i2c3: i2c-bus@3 {
35*f126890aSEmmanuel Vadot				reg = <3>;
36*f126890aSEmmanuel Vadot			};
37*f126890aSEmmanuel Vadot
38*f126890aSEmmanuel Vadot			cfam0_i2c4: i2c-bus@4 {
39*f126890aSEmmanuel Vadot				reg = <4>;
40*f126890aSEmmanuel Vadot			};
41*f126890aSEmmanuel Vadot
42*f126890aSEmmanuel Vadot			cfam0_i2c5: i2c-bus@5 {
43*f126890aSEmmanuel Vadot				reg = <5>;
44*f126890aSEmmanuel Vadot			};
45*f126890aSEmmanuel Vadot
46*f126890aSEmmanuel Vadot			cfam0_i2c6: i2c-bus@6 {
47*f126890aSEmmanuel Vadot				reg = <6>;
48*f126890aSEmmanuel Vadot			};
49*f126890aSEmmanuel Vadot
50*f126890aSEmmanuel Vadot			cfam0_i2c7: i2c-bus@7 {
51*f126890aSEmmanuel Vadot				reg = <7>;
52*f126890aSEmmanuel Vadot			};
53*f126890aSEmmanuel Vadot
54*f126890aSEmmanuel Vadot			cfam0_i2c8: i2c-bus@8 {
55*f126890aSEmmanuel Vadot				reg = <8>;
56*f126890aSEmmanuel Vadot			};
57*f126890aSEmmanuel Vadot
58*f126890aSEmmanuel Vadot			cfam0_i2c9: i2c-bus@9 {
59*f126890aSEmmanuel Vadot				reg = <9>;
60*f126890aSEmmanuel Vadot			};
61*f126890aSEmmanuel Vadot
62*f126890aSEmmanuel Vadot			cfam0_i2c10: i2c-bus@a {
63*f126890aSEmmanuel Vadot				reg = <10>;
64*f126890aSEmmanuel Vadot			};
65*f126890aSEmmanuel Vadot
66*f126890aSEmmanuel Vadot			cfam0_i2c11: i2c-bus@b {
67*f126890aSEmmanuel Vadot				reg = <11>;
68*f126890aSEmmanuel Vadot			};
69*f126890aSEmmanuel Vadot
70*f126890aSEmmanuel Vadot			cfam0_i2c12: i2c-bus@c {
71*f126890aSEmmanuel Vadot				reg = <12>;
72*f126890aSEmmanuel Vadot			};
73*f126890aSEmmanuel Vadot
74*f126890aSEmmanuel Vadot			cfam0_i2c13: i2c-bus@d {
75*f126890aSEmmanuel Vadot				reg = <13>;
76*f126890aSEmmanuel Vadot			};
77*f126890aSEmmanuel Vadot
78*f126890aSEmmanuel Vadot			cfam0_i2c14: i2c-bus@e {
79*f126890aSEmmanuel Vadot				reg = <14>;
80*f126890aSEmmanuel Vadot			};
81*f126890aSEmmanuel Vadot		};
82*f126890aSEmmanuel Vadot
83*f126890aSEmmanuel Vadot		sbefifo@2400 {
84*f126890aSEmmanuel Vadot			compatible = "ibm,p9-sbefifo";
85*f126890aSEmmanuel Vadot			reg = <0x2400 0x400>;
86*f126890aSEmmanuel Vadot			#address-cells = <1>;
87*f126890aSEmmanuel Vadot			#size-cells = <0>;
88*f126890aSEmmanuel Vadot
89*f126890aSEmmanuel Vadot			fsi_occ0: occ@1 {
90*f126890aSEmmanuel Vadot				compatible = "ibm,p9-occ";
91*f126890aSEmmanuel Vadot			};
92*f126890aSEmmanuel Vadot		};
93*f126890aSEmmanuel Vadot
94*f126890aSEmmanuel Vadot		fsi_hub0: hub@3400 {
95*f126890aSEmmanuel Vadot			compatible = "fsi-master-hub";
96*f126890aSEmmanuel Vadot			reg = <0x3400 0x400>;
97*f126890aSEmmanuel Vadot			#address-cells = <2>;
98*f126890aSEmmanuel Vadot			#size-cells = <0>;
99*f126890aSEmmanuel Vadot
100*f126890aSEmmanuel Vadot			no-scan-on-init;
101*f126890aSEmmanuel Vadot		};
102*f126890aSEmmanuel Vadot	};
103*f126890aSEmmanuel Vadot};
104*f126890aSEmmanuel Vadot
105*f126890aSEmmanuel Vadot&fsi_hub0 {
106*f126890aSEmmanuel Vadot	cfam@1,0 {
107*f126890aSEmmanuel Vadot		reg = <1 0>;
108*f126890aSEmmanuel Vadot		#address-cells = <1>;
109*f126890aSEmmanuel Vadot		#size-cells = <1>;
110*f126890aSEmmanuel Vadot		chip-id = <1>;
111*f126890aSEmmanuel Vadot
112*f126890aSEmmanuel Vadot		scom@1000 {
113*f126890aSEmmanuel Vadot			compatible = "ibm,fsi2pib";
114*f126890aSEmmanuel Vadot			reg = <0x1000 0x400>;
115*f126890aSEmmanuel Vadot		};
116*f126890aSEmmanuel Vadot
117*f126890aSEmmanuel Vadot		i2c@1800 {
118*f126890aSEmmanuel Vadot			compatible = "ibm,fsi-i2c-master";
119*f126890aSEmmanuel Vadot			reg = <0x1800 0x400>;
120*f126890aSEmmanuel Vadot			#address-cells = <1>;
121*f126890aSEmmanuel Vadot			#size-cells = <0>;
122*f126890aSEmmanuel Vadot
123*f126890aSEmmanuel Vadot			cfam1_i2c0: i2c-bus@0 {
124*f126890aSEmmanuel Vadot				reg = <0>;
125*f126890aSEmmanuel Vadot			};
126*f126890aSEmmanuel Vadot
127*f126890aSEmmanuel Vadot			cfam1_i2c1: i2c-bus@1 {
128*f126890aSEmmanuel Vadot				reg = <1>;
129*f126890aSEmmanuel Vadot			};
130*f126890aSEmmanuel Vadot
131*f126890aSEmmanuel Vadot			cfam1_i2c2: i2c-bus@2 {
132*f126890aSEmmanuel Vadot				reg = <2>;
133*f126890aSEmmanuel Vadot			};
134*f126890aSEmmanuel Vadot
135*f126890aSEmmanuel Vadot			cfam1_i2c3: i2c-bus@3 {
136*f126890aSEmmanuel Vadot				reg = <3>;
137*f126890aSEmmanuel Vadot			};
138*f126890aSEmmanuel Vadot
139*f126890aSEmmanuel Vadot			cfam1_i2c4: i2c-bus@4 {
140*f126890aSEmmanuel Vadot				reg = <4>;
141*f126890aSEmmanuel Vadot			};
142*f126890aSEmmanuel Vadot
143*f126890aSEmmanuel Vadot			cfam1_i2c5: i2c-bus@5 {
144*f126890aSEmmanuel Vadot				reg = <5>;
145*f126890aSEmmanuel Vadot			};
146*f126890aSEmmanuel Vadot
147*f126890aSEmmanuel Vadot			cfam1_i2c6: i2c-bus@6 {
148*f126890aSEmmanuel Vadot				reg = <6>;
149*f126890aSEmmanuel Vadot			};
150*f126890aSEmmanuel Vadot
151*f126890aSEmmanuel Vadot			cfam1_i2c7: i2c-bus@7 {
152*f126890aSEmmanuel Vadot				reg = <7>;
153*f126890aSEmmanuel Vadot			};
154*f126890aSEmmanuel Vadot
155*f126890aSEmmanuel Vadot			cfam1_i2c8: i2c-bus@8 {
156*f126890aSEmmanuel Vadot				reg = <8>;
157*f126890aSEmmanuel Vadot			};
158*f126890aSEmmanuel Vadot
159*f126890aSEmmanuel Vadot			cfam1_i2c9: i2c-bus@9 {
160*f126890aSEmmanuel Vadot				reg = <9>;
161*f126890aSEmmanuel Vadot			};
162*f126890aSEmmanuel Vadot
163*f126890aSEmmanuel Vadot			cfam1_i2c10: i2c-bus@a {
164*f126890aSEmmanuel Vadot				reg = <10>;
165*f126890aSEmmanuel Vadot			};
166*f126890aSEmmanuel Vadot
167*f126890aSEmmanuel Vadot			cfam1_i2c11: i2c-bus@b {
168*f126890aSEmmanuel Vadot				reg = <11>;
169*f126890aSEmmanuel Vadot			};
170*f126890aSEmmanuel Vadot
171*f126890aSEmmanuel Vadot			cfam1_i2c12: i2c-bus@c {
172*f126890aSEmmanuel Vadot				reg = <12>;
173*f126890aSEmmanuel Vadot			};
174*f126890aSEmmanuel Vadot
175*f126890aSEmmanuel Vadot			cfam1_i2c13: i2c-bus@d {
176*f126890aSEmmanuel Vadot				reg = <13>;
177*f126890aSEmmanuel Vadot			};
178*f126890aSEmmanuel Vadot
179*f126890aSEmmanuel Vadot			cfam1_i2c14: i2c-bus@e {
180*f126890aSEmmanuel Vadot				reg = <14>;
181*f126890aSEmmanuel Vadot			};
182*f126890aSEmmanuel Vadot		};
183*f126890aSEmmanuel Vadot
184*f126890aSEmmanuel Vadot		sbefifo@2400 {
185*f126890aSEmmanuel Vadot			compatible = "ibm,p9-sbefifo";
186*f126890aSEmmanuel Vadot			reg = <0x2400 0x400>;
187*f126890aSEmmanuel Vadot			#address-cells = <1>;
188*f126890aSEmmanuel Vadot			#size-cells = <0>;
189*f126890aSEmmanuel Vadot
190*f126890aSEmmanuel Vadot			fsi_occ1: occ@2 {
191*f126890aSEmmanuel Vadot				compatible = "ibm,p9-occ";
192*f126890aSEmmanuel Vadot			};
193*f126890aSEmmanuel Vadot		};
194*f126890aSEmmanuel Vadot
195*f126890aSEmmanuel Vadot		fsi_hub1: hub@3400 {
196*f126890aSEmmanuel Vadot			compatible = "fsi-master-hub";
197*f126890aSEmmanuel Vadot			reg = <0x3400 0x400>;
198*f126890aSEmmanuel Vadot			#address-cells = <2>;
199*f126890aSEmmanuel Vadot			#size-cells = <0>;
200*f126890aSEmmanuel Vadot
201*f126890aSEmmanuel Vadot			no-scan-on-init;
202*f126890aSEmmanuel Vadot		};
203*f126890aSEmmanuel Vadot	};
204*f126890aSEmmanuel Vadot};
205*f126890aSEmmanuel Vadot
206*f126890aSEmmanuel Vadot/* Legacy OCC numbering (to get rid of when userspace is fixed) */
207*f126890aSEmmanuel Vadot&fsi_occ0 {
208*f126890aSEmmanuel Vadot	reg = <1>;
209*f126890aSEmmanuel Vadot};
210*f126890aSEmmanuel Vadot
211*f126890aSEmmanuel Vadot&fsi_occ1 {
212*f126890aSEmmanuel Vadot	reg = <2>;
213*f126890aSEmmanuel Vadot};
214*f126890aSEmmanuel Vadot
215*f126890aSEmmanuel Vadot/ {
216*f126890aSEmmanuel Vadot	aliases {
217*f126890aSEmmanuel Vadot		i2c100 = &cfam0_i2c0;
218*f126890aSEmmanuel Vadot		i2c101 = &cfam0_i2c1;
219*f126890aSEmmanuel Vadot		i2c102 = &cfam0_i2c2;
220*f126890aSEmmanuel Vadot		i2c103 = &cfam0_i2c3;
221*f126890aSEmmanuel Vadot		i2c104 = &cfam0_i2c4;
222*f126890aSEmmanuel Vadot		i2c105 = &cfam0_i2c5;
223*f126890aSEmmanuel Vadot		i2c106 = &cfam0_i2c6;
224*f126890aSEmmanuel Vadot		i2c107 = &cfam0_i2c7;
225*f126890aSEmmanuel Vadot		i2c108 = &cfam0_i2c8;
226*f126890aSEmmanuel Vadot		i2c109 = &cfam0_i2c9;
227*f126890aSEmmanuel Vadot		i2c110 = &cfam0_i2c10;
228*f126890aSEmmanuel Vadot		i2c111 = &cfam0_i2c11;
229*f126890aSEmmanuel Vadot		i2c112 = &cfam0_i2c12;
230*f126890aSEmmanuel Vadot		i2c113 = &cfam0_i2c13;
231*f126890aSEmmanuel Vadot		i2c114 = &cfam0_i2c14;
232*f126890aSEmmanuel Vadot		i2c200 = &cfam1_i2c0;
233*f126890aSEmmanuel Vadot		i2c201 = &cfam1_i2c1;
234*f126890aSEmmanuel Vadot		i2c202 = &cfam1_i2c2;
235*f126890aSEmmanuel Vadot		i2c203 = &cfam1_i2c3;
236*f126890aSEmmanuel Vadot		i2c204 = &cfam1_i2c4;
237*f126890aSEmmanuel Vadot		i2c205 = &cfam1_i2c5;
238*f126890aSEmmanuel Vadot		i2c206 = &cfam1_i2c6;
239*f126890aSEmmanuel Vadot		i2c207 = &cfam1_i2c7;
240*f126890aSEmmanuel Vadot		i2c208 = &cfam1_i2c8;
241*f126890aSEmmanuel Vadot		i2c209 = &cfam1_i2c9;
242*f126890aSEmmanuel Vadot		i2c210 = &cfam1_i2c10;
243*f126890aSEmmanuel Vadot		i2c211 = &cfam1_i2c11;
244*f126890aSEmmanuel Vadot		i2c212 = &cfam1_i2c12;
245*f126890aSEmmanuel Vadot		i2c213 = &cfam1_i2c13;
246*f126890aSEmmanuel Vadot		i2c214 = &cfam1_i2c14;
247*f126890aSEmmanuel Vadot	};
248*f126890aSEmmanuel Vadot};
249