Home
last modified time | relevance | path

Searched +full:pm8150b +full:- +full:vbus +full:- +full:reg (Results 1 – 2 of 2) sorted by relevance

/linux-5.10/Documentation/devicetree/bindings/regulator/
Dqcom,usb-vbus-regulator.yaml1 # SPDX-License-Identifier: GPL-2.0
3 ---
4 $id: http://devicetree.org/schemas/regulator/qcom,usb-vbus-regulator.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: The Qualcomm PMIC VBUS output regulator driver
10 - Wesley Cheng <wcheng@codeaurora.org>
13 This regulator driver controls the VBUS output by the Qualcomm PMIC. This
20 - qcom,pm8150b-vbus-reg
22 reg:
24 description: VBUS output base address
[all …]
/linux-5.10/drivers/regulator/
Dqcom_usb_vbus-regulator.c1 // SPDX-License-Identifier: GPL-2.0-only
3 // Qualcomm PMIC VBUS output regulator driver
37 struct device *dev = &pdev->dev; in qcom_usb_vbus_regulator_probe()
45 ret = of_property_read_u32(dev->of_node, "reg", &base); in qcom_usb_vbus_regulator_probe()
51 regmap = dev_get_regmap(dev->parent, NULL); in qcom_usb_vbus_regulator_probe()
54 return -ENOENT; in qcom_usb_vbus_regulator_probe()
57 init_data = of_get_regulator_init_data(dev, dev->of_node, in qcom_usb_vbus_regulator_probe()
60 return -ENOMEM; in qcom_usb_vbus_regulator_probe()
66 config.of_node = dev->of_node; in qcom_usb_vbus_regulator_probe()
72 dev_err(dev, "not able to register vbus reg %d\n", ret); in qcom_usb_vbus_regulator_probe()
[all …]