Home
last modified time | relevance | path

Searched +full:opp +full:- +full:table (Results 1 – 25 of 280) sorted by relevance

12345678910>>...12

/OK3568_Linux_fs/kernel/drivers/opp/
H A Dcpu.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * Generic OPP helper interface for CPU device
5 * Copyright (C) 2009-2014 Texas Instruments Incorporated.
20 #include "opp.h"
25 * dev_pm_opp_init_cpufreq_table() - create a cpufreq table for a device
27 * @table: Cpufreq table returned back to caller
29 * Generate a cpufreq table for a provided device- this assumes that the
30 * opp table is already initialized and ready for usage.
32 * This function allocates required memory for the cpufreq table. It is
34 * the table as required.
[all …]
H A Dof.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * Generic OPP OF helpers
5 * Copyright (C) 2009-2010 Texas Instruments Incorporated.
22 #include "opp.h"
25 * Returns opp descriptor node for a device node, caller must
31 /* "operating-points-v2" can be an array for power domain providers */ in _opp_of_get_opp_desc_node()
32 return of_parse_phandle(np, "operating-points-v2", index); in _opp_of_get_opp_desc_node()
35 /* Returns opp descriptor node for a device, caller must do of_node_put() */
38 return _opp_of_get_opp_desc_node(dev->of_node, 0); in dev_pm_opp_of_get_opp_desc_node()
47 np = _opp_of_get_opp_desc_node(dev->of_node, index); in _managed_opp()
[all …]
H A Dcore.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * Generic OPP Interface
5 * Copyright (C) 2009-2010 Texas Instruments Incorporated.
22 #include "opp.h"
25 * The root of the list of all opp-tables. All opp_table structures branch off
30 /* Lock to allow exclusive modification to the device and opp lists */
38 list_for_each_entry(opp_dev, &opp_table->dev_list, node) in _find_opp_dev()
39 if (opp_dev->dev == dev) in _find_opp_dev()
51 mutex_lock(&opp_table->lock); in _find_opp_table_unlocked()
53 mutex_unlock(&opp_table->lock); in _find_opp_table_unlocked()
[all …]
H A Dopp.h1 /* SPDX-License-Identifier: GPL-2.0-only */
3 * Generic OPP Interface
5 * Copyright (C) 2009-2010 Texas Instruments Incorporated.
26 /* Lock to allow exclusive modification to the device and opp lists */
32 * Internal data structure organization with the OPP layer library is as
35 * |- device 1 (represents voltage domain 1)
36 * | |- opp 1 (availability, freq, voltage)
37 * | |- opp 2 ..
39 * | `- opp n ..
40 * |- device 2 (represents the next voltage domain)
[all …]
H A Dti-opp-supply.c1 // SPDX-License-Identifier: GPL-2.0
3 * Copyright (C) 2016-2017 Texas Instruments Incorporated - https://www.ti.com/
5 * Dave Gerlach <d-gerlach@ti.com>
7 * TI OPP supply driver that provides override into the regulator control
8 * for generic opp core to handle devices with ABB regulator and/or
25 * struct ti_opp_supply_optimum_voltage_table - optimized voltage table
35 * struct ti_opp_supply_data - OMAP specific opp supply data
36 * @vdd_table: Optimized voltage mapping table
49 * struct ti_opp_supply_of_data - device tree match data
50 * @flags: specific type of opp supply
[all …]
/OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/power/
H A Dqcom,rpmpd.yaml1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
3 ---
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - Rajendra Nayak <rnayak@codeaurora.org>
19 - qcom,msm8976-rpmpd
20 - qcom,msm8996-rpmpd
21 - qcom,msm8998-rpmpd
22 - qcom,qcs404-rpmpd
23 - qcom,sc7180-rpmhpd
24 - qcom,sdm845-rpmhpd
[all …]
H A Dmali-opp.txt1 # SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note
3 # (C) COPYRIGHT 2017, 2019-2021 ARM Limited. All rights reserved.
17 # http://www.gnu.org/licenses/gpl-2.0.html.
22 * ARM Mali Midgard OPP
24 * OPP Table Node
30 - compatible: Allow OPPs to express their compatibility. It should be:
31 "operating-points-v2", "operating-points-v2-mali".
33 - OPP nodes: One or more OPP nodes describing voltage-current-frequency
35 reference an OPP.
37 * OPP Node
[all …]
H A Dpower_domain.txt12 #power-domain-cells property in the PM domain provider node.
16 See power-domain.yaml.
21 - power-domains : A list of PM domain specifiers, as defined by bindings of
25 - power-domain-names : A list of power domain name strings sorted in the same
26 order as the power-domains property. Consumers drivers will use
27 power-domain-names to match power domains with power-domains
32 leaky-device@12350000 {
33 compatible = "foo,i-leak-current";
35 power-domains = <&power 0>;
36 power-domain-names = "io";
[all …]
/OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/cpufreq/
H A Dti-cpufreq.txt1 TI CPUFreq and OPP bindings
6 The ti-cpufreq driver can use revision and an efuse value from the SoC to
7 provide the OPP framework with supported hardware information. This is
8 used to determine which OPPs from the operating-points-v2 table get enabled
9 when it is parsed by the OPP framework.
12 --------------------
14 - operating-points-v2: Phandle to the operating-points-v2 table to use.
16 In 'operating-points-v2' table:
17 - compatible: Should be
18 - 'operating-points-v2-ti-cpu' for am335x, am43xx, and dra7xx/am57xx,
[all …]
/OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/opp/
H A Dopp.txt1 Generic OPP (Operating Performance Points) Bindings
2 ----------------------------------------------------
4 Devices work at voltage-current-frequency combinations and some implementations
10 This document contain multiple versions of OPP binding and only one of them
13 Binding 1: operating-points
16 This binding only supports voltage-frequency pairs.
19 - operating-points: An array of 2-tuples items, and each item consists
20 of frequency and voltage like <freq-kHz vol-uV>.
27 compatible = "arm,cortex-a9";
29 next-level-cache = <&L2>;
[all …]
H A Dqcom-nvmem-cpufreq.txt1 Qualcomm Technologies, Inc. NVMEM CPUFreq and OPP bindings
5 the CPU frequencies subset and voltage value of each OPP varies based on
8 defines the voltage and frequency value based on the msm-id in SMEM
10 The qcom-cpufreq-nvmem driver reads the msm-id and efuse value from the SoC
11 to provide the OPP framework with required information (existing HW bitmap).
12 This is used to determine the voltage and frequency value for each OPP of
13 operating-points-v2 table when it is parsed by the OPP framework.
16 --------------------
18 - operating-points-v2: Phandle to the operating-points-v2 table to use.
20 In 'operating-points-v2' table:
[all …]
/OK3568_Linux_fs/kernel/arch/arm64/boot/dts/amlogic/
H A Dmeson-g12b-s922x.dtsi1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
7 #include "meson-g12b.dtsi"
10 cpu_opp_table_0: opp-table-0 {
11 compatible = "operating-points-v2";
12 opp-shared;
14 opp-1000000000 {
15 opp-hz = /bits/ 64 <1000000000>;
16 opp-microvolt = <731000>;
19 opp-1200000000 {
20 opp-hz = /bits/ 64 <1200000000>;
[all …]
H A Dmeson-g12b-a311d.dtsi1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
7 #include "meson-g12b.dtsi"
10 cpu_opp_table_0: opp-table-0 {
11 compatible = "operating-points-v2";
12 opp-shared;
14 opp-1000000000 {
15 opp-hz = /bits/ 64 <1000000000>;
16 opp-microvolt = <761000>;
19 opp-1200000000 {
20 opp-hz = /bits/ 64 <1200000000>;
[all …]
/OK3568_Linux_fs/kernel/drivers/soc/rockchip/
H A Drockchip_opp_select.c4 * SPDX-License-Identifier: GPL-2.0+
12 #include <linux/nvmem-consumer.h>
23 #include "../../opp/opp.h"
88 * conv = exp(-ln(1.2) / 5 * (temp - 23)) * 100
154 return -EINVAL; in rockchip_nvmem_cell_read_common()
178 struct sel_table **table) in rockchip_get_sel_table() argument
186 return -EINVAL; in rockchip_get_sel_table()
188 if (!prop->value) in rockchip_get_sel_table()
189 return -ENODATA; in rockchip_get_sel_table()
193 return -EINVAL; in rockchip_get_sel_table()
[all …]
H A Drockchip_system_monitor.c1 // SPDX-License-Identifier: GPL-2.0
4 * Author: Finley Xiao <finley.xiao@rock-chips.com>
7 #include <dt-bindings/soc/rockchip-system-status.h>
8 #include <linux/clk-provider.h>
35 #include <soc/rockchip/rockchip-system-status.h>
37 #include "../../gpu/drm/rockchip/ebc-dev/ebc_dev.h"
38 #include "../../opp/opp.h"
130 single_status_offset = fls(status) - 1; in rockchip_set_system_status()
154 single_status_offset = fls(status) - 1; in rockchip_clear_system_status()
161 ref_count[single_status_offset]--; in rockchip_clear_system_status()
[all …]
/OK3568_Linux_fs/kernel/drivers/cpufreq/
H A Dqcom-cpufreq-hw.c1 // SPDX-License-Identifier: GPL-2.0
46 struct dev_pm_opp *opp; in qcom_cpufreq_set_bw() local
50 dev = get_cpu_device(policy->cpu); in qcom_cpufreq_set_bw()
52 return -ENODEV; in qcom_cpufreq_set_bw()
54 opp = dev_pm_opp_find_freq_exact(dev, freq_hz, true); in qcom_cpufreq_set_bw()
55 if (IS_ERR(opp)) in qcom_cpufreq_set_bw()
56 return PTR_ERR(opp); in qcom_cpufreq_set_bw()
58 ret = dev_pm_opp_set_bw(dev, opp); in qcom_cpufreq_set_bw()
59 dev_pm_opp_put(opp); in qcom_cpufreq_set_bw()
70 /* Skip voltage update if the opp table is not available */ in qcom_cpufreq_update_opp()
[all …]
/OK3568_Linux_fs/kernel/drivers/devfreq/
H A Dgovernor_passive.c1 // SPDX-License-Identifier: GPL-2.0-only
19 = (struct devfreq_passive_data *)devfreq->data; in devfreq_passive_get_target_freq()
20 struct devfreq *parent_devfreq = (struct devfreq *)p_data->parent; in devfreq_passive_get_target_freq()
22 struct dev_pm_opp *opp; in devfreq_passive_get_target_freq() local
30 if (p_data->get_target_freq) { in devfreq_passive_get_target_freq()
31 ret = p_data->get_target_freq(devfreq, freq); in devfreq_passive_get_target_freq()
36 * If the parent and passive devfreq device uses the OPP table, in devfreq_passive_get_target_freq()
37 * get the next frequency by using the OPP table. in devfreq_passive_get_target_freq()
41 * - parent devfreq device uses the governors except for passive. in devfreq_passive_get_target_freq()
42 * - passive devfreq device uses the passive governor. in devfreq_passive_get_target_freq()
[all …]
H A Drockchip_bus.c1 // SPDX-License-Identifier: GPL-2.0
4 * Author: Tony Xie <tony.xie@rock-chips.com>
7 #include <linux/arm-smccc.h>
50 * Busfreq-policy-cpufreq:
72 struct device *dev = bus->dev; in rockchip_bus_smc_config()
73 struct device_node *np = dev->of_node; in rockchip_bus_smc_config()
76 char *prp_name = "rockchip,soc-bus-table"; in rockchip_bus_smc_config()
77 u32 *table = NULL; in rockchip_bus_smc_config() local
81 ret = of_property_read_u32_index(child, "bus-id", 0, in rockchip_bus_smc_config()
86 ret = of_property_read_u32_index(child, "cfg-val", 0, in rockchip_bus_smc_config()
[all …]
/OK3568_Linux_fs/kernel/arch/arm/boot/dts/
H A Domap34xx.dtsi4 * Copyright (C) 2013 Texas Instruments Incorporated - https://www.ti.com/
11 #include <dt-bindings/bus/ti-sysc.h>
12 #include <dt-bindings/media/omap3-isp.h>
19 /* OMAP343x/OMAP35xx variants OPP1-6 */
20 operating-points-v2 = <&cpu0_opp_table>;
22 clock-latency = <300000>; /* From legacy driver */
23 #cooling-cells = <2>;
27 /* see Documentation/devicetree/bindings/opp/opp.txt */
28 cpu0_opp_table: opp-table {
29 compatible = "operating-points-v2-ti-cpu";
[all …]
H A Domap36xx.dtsi4 * Copyright (C) 2012 Texas Instruments Incorporated - https://www.ti.com/
11 #include <dt-bindings/bus/ti-sysc.h>
12 #include <dt-bindings/media/omap3-isp.h>
24 operating-points-v2 = <&cpu0_opp_table>;
26 vbb-supply = <&abb_mpu_iva>;
27 clock-latency = <300000>; /* From omap-cpufreq driver */
28 #cooling-cells = <2>;
32 /* see Documentation/devicetree/bindings/opp/opp.txt */
33 cpu0_opp_table: opp-table {
34 compatible = "operating-points-v2-ti-cpu";
[all …]
/OK3568_Linux_fs/kernel/drivers/thermal/
H A Ddevfreq_cooling.c1 // SPDX-License-Identifier: GPL-2.0
6 * Copyright (C) 2014-2015 ARM Limited
9 * - If OPPs are added or removed after devfreq cooling has
30 * struct devfreq_cooling_device - Devfreq cooling device
36 * @power_table: Pointer to table with maximum power draw for each
37 * cooling state. State is the index into the table, and
39 * @freq_table: Pointer to a table with the frequencies sorted in descending
40 * order. You can index the table by cooling device state
71 struct devfreq_cooling_device *dfc = cdev->devdata; in devfreq_cooling_get_max_state()
73 *state = dfc->freq_table_size - 1; in devfreq_cooling_get_max_state()
[all …]
/OK3568_Linux_fs/kernel/Documentation/power/
H A Dopp.rst2 Operating Performance Points (OPP) Library
5 (C) 2009-2010 Nishanth Menon <nm@ti.com>, Texas Instruments Incorporated
10 2. Initial OPP List Registration
11 3. OPP Search Functions
12 4. OPP Availability Control Functions
13 5. OPP Data Retrieval Functions
19 1.1 What is an Operating Performance Point (OPP)?
20 -------------------------------------------------
22 Complex SoCs of today consists of a multiple sub-modules working in conjunction.
25 facilitate this, sub-modules in a SoC are grouped into domains, allowing some
[all …]
/OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/devfreq/
H A Dexynos-bus.txt4 and sub-blocks in SoC. Most Exynos SoCs share the common architecture
9 is able to measure the current load of sub-blocks.
11 The Exynos SoC includes the various sub-blocks which have the each AXI bus.
13 power line. The power line might be shared among one more sub-blocks.
14 So, we can divide into two type of device as the role of each sub-block.
16 - parent bus device
17 - passive bus device
26 VDD_xxx |--- A block (parent)
27 |--- B block (passive)
28 |--- C block (passive)
[all …]
/OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/power/avs/
H A Dqcom,cpr.txt4 or other device. Each OPP of a device corresponds to a "corner" that has
10 - compatible:
13 Definition: should be "qcom,qcs404-cpr", "qcom,cpr" for qcs404
15 - reg:
17 Value type: <prop-encoded-array>
20 - interrupts:
22 Value type: <prop-encoded-array>
25 - clocks:
27 Value type: <prop-encoded-array>
30 - clock-names:
[all …]
/OK3568_Linux_fs/u-boot/drivers/power/dvfs/
H A Drockchip_wtemp_dvfs.c1 // SPDX-License-Identifier: GPL-2.0
21 * 1. U-Boot parse cpu/dmc opp table from kernel dtb, anyone of
22 * "rockchip,low-temp = <...>" and "rockchip,high-temp = <...>" present in
25 * 1.1. When temperature trigger "rockchip,low-temp", increase 50mv voltage
26 * as target voltage. If target voltage is over "rockchip,max-volt",
27 * just set "rockchip,max-volt" as target voltage and lower 2 level freq,
29 * 1.2. When temperature trigger "rockchip,high-temp", just apply opp table[0]
32 * 2. U-Boot parse cpu/dmc thermal zone "trip-point-0" temperature from kernel
43 * uboot-wide-temperature {
45 * compatible = "rockchip,uboot-wide-temperature";
[all …]

12345678910>>...12