| /linux/Documentation/devicetree/bindings/pinctrl/ |
| H A D | mediatek,mt8186-pinctrl.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/pinctrl/mediatek,mt8186-pinctrl.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Sean Wang <sean.wang@mediatek.com> 17 const: mediatek,mt8186-pinctrl 19 gpio-controller: true 21 '#gpio-cells': 28 gpio-ranges: 31 gpio-line-names: true [all …]
|
| H A D | mediatek,mt8195-pinctrl.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/pinctrl/mediatek,mt8195-pinctrl.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Sean Wang <sean.wang@mediatek.com> 17 const: mediatek,mt8195-pinctrl 19 gpio-controller: true 21 '#gpio-cells': 28 gpio-ranges: 32 gpio-line-names: true [all …]
|
| H A D | mediatek,mt8188-pinctrl.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/pinctrl/mediatek,mt8188-pinctrl.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Hui Liu <hui.liu@mediatek.com> 17 const: mediatek,mt8188-pinctrl 19 gpio-controller: true 21 '#gpio-cells': 25 are defined in <dt-bindings/gpio/gpio.h>. 28 gpio-ranges: [all …]
|
| H A D | mediatek,mt8196-pinctrl.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/pinctrl/mediatek,mt8196-pinctrl.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Lei Xue <lei.xue@mediatek.com> 11 - Cathy Xu <ot_cathy.xu@mediatek.com> 18 const: mediatek,mt8196-pinctrl 22 - description: gpio base 23 - description: rt group IO 24 - description: rm1 group IO [all …]
|
| H A D | mediatek,mt8189-pinctrl.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/pinctrl/mediatek,mt8189-pinctrl.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Lei Xue <lei.xue@mediatek.com> 11 - Cathy Xu <ot_cathy.xu@mediatek.com> 18 const: mediatek,mt8189-pinctrl 22 - description: gpio base 23 - description: lm group IO 24 - description: rb0 group IO [all …]
|
| H A D | mediatek,mt6893-pinctrl.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/pinctrl/mediatek,mt6893-pinctrl.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com> 17 const: mediatek,mt6893-pinctrl 21 - description: pin controller base 22 - description: rm group IO 23 - description: bm group IO 24 - description: lm group IO [all …]
|
| H A D | mediatek,mt6795-pinctrl.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/pinctrl/mediatek,mt6795-pinctrl.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com> 11 - Sean Wang <sean.wang@kernel.org> 18 const: mediatek,mt6795-pinctrl 20 gpio-controller: true 22 '#gpio-cells': 29 gpio-ranges: [all …]
|
| /linux/Documentation/devicetree/bindings/mfd/ |
| H A D | twl6040.txt | 3 The TWL6040s are 8-channel high quality low-power audio codecs providing audio, 4 vibra and GPO functionality on OMAP4+ platforms. 9 - compatible : "ti,twl6040" for twl6040, "ti,twl6041" for twl6041 10 - reg: must be 0x4b for i2c address 11 - interrupts: twl6040 has one interrupt line connecteded to the main SoC 12 - gpio-controller: 13 - #gpio-cells = <1>: twl6040 provides GPO lines. 14 - #clock-cells = <0>; twl6040 is a provider of pdmclk which is used by McPDM 15 - twl6040,audpwron-gpio: Power on GPIO line for the twl6040 17 - vio-supply: Regulator for the twl6040 VIO supply [all …]
|
| /linux/Documentation/devicetree/bindings/hwmon/ |
| H A D | max6697.txt | 4 - compatible: 16 - reg: I2C address 20 - smbus-timeout-disable 23 - extended-range-enable 26 - beta-compensation-enable 27 Only valid for MAX6693 and MX6694. Set to enable beta compensation on 30 - alert-mask 34 - over-temperature-mask 35 Over-temperature bit mask. Over-temperature reporting disabled for 38 If not specified, over-temperature reporting will be enabled for all [all …]
|
| /linux/Documentation/devicetree/bindings/input/touchscreen/ |
| H A D | ti,am3359-tsc.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/input/touchscreen/ti,am3359-tsc.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Miquel Raynal <miquel.raynal@bootlin.com> 14 const: ti,am3359-tsc 18 support on the platform. 22 ti,x-plate-resistance: 23 description: X plate resistance 26 ti,coordinate-readouts: [all …]
|
| /linux/Documentation/devicetree/bindings/power/supply/ |
| H A D | battery.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Sebastian Reichel <sre@kernel.org> 14 In smart batteries, these are typically stored in non-volatile memory 15 on a fuel gauge chip. The battery node should be used where there is 16 no appropriate non-volatile memory, or it is unprogrammed/incorrect. 27 Batteries must be referenced by chargers and/or fuel-gauges using a phandle. 28 The phandle's property should be named "monitored-battery". 32 const: simple-battery [all …]
|
| /linux/include/linux/spi/ |
| H A D | ds1305.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 6 * One-time configuration for ds1305 and ds1306 RTC chips. 10 * backup power, and potentially on the first boot. 20 #define DS1305_TRICKLE_2K 0x01 /* 2 KOhm resistance */ 21 #define DS1305_TRICKLE_4K 0x02 /* 4 KOhm resistance */ 22 #define DS1305_TRICKLE_8K 0x03 /* 8 KOhm resistance */ 25 /* set only on ds1306 parts */
|
| /linux/drivers/power/supply/ |
| H A D | power_supply_core.c | 1 // SPDX-License-Identifier: GPL-2.0-only 24 #include <linux/fixp-arith.h> 26 #include "samsung-sdi-battery.h" 47 if (!supply->supplied_from && !supplier->supplied_to) in __power_supply_is_supplied_by() 51 if (supply->supplied_from) { in __power_supply_is_supplied_by() 52 if (!supplier->desc->name) in __power_supply_is_supplied_by() 54 for (i = 0; i < supply->num_supplies; i++) in __power_supply_is_supplied_by() 55 if (!strcmp(supplier->desc->name, supply->supplied_from[i])) in __power_supply_is_supplied_by() 58 if (!supply->desc->name) in __power_supply_is_supplied_by() 60 for (i = 0; i < supplier->num_supplicants; i++) in __power_supply_is_supplied_by() [all …]
|
| H A D | samsung-sdi-battery.c | 1 // SPDX-License-Identifier: GPL-2.0 8 * The BTI (battery type indicator) resistance in the code drops was very 9 * unreliable. The resistance listed here was obtained by simply measuring 10 * the BTI resistance with a multimeter on the battery. 14 #include "samsung-sdi-battery.h" 23 * Voltage to internal resistance tables. The internal resistance varies 24 * depending on the VBAT voltage, so look this up from a table. Different 25 * tables apply depending on whether we are charging or not. 425 * Temperature to internal resistance scaling tables. 427 * "resistance" is the percentage of the resistance determined from the voltage [all …]
|
| /linux/drivers/iio/adc/ |
| H A D | qcom-vadc-common.c | 1 // SPDX-License-Identifier: GPL-2.0 5 #include <linux/fixp-arith.h> 6 #include <linux/iio/adc/qcom-vadc-common.h> 14 * struct vadc_map_pt - Map the graph representation for ADC channel 17 * resistance. 26 {1758, -40000 }, 27 {1742, -35000 }, 28 {1719, -30000 }, 29 {1691, -25000 }, 30 {1654, -20000 }, [all …]
|
| /linux/drivers/leds/flash/ |
| H A D | leds-rt8515.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 4 * found on some Samsung mobile phones. 13 * On the LG P970: 14 * RFS (resistance flash setting?) is 20 kOhm 15 * RTS (resistance torch setting?) is 39 kOhm 28 #include <linux/led-class-flash.h> 35 #include <media/v4l2-flash-led-class.h> 37 /* We can provide 15-700 mA out to the LED */ 40 /* The maximum intensity is 1-16 for flash and 1-100 for torch */ 68 gpiod_set_value(rt->enable_flash, 0); in rt8515_gpio_led_off() [all …]
|
| /linux/Documentation/devicetree/bindings/iio/potentiometer/ |
| H A D | renesas,x9250.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Herve Codina <herve.codina@bootlin.com> 14 On each potentiometer, the X9250T has a 100 kOhms total resistance and the 15 X9250U has a 50 kOhms total resistance. 18 - $ref: /schemas/spi/spi-peripheral-props.yaml 23 - renesas,x9250t 24 - renesas,x9250u 29 vcc-supply: [all …]
|
| /linux/include/linux/ |
| H A D | led-lm3530.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 3 * Copyright (C) 2011 ST-Ericsson SA. 9 * based on leds-lm3530.c by Dan Murphy <D.Murphy@motorola.com> 83 * @als_input_mode: select source of ALS input - ALS1/2 or average 85 * @pwm_pol_hi: PWM input polarity - active high/active low 87 * @brt_ramp_law: brightness mapping mode - exponential/linear 90 * @als1_resistor_sel: internal resistance from ALS1 input to ground 91 * @als2_resistor_sel: internal resistance from ALS2 input to ground 94 * @brt_val: brightness value (0-127)
|
| /linux/arch/arm/boot/dts/allwinner/ |
| H A D | sunxi-bananapi-m2-plus-v1.2.dtsi | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 3 * Copyright (C) 2018 Chen-Yu Tsai <wens@csie.org> 6 #include "sunxi-bananapi-m2-plus.dtsi" 11 * resistance on the CPU regulator's feedback pin. 13 reg_vdd_cpux: vdd-cpux { 14 compatible = "regulator-gpio"; 15 regulator-name = "vdd-cpux"; 16 regulator-type = "voltage"; 17 regulator-boot-on; 18 regulator-always-on; [all …]
|
| /linux/Documentation/devicetree/bindings/regulator/ |
| H A D | rohm,bd9576-regulator.yaml | 1 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause 3 --- 4 $id: http://devicetree.org/schemas/regulator/rohm,bd9576-regulator.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Matti Vaittinen <mazziesaccount@gmail.com> 14 see Documentation/devicetree/bindings/mfd/rohm,bd9576-pmic.yaml. 16 The regulator controller is represented as a sub-node of the PMIC node 17 on the device tree. 20 regulator-vd50, regulator-vd18, regulator-vdddr, regulator-vd10, 21 regulator-voutl1, regulator-vouts1 [all …]
|
| /linux/drivers/rtc/ |
| H A D | rtc-rv3029c2.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Micro Crystal RV-3029 / RV-3049 rtc class driver 5 * Author: Gregory Hermant <gregory.hermant@calao-systems.com> 8 * based on previously existing rtc class drivers 19 #include <linux/hwmon-sysfs.h> 97 #define RV3029_TRICKLE_1K BIT(4) /* 1.5K resistance */ 98 #define RV3029_TRICKLE_5K BIT(5) /* 5K resistance */ 99 #define RV3029_TRICKLE_20K BIT(6) /* 20K resistance */ 100 #define RV3029_TRICKLE_80K BIT(7) /* 80K resistance */ 107 #define RV3029_CONTROL_E2P_XOFFS_SIGN BIT(7) /* Sign: 1->pos, 0->neg */ [all …]
|
| /linux/Documentation/misc-devices/ |
| H A D | ad525x_dpot.rst | 1 .. SPDX-License-Identifier: GPL-2.0 8 work with the immediate resistance settings as well as update the saved startup 17 many depends on the actual part you have, as will the range of allowed values. 23 The tolerance files are the read-only factory programmed tolerance settings 24 and may vary greatly on a part-by-part basis. For exact interpretation of 35 0-0022 0-0027 0-002f 37 So assuming the device in question is on the first i2c bus and has the slave 40 # ls /sys/bus/i2c/devices/0-002f/ 45 # cd /sys/bus/i2c/devices/0-002f/
|
| /linux/Documentation/devicetree/bindings/thermal/ |
| H A D | generic-adc-thermal.yaml | 1 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause 3 --- 4 $id: http://devicetree.org/schemas/thermal/generic-adc-thermal.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Laxman Dewangan <ldewangan@nvidia.com> 13 On some of platforms, thermal sensor like thermistors are connected to 14 one of ADC channel and sensor resistance is read via voltage across the 16 temperature using voltage-temperature lookup table. 18 $ref: thermal-sensor.yaml# 22 const: generic-adc-thermal [all …]
|
| /linux/Documentation/devicetree/bindings/iio/adc/ |
| H A D | fsl,vf610-adc.yaml | 1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/iio/adc/fsl,vf610-adc.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: ADC found on Freescale vf610 and similar SoCs 10 - Haibo Chen <haibo.chen@nxp.com> 13 ADCs found on vf610/i.MX6slx and upward SoCs from Freescale. 18 - items: 19 - enum: 20 - fsl,imx6sx-adc [all …]
|
| /linux/drivers/input/touchscreen/ |
| H A D | colibri-vf50-ts.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 25 #define DRIVER_NAME "colibri-vf50-ts" 27 #define VF_ADC_MAX ((1 << 12) - 1) 83 * Enable touch detection using falling edge detection on XM 88 gpiod_set_value(vf50_ts->gpio_ym, 1); in vf50_ts_enable_touch_detection() 92 * Pull-Up on GPIO in vf50_ts_enable_touch_detection() 94 pinctrl_pm_select_idle_state(&vf50_ts->pdev->dev); in vf50_ts_enable_touch_detection() 96 /* Wait for the pull-up to be stable on high */ in vf50_ts_enable_touch_detection() 106 struct device *dev = &vf50_ts->pdev->dev; in vf50_ts_irq_bh() 111 gpiod_set_value(vf50_ts->gpio_ym, 0); in vf50_ts_irq_bh() [all …]
|