Devfreq bindings
Single-page view · as markdown
Rockchip DFI
Peios Kernel / Hardware and drivers / Device-tree binding reference / Devfreq bindings / event
Schema identifier ($id): "http://devicetree.org/schemas/devfreq/event/rockchip,dfi.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Sascha Hauer <s.hauer@pengutronix.de>"
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "rockchip,rk3399-dfi", "rockchip,rk3568-dfi", "rockchip,rk3588-dfi"
clocks — not listed as required here #
Maximum number of items (maxItems): 1
clock-names — not listed as required here #
Array item rules (items) #
Item 1
Exact value (
const):"pclk_ddr_mon"
interrupts — required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 4
reg — required here #
Maximum number of items (maxItems): 1
rockchip,pmu — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle
Phandle to the syscon managing the "PMU general register files".
Required in this object (required): "compatible", "interrupts", "reg"
Condition (if) #
Properties and child nodes (
properties) #
compatible— not listed as required here #Rule for matching array elements (
contains)
When the condition matches (then) #
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/clock/rk3308-cru.h>
bus {
#address-cells = <2>;
#size-cells = <2>;
dfi: dfi@ff630000 {
compatible = "rockchip,rk3399-dfi";
reg = <0x00 0xff630000 0x00 0x4000>;
interrupts = <GIC_SPI 131 IRQ_TYPE_LEVEL_HIGH 0>;
rockchip,pmu = <&pmugrf>;
clocks = <&cru PCLK_DDR_MON>;
clock-names = "pclk_ddr_mon";
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Samsung Exynos NoC (Network on Chip) Probe
Peios Kernel / Hardware and drivers / Device-tree binding reference / Devfreq bindings / event
Schema identifier ($id): "http://devicetree.org/schemas/devfreq/event/samsung,exynos-nocp.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Chanwoo Choi <cw00.choi@samsung.com>", "Krzysztof Kozlowski <krzk@kernel.org>"
The Samsung Exynos542x SoC has a NoC (Network on Chip) Probe for NoC bus. NoC provides the primitive values to get the performance data. The packets that the Network on Chip (NoC) probes detects are transported over the network infrastructure to observer units. You can configure probes to capture packets with header or data on the data request response network, or as traffic debug or statistic collectors. Exynos542x bus has multiple NoC probes to provide bandwidth information about behavior of the SoC that you can use while analyzing system performance.
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "samsung,exynos5420-nocp"
clock-names — not listed as required here #
Array item rules (items) #
Item 1
Exact value (
const):"nocp"
clocks — not listed as required here #
Maximum number of items (maxItems): 1
reg — required here #
Maximum number of items (maxItems): 1
Required in this object (required): "compatible", "reg"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
nocp_mem0_0: nocp@10ca1000 {
compatible = "samsung,exynos5420-nocp";
reg = <0x10ca1000 0x200>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0
Samsung Exynos SoC PPMU (Platform Performance Monitoring Unit)
Peios Kernel / Hardware and drivers / Device-tree binding reference / Devfreq bindings / event
Schema identifier ($id): "http://devicetree.org/schemas/devfreq/event/samsung,exynos-ppmu.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Chanwoo Choi <cw00.choi@samsung.com>", "Krzysztof Kozlowski <krzk@kernel.org>"
The Samsung Exynos SoC has PPMU (Platform Performance Monitoring Unit) for each IP. PPMU provides the primitive values to get performance data. These PPMU events provide information of the SoC's behaviors so that you may use to analyze system performance, to make behaviors visible and to count usages of each IP (DMC, CPU, RIGHTBUS, LEFTBUS, CAM interface, LCD, G3D, MFC). The Exynos PPMU driver uses the devfreq-event class to provide event data to various devfreq devices. The devfreq devices would use the event data when determining the current state of each IP.
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "samsung,exynos-ppmu", "samsung,exynos-ppmu-v2"
clock-names — not listed as required here #
Array item rules (items) #
Item 1
Exact value (
const):"ppmu"
clocks — not listed as required here #
Maximum number of items (maxItems): 1
reg — required here #
Maximum number of items (maxItems): 1
events — not listed as required here #
Value type (type): "object"
Properties matching a name pattern (patternProperties) #
^ppmu-event[0-9]+(-[a-z0-9]+){,2}$ — name matches this regular expression
Value type (type): "object"
Properties and child nodes (properties)
event-name — required here
The unique event name among PPMU device
Shared schema rule ($ref): /schemas/types.yaml#/definitions/string
event-data-type — not listed as required here
Define the type of data which shell be counted by the counter. You can check include/dt-bindings/pmu/exynos_ppmu.h for all possible type, i.e. count read requests, count write data in bytes, etc. This field is optional and when it is missing, the driver code will use default data type.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Required in this object (required): "event-name"
Properties not matched by properties or patternProperties in this schema (additionalProperties)
false
Not allowed by this rule.
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Required in this object (required): "compatible", "reg"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
// PPMUv1 nodes for Exynos3250 (although the board DTS defines events)
#include <dt-bindings/clock/exynos3250.h>
ppmu_dmc0: ppmu@106a0000 {
compatible = "samsung,exynos-ppmu";
reg = <0x106a0000 0x2000>;
events {
ppmu_dmc0_3: ppmu-event3-dmc0 {
event-name = "ppmu-event3-dmc0";
};
ppmu_dmc0_2: ppmu-event2-dmc0 {
event-name = "ppmu-event2-dmc0";
};
ppmu_dmc0_1: ppmu-event1-dmc0 {
event-name = "ppmu-event1-dmc0";
};
ppmu_dmc0_0: ppmu-event0-dmc0 {
event-name = "ppmu-event0-dmc0";
};
};
};
ppmu_rightbus: ppmu@112a0000 {
compatible = "samsung,exynos-ppmu";
reg = <0x112a0000 0x2000>;
clocks = <&cmu CLK_PPMURIGHT>;
clock-names = "ppmu";
events {
ppmu_rightbus_3: ppmu-event3-rightbus {
event-name = "ppmu-event3-rightbus";
};
};
};
// PPMUv2 nodes in Exynos5433
ppmu_d0_cpu: ppmu@10480000 {
compatible = "samsung,exynos-ppmu-v2";
reg = <0x10480000 0x2000>;
};
ppmu_d0_general: ppmu@10490000 {
compatible = "samsung,exynos-ppmu-v2";
reg = <0x10490000 0x2000>;
events {
ppmu_event0_d0_general: ppmu-event0-d0-general {
event-name = "ppmu-event0-d0-general";
};
};
};
ppmu_d0_rt: ppmu@104a0000 {
compatible = "samsung,exynos-ppmu-v2";
reg = <0x104a0000 0x2000>;
};
ppmu_d1_cpu: ppmu@104b0000 {
compatible = "samsung,exynos-ppmu-v2";
reg = <0x104b0000 0x2000>;
};
ppmu_d1_general: ppmu@104c0000 {
compatible = "samsung,exynos-ppmu-v2";
reg = <0x104c0000 0x2000>;
};
ppmu_d1_rt: ppmu@104d0000 {
compatible = "samsung,exynos-ppmu-v2";
reg = <0x104d0000 0x2000>;
};
// PPMUv1 nodes with event-data-type for Exynos4412
#include <dt-bindings/pmu/exynos_ppmu.h>
ppmu@106a0000 {
compatible = "samsung,exynos-ppmu";
reg = <0x106a0000 0x2000>;
clocks = <&clock 400>;
clock-names = "ppmu";
events {
ppmu-event3-dmc0 {
event-name = "ppmu-event3-dmc0";
event-data-type = <(PPMU_RO_DATA_CNT |
PPMU_WO_DATA_CNT)>;
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0
NVIDIA Tegra30 Activity Monitor
Peios Kernel / Hardware and drivers / Device-tree binding reference / Devfreq bindings
Schema identifier ($id): "http://devicetree.org/schemas/devfreq/nvidia,tegra30-actmon.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Dmitry Osipenko <digetx@gmail.com>", "Jon Hunter <jonathanh@nvidia.com>", "Thierry Reding <thierry.reding@gmail.com>"
The activity monitor block collects statistics about the behaviour of other components in the system. This information can be used to derive the rate at which the external memory needs to be clocked in order to serve all requests from the monitored clients.
Properties and child nodes (properties) #
compatible — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Allowed values (
enum):"nvidia,tegra30-actmon","nvidia,tegra114-actmon","nvidia,tegra124-actmon"
Rule 2
Array item rules (
items)Item 1
Exact value (
const):"nvidia,tegra210-actmon"Item 2
Exact value (
const):"nvidia,tegra124-actmon"
reg — required here #
Maximum number of items (maxItems): 1
clocks — required here #
Maximum number of items (maxItems): 2
clock-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"actmon"
Item 2
Exact value (
const):"emc"
resets — required here #
Maximum number of items (maxItems): 1
reset-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"actmon"
interrupts — required here #
Maximum number of items (maxItems): 1
interconnects — required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 12
interconnect-names — required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 12
Should include name of the interconnect path for each interconnect entry. Consult TRM documentation for information about available memory clients, see MEMORY CONTROLLER and ACTIVITY MONITOR sections.
operating-points-v2 — required here #
Should contain freqs and voltages and opp-supported-hw property, which is a bitfield indicating SoC speedo ID mask.
#cooling-cells — required here #
Exact value (const): 2
Required in this object (required): "compatible", "reg", "clocks", "clock-names", "resets", "reset-names", "interrupts", "interconnects", "interconnect-names", "operating-points-v2", "#cooling-cells"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/memory/tegra30-mc.h>
mc: memory-controller@7000f000 {
compatible = "nvidia,tegra30-mc";
reg = <0x7000f000 0x400>;
clocks = <&clk 32>;
clock-names = "mc";
interrupts = <0 77 4>;
#iommu-cells = <1>;
#reset-cells = <1>;
#interconnect-cells = <1>;
};
emc: external-memory-controller@7000f400 {
compatible = "nvidia,tegra30-emc";
reg = <0x7000f400 0x400>;
interrupts = <0 78 4>;
clocks = <&clk 57>;
nvidia,memory-controller = <&mc>;
operating-points-v2 = <&dvfs_opp_table>;
power-domains = <&domain>;
#interconnect-cells = <0>;
};
actmon@6000c800 {
compatible = "nvidia,tegra30-actmon";
reg = <0x6000c800 0x400>;
interrupts = <0 45 4>;
clocks = <&clk 119>, <&clk 57>;
clock-names = "actmon", "emc";
resets = <&rst 119>;
reset-names = "actmon";
operating-points-v2 = <&dvfs_opp_table>;
interconnects = <&mc TEGRA30_MC_MPCORER &emc>;
interconnect-names = "cpu-read";
#cooling-cells = <2>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)