diff --git a/patch/kernel/rockchip64-current/board-helios64-dts-fix-stability-issues.patch b/patch/kernel/rockchip64-current/board-helios64-dts-fix-stability-issues.patch new file mode 100644 index 000000000..bc64c1a70 --- /dev/null +++ b/patch/kernel/rockchip64-current/board-helios64-dts-fix-stability-issues.patch @@ -0,0 +1,12 @@ +diff --git a/arch/arm64/boot/dts/rockchip/rk3399-kobol-helios64.dts b/arch/arm64/boot/dts/rockchip/rk3399-kobol-helios64.dts +index e666bd5ae..df1fc943b 100644 +--- a/arch/arm64/boot/dts/rockchip/rk3399-kobol-helios64.dts ++++ b/arch/arm64/boot/dts/rockchip/rk3399-kobol-helios64.dts +@@ -478,6 +478,7 @@ rk808: pmic@1b { + pinctrl-names = "default"; + pinctrl-0 = <&pmic_int_l>; + rockchip,system-power-controller; ++ max-buck-steps-per-change = <4>; + wakeup-source; + + vcc1-supply = <&vcc5v0_sys>; diff --git a/patch/u-boot/u-boot-rockchip64-mainline/add-board-helios64.patch b/patch/u-boot/u-boot-rockchip64-mainline/add-board-helios64.patch index c3b53a77d..a986ed9ce 100644 --- a/patch/u-boot/u-boot-rockchip64-mainline/add-board-helios64.patch +++ b/patch/u-boot/u-boot-rockchip64-mainline/add-board-helios64.patch @@ -181,7 +181,7 @@ index 00000000..2988a209 +}; + +&vdd_log { -+ regulator-init-microvolt = <900000>; ++ regulator-init-microvolt = <930000>; +}; diff --git a/arch/arm/dts/rk3399-kobol-helios64.dts b/arch/arm/dts/rk3399-kobol-helios64.dts new file mode 100644 @@ -1345,7 +1345,7 @@ index 254b9c5b..5f89bf6e 100644 @@ -26,6 +26,22 @@ config TARGET_PINEBOOK_PRO_RK3399 with 4Gb RAM, onboard eMMC, USB-C, a USB3 and USB2 port, 1920*1080 screen and all the usual laptop features. - + +config TARGET_HELIOS64 + bool "Kobol Innovations Helios64" + select BOARD_LATE_INIT @@ -1365,7 +1365,7 @@ index 254b9c5b..5f89bf6e 100644 config TARGET_PUMA_RK3399 bool "Theobroma Systems RK3399-Q7 (Puma)" help -@@ -151,6 +167,7 @@ endif # BOOTCOUNT_LIMIT +@@ -153,6 +169,7 @@ endif # BOOTCOUNT_LIMIT source "board/firefly/roc-pc-rk3399/Kconfig" source "board/google/gru/Kconfig" @@ -1431,7 +1431,7 @@ new file mode 100644 index 00000000..c7a0efa4 --- /dev/null +++ b/board/kobol/helios64/helios64.c -@@ -0,0 +1,304 @@ +@@ -0,0 +1,321 @@ +// SPDX-License-Identifier: GPL-2.0+ +/* + * (C) Copyright 2020 Aditya Prayoga (aditya@kobol.io) @@ -1516,6 +1516,22 @@ index 00000000..c7a0efa4 + rk_setreg(&pmugrf->soc_con0, 0 << PMUGRF_CON0_PMU1830_VOL_SHIFT); +} + ++static void init_vdd_center(void) ++{ ++ struct udevice *regulator; ++ struct dm_regulator_uclass_platdata *uc_pdata; ++ int ret; ++ ++ ret = regulator_get_by_platname("vdd_center", ®ulator); ++ if (ret) ++ return; ++ ++ uc_pdata = dev_get_uclass_platdata(regulator); ++ ret = regulator_set_value(regulator, uc_pdata->init_uV); ++ if (ret) ++ debug("%s vdd_center init fail! ret %d\n", __func__, ret); ++} ++ +/* + * Swap mmc0 and mmc1 in boot_targets if booted from SD-Card. + * @@ -1607,6 +1623,7 @@ index 00000000..c7a0efa4 + int ret; + + setup_iodomain(); ++ init_vdd_center(); + set_board_info(); + + ret = rockchip_cpuid_from_efuse(cpuid_offset, cpuid_length, cpuid); @@ -2210,6 +2227,6 @@ index 00000000..6fca9a6b +#endif + +#endif --- +-- Created with Armbian build tools https://github.com/armbian/build