Skip to content

Commit 0052909

Browse files
buluessrkhuangtao
authored andcommitted
arm64: dts: rk3399-box: compatible for rev2 board which cpu_b's vdd gpio is different
Change-Id: Ie7088b526a1a384435136933a5f57c957e2bb5b0 Signed-off-by: buluess.li <buluess.li@rock-chips.com>
1 parent 19e1695 commit 0052909

3 files changed

Lines changed: 18 additions & 42 deletions

File tree

arch/arm64/boot/dts/rockchip/rk3399-box-rev2-android-6.0.dts

Lines changed: 6 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,9 @@
4949
};
5050

5151
&pinctrl {
52+
pinctrl-names = "default";
53+
pinctrl-0 = <&cpt_gpio>;
54+
5255
sdio0 {
5356
sdio0_bus1: sdio0-bus1 {
5457
rockchip,pins =
@@ -106,10 +109,10 @@
106109
};
107110
};
108111

109-
pmic {
110-
vsel1_gpio: vsel1-gpio {
112+
compat {
113+
cpt_gpio: cpt-gpio {
111114
rockchip,pins =
112-
<1 18 RK_FUNC_GPIO &pcfg_pull_up>;
115+
<1 18 RK_FUNC_GPIO &pcfg_output_low>;
113116
};
114117
};
115118
};
@@ -126,14 +129,3 @@
126129
status = "okay";
127130
};
128131
};
129-
130-
&vdd_cpu_b {
131-
vsel-gpios = <&gpio1 18 GPIO_ACTIVE_HIGH>;
132-
fcs,suspend-voltage-selector = <0>;
133-
};
134-
135-
&rockchip_suspend {
136-
rockchip,power-ctrl =
137-
<&gpio1 18 GPIO_ACTIVE_LOW>,
138-
<&gpio1 14 GPIO_ACTIVE_HIGH>;
139-
};

arch/arm64/boot/dts/rockchip/rk3399-box-rev2-disvr.dts

Lines changed: 6 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,9 @@
5454
};
5555

5656
&pinctrl {
57+
pinctrl-names = "default";
58+
pinctrl-0 = <&cpt_gpio>;
59+
5760
sdio0 {
5861
sdio0_bus1: sdio0-bus1 {
5962
rockchip,pins =
@@ -111,10 +114,10 @@
111114
};
112115
};
113116

114-
pmic {
115-
vsel1_gpio: vsel1-gpio {
117+
compat {
118+
cpt_gpio: cpt-gpio {
116119
rockchip,pins =
117-
<1 18 RK_FUNC_GPIO &pcfg_pull_up>;
120+
<1 18 RK_FUNC_GPIO &pcfg_output_low>;
118121
};
119122
};
120123
};
@@ -250,14 +253,3 @@
250253
status = "disabled";
251254
};
252255
};
253-
254-
&vdd_cpu_b {
255-
vsel-gpios = <&gpio1 18 GPIO_ACTIVE_HIGH>;
256-
fcs,suspend-voltage-selector = <0>;
257-
};
258-
259-
&rockchip_suspend {
260-
rockchip,power-ctrl =
261-
<&gpio1 18 GPIO_ACTIVE_LOW>,
262-
<&gpio1 14 GPIO_ACTIVE_HIGH>;
263-
};

arch/arm64/boot/dts/rockchip/rk3399-box-rev2.dts

Lines changed: 6 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,9 @@
4949
};
5050

5151
&pinctrl {
52+
pinctrl-names = "default";
53+
pinctrl-0 = <&cpt_gpio>;
54+
5255
sdio0 {
5356
sdio0_bus1: sdio0-bus1 {
5457
rockchip,pins =
@@ -106,10 +109,10 @@
106109
};
107110
};
108111

109-
pmic {
110-
vsel1_gpio: vsel1-gpio {
112+
compat {
113+
cpt_gpio: cpt-gpio {
111114
rockchip,pins =
112-
<1 18 RK_FUNC_GPIO &pcfg_pull_up>;
115+
<1 18 RK_FUNC_GPIO &pcfg_output_low>;
113116
};
114117
};
115118
};
@@ -144,17 +147,6 @@
144147
status = "okay";
145148
};
146149

147-
&vdd_cpu_b {
148-
vsel-gpios = <&gpio1 18 GPIO_ACTIVE_HIGH>;
149-
fcs,suspend-voltage-selector = <0>;
150-
};
151-
152-
&rockchip_suspend {
153-
rockchip,power-ctrl =
154-
<&gpio1 18 GPIO_ACTIVE_LOW>,
155-
<&gpio1 14 GPIO_ACTIVE_HIGH>;
156-
};
157-
158150
&hdmi {
159151
status = "okay";
160152
rockchip,phy-table =

0 commit comments

Comments
 (0)