Skip to content

Commit be6bfc2

Browse files
committed
Merge branch 'next' of git://git.kernel.org/pub/scm/linux/kernel/git/scottwood/linux into next
Freescale updates from Scott: "Highlights include moving QE code out of arch/powerpc (to be shared with arm), device tree updates, and minor fixes."
2 parents a61674b + 44451d4 commit be6bfc2

78 files changed

Lines changed: 907 additions & 338 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
* Thermal Monitoring Unit (TMU) on Freescale QorIQ SoCs
2+
3+
Required properties:
4+
- compatible : Must include "fsl,qoriq-tmu". The version of the device is
5+
determined by the TMU IP Block Revision Register (IPBRR0) at
6+
offset 0x0BF8.
7+
Table of correspondences between IPBRR0 values and example chips:
8+
Value Device
9+
---------- -----
10+
0x01900102 T1040
11+
- reg : Address range of TMU registers.
12+
- interrupts : Contains the interrupt for TMU.
13+
- fsl,tmu-range : The values to be programmed into TTRnCR, as specified by
14+
the SoC reference manual. The first cell is TTR0CR, the second is
15+
TTR1CR, etc.
16+
- fsl,tmu-calibration : A list of cell pairs containing temperature
17+
calibration data, as specified by the SoC reference manual.
18+
The first cell of each pair is the value to be written to TTCFGR,
19+
and the second is the value to be written to TSCFGR.
20+
21+
Example:
22+
23+
tmu@f0000 {
24+
compatible = "fsl,qoriq-tmu";
25+
reg = <0xf0000 0x1000>;
26+
interrupts = <18 2 0 0>;
27+
fsl,tmu-range = <0x000a0000 0x00090026 0x0008004a 0x0001006a>;
28+
fsl,tmu-calibration = <0x00000000 0x00000025
29+
0x00000001 0x00000028
30+
0x00000002 0x0000002d
31+
0x00000003 0x00000031
32+
0x00000004 0x00000036
33+
0x00000005 0x0000003a
34+
0x00000006 0x00000040
35+
0x00000007 0x00000044
36+
0x00000008 0x0000004a
37+
0x00000009 0x0000004f
38+
0x0000000a 0x00000054
39+
40+
0x00010000 0x0000000d
41+
0x00010001 0x00000013
42+
0x00010002 0x00000019
43+
0x00010003 0x0000001f
44+
0x00010004 0x00000025
45+
0x00010005 0x0000002d
46+
0x00010006 0x00000033
47+
0x00010007 0x00000043
48+
0x00010008 0x0000004b
49+
0x00010009 0x00000053
50+
51+
0x00020000 0x00000010
52+
0x00020001 0x00000017
53+
0x00020002 0x0000001f
54+
0x00020003 0x00000029
55+
0x00020004 0x00000031
56+
0x00020005 0x0000003c
57+
0x00020006 0x00000042
58+
0x00020007 0x0000004d
59+
0x00020008 0x00000056
60+
61+
0x00030000 0x00000012
62+
0x00030001 0x0000001d>;
63+
};

