Skip to content

Commit 8eed1cd

Browse files
committed
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
2 parents 687d911 + 29fbff8 commit 8eed1cd

436 files changed

Lines changed: 22932 additions & 7660 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎Documentation/DocBook/kernel-hacking.tmpl‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -483,7 +483,7 @@ printk(KERN_INFO "my ip: %pI4\n", &ipaddress);
483483
<function>get_user()</function>
484484
/
485485
<function>put_user()</function>
486-
<filename class="headerfile">include/asm/uaccess.h</filename>
486+
<filename class="headerfile">include/linux/uaccess.h</filename>
487487
</title>
488488

489489
<para>
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
Amlogic Meson PWM Controller
2+
============================
3+
4+
Required properties:
5+
- compatible: Shall contain "amlogic,meson8b-pwm" or "amlogic,meson-gxbb-pwm".
6+
- #pwm-cells: Should be 3. See pwm.txt in this directory for a description of
7+
the cells format.
8+
9+
Optional properties:
10+
- clocks: Could contain one or two parents clocks phandle for each of the two
11+
PWM channels.
12+
- clock-names: Could contain at least the "clkin0" and/or "clkin1" names.
13+
14+
Example:
15+
16+
pwm_ab: pwm@8550 {
17+
compatible = "amlogic,meson-gxbb-pwm";
18+
reg = <0x0 0x08550 0x0 0x10>;
19+
#pwm-cells = <3>;
20+
status = "disabled";
21+
clocks = <&xtal>, <&xtal>;
22+
clock-names = "clkin0", "clkin1";
23+
}

‎Documentation/devicetree/bindings/pwm/pwm-mtk-disp.txt‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,9 @@ MediaTek display PWM controller
22

33
Required properties:
44
- compatible: should be "mediatek,<name>-disp-pwm":
5-
- "mediatek,mt8173-disp-pwm": found on mt8173 SoC.
5+
- "mediatek,mt2701-disp-pwm": found on mt2701 SoC.
66
- "mediatek,mt6595-disp-pwm": found on mt6595 SoC.
7+
- "mediatek,mt8173-disp-pwm": found on mt8173 SoC.
78
- reg: physical base address and length of the controller's registers.
89
- #pwm-cells: must be 2. See pwm.txt in this directory for a description of
910
the cell format.

‎Documentation/devicetree/bindings/pwm/pwm-st.txt‎

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,14 @@ Required parameters:
1313
- pinctrl-0: List of phandles pointing to pin configuration nodes
1414
for PWM module.
1515
For Pinctrl properties, please refer to [1].
16-
- clock-names: Set to "pwm".
16+
- clock-names: Valid entries are "pwm" and/or "capture".
1717
- clocks: phandle of the clock used by the PWM module.
1818
For Clk properties, please refer to [2].
19+
- interrupts: IRQ for the Capture device
1920

2021
Optional properties:
21-
- st,pwm-num-chan: Number of available channels. If not passed, the driver
22-
will consider single channel by default.
22+
- st,pwm-num-chan: Number of available PWM channels. Default is 0.
23+
- st,capture-num-chan: Number of available Capture channels. Default is 0.
2324

2425
[1] Documentation/devicetree/bindings/pinctrl/pinctrl-bindings.txt
2526
[2] Documentation/devicetree/bindings/clock/clock-bindings.txt
@@ -38,4 +39,5 @@ pwm1: pwm@fe510000 {
3839
clocks = <&clk_sysin>;
3940
clock-names = "pwm";
4041
st,pwm-num-chan = <4>;
42+
st,capture-num-chan = <2>;
4143
};

