/openbmc/linux/Documentation/devicetree/bindings/cpufreq/ |
H A D | apple,cluster-cpufreq.yaml | 1 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause 3 --- 4 $id: http://devicetree.org/schemas/cpufreq/apple,cluster-cpufreq.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: Apple SoC cluster cpufreq device 10 - Hector Martin <marcan@marcan.st> 13 Apple SoCs (e.g. M1) have a per-cpu-cluster DVFS controller that is part of 14 the cluster management register block. This binding uses the standard 15 operating-points-v2 table to define the CPU performance states, with the 16 opp-level property specifying the hardware p-state index for that level. [all …]
|
H A D | cpufreq-qcom-hw.yaml | 1 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause 3 --- 4 $id: http://devicetree.org/schemas/cpufreq/cpufreq-qcom-hw.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: Qualcomm Technologies, Inc. CPUFREQ 10 - Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org> 14 CPUFREQ HW is a hardware engine used by some Qualcomm Technologies, Inc. (QTI) 21 - description: v1 of CPUFREQ HW 23 - enum: 24 - qcom,qcm2290-cpufreq-hw [all …]
|
H A D | cpufreq-mediatek.txt | 1 Binding for MediaTek's CPUFreq driver 5 - clocks: A list of phandle + clock-specifier pairs for the clocks listed in clock names. 6 - clock-names: Should contain the following: 7 "cpu" - The multiplexer for clock input of CPU cluster. 8 "intermediate" - A parent of "cpu" clock which is used as "intermediate" clock 11 Please refer to Documentation/devicetree/bindings/clock/clock-bindings.txt for 13 - operating-points-v2: Please refer to Documentation/devicetree/bindings/opp/opp-v2.yaml 15 - proc-supply: Regulator for Vproc of CPU cluster. 18 - sram-supply: Regulator for Vsram of CPU cluster. When present, the cpufreq driver 23 - mediatek,cci: [all …]
|
/openbmc/linux/arch/arm64/boot/dts/apple/ |
H A D | t600x-dieX.dtsi | 1 // SPDX-License-Identifier: GPL-2.0+ OR MIT 9 DIE_NODE(cpufreq_e): cpufreq@210e20000 { 10 …compatible = "apple,t6000-cluster-cpufreq", "apple,t8103-cluster-cpufreq", "apple,cluster-cpufreq"; 12 #performance-domain-cells = <0>; 15 DIE_NODE(cpufreq_p0): cpufreq@211e20000 { 16 …compatible = "apple,t6000-cluster-cpufreq", "apple,t8103-cluster-cpufreq", "apple,cluster-cpufreq"; 18 #performance-domain-cells = <0>; 21 DIE_NODE(cpufreq_p1): cpufreq@212e20000 { 22 …compatible = "apple,t6000-cluster-cpufreq", "apple,t8103-cluster-cpufreq", "apple,cluster-cpufreq"; 24 #performance-domain-cells = <0>; [all …]
|
H A D | t8112.dtsi | 1 // SPDX-License-Identifier: GPL-2.0+ OR MIT 10 #include <dt-bindings/gpio/gpio.h> 11 #include <dt-bindings/interrupt-controller/apple-aic.h> 12 #include <dt-bindings/interrupt-controller/irq.h> 13 #include <dt-bindings/pinctrl/apple.h> 14 #include <dt-bindings/spmi/spmi.h> 17 compatible = "apple,t8112", "apple,arm-platform"; 19 #address-cells = <2>; 20 #size-cells = <2>; 23 #address-cells = <2>; [all …]
|
H A D | t8103.dtsi | 1 // SPDX-License-Identifier: GPL-2.0+ OR MIT 10 #include <dt-bindings/gpio/gpio.h> 11 #include <dt-bindings/interrupt-controller/apple-aic.h> 12 #include <dt-bindings/interrupt-controller/irq.h> 13 #include <dt-bindings/pinctrl/apple.h> 16 compatible = "apple,t8103", "apple,arm-platform"; 18 #address-cells = <2>; 19 #size-cells = <2>; 22 #address-cells = <2>; 23 #size-cells = <0>; [all …]
|
/openbmc/linux/drivers/cpufreq/ |
H A D | apple-soc-cpufreq.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Apple SoC CPU cluster performance state driver 7 * Based on scpi-cpufreq.c 13 #include <linux/cpufreq.h> 90 .compatible = "apple,t8103-cluster-cpufreq", 94 .compatible = "apple,t8112-cluster-cpufreq", 98 .compatible = "apple,cluster-cpufreq", 107 struct apple_cpu_priv *priv = policy->driver_data; in apple_soc_cpufreq_get_rate() 111 if (priv->info->cur_pstate_mask) { in apple_soc_cpufreq_get_rate() 112 u64 reg = readq_relaxed(priv->reg_base + APPLE_DVFS_STATUS); in apple_soc_cpufreq_get_rate() [all …]
|
H A D | vexpress-spc-cpufreq.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Versatile Express SPC CPUFreq Interface driver 5 * Copyright (C) 2013 - 2019 ARM Ltd. 16 #include <linux/cpufreq.h> 45 #define ACTUAL_FREQ(cluster, freq) ((cluster == A7_CLUSTER) ? freq << 1 : freq) argument 46 #define VIRT_FREQ(cluster, freq) ((cluster == A7_CLUSTER) ? freq >> 1 : freq) argument 71 static unsigned int find_cluster_maxfreq(int cluster) in find_cluster_maxfreq() argument 79 if (cluster == per_cpu(physical_cluster, j) && in find_cluster_maxfreq() 138 ret = -EIO; in ve_spc_cpufreq_set_rate() 154 /* Recalc freq for old cluster when switching clusters */ in ve_spc_cpufreq_set_rate() [all …]
|
H A D | tegra186-cpufreq.c | 1 // SPDX-License-Identifier: GPL-2.0-only 6 #include <linux/cpufreq.h> 7 #include <linux/dma-mapping.h> 13 #include <soc/tegra/bpmp-abi.h> 28 /* CPU0 - A57 Cluster */ 33 /* CPU1 - Denver Cluster */ 38 /* CPU2 - Denver Cluster */ 43 /* CPU3 - A57 Cluster */ 48 /* CPU4 - A57 Cluster */ 53 /* CPU5 - A57 Cluster */ [all …]
|
H A D | tegra194-cpufreq.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Copyright (c) 2020 - 2022, NVIDIA CORPORATION. All rights reserved 7 #include <linux/cpufreq.h> 9 #include <linux/dma-mapping.h> 20 #include <soc/tegra/bpmp-abi.h> 32 #define SCRATCH_FREQ_CORE_REG(data, cpu) (data->regs + CMU_CLKS_BASE + CORE_OFFSET(cpu)) 36 (data->regs + (MMCRAB_CLUSTER_BASE(cl) + data->soc->actmon_cntr_base)) 39 /* cpufreq transisition latency */ 83 dev = get_cpu_device(policy->cpu); in tegra_cpufreq_set_bw() 85 return -ENODEV; in tegra_cpufreq_set_bw() [all …]
|
H A D | armada-8k-cpufreq.c | 1 // SPDX-License-Identifier: GPL-2.0+ 3 * CPUFreq support for Armada 8K 25 { .compatible = "marvell,ap806-cpu-clock" }, 26 { .compatible = "marvell,ap807-cpu-clock" }, 44 /* If the CPUs share the same clock, then they are in the same cluster. */ 84 return -EINVAL; in armada_8k_add_opp() 141 return -ENODEV; in armada_8k_cpufreq_init() 148 return -ENOMEM; in armada_8k_cpufreq_init() 190 armada_8k_pdev = platform_device_register_simple("cpufreq-dt", -1, in armada_8k_cpufreq_init() 216 MODULE_DESCRIPTION("Armada 8K cpufreq driver");
|
H A D | qoriq-cpufreq.c | 1 // SPDX-License-Identifier: GPL-2.0-only 11 #include <linux/clk-provider.h> 12 #include <linux/cpufreq.h> 34 * struct soc_data - SoC specific data 48 /* get platform freq by searching bus-frequency property */ in get_bus_freq() 51 ret = of_property_read_u32(soc, "bus-frequency", &sysfreq); in get_bus_freq() 58 pltclk = clk_get(NULL, "cg-pll0-div1"); in get_bus_freq() 88 struct cpumask *dstp = policy->cpus; in set_affected_cpus() 99 if (clk_is_match(policy->clk, clk)) in set_affected_cpus() 131 for (i = 0; i < count - 1; i++) { in freq_table_sort() [all …]
|
H A D | mediatek-cpufreq.c | 1 // SPDX-License-Identifier: GPL-2.0-only 4 * Author: Pi-Cheng Chen <pi-cheng.chen@linaro.org> 9 #include <linux/cpufreq.h> 30 * on each CPU power/clock domain of Mediatek SoCs. Each CPU cluster in 33 * 100mV < Vsram - Vproc < 200mV 71 if (cpumask_test_cpu(cpu, &info->cpus)) in mtk_cpu_dvfs_info_lookup() 81 const struct mtk_cpufreq_platform_data *soc_data = info->soc_data; in mtk_cpufreq_voltage_tracking() 82 struct regulator *proc_reg = info->proc_reg; in mtk_cpufreq_voltage_tracking() 83 struct regulator *sram_reg = info->sram_reg; in mtk_cpufreq_voltage_tracking() 85 int retry = info->vtrack_max; in mtk_cpufreq_voltage_tracking() [all …]
|
/openbmc/linux/Documentation/driver-api/thermal/ |
H A D | cpu-cooling-api.rst | 21 1.1 cpufreq registration/unregistration APIs 22 -------------------------------------------- 29 This interface function registers the cpufreq cooling device with the name 30 "thermal-cpufreq-%x". This api can support multiple instances of cpufreq 41 This interface function registers the cpufreq cooling device with 42 the name "thermal-cpufreq-%x" linking it with a device tree node, in 44 instances of cpufreq cooling devices. 47 CPUFreq policy. 54 This interface function unregisters the "thermal-cpufreq-%x" cooling device. 63 supported currently). This power model requires that the operating-points of [all …]
|
H A D | cpu-idle-cooling.rst | 1 .. SPDX-License-Identifier: GPL-2.0 8 ---------- 26 budget lower than the requested one and under-utilize the CPU, thus 27 losing performance. In other words, one OPP under-utilizes the CPU 33 ---------- 42 the control precision of cpufreq, however different vendors have a 48 belong to the same cluster, with a duration greater than the cluster 58 --------------- 63 cpufreq. Ideally, if all CPUs belonging to the same cluster, inject 64 their idle cycles synchronously, the cluster can reach its power down [all …]
|
/openbmc/linux/Documentation/admin-guide/pm/ |
H A D | intel_uncore_frequency_scaling.rst | 1 .. SPDX-License-Identifier: GPL-2.0 8 :Copyright: |copy| 2022-2023 Intel Corporation 13 ------------ 22 the scaling min/max frequencies via cpufreq sysfs to improve CPU performance. 26 use both cpufreq and the uncore scaling interface to distribute power and 30 --------------- 45 This is a read-only attribute. If users adjust max_freq_khz, 50 This is a read-only attribute. If users adjust min_freq_khz, 63 ----------------------------------------------------------------- 66 of mesh partitions. This partition is called fabric cluster. [all …]
|
/openbmc/linux/drivers/base/ |
H A D | arch_topology.c | 1 // SPDX-License-Identifier: GPL-2.0 12 #include <linux/cpufreq.h> 49 * either cpufreq or counter driven. If the support status changes as in update_scale_freq_invariant() 67 * supported by cpufreq. in topology_set_scale_freq_source() 78 if (!sfd || sfd->source != SCALE_FREQ_SOURCE_ARCH) { in topology_set_scale_freq_source() 101 if (sfd && sfd->source == source) { in topology_clear_scale_freq_source() 111 * use-after-free races. in topology_clear_scale_freq_source() 124 sfd->set_freq_scale(); in topology_scale_freq_tick() 141 * want to update the scale factor with information from CPUFREQ. in topology_set_freq_scale() 164 * topology_update_thermal_pressure() - Update thermal pressure for CPUs [all …]
|
/openbmc/linux/drivers/devfreq/ |
H A D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.0-only 15 Like some CPUs with CPUfreq, a device may have multiple clocks. 20 to a device by 1-to-1. The device registering devfreq takes the 38 similar as ONDEMAND governor of CPUFREQ does. A device with 39 Simple-Ondemand should be able to provide busy/total counter 89 PPMU counters of memory controllers by using DEVFREQ-event device 128 which is shared the same regulators with the cpu cluster. It can track
|
/openbmc/linux/arch/arm/mach-versatile/ |
H A D | spc.c | 1 // SPDX-License-Identifier: GPL-2.0-only 12 #include <linux/clk-provider.h> 28 #define SPCLOG "vexpress-spc: " 39 /* SPC wake-up IRQs status and mask */ 46 /* SPC per-CPU mailboxes */ 50 /* SPC CPU/cluster reset statue */ 68 /* wake-up interrupt masks */ 71 /* TC2 static dual-cluster configuration */ 75 * Even though the SPC takes max 3-5 ms to complete any OPP/COMMS 97 * A15s cluster identifier [all …]
|
/openbmc/linux/arch/arm64/boot/dts/qcom/ |
H A D | sdx75.dtsi | 1 // SPDX-License-Identifier: BSD-3-Clause 9 #include <dt-bindings/clock/qcom,rpmh.h> 10 #include <dt-bindings/clock/qcom,sdx75-gcc.h> 11 #include <dt-bindings/interrupt-controller/arm-gic.h> 12 #include <dt-bindings/power/qcom,rpmhpd.h> 13 #include <dt-bindings/power/qcom-rpmpd.h> 14 #include <dt-bindings/soc/qcom,rpmh-rsc.h> 17 #address-cells = <2>; 18 #size-cells = <2>; 19 interrupt-parent = <&intc>; [all …]
|
H A D | qdu1000.dtsi | 1 // SPDX-License-Identifier: BSD-3-Clause 6 #include <dt-bindings/clock/qcom,qdu1000-gcc.h> 7 #include <dt-bindings/clock/qcom,rpmh.h> 8 #include <dt-bindings/dma/qcom-gpi.h> 9 #include <dt-bindings/interconnect/qcom,qdu1000-rpmh.h> 10 #include <dt-bindings/interrupt-controller/arm-gic.h> 11 #include <dt-bindings/power/qcom-rpmpd.h> 12 #include <dt-bindings/soc/qcom,rpmh-rsc.h> 15 interrupt-parent = <&intc>; 17 #address-cells = <2>; [all …]
|
H A D | qcm2290.dtsi | 1 // SPDX-License-Identifier: (GPL-2.0+ OR BSD-3-Clause) 8 #include <dt-bindings/clock/qcom,gcc-qcm2290.h> 9 #include <dt-bindings/clock/qcom,rpmcc.h> 10 #include <dt-bindings/dma/qcom-gpi.h> 11 #include <dt-bindings/firmware/qcom,scm.h> 12 #include <dt-bindings/gpio/gpio.h> 13 #include <dt-bindings/interrupt-controller/arm-gic.h> 14 #include <dt-bindings/power/qcom-rpmpd.h> 17 interrupt-parent = <&intc>; 19 #address-cells = <2>; [all …]
|
/openbmc/linux/Documentation/devicetree/bindings/cpu/ |
H A D | cpu-capacity.txt | 6 1 - Introduction 15 2 - CPU capacity definition 19 heterogeneity. Such heterogeneity can come from micro-architectural differences 23 capture a first-order approximation of the relative performance of CPUs. 29 * A "single-threaded" or CPU affine benchmark 43 3 - capacity-dmips-mhz 46 capacity-dmips-mhz is an optional cpu node [1] property: u32 value 51 capacity-dmips-mhz property is all-or-nothing: if it is specified for a cpu 53 fall back to the default capacity value for every CPU. If cpufreq is not 54 available, final capacities are calculated by directly using capacity-dmips- [all …]
|
/openbmc/linux/drivers/watchdog/ |
H A D | s3c2410_wdt.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 22 #include <linux/cpufreq.h> 71 * DOC: Quirk flags for different Samsung watchdog IP-cores 76 * differences in both watchdog and PMU IP-cores should be accounted for. Quirk 83 * write-only, writing any values to this register clears the interrupt, but 135 * struct s3c2410_wdt_variant - Per-variant config data 267 { .compatible = "samsung,s3c2410-wdt", 269 { .compatible = "samsung,s3c6410-wdt", 271 { .compatible = "samsung,exynos5250-wdt", 273 { .compatible = "samsung,exynos5420-wdt", [all …]
|
/openbmc/linux/drivers/thermal/ |
H A D | hisi_thermal.c | 1 // SPDX-License-Identifier: GPL-2.0-only 5 * Copyright (c) 2014-2015 HiSilicon Limited. 6 * Copyright (c) 2014-2015 Linaro Limited. 12 #include <linux/cpufreq.h> 40 #define HI6220_TEMP_BASE (-60000) 45 #define HI3660_TEMP_BASE (-63780) 88 * Temperature base: -60°C 91 * millidegree and begins at -60 000 m°C 99 * steps = (Temp - TempBase) / 785 109 return DIV_ROUND_UP(temp - HI6220_TEMP_BASE, HI6220_TEMP_STEP); in hi6220_thermal_temp_to_step() [all …]
|