forked from torvalds/linux
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* pm-cpufreq: (36 commits) cpufreq: Add qcs404 to cpufreq-dt-platdev blacklist cpufreq: qcom: Add support for qcs404 on nvmem driver cpufreq: qcom: Refactor the driver to make it easier to extend cpufreq: qcom: Re-organise kryo cpufreq to use it for other nvmem based qcom socs dt-bindings: opp: Add qcom-opp bindings with properties needed for CPR dt-bindings: opp: qcom-nvmem: Support pstates provided by a power domain Documentation: cpufreq: Update policy notifier documentation cpufreq: Remove CPUFREQ_ADJUST and CPUFREQ_NOTIFY policy notifier events sched/cpufreq: Align trace event behavior of fast switching ACPI: cpufreq: Switch to QoS requests instead of cpufreq notifier video: pxafb: Remove cpufreq policy notifier video: sa1100fb: Remove cpufreq policy notifier arch_topology: Use CPUFREQ_CREATE_POLICY instead of CPUFREQ_NOTIFY cpufreq: powerpc_cbe: Switch to QoS requests for freq limits cpufreq: powerpc: macintosh: Switch to QoS requests for freq limits cpufreq: Print driver name if cpufreq_suspend() fails cpufreq: mediatek: Add support for mt8183 cpufreq: mediatek: change to regulator_get_optional cpufreq: imx-cpufreq-dt: Add i.MX8MN support cpufreq: Use imx-cpufreq-dt for i.MX8MN's speed grading ...
- Loading branch information
Showing
36 changed files
with
1,458 additions
and
650 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
Qualcomm OPP bindings to describe OPP nodes | ||
|
||
The bindings are based on top of the operating-points-v2 bindings | ||
described in Documentation/devicetree/bindings/opp/opp.txt | ||
Additional properties are described below. | ||
|
||
* OPP Table Node | ||
|
||
Required properties: | ||
- compatible: Allow OPPs to express their compatibility. It should be: | ||
"operating-points-v2-qcom-level" | ||
|
||
* OPP Node | ||
|
||
Required properties: | ||
- qcom,opp-fuse-level: A positive value representing the fuse corner/level | ||
associated with this OPP node. Sometimes several corners/levels shares | ||
a certain fuse corner/level. A fuse corner/level contains e.g. ref uV, | ||
min uV, and max uV. |
167 changes: 167 additions & 0 deletions
167
Documentation/devicetree/bindings/opp/sun50i-nvmem-cpufreq.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,167 @@ | ||
Allwinner Technologies, Inc. NVMEM CPUFreq and OPP bindings | ||
=================================== | ||
|
||
For some SoCs, the CPU frequency subset and voltage value of each OPP | ||
varies based on the silicon variant in use. Allwinner Process Voltage | ||
Scaling Tables defines the voltage and frequency value based on the | ||
speedbin blown in the efuse combination. The sun50i-cpufreq-nvmem driver | ||
reads the efuse value from the SoC to provide the OPP framework with | ||
required information. | ||
|
||
Required properties: | ||
-------------------- | ||
In 'cpus' nodes: | ||
- operating-points-v2: Phandle to the operating-points-v2 table to use. | ||
|
||
In 'operating-points-v2' table: | ||
- compatible: Should be | ||
- 'allwinner,sun50i-h6-operating-points'. | ||
- nvmem-cells: A phandle pointing to a nvmem-cells node representing the | ||
efuse registers that has information about the speedbin | ||
that is used to select the right frequency/voltage value | ||
pair. Please refer the for nvmem-cells bindings | ||
Documentation/devicetree/bindings/nvmem/nvmem.txt and | ||
also examples below. | ||
|
||
In every OPP node: | ||
- opp-microvolt-<name>: Voltage in micro Volts. | ||
At runtime, the platform can pick a <name> and | ||
matching opp-microvolt-<name> property. | ||
[See: opp.txt] | ||
HW: <name>: | ||
sun50i-h6 speed0 speed1 speed2 | ||
|
||
Example 1: | ||
--------- | ||
|
||
cpus { | ||
#address-cells = <1>; | ||
#size-cells = <0>; | ||
|
||
cpu0: cpu@0 { | ||
compatible = "arm,cortex-a53"; | ||
device_type = "cpu"; | ||
reg = <0>; | ||
enable-method = "psci"; | ||
clocks = <&ccu CLK_CPUX>; | ||
clock-latency-ns = <244144>; /* 8 32k periods */ | ||
operating-points-v2 = <&cpu_opp_table>; | ||
#cooling-cells = <2>; | ||
}; | ||
|
||
cpu1: cpu@1 { | ||
compatible = "arm,cortex-a53"; | ||
device_type = "cpu"; | ||
reg = <1>; | ||
enable-method = "psci"; | ||
clocks = <&ccu CLK_CPUX>; | ||
clock-latency-ns = <244144>; /* 8 32k periods */ | ||
operating-points-v2 = <&cpu_opp_table>; | ||
#cooling-cells = <2>; | ||
}; | ||
|
||
cpu2: cpu@2 { | ||
compatible = "arm,cortex-a53"; | ||
device_type = "cpu"; | ||
reg = <2>; | ||
enable-method = "psci"; | ||
clocks = <&ccu CLK_CPUX>; | ||
clock-latency-ns = <244144>; /* 8 32k periods */ | ||
operating-points-v2 = <&cpu_opp_table>; | ||
#cooling-cells = <2>; | ||
}; | ||
|
||
cpu3: cpu@3 { | ||
compatible = "arm,cortex-a53"; | ||
device_type = "cpu"; | ||
reg = <3>; | ||
enable-method = "psci"; | ||
clocks = <&ccu CLK_CPUX>; | ||
clock-latency-ns = <244144>; /* 8 32k periods */ | ||
operating-points-v2 = <&cpu_opp_table>; | ||
#cooling-cells = <2>; | ||
}; | ||
}; | ||
|
||
cpu_opp_table: opp_table { | ||
compatible = "allwinner,sun50i-h6-operating-points"; | ||
nvmem-cells = <&speedbin_efuse>; | ||
opp-shared; | ||
|
||
opp@480000000 { | ||
clock-latency-ns = <244144>; /* 8 32k periods */ | ||
opp-hz = /bits/ 64 <480000000>; | ||
|
||
opp-microvolt-speed0 = <880000>; | ||
opp-microvolt-speed1 = <820000>; | ||
opp-microvolt-speed2 = <800000>; | ||
}; | ||
|
||
opp@720000000 { | ||
clock-latency-ns = <244144>; /* 8 32k periods */ | ||
opp-hz = /bits/ 64 <720000000>; | ||
|
||
opp-microvolt-speed0 = <880000>; | ||
opp-microvolt-speed1 = <820000>; | ||
opp-microvolt-speed2 = <800000>; | ||
}; | ||
|
||
opp@816000000 { | ||
clock-latency-ns = <244144>; /* 8 32k periods */ | ||
opp-hz = /bits/ 64 <816000000>; | ||
|
||
opp-microvolt-speed0 = <880000>; | ||
opp-microvolt-speed1 = <820000>; | ||
opp-microvolt-speed2 = <800000>; | ||
}; | ||
|
||
opp@888000000 { | ||
clock-latency-ns = <244144>; /* 8 32k periods */ | ||
opp-hz = /bits/ 64 <888000000>; | ||
|
||
opp-microvolt-speed0 = <940000>; | ||
opp-microvolt-speed1 = <820000>; | ||
opp-microvolt-speed2 = <800000>; | ||
}; | ||
|
||
opp@1080000000 { | ||
clock-latency-ns = <244144>; /* 8 32k periods */ | ||
opp-hz = /bits/ 64 <1080000000>; | ||
|
||
opp-microvolt-speed0 = <1060000>; | ||
opp-microvolt-speed1 = <880000>; | ||
opp-microvolt-speed2 = <840000>; | ||
}; | ||
|
||
opp@1320000000 { | ||
clock-latency-ns = <244144>; /* 8 32k periods */ | ||
opp-hz = /bits/ 64 <1320000000>; | ||
|
||
opp-microvolt-speed0 = <1160000>; | ||
opp-microvolt-speed1 = <940000>; | ||
opp-microvolt-speed2 = <900000>; | ||
}; | ||
|
||
opp@1488000000 { | ||
clock-latency-ns = <244144>; /* 8 32k periods */ | ||
opp-hz = /bits/ 64 <1488000000>; | ||
|
||
opp-microvolt-speed0 = <1160000>; | ||
opp-microvolt-speed1 = <1000000>; | ||
opp-microvolt-speed2 = <960000>; | ||
}; | ||
}; | ||
.... | ||
soc { | ||
.... | ||
sid: sid@3006000 { | ||
compatible = "allwinner,sun50i-h6-sid"; | ||
reg = <0x03006000 0x400>; | ||
#address-cells = <1>; | ||
#size-cells = <1>; | ||
.... | ||
speedbin_efuse: speed@1c { | ||
reg = <0x1c 4>; | ||
}; | ||
}; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -676,6 +676,13 @@ L: [email protected] | |
S: Maintained | ||
F: drivers/staging/media/allegro-dvt/ | ||
|
||
ALLWINNER CPUFREQ DRIVER | ||
M: Yangtao Li <[email protected]> | ||
L: [email protected] | ||
S: Maintained | ||
F: Documentation/devicetree/bindings/opp/sun50i-nvmem-cpufreq.txt | ||
F: drivers/cpufreq/sun50i-cpufreq-nvmem.c | ||
|
||
ALLWINNER SECURITY SYSTEM | ||
M: Corentin Labbe <[email protected]> | ||
L: [email protected] | ||
|
@@ -13308,8 +13315,8 @@ QUALCOMM CPUFREQ DRIVER MSM8996/APQ8096 | |
M: Ilia Lin <[email protected]> | ||
L: [email protected] | ||
S: Maintained | ||
F: Documentation/devicetree/bindings/opp/kryo-cpufreq.txt | ||
F: drivers/cpufreq/qcom-cpufreq-kryo.c | ||
F: Documentation/devicetree/bindings/opp/qcom-nvmem-cpufreq.txt | ||
F: drivers/cpufreq/qcom-cpufreq-nvmem.c | ||
|
||
QUALCOMM EMAC GIGABIT ETHERNET DRIVER | ||
M: Timur Tabi <[email protected]> | ||
|
Oops, something went wrong.