‎Documentation/devicetree/bindings/pwm/pwm-sun4i.txt‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ Required properties:
66
- "allwinner,sun5i-a10s-pwm"
77
- "allwinner,sun5i-a13-pwm"
88
- "allwinner,sun7i-a20-pwm"
9+
- "allwinner,sun8i-h3-pwm"
910
- reg: physical base address and length of the controller's registers
1011
- #pwm-cells: should be 3. See pwm.txt in this directory for a description of
1112
the cells format.
Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
Thermal driver for MAX77620 Power management IC from Maxim Semiconductor.
2+
3+
Maxim Semiconductor MAX77620 supports alarm interrupts when its
4+
die temperature crosses 120C and 140C. These threshold temperatures
5+
are not configurable. Device does not provide the real temperature
6+
of die other than just indicating whether temperature is above or
7+
below threshold level.
8+
9+
Required properties:
10+
-------------------
11+
#thermal-sensor-cells: Please refer <devicetree/bindings/thermal/thermal.txt>
12+
for more details.
13+
The value must be 0.
14+
15+
For more details, please refer generic thermal DT binding document
16+
<devicetree/bindings/thermal/thermal.txt>.
17+
18+
Please refer <devicetree/bindings/mfd/max77620.txt> for mfd DT binding
19+
document for the MAX77620.
20+
21+
Example:
22+
--------
23+
#include <dt-bindings/mfd/max77620.h>
24+
#include <dt-bindings/thermal/thermal.h>
25+
...
26+
27+
i2c@7000d000 {
28+
spmic: max77620@3c {
29+
compatible = "maxim,max77620";
30+
:::::
31+
#thermal-sensor-cells = <0>;
32+
:::
33+
};
34+
};
35+
36+
cool_dev: cool-dev {
37+
compatible = "cooling-dev";
38+
#cooling-cells = <2>;
39+
};
40+
41+
thermal-zones {
42+
PMIC-Die {
43+
polling-delay = <0>;
44+
polling-delay-passive = <0>;
45+
thermal-sensors = <&spmic>;
46+
47+
trips {
48+
pmic_die_warn_temp_thresh: hot-die {
49+
temperature = <120000>;
50+
type = "hot";
51+
hysteresis = <0>;
52+
};
53+
54+
pmic_die_cirt_temp_thresh: cirtical-die {
55+
temperature = <140000>;
56+
type = "critical";
57+
hysteresis = <0>;
58+
};
59+
};
60+
61+
cooling-maps {
62+
map0 {
63+
trip = <&pmic_die_warn_temp_thresh>;
64+
cooling-device = <&cool_dev THERMAL_NO_LIMIT
65+
THERMAL_NO_LIMIT>;
66+
contribution = <100>;
67+
};
68+
};
69+
};
70+
};

‎Documentation/devicetree/bindings/thermal/mediatek-thermal.txt‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@ apmixedsys register space via AHB bus accesses, so a phandle to the APMIXEDSYS
88
is also needed.
99

1010
Required properties:
11-
- compatible: "mediatek,mt8173-thermal"
11+
- compatible:
12+
- "mediatek,mt8173-thermal" : For MT8173 family of SoCs
13+
- "mediatek,mt2701-thermal" : For MT2701 family of SoCs
1214
- reg: Address range of the thermal controller
1315
- interrupts: IRQ for the thermal controller
1416
- clocks, clock-names: Clocks needed for the thermal controller. required

‎Documentation/devicetree/bindings/thermal/nvidia,tegra124-soctherm.txt‎