‎MAINTAINERS‎

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4489,8 +4489,9 @@ F: include/linux/fs_enet_pd.h
44894489
FREESCALE QUICC ENGINE LIBRARY
44904490
L: linuxppc-dev@lists.ozlabs.org
44914491
S: Orphan
4492-
F: arch/powerpc/sysdev/qe_lib/
4493-
F: arch/powerpc/include/asm/*qe.h
4492+
F: drivers/soc/fsl/qe/
4493+
F: include/soc/fsl/*qe*.h
4494+
F: include/soc/fsl/*ucc*.h
44944495

44954496
FREESCALE USB PERIPHERAL DRIVERS
44964497
M: Li Yang <leoli@freescale.com>
@@ -6428,7 +6429,7 @@ S: Maintained
64286429
F: arch/powerpc/platforms/8xx/
64296430

64306431
LINUX FOR POWERPC EMBEDDED PPC83XX AND PPC85XX
6431-
M: Scott Wood <scottwood@freescale.com>
6432+
M: Scott Wood <oss@buserror.net>
64326433
M: Kumar Gala <galak@kernel.crashing.org>
64336434
W: http://www.penguinppc.org/
64346435
L: linuxppc-dev@lists.ozlabs.org

‎arch/powerpc/Kconfig‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1076,8 +1076,6 @@ source "drivers/Kconfig"
10761076

10771077
source "fs/Kconfig"
10781078

1079-
source "arch/powerpc/sysdev/qe_lib/Kconfig"
1080-
10811079
source "lib/Kconfig"
10821080

10831081
source "arch/powerpc/Kconfig.debug"

‎arch/powerpc/boot/dts/fsl/b4si-post.dtsi‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -474,6 +474,11 @@
474474
fman@400000 {
475475
interrupts = <96 2 0 0>, <16 2 1 30>;
476476

477+
muram@0 {
478+
compatible = "fsl,fman-muram";
479+
reg = <0x0 0x80000>;
480+
};
481+
477482
enet0: ethernet@e0000 {
478483
};
479484

‎arch/powerpc/boot/dts/fsl/bsc9132qds.dts‎

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,21 @@
2929
soc: soc@ff700000 {
3030
ranges = <0x0 0x0 0xff700000 0x100000>;
3131
};
32+
33+
pci0: pcie@ff70a000 {
34+
reg = <0 0xff70a000 0 0x1000>;
35+
ranges = <0x2000000 0x0 0x90000000 0 0x90000000 0x0 0x20000000
36+
0x1000000 0x0 0x00000000 0 0xc0010000 0x0 0x10000>;
37+
pcie@0 {
38+
ranges = <0x2000000 0x0 0x90000000
39+
0x2000000 0x0 0x90000000
40+
0x0 0x20000000
41+
42+
0x1000000 0x0 0x0
43+
0x1000000 0x0 0x0
44+
0x0 0x100000>;
45+
};
46+
};
3247
};
3348

3449
/include/ "bsc9132qds.dtsi"

‎arch/powerpc/boot/dts/fsl/bsc9132si-post.dtsi‎

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,34 @@
4040
interrupts = <16 2 0 0 20 2 0 0>;
4141
};
4242

43+
/* controller at 0xa000 */
44+
&pci0 {
45+
compatible = "fsl,bsc9132-pcie", "fsl,qoriq-pcie-v2.2";
46+
device_type = "pci";
47+
#size-cells = <2>;
48+
#address-cells = <3>;
49+
bus-range = <0 255>;
50+
interrupts = <16 2 0 0>;
51+
52+
pcie@0 {
53+
reg = <0 0 0 0 0>;
54+
#interrupt-cells = <1>;
55+
#size-cells = <2>;
56+
#address-cells = <3>;
57+
device_type = "pci";
58+
interrupts = <16 2 0 0>;
59+
interrupt-map-mask = <0xf800 0 0 7>;
60+
61+
interrupt-map = <
62+
/* IDSEL 0x0 */
63+
0000 0x0 0x0 0x1 &mpic 0x0 0x2 0x0 0x0
64+
0000 0x0 0x0 0x2 &mpic 0x1 0x2 0x0 0x0
65+
0000 0x0 0x0 0x3 &mpic 0x2 0x2 0x0 0x0
66+
0000 0x0 0x0 0x4 &mpic 0x3 0x2 0x0 0x0
67+
>;
68+
};
69+
};
70+
4371
&soc {
4472
#address-cells = <1>;
4573
#size-cells = <1>;

‎arch/powerpc/boot/dts/fsl/bsc9132si-pre.dtsi‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@
4545
serial0 = &serial0;
4646
ethernet0 = &enet0;
4747
ethernet1 = &enet1;
48+
pci0 = &pci0;
4849
};
4950

5051
cpus {

‎arch/powerpc/boot/dts/fsl/p1010rdb.dtsi‎

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -215,3 +215,19 @@
215215
phy-connection-type = "sgmii";
216216
};
217217
};
218+
219+
&pci0 {
220+
pcie@0 {
221+
interrupt-map = <
222+
/* IDSEL 0x0 */
223+
/*
224+
*irq[4:5] are active-high
225+
*irq[6:7] are active-low
226+
*/
227+
0000 0x0 0x0 0x1 &mpic 0x4 0x2 0x0 0x0
228+
0000 0x0 0x0 0x2 &mpic 0x5 0x2 0x0 0x0
229+
0000 0x0 0x0 0x3 &mpic 0x6 0x1 0x0 0x0
230+
0000 0x0 0x0 0x4 &mpic 0x7 0x1 0x0 0x0
231+
>;
232+
};
233+
};

