forked from open-power/pdbg
-
Notifications
You must be signed in to change notification settings - Fork 0
/
bmc-kernel.dts.m4
126 lines (110 loc) · 1.95 KB
/
bmc-kernel.dts.m4
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
dnl
dnl PIB([addr], [index], [path-index])
dnl
define(`PIB',
`
pib@$1 {
#address-cells = <0x2>;
#size-cells = <0x1>;
reg = <0x0 0x$1 0x7>;
compatible = "ibm,kernel-pib";
index = <0x$2>;
device-path = "/dev/scom$3";
system-path = "/proc$2/pib";
};
')dnl
dnl
dnl SBEFIFO([index], [path-index])
dnl
define(`SBEFIFO',
`
sbefifo@2400 { /* Bogus address */
reg = <0x0 0x2400 0x7>;
compatible = "ibm,kernel-sbefifo";
index = <0x$1>;
device-path = "/dev/sbefifo$2";
sbefifo-mem {
compatible = "ibm,sbefifo-mem";
index = <0x$1>;
system-path = "/mem$1";
};
sbefifo-pba {
compatible = "ibm,sbefifo-mem-pba";
index = <0x$1>;
system-path = "/mempba$1";
};
sbefifo-chipop {
compatible = "ibm,sbefifo-chipop";
index = <0x$1>;
};
};
')dnl
dnl
dnl FSI_PRE([addr], [index], [path-index])
dnl
define(`FSI_PRE',
`
fsi@$1 {
#address-cells = <0x2>;
#size-cells = <0x1>;
reg = <0x0 0x$1 0x8000>;
compatible = "ibm,kernel-fsi";
device-path = "/fsi0/slave@00:00/raw";
index = <0x$2>;
system-path = "/proc$2/fsi";
status = "mustexist";
PIB(1000, $2, $3)
SBEFIFO($2, $3)
')dnl
dnl
dnl FSI_POST()
dnl
define(`FSI_POST',
`
};
')dnl
dnl
dnl I2CM([addr])
dnl
define(`I2CM',
`
i2cm@i$1 {
#address-cells = <0x1>;
#size-cells = <0x0>;
reg = <0x0 0x$1 0x400>;
compatible = "ibm,fsi-i2c-master";
include(p9-i2c.dts.m4)dnl
};
')dnl
dnl
dnl HMFSI([addr], [port], [index], [path-index])
dnl
define(`HMFSI',
`
hmfsi@$1 {
#address-cells = <0x2>;
#size-cells = <0x1>;
reg = <0x0 0x$1 0x8000>;
compatible = "ibm,fsi-hmfsi";
port = <0x$2>;
index = <0x$3>;
system-path = "/proc$3/fsi";
PIB(1000, $3, $4)
SBEFIFO($3, $4)
};
')dnl
/dts-v1/;
/ {
#address-cells = <0x1>;
#size-cells = <0x0>;
FSI_PRE(0, 0, 1)
I2CM(1800, )
HMFSI(100000, 1, 1, 2)
HMFSI(180000, 2, 2, 3)
HMFSI(200000, 3, 3, 4)
HMFSI(280000, 4, 4, 5)
HMFSI(300000, 5, 5, 6)
HMFSI(380000, 6, 6, 7)
HMFSI(400000, 7, 7, 8)
FSI_POST()
};