Lines changed: 119 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,14 @@ Required properties :
1010
- compatible : For Tegra124, must contain "nvidia,tegra124-soctherm".
1111
For Tegra132, must contain "nvidia,tegra132-soctherm".
1212
For Tegra210, must contain "nvidia,tegra210-soctherm".
13-
- reg : Should contain 1 entry:
13+
- reg : Should contain at least 2 entries for each entry in reg-names:
1414
- SOCTHERM register set
15+
- Tegra CAR register set: Required for Tegra124 and Tegra210.
16+
- CCROC register set: Required for Tegra132.
17+
- reg-names : Should contain at least 2 entries:
18+
- soctherm-reg
19+
- car-reg
20+
- ccroc-reg
1521
- interrupts : Defines the interrupt used by SOCTHERM
1622
- clocks : Must contain an entry for each entry in clock-names.
1723
See ../clocks/clock-bindings.txt for details.
@@ -25,17 +31,45 @@ Required properties :
2531
- #thermal-sensor-cells : Should be 1. See ./thermal.txt for a description
2632
of this property. See <dt-bindings/thermal/tegra124-soctherm.h> for a
2733
list of valid values when referring to thermal sensors.
34+
- throttle-cfgs: A sub-node which is a container of configuration for each
35+
hardware throttle events. These events can be set as cooling devices.
36+
* throttle events: Sub-nodes must be named as "light" or "heavy".
37+
Properties:
38+
- nvidia,priority: Each throttles has its own throttle settings, so the
39+
SW need to set priorities for various throttle, the HW arbiter can select
40+
the final throttle settings.
41+
Bigger value indicates higher priority, In general, higher priority
42+
translates to lower target frequency. SW needs to ensure that critical
43+
thermal alarms are given higher priority, and ensure that there is
44+
no race if priority of two vectors is set to the same value.
45+
The range of this value is 1~100.
46+
- nvidia,cpu-throt-percent: This property is for Tegra124 and Tegra210.
47+
It is the throttling depth of pulse skippers, it's the percentage
48+
throttling.
49+
- nvidia,cpu-throt-level: This property is only for Tegra132, it is the
50+
level of pulse skippers, which used to throttle clock frequencies. It
51+
indicates cpu clock throttling depth, and the depth can be programmed.
52+
Must set as following values:
53+
TEGRA_SOCTHERM_THROT_LEVEL_LOW, TEGRA_SOCTHERM_THROT_LEVEL_MED
54+
TEGRA_SOCTHERM_THROT_LEVEL_HIGH, TEGRA_SOCTHERM_THROT_LEVEL_NONE
55+
- #cooling-cells: Should be 1. This cooling device only support on/off state.
56+
See ./thermal.txt for a description of this property.
2857

2958
Note:
3059
- the "critical" type trip points will be set to SOC_THERM hardware as the
3160
shut down temperature. Once the temperature of this thermal zone is higher
3261
than it, the system will be shutdown or reset by hardware.
62+
- the "hot" type trip points will be set to SOC_THERM hardware as the throttle
63+
temperature. Once the the temperature of this thermal zone is higher
64+
than it, it will trigger the HW throttle event.
3365

3466
Example :
3567

3668
soctherm@700e2000 {
3769
compatible = "nvidia,tegra124-soctherm";
38-
reg = <0x0 0x700e2000 0x0 0x1000>;
70+
reg = <0x0 0x700e2000 0x0 0x600 /* SOC_THERM reg_base */
71+
0x0 0x60006000 0x0 0x400 /* CAR reg_base */
72+
reg-names = "soctherm-reg", "car-reg";
3973
interrupts = <GIC_SPI 48 IRQ_TYPE_LEVEL_HIGH>;
4074
clocks = <&tegra_car TEGRA124_CLK_TSENSOR>,
4175
<&tegra_car TEGRA124_CLK_SOC_THERM>;
@@ -44,6 +78,76 @@ Example :
4478
reset-names = "soctherm";
4579

4680
#thermal-sensor-cells = <1>;
81+
82+
throttle-cfgs {
83+
/*
84+
* When the "heavy" cooling device triggered,
85+
* the HW will skip cpu clock's pulse in 85% depth
86+
*/
87+
throttle_heavy: heavy {
88+
nvidia,priority = <100>;
89+
nvidia,cpu-throt-percent = <85>;
90+
91+
#cooling-cells = <1>;
92+
};
93+
94+
/*
95+
* When the "light" cooling device triggered,
96+
* the HW will skip cpu clock's pulse in 50% depth
97+
*/
98+
throttle_light: light {
99+
nvidia,priority = <80>;
100+
nvidia,cpu-throt-percent = <50>;
101+
102+
#cooling-cells = <1>;
103+
};
104+
105+
/*
106+
* If these two devices are triggered in same time, the HW throttle
107+
* arbiter will select the highest priority as the final throttle
108+
* settings to skip cpu pulse.
109+
*/
110+
};
111+
};
112+
113+
Example: referring to Tegra132's "reg", "reg-names" and "throttle-cfgs" :
114+
115+
soctherm@700e2000 {
116+
compatible = "nvidia,tegra132-soctherm";
117+
reg = <0x0 0x700e2000 0x0 0x600 /* SOC_THERM reg_base */
118+
0x0 0x70040000 0x0 0x200>; /* CCROC reg_base */;
119+
reg-names = "soctherm-reg", "ccroc-reg";
120+
121+
throttle-cfgs {
122+
/*
123+
* When the "heavy" cooling device triggered,
124+
* the HW will skip cpu clock's pulse in HIGH level
125+
*/
126+
throttle_heavy: heavy {
127+
nvidia,priority = <100>;
128+
nvidia,cpu-throt-level = <TEGRA_SOCTHERM_THROT_LEVEL_HIGH>;
129+
130+
#cooling-cells = <1>;
131+
};
132+
133+
/*
134+
* When the "light" cooling device triggered,
135+
* the HW will skip cpu clock's pulse in MED level
136+
*/
137+
throttle_light: light {
138+
nvidia,priority = <80>;
139+
nvidia,cpu-throt-level = <TEGRA_SOCTHERM_THROT_LEVEL_MED>;
140+
141+
#cooling-cells = <1>;
142+
};
143+
144+
/*
145+
* If these two devices are triggered in same time, the HW throttle
146+
* arbiter will select the highest priority as the final throttle
147+
* settings to skip cpu pulse.
148+
*/
149+
150+
};
47151
};
48152