‎arch/powerpc/boot/dts/fsl/t1023rdb.dts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,4 +159,4 @@
159159
};
160160
};
161161

162-
/include/ "t1023si-post.dtsi"
162+
#include "t1023si-post.dtsi"

‎arch/powerpc/boot/dts/fsl/t1023si-post.dtsi‎

Lines changed: 86 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@
3232
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
3333
*/
3434

35+
#include <dt-bindings/thermal/thermal.h>
36+
3537
&ifc {
3638
#address-cells = <2>;
3739
#size-cells = <1>;
@@ -275,6 +277,90 @@
275277
reg = <0xea000 0x4000>;
276278
};
277279

280+
tmu: tmu@f0000 {
281+
compatible = "fsl,qoriq-tmu";
282+
reg = <0xf0000 0x1000>;
283+
interrupts = <18 2 0 0>;
284+
fsl,tmu-range = <0xb0000 0xa0026 0x80048 0x30061>;
285+
fsl,tmu-calibration = <0x00000000 0x0000000f
286+
0x00000001 0x00000017
287+
0x00000002 0x0000001e
288+
0x00000003 0x00000026
289+
0x00000004 0x0000002e
290+
0x00000005 0x00000035
291+
0x00000006 0x0000003d
292+
0x00000007 0x00000044
293+
0x00000008 0x0000004c
294+
0x00000009 0x00000053
295+
0x0000000a 0x0000005b
296+
0x0000000b 0x00000064
297+
298+
0x00010000 0x00000011
299+
0x00010001 0x0000001c
300+
0x00010002 0x00000024
301+
0x00010003 0x0000002b
302+
0x00010004 0x00000034
303+
0x00010005 0x00000039
304+
0x00010006 0x00000042
305+
0x00010007 0x0000004c
306+
0x00010008 0x00000051
307+
0x00010009 0x0000005a
308+
0x0001000a 0x00000063
309+
310+
0x00020000 0x00000013
311+
0x00020001 0x00000019
312+
0x00020002 0x00000024
313+
0x00020003 0x0000002c
314+
0x00020004 0x00000035
315+
0x00020005 0x0000003d
316+
0x00020006 0x00000046
317+
0x00020007 0x00000050
318+
0x00020008 0x00000059
319+
320+
0x00030000 0x00000002
321+
0x00030001 0x0000000d
322+
0x00030002 0x00000019
323+
0x00030003 0x00000024>;
324+
#thermal-sensor-cells = <0>;
325+
};
326+
327+
thermal-zones {
328+
cpu_thermal: cpu-thermal {
329+
polling-delay-passive = <1000>;
330+
polling-delay = <5000>;
331+
332+
thermal-sensors = <&tmu>;
333+
334+
trips {
335+
cpu_alert: cpu-alert {
336+
temperature = <85000>;
337+
hysteresis = <2000>;
338+
type = "passive";
339+
};
340+
cpu_crit: cpu-crit {
341+
temperature = <95000>;
342+
hysteresis = <2000>;
343+
type = "critical";
344+
};
345+
};
346+
347+
cooling-maps {
348+
map0 {
349+
trip = <&cpu_alert>;
350+
cooling-device =
351+
<&cpu0 THERMAL_NO_LIMIT
352+
THERMAL_NO_LIMIT>;
353+
};
354+
map1 {
355+
trip = <&cpu_alert>;
356+
cooling-device =
357+
<&cpu1 THERMAL_NO_LIMIT
358+
THERMAL_NO_LIMIT>;
359+
};
360+
};
361+
};
362+
};
363+
278364
scfg: global-utilities@fc000 {
279365
compatible = "fsl,t1023-scfg";
280366
reg = <0xfc000 0x1000>;

0 commit comments

Comments
 (0)