Home
last modified time | relevance | path

Searched +full:ir +full:- +full:led +full:- +full:current +full:- +full:microamp (Results 1 – 9 of 9) sorted by relevance

/linux/drivers/iio/health/
H A Dmax30102.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * max30102.c - Support for MAX30102 heart rate and pulse oximeter sensor
8 * Copyright (C) 2017 Peter Meerwald-Stadler <pmeerw@pmeerw.net>
10 * 7-bit I2C chip address: 0x57
71 #define MAX30102_REG_MODE_CONFIG_MODE_HR 0x02 /* red LED */
72 #define MAX30102_REG_MODE_CONFIG_MODE_HR_SPO2 0x03 /* red + IR LED */
73 #define MAX30102_REG_MODE_CONFIG_MODE_MULTI 0x07 /* multi-LED mode */
77 #define MAX30102_REG_MODE_CONTROL_SLOT21 0x11 /* multi-LED control */
111 __be32 processed_buffer[3]; /* 3 x 18-bit (padded to 32-bits) */
154 .scan_index = -1,
[all …]
H A Dmax30100.c1 // SPDX-License-Identifier: GPL-2.0+
3 * max30100.c - Support for MAX30100 heart rate and pulse oximeter sensor
76 __be16 buffer[2]; /* 2 16-bit channels */
147 .scan_index = -1,
153 return regmap_update_bits(data->regmap, MAX30100_REG_MODE_CONFIG, in max30100_set_powermode()
162 ret = regmap_write(data->regmap, MAX30100_REG_FIFO_WR_PTR, 0); in max30100_clear_fifo()
166 ret = regmap_write(data->regmap, MAX30100_REG_FIFO_OVR_CTR, 0); in max30100_clear_fifo()
170 return regmap_write(data->regmap, MAX30100_REG_FIFO_RD_PTR, 0); in max30100_clear_fifo()
202 ret = regmap_read(data->regmap, MAX30100_REG_INT_STATUS, &val); in max30100_fifo_count()
208 return MAX30100_REG_FIFO_DATA_ENTRY_COUNT - 1; in max30100_fifo_count()
[all …]
/linux/Documentation/devicetree/bindings/iio/health/
H A Dmaxim,max30100.yaml1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
3 ---
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - Matt Ranostay <matt.ranostay@konsulko.com>
23 maxim,led-current-microamp:
27 LED current whilst the engine is running. First indexed value is
28 the configuration for the RED LED, and second value is for the IR LED.
33 - compatible
34 - reg
35 - interrupts
[all …]
/linux/drivers/leds/flash/
H A Dleds-lm3601x.c1 // SPDX-License-Identifier: GPL-2.0
2 // Flash and torch driver for Texas Instruments LM3601X LED
4 // Copyright (C) 2018 Texas Instruments Incorporated - https://www.ti.com/
9 #include <linux/led-class-flash.h>
73 * struct lm3601x_led - private lm3601x LED data
74 * @fled_cdev: flash LED class device pointer
80 * @torch_current_max: maximum current for the torch
81 * @flash_current_max: maximum current for the flash
83 * @led_mode: The mode to enable either IR or Torch
134 static int lm3601x_read_faults(struct lm3601x_led *led) in lm3601x_read_faults() argument
[all …]
/linux/arch/arm/boot/dts/ti/omap/
H A Domap3-n900.dts1 // SPDX-License-Identifier: GPL-2.0-or-later
4 * Copyright (C) 2013-2014 Aaro Koskinen <aaro.koskinen@iki.fi>
7 /dts-v1/;
10 #include <dt-bindings/input/input.h>
11 #include <dt-bindings/leds/common.h>
12 #include <dt-bindings/media/video-interfaces.h>
15 * Default secure signed bootloader (Nokia X-Loader) does not enable L3 firewall
17 * blocks then kernel receive "Unhandled fault: external abort on non-linefetch"
18 * and crash. Until somebody fix omap-aes.c and omap_hwmod_3xxx_data.c code (no
34 compatible = "nokia,omap3-n900", "ti,omap3430", "ti,omap3";
[all …]
/linux/arch/arm/boot/dts/nxp/imx/
H A Dimx6ull-uti260b.dts1 // SPDX-License-Identifier: (GPL-2.0 OR MIT)
2 // Copyright (C) 2022-2024 Sebastian Reichel <sre@kernel.org>
4 /dts-v1/;
6 #include <dt-bindings/gpio/gpio.h>
7 #include <dt-bindings/input/input.h>
8 #include <dt-bindings/clock/imx6ul-clock.h>
9 #include <dt-bindings/leds/common.h>
12 model = "UNI-T UTi260B Thermal Camera";
13 compatible = "uni-t,uti260b", "fsl,imx6ull";
16 stdout-path = "serial0:115200n8";
[all …]
/linux/arch/arm/boot/dts/st/
H A Dste-ux500-samsung-gavini.dts1 // SPDX-License-Identifier: GPL-2.0-only
3 * Devicetree for the Samsung Galaxy Beam GT-I8530 also known as Gavini.
6 /dts-v1/;
7 #include "ste-db8500.dtsi"
8 #include "ste-ab8500.dtsi"
9 #include "ste-dbx5x0-pinctrl.dtsi"
10 #include <dt-bindings/gpio/gpio.h>
11 #include <dt-bindings/leds/common.h>
12 #include <dt-bindings/input/input.h>
13 #include <dt-bindings/interrupt-controller/irq.h>
[all …]
/linux/drivers/iio/proximity/
H A Dvcnl3020.c1 // SPDX-License-Identifier: GPL-2.0-only
22 #define VCNL_LED_CURRENT 0x83 /* IR LED current for proximity mode */
35 #define VCNL_PS_OD BIT(3) /* start on-demand proximity
69 * struct vcnl3020_data - vcnl3020 specific data.
85 * struct vcnl3020_property - vcnl3020 property.
106 .name = "vishay,led-current-microamp",
117 rc = device_property_read_u32(data->dev, prop.name, &val); in vcnl3020_get_and_apply_property()
124 rc = regmap_write(data->regmap, prop.reg, val); in vcnl3020_get_and_apply_property()
126 dev_err(data->dev, "Error (%d) setting property (%s)\n", in vcnl3020_get_and_apply_property()
138 rc = regmap_read(data->regmap, VCNL_PROD_REV, &reg); in vcnl3020_init()
[all …]
/linux/arch/arm/boot/dts/samsung/
H A Dexynos4412-p4note.dtsi1 // SPDX-License-Identifier: GPL-2.0
4 * Based on exynos4412-midas.dtsi.
10 /dts-v1/;
12 #include "exynos4412-ppmu-common.dtsi"
14 #include <dt-bindings/clock/maxim,max77686.h>
15 #include <dt-bindings/gpio/gpio.h>
16 #include <dt-bindings/input/linux-event-codes.h>
17 #include <dt-bindings/interrupt-controller/irq.h>
18 #include <dt-bindings/power/summit,smb347-charger.h>
19 #include "exynos-pinctrl.h"
[all …]