49153
Example: referring to thermal sensors :
@@ -62,6 +166,19 @@ Example: referring to thermal sensors :
62166
hysteresis = <1000>;
63167
type = "critical";
64168
};
169+
170+
cpu_throttle_trip: throttle-trip {
171+
temperature = <100000>;
172+
hysteresis = <1000>;
173+
type = "hot";
174+
};
175+
};
176+
177+
cooling-maps {
178+
map0 {
179+
trip = <&cpu_throttle_trip>;
180+
cooling-device = <&throttle_heavy 1 1>;
181+
};
65182
};
66183
};
67184
};
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
* QCOM SoC Temperature Sensor (TSENS)
2+
3+
Required properties:
4+
- compatible :
5+
- "qcom,msm8916-tsens" : For 8916 Family of SoCs
6+
- "qcom,msm8974-tsens" : For 8974 Family of SoCs
7+
- "qcom,msm8996-tsens" : For 8996 Family of SoCs
8+
9+
- reg: Address range of the thermal registers
10+
- #thermal-sensor-cells : Should be 1. See ./thermal.txt for a description.
11+
- Refer to Documentation/devicetree/bindings/nvmem/nvmem.txt to know how to specify
12+
nvmem cells
13+
14+
Example:
15+
tsens: thermal-sensor@900000 {
16+
compatible = "qcom,msm8916-tsens";
17+
reg = <0x4a8000 0x2000>;
18+
nvmem-cells = <&tsens_caldata>, <&tsens_calsel>;
19+
nvmem-cell-names = "caldata", "calsel";
20+
#thermal-sensor-cells = <1>;
21+
};

‎Documentation/devicetree/bindings/watchdog/of-xilinx-wdt.txt‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ Required properties:
77
- reg : Physical base address and size
88

99
Optional properties:
10+
- clocks : Input clock specifier. Refer to common clock
11+
bindings.
1012
- clock-frequency : Frequency of clock in Hz
1113
- xlnx,wdt-enable-once : 0 - Watchdog can be restarted
1214
1 - Watchdog can be enabled just once
@@ -17,6 +19,7 @@ Example:
1719
axi-timebase-wdt@40100000 {
1820
clock-frequency = <50000000>;
1921
compatible = "xlnx,xps-timebase-wdt-1.00.a";
22+
clocks = <&clkc 15>;
2023
reg = <0x40100000 0x10000>;
2124
xlnx,wdt-enable-once = <0x0>;
2225
xlnx,wdt-interval = <0x1b>;

0 commit comments

Comments
 (0)