| /kernel/linux/linux-6.6/drivers/misc/ |
| D | qcom-coincell.c | 1 // SPDX-License-Identifier: GPL-2.0-only 29 /* if enable==0, rset and vset are ignored */ 30 static int qcom_coincell_chgr_config(struct qcom_coincell *chgr, int rset, in qcom_coincell_chgr_config() argument 37 return regmap_write(chgr->regmap, in qcom_coincell_chgr_config() 38 chgr->base_addr + QCOM_COINCELL_REG_ENABLE, 0); in qcom_coincell_chgr_config() 40 /* find index for current-limiting resistor */ in qcom_coincell_chgr_config() 42 if (rset == qcom_rset_map[i]) in qcom_coincell_chgr_config() 46 dev_err(chgr->dev, "invalid rset-ohms value %d\n", rset); in qcom_coincell_chgr_config() 47 return -EINVAL; in qcom_coincell_chgr_config() 56 dev_err(chgr->dev, "invalid vset-millivolts value %d\n", vset); in qcom_coincell_chgr_config() [all …]
|
| /kernel/linux/linux-5.10/drivers/misc/ |
| D | qcom-coincell.c | 1 // SPDX-License-Identifier: GPL-2.0-only 30 /* if enable==0, rset and vset are ignored */ 31 static int qcom_coincell_chgr_config(struct qcom_coincell *chgr, int rset, in qcom_coincell_chgr_config() argument 38 return regmap_write(chgr->regmap, in qcom_coincell_chgr_config() 39 chgr->base_addr + QCOM_COINCELL_REG_ENABLE, 0); in qcom_coincell_chgr_config() 41 /* find index for current-limiting resistor */ in qcom_coincell_chgr_config() 43 if (rset == qcom_rset_map[i]) in qcom_coincell_chgr_config() 47 dev_err(chgr->dev, "invalid rset-ohms value %d\n", rset); in qcom_coincell_chgr_config() 48 return -EINVAL; in qcom_coincell_chgr_config() 57 dev_err(chgr->dev, "invalid vset-millivolts value %d\n", vset); in qcom_coincell_chgr_config() [all …]
|
| /kernel/linux/linux-5.10/Documentation/devicetree/bindings/power/supply/ |
| D | qcom,coincell-charger.txt | 7 - compatible: 10 Definition: must be: "qcom,pm8941-coincell" 12 - reg: 17 - qcom,rset-ohms: 20 Definition: resistance (in ohms) for current-limiting resistor 23 - qcom,vset-millivolts: 29 - qcom,charger-disable: 34 This charger is a sub-node of one of the 8941 PMIC blocks, and is specified 35 as a child node in DTS of that node. See ../mfd/qcom,spmi-pmic.txt and 36 ../mfd/qcom-pm8xxx.txt [all …]
|
| /kernel/linux/linux-6.6/Documentation/devicetree/bindings/power/supply/ |
| D | qcom,pm8941-coincell.yaml | 1 # SPDX-License-Identifier: GPL-2.0 3 --- 4 $id: http://devicetree.org/schemas/power/supply/qcom,pm8941-coincell.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 15 - Sebastian Reichel <sre@kernel.org> 20 - items: 21 - enum: 22 - qcom,pm8998-coincell 23 - const: qcom,pm8941-coincell 25 - const: qcom,pm8941-coincell [all …]
|
| /kernel/linux/linux-5.10/drivers/iio/light/ |
| D | cm3605.c | 1 // SPDX-License-Identifier: GPL-2.0-only 35 * struct cm3605 - CM3605 state 40 * @als_max: maximum LUX detection (depends on RSET) 61 IIO_EV_TYPE_THRESH, cm3605->dir); in cm3605_prox_irq() 65 if (cm3605->dir == IIO_EV_DIR_RISING) in cm3605_prox_irq() 66 cm3605->dir = IIO_EV_DIR_FALLING; in cm3605_prox_irq() 68 cm3605->dir = IIO_EV_DIR_RISING; in cm3605_prox_irq() 78 ret = iio_read_channel_processed(cm3605->aout, &res); in cm3605_get_lux() 82 dev_dbg(cm3605->dev, "read %d mV from ADC\n", res); in cm3605_get_lux() 93 dev_err(cm3605->dev, "device out of range\n"); in cm3605_get_lux() [all …]
|
| /kernel/linux/linux-6.6/drivers/iio/light/ |
| D | cm3605.c | 1 // SPDX-License-Identifier: GPL-2.0-only 36 * struct cm3605 - CM3605 state 41 * @als_max: maximum LUX detection (depends on RSET) 62 IIO_EV_TYPE_THRESH, cm3605->dir); in cm3605_prox_irq() 66 if (cm3605->dir == IIO_EV_DIR_RISING) in cm3605_prox_irq() 67 cm3605->dir = IIO_EV_DIR_FALLING; in cm3605_prox_irq() 69 cm3605->dir = IIO_EV_DIR_RISING; in cm3605_prox_irq() 79 ret = iio_read_channel_processed(cm3605->aout, &res); in cm3605_get_lux() 83 dev_dbg(cm3605->dev, "read %d mV from ADC\n", res); in cm3605_get_lux() 94 dev_err(cm3605->dev, "device out of range\n"); in cm3605_get_lux() [all …]
|
| /kernel/linux/linux-5.10/arch/arm/boot/dts/ |
| D | qcom-msm8974-sony-xperia-honami.dts | 1 // SPDX-License-Identifier: GPL-2.0 2 #include "qcom-msm8974.dtsi" 3 #include "qcom-pm8841.dtsi" 4 #include "qcom-pm8941.dtsi" 5 #include <dt-bindings/gpio/gpio.h> 6 #include <dt-bindings/input/input.h> 7 #include <dt-bindings/pinctrl/qcom,pmic-gpio.h> 11 compatible = "sony,xperia-honami", "qcom,msm8974"; 18 stdout-path = "serial0:115200n8"; 21 gpio-keys { [all …]
|
| D | qcom-msm8974-sony-xperia-amami.dts | 1 // SPDX-License-Identifier: GPL-2.0 2 #include "qcom-msm8974.dtsi" 3 #include "qcom-pm8841.dtsi" 4 #include "qcom-pm8941.dtsi" 5 #include <dt-bindings/gpio/gpio.h> 6 #include <dt-bindings/input/input.h> 7 #include <dt-bindings/pinctrl/qcom,pmic-gpio.h> 11 compatible = "sony,xperia-amami", "qcom,msm8974"; 18 stdout-path = "serial0:115200n8"; 21 gpio-keys { [all …]
|
| D | qcom-msm8974-sony-xperia-castor.dts | 1 #include "qcom-msm8974pro.dtsi" 2 #include "qcom-pm8841.dtsi" 3 #include "qcom-pm8941.dtsi" 4 #include <dt-bindings/gpio/gpio.h> 5 #include <dt-bindings/input/input.h> 6 #include <dt-bindings/pinctrl/qcom,pmic-gpio.h> 10 compatible = "sony,xperia-castor", "qcom,msm8974"; 17 stdout-path = "serial0:115200n8"; 20 gpio-keys { 21 compatible = "gpio-keys"; [all …]
|
| /kernel/linux/linux-6.6/arch/arm/boot/dts/qcom/ |
| D | qcom-msm8974pro-oneplus-bacon.dts | 1 // SPDX-License-Identifier: GPL-2.0 2 #include "qcom-msm8974pro.dtsi" 5 #include <dt-bindings/input/input.h> 6 #include <dt-bindings/pinctrl/qcom,pmic-gpio.h> 11 chassis-type = "handset"; 12 qcom,msm-id = <194 0x10000>; 13 qcom,board-id = <8 0>; 20 stdout-path = "serial0:115200n8"; 23 gpio-keys { 24 compatible = "gpio-keys"; [all …]
|
| D | qcom-msm8974-sony-xperia-rhine.dtsi | 1 // SPDX-License-Identifier: GPL-2.0 2 #include "qcom-msm8974.dtsi" 5 #include <dt-bindings/input/input.h> 6 #include <dt-bindings/leds/common.h> 7 #include <dt-bindings/pinctrl/qcom,pmic-gpio.h> 15 stdout-path = "serial0:115200n8"; 18 gpio-keys { 19 compatible = "gpio-keys"; 21 pinctrl-names = "default"; 22 pinctrl-0 = <&gpio_keys_pin_a>; [all …]
|
| D | qcom-msm8974pro-sony-xperia-shinano-castor.dts | 1 // SPDX-License-Identifier: GPL-2.0 2 #include "qcom-msm8974pro.dtsi" 5 #include <dt-bindings/input/input.h> 6 #include <dt-bindings/leds/common.h> 7 #include <dt-bindings/pinctrl/qcom,pmic-gpio.h> 11 compatible = "sony,xperia-castor", "qcom,msm8974pro", "qcom,msm8974"; 12 chassis-type = "tablet"; 20 stdout-path = "serial0:115200n8"; 23 gpio-keys { 24 compatible = "gpio-keys"; [all …]
|