Commit 690e16ba authored by Oskari Lemmela's avatar Oskari Lemmela Committed by Heiko Stuebner

arm64: dts: rockchip: fix rk3399-rockpro64 regulator gpios

Rockpro64 is not able boot if GPIO1_C1 pin is pulled high
before loading linux kernel.

In rockpro64 GPIO1_C1 pin is connected vdd_cpu_b regulator
VSEL pin. Pin should be pulled down in normal operation and
pulled high in suspend.

PMIC LDO_REG2 is connected to touch panel connector.
Rename regulator and set it to correct voltage.

PCIe power is controller by GPIO1_D0.

Schematics can be downloaded from:
http://files.pine64.org/doc/rockpro64/rockpro64_v21-SCH.pdfSigned-off-by: default avatarOskari Lemmela <oskari@lemmela.net>
Acked-by: default avatarAkash Gajjar <Akash_Gajjar@mentor.com>
Signed-off-by: default avatarHeiko Stuebner <heiko@sntech.de>
parent c1d91f86
...@@ -97,7 +97,7 @@ vcc1v8_s3: vcca1v8_s3: vcc1v8-s3 { ...@@ -97,7 +97,7 @@ vcc1v8_s3: vcca1v8_s3: vcc1v8-s3 {
vcc3v3_pcie: vcc3v3-pcie-regulator { vcc3v3_pcie: vcc3v3-pcie-regulator {
compatible = "regulator-fixed"; compatible = "regulator-fixed";
enable-active-high; enable-active-high;
gpio = <&gpio1 RK_PC1 GPIO_ACTIVE_HIGH>; gpio = <&gpio1 RK_PD0 GPIO_ACTIVE_HIGH>;
pinctrl-names = "default"; pinctrl-names = "default";
pinctrl-0 = <&pcie_pwr_en>; pinctrl-0 = <&pcie_pwr_en>;
regulator-name = "vcc3v3_pcie"; regulator-name = "vcc3v3_pcie";
...@@ -293,12 +293,12 @@ regulator-state-mem { ...@@ -293,12 +293,12 @@ regulator-state-mem {
}; };
}; };
vcc2v8_dvp: LDO_REG2 { vcc3v0_touch: LDO_REG2 {
regulator-name = "vcc2v8_dvp"; regulator-name = "vcc3v0_touch";
regulator-always-on; regulator-always-on;
regulator-boot-on; regulator-boot-on;
regulator-min-microvolt = <2800000>; regulator-min-microvolt = <3000000>;
regulator-max-microvolt = <2800000>; regulator-max-microvolt = <3000000>;
regulator-state-mem { regulator-state-mem {
regulator-off-in-suspend; regulator-off-in-suspend;
}; };
...@@ -397,7 +397,9 @@ regulator-state-mem { ...@@ -397,7 +397,9 @@ regulator-state-mem {
vdd_cpu_b: regulator@40 { vdd_cpu_b: regulator@40 {
compatible = "silergy,syr827"; compatible = "silergy,syr827";
reg = <0x40>; reg = <0x40>;
fcs,suspend-voltage-selector = <0>; fcs,suspend-voltage-selector = <1>;
pinctrl-names = "default";
pinctrl-0 = <&vsel1_gpio>;
regulator-name = "vdd_cpu_b"; regulator-name = "vdd_cpu_b";
regulator-min-microvolt = <712500>; regulator-min-microvolt = <712500>;
regulator-max-microvolt = <1500000>; regulator-max-microvolt = <1500000>;
...@@ -415,6 +417,8 @@ vdd_gpu: regulator@41 { ...@@ -415,6 +417,8 @@ vdd_gpu: regulator@41 {
compatible = "silergy,syr828"; compatible = "silergy,syr828";
reg = <0x41>; reg = <0x41>;
fcs,suspend-voltage-selector = <1>; fcs,suspend-voltage-selector = <1>;
pinctrl-names = "default";
pinctrl-0 = <&vsel2_gpio>;
regulator-name = "vdd_gpu"; regulator-name = "vdd_gpu";
regulator-min-microvolt = <712500>; regulator-min-microvolt = <712500>;
regulator-max-microvolt = <1500000>; regulator-max-microvolt = <1500000>;
...@@ -519,7 +523,7 @@ lcd_panel_reset: lcd-panel-reset { ...@@ -519,7 +523,7 @@ lcd_panel_reset: lcd-panel-reset {
pcie { pcie {
pcie_pwr_en: pcie-pwr-en { pcie_pwr_en: pcie-pwr-en {
rockchip,pins = <1 RK_PC1 RK_FUNC_GPIO &pcfg_pull_none>; rockchip,pins = <1 RK_PD0 RK_FUNC_GPIO &pcfg_pull_none>;
}; };
}; };
...@@ -529,7 +533,7 @@ pmic_int_l: pmic-int-l { ...@@ -529,7 +533,7 @@ pmic_int_l: pmic-int-l {
}; };
vsel1_gpio: vsel1-gpio { vsel1_gpio: vsel1-gpio {
rockchip,pins = <1 RK_PC2 RK_FUNC_GPIO &pcfg_pull_down>; rockchip,pins = <1 RK_PC1 RK_FUNC_GPIO &pcfg_pull_down>;
}; };
vsel2_gpio: vsel2-gpio { vsel2_gpio: vsel2-gpio {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment