mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/chenhuacai/linux-loongson
synced 2025-09-03 09:37:17 +00:00
arm64: dts: mediatek: cherry: Enable MT6315 regulators on SPMI bus
All machines in the Cherry platform use MT6315 over SPMI: add the two instances, providing Vbcpu and Vgpu regulators. Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com> Tested-by: Chen-Yu Tsai <wenst@chromium.org> Link: https://lore.kernel.org/r/20220902081156.38526-8-angelogioacchino.delregno@collabora.com Signed-off-by: Matthias Brugger <matthias.bgg@gmail.com>
This commit is contained in:
parent
b53f37249c
commit
260c04d425
@ -4,6 +4,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include <dt-bindings/gpio/gpio.h>
|
#include <dt-bindings/gpio/gpio.h>
|
||||||
|
#include <dt-bindings/spmi/spmi.h>
|
||||||
#include "mt8195.dtsi"
|
#include "mt8195.dtsi"
|
||||||
#include "mt6359.dtsi"
|
#include "mt6359.dtsi"
|
||||||
|
|
||||||
@ -832,6 +833,47 @@ usb_c1: connector@1 {
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
&spmi {
|
||||||
|
#address-cells = <2>;
|
||||||
|
#size-cells = <0>;
|
||||||
|
|
||||||
|
mt6315@6 {
|
||||||
|
compatible = "mediatek,mt6315-regulator";
|
||||||
|
reg = <0x6 SPMI_USID>;
|
||||||
|
|
||||||
|
regulators {
|
||||||
|
mt6315_6_vbuck1: vbuck1 {
|
||||||
|
regulator-compatible = "vbuck1";
|
||||||
|
regulator-name = "Vbcpu";
|
||||||
|
regulator-min-microvolt = <300000>;
|
||||||
|
regulator-max-microvolt = <1193750>;
|
||||||
|
regulator-enable-ramp-delay = <256>;
|
||||||
|
regulator-ramp-delay = <6250>;
|
||||||
|
regulator-allowed-modes = <0 1 2>;
|
||||||
|
regulator-always-on;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
mt6315@7 {
|
||||||
|
compatible = "mediatek,mt6315-regulator";
|
||||||
|
reg = <0x7 SPMI_USID>;
|
||||||
|
|
||||||
|
regulators {
|
||||||
|
mt6315_7_vbuck1: vbuck1 {
|
||||||
|
regulator-compatible = "vbuck1";
|
||||||
|
regulator-name = "Vgpu";
|
||||||
|
regulator-min-microvolt = <625000>;
|
||||||
|
regulator-max-microvolt = <1193750>;
|
||||||
|
regulator-enable-ramp-delay = <256>;
|
||||||
|
regulator-ramp-delay = <6250>;
|
||||||
|
regulator-allowed-modes = <0 1 2>;
|
||||||
|
regulator-always-on;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
&u3phy0 {
|
&u3phy0 {
|
||||||
status = "okay";
|
status = "okay";
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user