Skip to content

Commit

Permalink
fix:pmic:usb: Update the device tree of hpu3501
Browse files Browse the repository at this point in the history
Summary:
    1. Update the device tree of hpu3501
    2. Solve the problem that the usb_0v8 node cannot be found

Signed-off-by: yaqiang.li <[email protected]>
  • Loading branch information
yaqiang.li committed Dec 15, 2022
1 parent 9dd2738 commit 82b2f3c
Show file tree
Hide file tree
Showing 3 changed files with 103 additions and 85 deletions.
62 changes: 34 additions & 28 deletions arch/arm64/boot/dts/hobot/hobot-x3-pi.dts
Original file line number Diff line number Diff line change
Expand Up @@ -338,36 +338,41 @@
status = "okay";
};
hpu3501@1e {
compatible = "hobot-pmic,hpu3501";
compatible = "hobot,hpu3501";
reg = <0x1e>;
status = "disabled";
regulators {
cnn0_pd_reg_hobot: BUCK3 {
regulator-name = "VCC_CNN0";
regulator-min-microvolt = <820000>;
regulator-max-microvolt = <1000000>;
regulator-enable-ramp-delay = <3000>;
};

cnn1_pd_reg_hobot: BUCK4 {
regulator-name = "VCC_CNN1";
regulator-min-microvolt = <820000>;
regulator-max-microvolt = <1000000>;
regulator-enable-ramp-delay = <3000>;
};

cpu_pd_reg_hobot: BUCK5 {
regulator-name = "VCC_CPU";
regulator-min-microvolt = <795000>;
regulator-max-microvolt = <990000>;
regulator-always-on;
};

vdd_usb_0v8_hobot: LDO3 {
regulator-name = "USB_V_8";
regulator-min-microvolt = <3300000>;
regulator-max-microvolt = <3300000>;
regulator-enable-ramp-delay = <3000>;
hpu3501-regulator {
master;
en_pin_map = <0xc4>;
fault_cfgr = <0x7f>;
regulators {
cnn0_pd_reg_hobot: BUCK3 {
regulator-name = "VCC_CNN0";
regulator-min-microvolt = <820000>;
regulator-max-microvolt = <1000000>;
regulator-enable-ramp-delay = <3000>;
};

cnn1_pd_reg_hobot: BUCK4 {
regulator-name = "VCC_CNN1";
regulator-min-microvolt = <820000>;
regulator-max-microvolt = <1000000>;
regulator-enable-ramp-delay = <3000>;
};

cpu_pd_reg_hobot: BUCK5 {
regulator-name = "VCC_CPU";
regulator-min-microvolt = <795000>;
regulator-max-microvolt = <990000>;
regulator-always-on;
};

vdd_usb_0v8_hobot: LDO3 {
regulator-name = "USB_V_8";
regulator-min-microvolt = <3300000>;
regulator-max-microvolt = <3300000>;
regulator-enable-ramp-delay = <3000>;
};
};
};
};
Expand Down Expand Up @@ -398,6 +403,7 @@

&usbdrd3_0 {
status = "okay";
usb_0v8-supply = <>;
usb_0v8-supply_hobot = <&vdd_usb_0v8_hobot>;
};

Expand Down
62 changes: 34 additions & 28 deletions arch/arm64/boot/dts/hobot/hobot-x3-sdb.dts
Original file line number Diff line number Diff line change
Expand Up @@ -333,36 +333,41 @@
#sound-dai-cells = <0>;
};
hpu3501@1e {
compatible = "hobot-pmic,hpu3501";
compatible = "hobot,hpu3501";
reg = <0x1e>;
status = "disabled";
regulators {
cnn0_pd_reg_hobot: BUCK3 {
regulator-name = "VCC_CNN0";
regulator-min-microvolt = <820000>;
regulator-max-microvolt = <1000000>;
regulator-enable-ramp-delay = <3000>;
};

cnn1_pd_reg_hobot: BUCK4 {
regulator-name = "VCC_CNN1";
regulator-min-microvolt = <820000>;
regulator-max-microvolt = <1000000>;
regulator-enable-ramp-delay = <3000>;
};

cpu_pd_reg_hobot: BUCK5 {
regulator-name = "VCC_CPU";
regulator-min-microvolt = <795000>;
regulator-max-microvolt = <990000>;
regulator-always-on;
};

vdd_usb_0v8_hobot: LDO3 {
regulator-name = "USB_V_8";
regulator-min-microvolt = <3300000>;
regulator-max-microvolt = <3300000>;
regulator-enable-ramp-delay = <3000>;
hpu3501-regulator {
master;
en_pin_map = <0xc4>;
fault_cfgr = <0x7f>;
regulators {
cnn0_pd_reg_hobot: BUCK3 {
regulator-name = "VCC_CNN0";
regulator-min-microvolt = <820000>;
regulator-max-microvolt = <1000000>;
regulator-enable-ramp-delay = <3000>;
};

cnn1_pd_reg_hobot: BUCK4 {
regulator-name = "VCC_CNN1";
regulator-min-microvolt = <820000>;
regulator-max-microvolt = <1000000>;
regulator-enable-ramp-delay = <3000>;
};

cpu_pd_reg_hobot: BUCK5 {
regulator-name = "VCC_CPU";
regulator-min-microvolt = <795000>;
regulator-max-microvolt = <990000>;
regulator-always-on;
};

vdd_usb_0v8_hobot: LDO3 {
regulator-name = "USB_V_8";
regulator-min-microvolt = <3300000>;
regulator-max-microvolt = <3300000>;
regulator-enable-ramp-delay = <3000>;
};
};
};
};
Expand Down Expand Up @@ -436,6 +441,7 @@

&usbdrd3_0 {
status = "okay";
usb_0v8-supply = <>;
usb_0v8-supply_hobot = <&vdd_usb_0v8_hobot>;
};

Expand Down
64 changes: 35 additions & 29 deletions arch/arm64/boot/dts/hobot/hobot-x3-sdb_v4.dts
Original file line number Diff line number Diff line change
Expand Up @@ -315,36 +315,41 @@
clock-output-names = "wifi-32k-clk";
};
hpu3501@1e {
compatible = "hobot-pmic,hpu3501";
compatible = "hobot,hpu3501";
reg = <0x1e>;
status = "disabled";
regulators {
cnn0_pd_reg_hobot: BUCK3 {
regulator-name = "VCC_CNN0";
regulator-min-microvolt = <820000>;
regulator-max-microvolt = <1000000>;
regulator-enable-ramp-delay = <3000>;
};

cnn1_pd_reg_hobot: BUCK4 {
regulator-name = "VCC_CNN1";
regulator-min-microvolt = <820000>;
regulator-max-microvolt = <1000000>;
regulator-enable-ramp-delay = <3000>;
};

cpu_pd_reg_hobot: BUCK5 {
regulator-name = "VCC_CPU";
regulator-min-microvolt = <795000>;
regulator-max-microvolt = <990000>;
regulator-always-on;
};

vdd_usb_0v8_hobot: LDO3 {
regulator-name = "USB_V_8";
regulator-min-microvolt = <3300000>;
regulator-max-microvolt = <3300000>;
regulator-enable-ramp-delay = <3000>;
hpu3501-regulator {
master;
en_pin_map = <0xc4>;
fault_cfgr = <0x7f>;
regulators {
cnn0_pd_reg_hobot: BUCK3 {
regulator-name = "VCC_CNN0";
regulator-min-microvolt = <820000>;
regulator-max-microvolt = <1000000>;
regulator-enable-ramp-delay = <3000>;
};

cnn1_pd_reg_hobot: BUCK4 {
regulator-name = "VCC_CNN1";
regulator-min-microvolt = <820000>;
regulator-max-microvolt = <1000000>;
regulator-enable-ramp-delay = <3000>;
};

cpu_pd_reg_hobot: BUCK5 {
regulator-name = "VCC_CPU";
regulator-min-microvolt = <795000>;
regulator-max-microvolt = <990000>;
regulator-always-on;
};

vdd_usb_0v8_hobot: LDO3 {
regulator-name = "USB_V_8";
regulator-min-microvolt = <3300000>;
regulator-max-microvolt = <3300000>;
regulator-enable-ramp-delay = <3000>;
};
};
};
};
Expand Down Expand Up @@ -423,6 +428,7 @@

&usbdrd3_0 {
status = "okay";
usb_0v8-supply = <>;
usb_0v8-supply_hobot = <&vdd_usb_0v8_hobot>;
};

Expand Down Expand Up @@ -857,4 +863,4 @@
sound-dai = <&i2sidma1>;
};
};
};
};

0 comments on commit 82b2f3c

Please sign in to comment.