Skip to content

Commit a6ade94

Browse files
committed
ayufan: dts: pinebook-pro: support v2
1 parent e2de533 commit a6ade94

File tree

2 files changed

+13
-13
lines changed

2 files changed

+13
-13
lines changed

arch/arm/dts/rk3399-pinebook-pro.dts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323

2424
backlight: backlight {
2525
compatible = "pwm-backlight";
26-
enable-gpios = <&gpio4 RK_PD2 GPIO_ACTIVE_HIGH>;
26+
enable-gpios = <&gpio1 RK_PA0 GPIO_ACTIVE_HIGH>;
2727
pwms = <&pwm0 0 740740 0>;
2828
brightness-levels = <
2929
0 1 2 3 4 5 6 7
@@ -74,7 +74,7 @@
7474
* - SDIO_RESET_L_WL_REG_ON
7575
* - PDN (power down when low)
7676
*/
77-
reset-gpios = <&gpio0 RK_PB2 GPIO_ACTIVE_LOW>;
77+
reset-gpios = <&gpio0 RK_PB2 GPIO_ACTIVE_LOW>; // TODO?
7878
};
7979

8080
vcc1v8_s0: vcc1v8-s0 {
@@ -115,7 +115,7 @@
115115

116116
vcc5v0_host: vcc5v0-host-regulator {
117117
compatible = "regulator-fixed";
118-
gpio = <&gpio4 RK_PC5 GPIO_ACTIVE_HIGH>;
118+
gpio = <&gpio4 RK_PD2 GPIO_ACTIVE_HIGH>;
119119
pinctrl-names = "default";
120120
pinctrl-0 = <&host_vbus_drv>;
121121
regulator-name = "vcc5v0_host";
@@ -124,7 +124,7 @@
124124
vcc5v0_usb3_host: vcc5v0-usb3-host-regulator {
125125
compatible = "regulator-fixed";
126126
enable-active-high;
127-
gpio = <&gpio0 RK_PA6 GPIO_ACTIVE_HIGH>;
127+
gpio = <&gpio1 RK_PB5 GPIO_ACTIVE_HIGH>;
128128
pinctrl-names = "default";
129129
pinctrl-0 = <&host_usb3_drv>;
130130
regulator-name = "vcc5v0_usb3_host";
@@ -393,17 +393,17 @@
393393

394394
pmic {
395395
pmic_int_l: pmic-int-l {
396-
rockchip,pins = <1 RK_PC5 RK_FUNC_GPIO &pcfg_pull_up>;
396+
rockchip,pins = <3 RK_PB2 RK_FUNC_GPIO &pcfg_pull_up>;
397397
};
398398
};
399399

400400
usb2 {
401401
host_vbus_drv: host-vbus-drv {
402-
rockchip,pins = <4 RK_PC5 RK_FUNC_GPIO &pcfg_pull_none>;
402+
rockchip,pins = <4 RK_PD2 RK_FUNC_GPIO &pcfg_pull_none>;
403403
};
404404

405405
host_usb3_drv: host-usb3-drv {
406-
rockchip,pins = <0 RK_PA6 RK_FUNC_GPIO &pcfg_pull_none>;
406+
rockchip,pins = <1 RK_PB5 RK_FUNC_GPIO &pcfg_pull_none>;
407407
};
408408
};
409409
};

board/rockchip/pinebook_pro_rk3399/pinebook-pro-rk3399.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,15 +23,15 @@ DECLARE_GLOBAL_DATA_PTR;
2323
#define RK3399_CPUID_OFF 0x7
2424
#define RK3399_CPUID_LEN 0x10
2525

26-
static int fix_usb2_vbus_pull_mode(void)
26+
static int fix_lcd_backling_pull_mode(void)
2727
{
2828
#include <asm/arch/grf_rk3399.h>
2929

30-
#define GRF_BASE 0xff770000
30+
#define PMU_GRF_BASE 0xff320000
3131

32-
// set pull of GPIO4_D2
33-
struct rk3399_grf_regs * const grf = (void *)GRF_BASE;
34-
rk_clrsetreg(&grf->gpio4_p[3], 3 << 4, 0 << 4);
32+
// set pull of GPIO1_A0
33+
struct rk3399_pmugrf_regs * const pmugrf = (void *)PMU_GRF_BASE;
34+
rk_clrsetreg(&pmugrf->gpio1_p[0], 3 << (2 * 0), 0 << (2 * 0));
3535
return 0;
3636
}
3737

@@ -62,7 +62,7 @@ int board_init(void)
6262
debug("%s: Cannot enable boot on regulator\n", __func__);
6363
}
6464

65-
fix_usb2_vbus_pull_mode();
65+
fix_lcd_backling_pull_mode();
6666

6767
out:
6868
return 0;

0 commit comments

Comments
 (0)