mirror of
https://github.com/Evolution-X-Devices/kernel_xiaomi_sm8450-devicetrees
synced 2026-02-01 08:51:30 +00:00
bindings: regulator: gdsc: Add support for qcom,clk-ctrl bindings
Add support for qcom,clk-ctrl bindings to enable/disable few clocks before GDSC enable/disable. Change-Id: Idf10902362b940e45758fcfe5aaa563a5b72d53d
This commit is contained in:
committed by
Gerrit - the friendly Code Review server
parent
75330102e6
commit
781875d23e
@@ -71,6 +71,13 @@ Optional properties:
|
||||
of the register.
|
||||
- no-config-gdscr : Presence denotes HW only supports a single register
|
||||
per GDSC.
|
||||
- qcom,clk-ctrl: If present, few clocks will be enabled/disabled before the GDSC
|
||||
enable/disable. This property can contain a 2D array of 4
|
||||
arguments in each row, each row represents one of the clocks.First
|
||||
element in row would be a phandle to the clock controller node
|
||||
that contains the clk to be controlled, second would be offset
|
||||
address of the clk, third would be bit number to control the
|
||||
clk, fourth would be to convey if clk enable is inverted or not.
|
||||
|
||||
Example:
|
||||
gdsc_oxili_gx: qcom,gdsc@fd8c4024 {
|
||||
@@ -94,3 +101,20 @@ Example:
|
||||
regulator-name = "gcc_pcie_1_gdsc";
|
||||
qcom,collapse-vote = <&active_ctrl &sleep_ctrl 1>;
|
||||
};
|
||||
|
||||
/* GDSC clock control */
|
||||
gpu_cc_cx_gdsc: qcom,gdsc@3d99108 {
|
||||
compatible = "qcom,gdsc";
|
||||
reg = <0x3d99108 0x4>;
|
||||
regulator-name = "gpu_cc_cx_gdsc";
|
||||
qcom,clk-ctrl = <&gpucc 0x9130 22 1>;
|
||||
};
|
||||
|
||||
/* GDSC multiple clocks control */
|
||||
gpu_cc_cx_gdsc: qcom,gdsc@3d99108 {
|
||||
compatible = "qcom,gdsc";
|
||||
reg = <0x3d99108 0x4>;
|
||||
regulator-name = "gpu_cc_cx_gdsc";
|
||||
qcom,clk-ctrl = <&gpucc 0x9130 22 1>,
|
||||
<&gcc 0x81018 0 0>;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user