From d60f8160548214e4360b111f682e369eb0e5051b Mon Sep 17 00:00:00 2001 From: DHDAXCW Date: Thu, 21 Mar 2024 15:22:20 +0800 Subject: [PATCH] Fix power configuration causing cpufreq folder to be empty This will cause the CPU to display abnormally /sys/bus/cpu/devices/cpu0/cpufreq/*': No such file or directory --- .../boot/dts/rockchip/rk3588s-lubancat-4.dts | 300 ++++++------------ 1 file changed, 104 insertions(+), 196 deletions(-) diff --git a/target/linux/rockchip/files/arch/arm64/boot/dts/rockchip/rk3588s-lubancat-4.dts b/target/linux/rockchip/files/arch/arm64/boot/dts/rockchip/rk3588s-lubancat-4.dts index 4bdd6d6fe..420197663 100644 --- a/target/linux/rockchip/files/arch/arm64/boot/dts/rockchip/rk3588s-lubancat-4.dts +++ b/target/linux/rockchip/files/arch/arm64/boot/dts/rockchip/rk3588s-lubancat-4.dts @@ -88,24 +88,6 @@ vin-supply = <&vcc5v0_sys>; }; - combophy_avdd0v85: combophy-avdd0v85 { - compatible = "regulator-fixed"; - regulator-name = "combophy_avdd0v85"; - regulator-boot-on; - regulator-min-microvolt = <850000>; - regulator-max-microvolt = <850000>; - vin-supply = <&avdd_0v85_s0>; - }; - - combophy_avdd1v8: combophy-avdd1v8 { - compatible = "regulator-fixed"; - regulator-name = "combophy_avdd1v8"; - regulator-boot-on; - regulator-min-microvolt = <1800000>; - regulator-max-microvolt = <1800000>; - vin-supply = <&avcc_1v8_s0>; - }; - vcc_1v1_nldo_s3: vcc-1v1-nldo-s3 { compatible = "regulator-fixed"; regulator-name = "vcc_1v1_nldo_s3"; @@ -274,6 +256,8 @@ regulator-min-microvolt = <550000>; regulator-max-microvolt = <1050000>; regulator-ramp-delay = <2300>; + vin-supply = <&vcc5v0_sys>; + regulator-state-mem { regulator-off-in-suspend; }; @@ -289,6 +273,8 @@ regulator-min-microvolt = <550000>; regulator-max-microvolt = <1050000>; regulator-ramp-delay = <2300>; + vin-supply = <&vcc5v0_sys>; + regulator-state-mem { regulator-off-in-suspend; }; @@ -389,38 +375,20 @@ status = "okay"; assigned-clocks = <&cru CLK_SPI2>; assigned-clock-rates = <200000000>; + num-cs = <1>; pinctrl-names = "default"; pinctrl-0 = <&spi2m2_cs0 &spi2m2_pins>; - num-cs = <1>; - rk806single@0 { + pmic@0 { compatible = "rockchip,rk806"; - spi-max-frequency = <1000000>; reg = <0x0>; - interrupt-parent = <&gpio0>; - interrupts = ; - - pinctrl-names = "default", "pmic-power-off"; - pinctrl-0 = <&pmic_pins>, <&rk806_dvs1_null>, <&rk806_dvs2_null>, <&rk806_dvs3_null>; - pinctrl-1 = <&rk806_dvs1_pwrdn>; - - /* 2800mv-3500mv */ - low_voltage_threshold = <3000>; - /* 2700mv-3400mv */ - shutdown_voltage_threshold = <2700>; - /* 140 160 */ - shutdown_temperture_threshold = <160>; - hotdie_temperture_threshold = <115>; - - /* 0: restart PMU; - * 1: reset all the power off reset registers, - * forcing the state to switch to ACTIVE mode; - * 2: Reset all the power off reset registers, - * forcing the state to switch to ACTIVE mode, - * and simultaneously pull down the RESETB PIN for 5mS before releasing - */ - pmic-reset-func = <1>; + interrupts = <7 IRQ_TYPE_LEVEL_LOW>; + pinctrl-names = "default"; + pinctrl-0 = <&pmic_pins>, <&rk806_dvs1_null>, + <&rk806_dvs2_null>, <&rk806_dvs3_null>; + spi-max-frequency = <1000000>; + system-power-controller; vcc1-supply = <&vcc5v0_sys>; vcc2-supply = <&vcc5v0_sys>; @@ -438,327 +406,262 @@ vcc14-supply = <&vcc_1v1_nldo_s3>; vcca-supply = <&vcc5v0_sys>; - pwrkey { - status = "okay"; + gpio-controller; + #gpio-cells = <2>; + + rk806_dvs1_null: dvs1-null-pins { + pins = "gpio_pwrctrl2"; + function = "pin_fun0"; }; - pinctrl_rk806: pinctrl_rk806 { - gpio-controller; - #gpio-cells = <2>; + rk806_dvs2_null: dvs2-null-pins { + pins = "gpio_pwrctrl2"; + function = "pin_fun0"; + }; - rk806_dvs1_null: rk806_dvs1_null { - pins = "gpio_pwrctrl2"; - function = "pin_fun0"; - }; - - rk806_dvs1_slp: rk806_dvs1_slp { - pins = "gpio_pwrctrl1"; - function = "pin_fun1"; - }; - - rk806_dvs1_pwrdn: rk806_dvs1_pwrdn { - pins = "gpio_pwrctrl1"; - function = "pin_fun2"; - }; - - rk806_dvs1_rst: rk806_dvs1_rst { - pins = "gpio_pwrctrl1"; - function = "pin_fun3"; - }; - - rk806_dvs2_null: rk806_dvs2_null { - pins = "gpio_pwrctrl2"; - function = "pin_fun0"; - }; - - rk806_dvs2_slp: rk806_dvs2_slp { - pins = "gpio_pwrctrl2"; - function = "pin_fun1"; - }; - - rk806_dvs2_pwrdn: rk806_dvs2_pwrdn { - pins = "gpio_pwrctrl2"; - function = "pin_fun2"; - }; - - rk806_dvs2_rst: rk806_dvs2_rst { - pins = "gpio_pwrctrl2"; - function = "pin_fun3"; - }; - - rk806_dvs2_dvs: rk806_dvs2_dvs { - pins = "gpio_pwrctrl2"; - function = "pin_fun4"; - }; - - rk806_dvs2_gpio: rk806_dvs2_gpio { - pins = "gpio_pwrctrl2"; - function = "pin_fun5"; - }; - - rk806_dvs3_null: rk806_dvs3_null { - pins = "gpio_pwrctrl3"; - function = "pin_fun0"; - }; - - rk806_dvs3_slp: rk806_dvs3_slp { - pins = "gpio_pwrctrl3"; - function = "pin_fun1"; - }; - - rk806_dvs3_pwrdn: rk806_dvs3_pwrdn { - pins = "gpio_pwrctrl3"; - function = "pin_fun2"; - }; - - rk806_dvs3_rst: rk806_dvs3_rst { - pins = "gpio_pwrctrl3"; - function = "pin_fun3"; - }; - - rk806_dvs3_dvs: rk806_dvs3_dvs { - pins = "gpio_pwrctrl3"; - function = "pin_fun4"; - }; - - rk806_dvs3_gpio: rk806_dvs3_gpio { - pins = "gpio_pwrctrl3"; - function = "pin_fun5"; - }; + rk806_dvs3_null: dvs3-null-pins { + pins = "gpio_pwrctrl3"; + function = "pin_fun0"; }; regulators { - vdd_gpu_s0: vdd_gpu_mem_s0: DCDC_REG1 { - regulator-always-on; + vdd_gpu_s0: dcdc-reg1 { + regulator-name = "vdd_gpu_s0"; regulator-boot-on; regulator-min-microvolt = <550000>; regulator-max-microvolt = <950000>; regulator-ramp-delay = <12500>; - regulator-name = "vdd_gpu_s0"; + regulator-enable-ramp-delay = <400>; + regulator-state-mem { regulator-off-in-suspend; }; }; - vdd_cpu_lit_s0: vdd_cpu_lit_mem_s0: DCDC_REG2 { + vdd_cpu_lit_s0: vdd_cpu_lit_mem_s0: dcdc-reg2 { regulator-always-on; regulator-boot-on; regulator-min-microvolt = <550000>; regulator-max-microvolt = <950000>; regulator-ramp-delay = <12500>; regulator-name = "vdd_cpu_lit_s0"; + regulator-state-mem { regulator-off-in-suspend; }; }; - vdd_log_s0: DCDC_REG3 { + vdd_log_s0: dcdc-reg3 { + regulator-name = "vdd_log_s0"; regulator-always-on; regulator-boot-on; - regulator-min-microvolt = <750000>; + regulator-min-microvolt = <675000>; regulator-max-microvolt = <750000>; regulator-ramp-delay = <12500>; - regulator-name = "vdd_log_s0"; + regulator-state-mem { - regulator-on-in-suspend; + regulator-off-in-suspend; + regulator-suspend-microvolt = <750000>; }; }; - vdd_vdenc_s0: vdd_vdenc_mem_s0: DCDC_REG4 { + vdd_vdenc_s0: dcdc-reg4 { + regulator-name = "vdd_vdenc_s0"; regulator-always-on; regulator-boot-on; regulator-min-microvolt = <550000>; regulator-max-microvolt = <950000>; - regulator-init-microvolt = <750000>; regulator-ramp-delay = <12500>; - regulator-name = "vdd_vdenc_s0"; + regulator-state-mem { regulator-off-in-suspend; }; }; - vdd_ddr_s0: DCDC_REG5 { + vdd_ddr_s0: dcdc-reg5 { + regulator-name = "vdd_ddr_s0"; regulator-always-on; regulator-boot-on; - regulator-min-microvolt = <850000>; - regulator-max-microvolt = <850000>; + regulator-min-microvolt = <675000>; + regulator-max-microvolt = <900000>; regulator-ramp-delay = <12500>; - regulator-name = "vdd_ddr_s0"; + regulator-state-mem { regulator-off-in-suspend; regulator-suspend-microvolt = <850000>; }; }; - vdd2_ddr_s3: DCDC_REG6 { - regulator-always-on; - regulator-boot-on; - regulator-name = "vdd2_ddr_s3"; - regulator-state-mem { - regulator-on-in-suspend; - }; - }; - - vcc_2v0_pldo_s3: DCDC_REG7 { + vcc_2v0_pldo_s3: dcdc-reg7 { + regulator-name = "vdd_2v0_pldo_s3"; regulator-always-on; regulator-boot-on; regulator-min-microvolt = <2000000>; regulator-max-microvolt = <2000000>; - regulator-name = "vdd_2v0_pldo_s3"; + regulator-ramp-delay = <12500>; + regulator-state-mem { regulator-on-in-suspend; regulator-suspend-microvolt = <2000000>; }; }; - vcc_3v3_s3: DCDC_REG8 { + vcc_3v3_s3: dcdc-reg8 { + regulator-name = "vcc_3v3_s3"; regulator-always-on; regulator-boot-on; regulator-min-microvolt = <3300000>; regulator-max-microvolt = <3300000>; - regulator-name = "vcc_3v3_s3"; + regulator-state-mem { regulator-on-in-suspend; + regulator-suspend-microvolt = <3300000>; }; }; - vddq_ddr_s0: DCDC_REG9 { - regulator-always-on; - regulator-boot-on; + vddq_ddr_s0: dcdc-reg9 { regulator-name = "vddq_ddr_s0"; + regulator-always-on; + regulator-boot-on; + regulator-state-mem { regulator-off-in-suspend; }; }; - vcc_1v8_s3: DCDC_REG10 { - regulator-always-on; - regulator-boot-on; - regulator-min-microvolt = <1800000>; - regulator-max-microvolt = <1800000>; + vcc_1v8_s3: dcdc-reg10 { regulator-name = "vcc_1v8_s3"; + regulator-always-on; + regulator-boot-on; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + regulator-state-mem { regulator-on-in-suspend; regulator-suspend-microvolt = <1800000>; }; }; - vcc_1v8_s0: PLDO_REG1 { + avcc_1v8_s0: pldo-reg1 { + regulator-name = "avcc_1v8_s0"; regulator-always-on; regulator-boot-on; regulator-min-microvolt = <1800000>; regulator-max-microvolt = <1800000>; - regulator-name = "vcc_1v8_s0"; + regulator-state-mem { - regulator-on-in-suspend; + regulator-off-in-suspend; }; }; - avcc_1v8_s0: PLDO_REG2 { + vcc_1v8_s0: pldo-reg2 { + regulator-name = "vcc_1v8_s0"; regulator-always-on; regulator-boot-on; regulator-min-microvolt = <1800000>; regulator-max-microvolt = <1800000>; - regulator-name = "avcc_1v8_s0"; + regulator-state-mem { regulator-off-in-suspend; regulator-suspend-microvolt = <1800000>; }; }; - avdd_1v2_s0: PLDO_REG3 { + avdd_1v2_s0: pldo-reg3 { + regulator-name = "avdd_1v2_s0"; regulator-always-on; regulator-boot-on; regulator-min-microvolt = <1200000>; regulator-max-microvolt = <1200000>; - regulator-name = "avdd_1v2_s0"; + regulator-state-mem { regulator-off-in-suspend; }; }; - avcc_3v3_s0: PLDO_REG4 { - regulator-always-on; - regulator-boot-on; - regulator-min-microvolt = <3300000>; - regulator-max-microvolt = <3300000>; - regulator-name = "avcc_3v3_s0"; - regulator-state-mem { - regulator-off-in-suspend; - }; - }; - - vccio_sd_s0: PLDO_REG5 { + vccio_sd_s0: pldo-reg5 { + regulator-name = "vccio_sd_s0"; regulator-always-on; regulator-boot-on; regulator-min-microvolt = <1800000>; regulator-max-microvolt = <3300000>; - regulator-name = "vccio_sd_s0"; + regulator-ramp-delay = <12500>; + regulator-state-mem { regulator-off-in-suspend; }; }; - pldo6_s3: PLDO_REG6 { + pldo6_s3: pldo-reg6 { + regulator-name = "pldo6_s3"; regulator-always-on; regulator-boot-on; regulator-min-microvolt = <1800000>; regulator-max-microvolt = <1800000>; - regulator-name = "pldo6_s3"; + regulator-state-mem { regulator-on-in-suspend; regulator-suspend-microvolt = <1800000>; }; }; - vdd_0v75_s3: NLDO_REG1 { + vdd_0v75_s3: nldo-reg1 { + regulator-name = "vdd_0v75_s3"; regulator-always-on; regulator-boot-on; regulator-min-microvolt = <750000>; regulator-max-microvolt = <750000>; - regulator-name = "vdd_0v75_s3"; + regulator-state-mem { regulator-on-in-suspend; regulator-suspend-microvolt = <750000>; }; }; - avdd_ddr_pll_s0: NLDO_REG2 { + vdd_ddr_pll_s0: nldo-reg2 { + regulator-name = "vdd_ddr_pll_s0"; regulator-always-on; regulator-boot-on; regulator-min-microvolt = <850000>; regulator-max-microvolt = <850000>; - regulator-name = "avdd_ddr_pll_s0"; + regulator-state-mem { regulator-off-in-suspend; regulator-suspend-microvolt = <850000>; }; }; - avdd_0v75_s0: NLDO_REG3 { + avdd_0v75_s0: nldo-reg3 { + regulator-name = "avdd_0v75_s0"; regulator-always-on; regulator-boot-on; regulator-min-microvolt = <750000>; regulator-max-microvolt = <750000>; - regulator-name = "avdd_0v75_s0"; + regulator-state-mem { regulator-off-in-suspend; }; }; - avdd_0v85_s0: NLDO_REG4 { + vdd_0v85_s0: nldo-reg4 { + regulator-name = "vdd_0v85_s0"; regulator-always-on; regulator-boot-on; regulator-min-microvolt = <850000>; regulator-max-microvolt = <850000>; - regulator-name = "avdd_0v85_s0"; + regulator-state-mem { regulator-off-in-suspend; }; }; - nldo5_s0: NLDO_REG5 { - regulator-name = "nldo5_s0"; + vdd_0v75_s0: nldo-reg5 { + regulator-name = "vdd_0v75_s0"; + regulator-always-on; + regulator-boot-on; + regulator-min-microvolt = <750000>; + regulator-max-microvolt = <750000>; + regulator-state-mem { regulator-off-in-suspend; }; @@ -776,6 +679,11 @@ &i2s0_sdo0>; }; + +&i2c8 { + pinctrl-0 = <&i2c8m2_xfer>; +}; + &saradc { status = "okay"; vref-supply = <&avcc_1v8_s0>;