Skip to content

Commit

Permalink
regulator: Modify X3Pi's dts to adapt to hpu3501
Browse files Browse the repository at this point in the history
Summary:
    Modify X3Pi's dts to adapt to hpu3501.
    Compatible with dcdc mode and pmic mode.

Signed-off-by: yaqiang.li <[email protected]>
  • Loading branch information
yaqiang.li committed Dec 8, 2022
1 parent 937b4ca commit 21f3fdc
Showing 1 changed file with 22 additions and 23 deletions.
45 changes: 22 additions & 23 deletions arch/arm64/boot/dts/hobot/hobot-x3-pi.dts
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@
hpu3501@1e {
compatible = "hobot-pmic,hpu3501";
reg = <0x1e>;
status = "disabled";
status = "okay";
regulators {
cnn0_pd_reg_hobot: BUCK3 {
regulator-name = "VCC_CNN0";
Expand Down Expand Up @@ -565,33 +565,43 @@


&cpu0 {
cpu-supply-hobot = <&cpu_pd_reg_hobot>;
operating-points-v2-hobot = <&cpu_opp_table_hobot>;
cpu-supply = <&cpu_pd_reg_hobot>;
operating-points-v2 = <&cpu_opp_table_hobot>;
cpu-supply-hobot = <&cpu_pd_reg_hobot>;
operating-points-v2-hobot = <&cpu_opp_table_hobot>;
};

&cpu1 {
cpu-supply-hobot = <&cpu_pd_reg_hobot>;
operating-points-v2-hobot = <&cpu_opp_table_hobot>;
cpu-supply = <&cpu_pd_reg_hobot>;
operating-points-v2 = <&cpu_opp_table_hobot>;
cpu-supply-hobot = <&cpu_pd_reg_hobot>;
operating-points-v2-hobot = <&cpu_opp_table_hobot>;
};

&cpu2 {
cpu-supply-hobot = <&cpu_pd_reg_hobot>;
operating-points-v2-hobot = <&cpu_opp_table_hobot>;
cpu-supply = <&cpu_pd_reg_hobot>;
operating-points-v2 = <&cpu_opp_table_hobot>;
cpu-supply-hobot = <&cpu_pd_reg_hobot>;
operating-points-v2-hobot = <&cpu_opp_table_hobot>;
};

&cpu3 {
cpu-supply-hobot = <&cpu_pd_reg_hobot>;
operating-points-v2-hobot = <&cpu_opp_table_hobot>;
cpu-supply = <&cpu_pd_reg_hobot>;
operating-points-v2 = <&cpu_opp_table_hobot>;
cpu-supply-hobot = <&cpu_pd_reg_hobot>;
operating-points-v2-hobot = <&cpu_opp_table_hobot>;
};

&cnn0 {
cnn-supply-hobot = <&cnn0_pd_reg_hobot>;
governor = "userspace";
cnn-supply = <&cnn0_pd_reg>;
cnn-supply-hobot = <&cnn0_pd_reg_hobot>;
governor = "userspace";
max_freq = /bits/ 64 <1000000000>;
};

&cnn1 {
cnn-supply-hobot = <&cnn1_pd_reg_hobot>;
cnn-supply = <&cnn1_pd_reg>;
cnn-supply-hobot = <&cnn1_pd_reg_hobot>;
governor = "userspace";
max_freq = /bits/ 64 <1000000000>;
};
Expand Down Expand Up @@ -735,17 +745,6 @@
};
};

&cnn0 {
cnn-supply = <&cnn0_pd_reg>;
governor = "userspace";
max_freq = /bits/ 64 <1000000000>;
};

&cnn1 {
cnn-supply = <&cnn1_pd_reg>;
governor = "userspace";
max_freq = /bits/ 64 <1000000000>;
};


&snd4 { //dummy-codec
Expand Down

0 comments on commit 21f3fdc

Please sign in to comment.