| 1 |
# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) |
| 2 |
%YAML 1.2 |
| 3 |
--- |
| 4 |
$id: http://devicetree.org/schemas/soc/mediatek/mediatek,mt8183-dvfsrc.yaml# |
| 5 |
$schema: http://devicetree.org/meta-schemas/core.yaml# |
| 6 |
|
| 7 |
title: MediaTek Dynamic Voltage and Frequency Scaling Resource Collector (DVFSRC) |
| 8 |
|
| 9 |
description: |
| 10 |
The Dynamic Voltage and Frequency Scaling Resource Collector (DVFSRC) is a |
| 11 |
Hardware module used to collect all the requests from both software and the |
| 12 |
various remote processors embedded into the SoC and decide about a minimum |
| 13 |
operating voltage and a minimum DRAM frequency to fulfill those requests in |
| 14 |
an effort to provide the best achievable performance per watt. |
| 15 |
This hardware IP is capable of transparently performing direct register R/W |
| 16 |
on all of the DVFSRC-controlled regulators and SoC bandwidth knobs. |
| 17 |
|
| 18 |
maintainers: |
| 19 |
- AngeloGioacchino Del Regno <[email protected]> |
| 20 |
- Henry Chen <[email protected]> |
| 21 |
|
| 22 |
properties: |
| 23 |
compatible: |
| 24 |
oneOf: |
| 25 |
- enum: |
| 26 |
- mediatek,mt6893-dvfsrc |
| 27 |
- mediatek,mt8183-dvfsrc |
| 28 |
- mediatek,mt8195-dvfsrc |
| 29 |
- items: |
| 30 |
- const: mediatek,mt8192-dvfsrc |
| 31 |
- const: mediatek,mt8195-dvfsrc |
| 32 |
|
| 33 |
reg: |
| 34 |
maxItems: 1 |
| 35 |
description: DVFSRC common register address and length. |
| 36 |
|
| 37 |
clocks: |
| 38 |
items: |
| 39 |
- description: Clock that drives the DVFSRC MCU |
| 40 |
|
| 41 |
regulators: |
| 42 |
type: object |
| 43 |
$ref: /schemas/regulator/mediatek,mt6873-dvfsrc-regulator.yaml# |
| 44 |
|
| 45 |
interconnect: |
| 46 |
type: object |
| 47 |
$ref: /schemas/interconnect/mediatek,mt8183-emi.yaml# |
| 48 |
|
| 49 |
required: |
| 50 |
- compatible |
| 51 |
- reg |
| 52 |
|
| 53 |
additionalProperties: false |
| 54 |
|
| 55 |
examples: |
| 56 |
- | |
| 57 |
#include <dt-bindings/clock/mt8195-clk.h> |
| 58 |
soc { |
| 59 |
#address-cells = <2>; |
| 60 |
#size-cells = <2>; |
| 61 |
|
| 62 |
system-controller@10012000 { |
| 63 |
compatible = "mediatek,mt8195-dvfsrc"; |
| 64 |
reg = <0 0x10012000 0 0x1000>; |
| 65 |
clocks = <&topckgen CLK_TOP_DVFSRC>; |
| 66 |
|
| 67 |
regulators { |
| 68 |
compatible = "mediatek,mt8195-dvfsrc-regulator"; |
| 69 |
|
| 70 |
dvfsrc_vcore: dvfsrc-vcore { |
| 71 |
regulator-name = "dvfsrc-vcore"; |
| 72 |
regulator-min-microvolt = <550000>; |
| 73 |
regulator-max-microvolt = <750000>; |
| 74 |
regulator-always-on; |
| 75 |
}; |
| 76 |
|
| 77 |
dvfsrc_vscp: dvfsrc-vscp { |
| 78 |
regulator-name = "dvfsrc-vscp"; |
| 79 |
regulator-min-microvolt = <550000>; |
| 80 |
regulator-max-microvolt = <750000>; |
| 81 |
regulator-always-on; |
| 82 |
}; |
| 83 |
}; |
| 84 |
|
| 85 |
emi_icc: interconnect { |
| 86 |
compatible = "mediatek,mt8195-emi"; |
| 87 |
#interconnect-cells = <1>; |
| 88 |
}; |
| 89 |
}; |
| 90 |
}; |