Home
last modified time | relevance | path

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

/openbmc/linux/Documentation/devicetree/bindings/regulator/
H A 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 <quic_wcheng@quicinc.com>
13 This regulator driver controls the VBUS output by the Qualcomm PMIC. This
18 - $ref: regulator.yaml#
23 - qcom,pm8150b-vbus-reg
25 reg:
[all …]
/openbmc/linux/arch/arm64/boot/dts/qcom/
H A Dpm8150b.dtsi1 // SPDX-License-Identifier: BSD-3-Clause
3 * Copyright (c) 2017-2019, The Linux Foundation. All rights reserved.
7 #include <dt-bindings/iio/qcom,spmi-vadc.h>
8 #include <dt-bindings/interrupt-controller/irq.h>
9 #include <dt-bindings/spmi/spmi.h>
12 thermal-zones {
13 pm8150b-thermal {
14 polling-delay-passive = <100>;
15 polling-delay = <0>;
17 thermal-sensors = <&pm8150b_temp>;
[all …]
/openbmc/linux/Documentation/devicetree/bindings/usb/
H A Dqcom,pmic-typec.yaml1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
3 ---
4 $id: http://devicetree.org/schemas/usb/qcom,pmic-typec.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: Qualcomm PMIC based USB Type-C block
10 - Bryan O'Donoghue <bryan.odonoghue@linaro.org>
13 Qualcomm PMIC Type-C block
18 - qcom,pm8150b-typec
22 $ref: /schemas/connector/usb-connector.yaml#
25 reg:
[all …]
/openbmc/linux/drivers/regulator/
H A Dqcom_usb_vbus-regulator.c1 // SPDX-License-Identifier: GPL-2.0-only
3 // Qualcomm PMIC VBUS output regulator driver
46 struct device *dev = &pdev->dev; in qcom_usb_vbus_regulator_probe()
54 ret = of_property_read_u32(dev->of_node, "reg", &base); in qcom_usb_vbus_regulator_probe()
60 regmap = dev_get_regmap(dev->parent, NULL); in qcom_usb_vbus_regulator_probe()
63 return -ENOENT; in qcom_usb_vbus_regulator_probe()
66 init_data = of_get_regulator_init_data(dev, dev->of_node, in qcom_usb_vbus_regulator_probe()
69 return -ENOMEM; in qcom_usb_vbus_regulator_probe()
77 config.of_node = dev->of_node; in qcom_usb_vbus_regulator_probe()
83 dev_err(dev, "not able to register vbus reg %d\n", ret); in qcom_usb_vbus_regulator_probe()
[all …]
/openbmc/linux/Documentation/devicetree/bindings/mfd/
H A Dqcom,spmi-pmic.yaml1 # SPDX-License-Identifier: GPL-2.0-only
3 ---
4 $id: http://devicetree.org/schemas/mfd/qcom,spmi-pmic.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: Qualcomm SPMI PMICs multi-function device
13 16-bit SPMI peripheral address space into 256 smaller fixed-size regions, 256 bytes
14 each. A function can consume one or more of these fixed-size register regions.
24 - Stephen Boyd <sboyd@kernel.org>
29 - pattern: '^pmic@.*$'
30 - pattern: '^pm(a|s)?[0-9]*@.*$'
[all …]
/openbmc/linux/drivers/usb/typec/tcpm/qcom/
H A Dqcom_pmic_typec.c1 // SPDX-License-Identifier: GPL-2.0
38 struct mutex lock; /* VBUS state serialization */
49 mutex_lock(&tcpm->lock); in qcom_pmic_typec_get_vbus()
50 ret = tcpm->vbus_enabled || qcom_pmic_typec_port_get_vbus(tcpm->pmic_typec_port); in qcom_pmic_typec_get_vbus()
51 mutex_unlock(&tcpm->lock); in qcom_pmic_typec_get_vbus()
61 mutex_lock(&tcpm->lock); in qcom_pmic_typec_set_vbus()
62 if (tcpm->vbus_enabled == on) in qcom_pmic_typec_set_vbus()
65 ret = qcom_pmic_typec_port_set_vbus(tcpm->pmic_typec_port, on); in qcom_pmic_typec_set_vbus()
69 tcpm->vbus_enabled = on; in qcom_pmic_typec_set_vbus()
70 tcpm_vbus_change(tcpm->tcpm_port); in qcom_pmic_typec_set_vbus()
[all …]