/Linux-v6.1/Documentation/devicetree/bindings/leds/ |
D | maxim,max77693.yaml | 1 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Krzysztof Kozlowski <krzk@kernel.org> 16 There are two LED outputs available - FLED1 and FLED2. Each of them can 18 maximum current for a single connected LED. One LED is represented by one 26 const: maxim,max77693-led 28 maxim,boost-mode: 30 In boost mode the device can produce up to 1.2A of total current on both 31 outputs. The maximum current on each output is reduced to 625mA then. If [all …]
|
/Linux-v6.1/Documentation/devicetree/bindings/mfd/ |
D | maxim,max77693.yaml | 1 # SPDX-License-Identifier: GPL-2.0-only 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Chanwoo Choi <cw00.choi@samsung.com> 11 - Krzysztof Kozlowski <krzk@kernel.org> 18 includes voltage current regulators, charger, LED/flash, haptic motor driver 37 max77693-muic: 43 const: maxim,max77693-muic 46 - compatible 48 motor-driver: [all …]
|
D | rockchip,rk817.yaml | 1 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Chris Zhong <zyw@rock-chips.com> 11 - Zhang Qing <zhangqing@rock-chips.com> 21 - rockchip,rk817 29 '#clock-cells': 31 See <dt-bindings/clock/rockchip,rk808.h> for clock IDs. 35 clock-output-names: 39 rockchip,system-power-controller: [all …]
|
/Linux-v6.1/Documentation/devicetree/bindings/leds/backlight/ |
D | qcom-wled.yaml | 1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/leds/backlight/qcom-wled.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Bjorn Andersson <bjorn.andersson@linaro.org> 11 - Kiran Gunda <kgunda@codeaurora.org> 21 - qcom,pm8941-wled 22 - qcom,pmi8994-wled 23 - qcom,pmi8998-wled 24 - qcom,pm660l-wled [all …]
|
/Linux-v6.1/drivers/leds/flash/ |
D | leds-max77693.c | 1 // SPDX-License-Identifier: GPL-2.0-only 11 #include <linux/led-class-flash.h> 13 #include <linux/mfd/max77693-common.h> 14 #include <linux/mfd/max77693-private.h> 20 #include <media/v4l2-flash-led-class.h> 83 /* maximum torch current values for FLED outputs */ 85 /* maximum flash current values for FLED outputs */ 88 /* current flash timeout cache */ 96 /* bitmask of FLED outputs use state (bit 0. - FLED1, bit 1. - FLED2) */ 101 /* arrangement of current outputs */ [all …]
|
D | leds-as3645a.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * drivers/leds/leds-as3645a.c - AS3645A and LM3555 flash controllers driver 5 * Copyright (C) 2008-2011 Nokia Corporation 16 #include <linux/led-class-flash.h> 23 #include <media/v4l2-flash-led-class.h> 25 #define AS_TIMER_US_TO_CODE(t) (((t) / 1000 - 100) / 50) 30 /* Read-only Design info register: Reset state: xxxx 0001 */ 35 /* Read-only Version control register: Reset state: 0000 0000 48 /* Read / Write (Current set register): Reset state: 0110 1001 */ 74 /* Boost register */ [all …]
|
D | leds-rt8515.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 6 * This is a 1.5A Boost dual channel driver produced around 2011. 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() 69 gpiod_set_value(rt->enable_torch, 0); in rt8515_gpio_led_off() 96 mutex_lock(&rt->lock); in rt8515_led_brightness_set() 103 rt8515_gpio_brightness_commit(rt->enable_torch, brightness); in rt8515_led_brightness_set() [all …]
|
/Linux-v6.1/arch/arm64/boot/dts/rockchip/ |
D | rk3326-odroid-go2.dts | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 7 /dts-v1/; 8 #include <dt-bindings/gpio/gpio.h> 9 #include <dt-bindings/input/input.h> 10 #include <dt-bindings/pinctrl/rockchip.h> 14 model = "ODROID-GO Advance"; 15 compatible = "hardkernel,rk3326-odroid-go2", "rockchip,rk3326"; 22 stdout-path = "serial2:115200n8"; 25 adc-joystick { 26 compatible = "adc-joystick"; [all …]
|
/Linux-v6.1/Documentation/devicetree/bindings/phy/ |
D | phy-stm32-usbphyc.yaml | 1 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause 3 --- 4 $id: http://devicetree.org/schemas/phy/phy-stm32-usbphyc.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 22 |_ PHY port#2 ----| |________________ 27 - Amelie Delaunay <amelie.delaunay@foss.st.com> 31 const: st,stm32mp1-usbphyc 42 "#address-cells": 45 "#size-cells": 48 vdda1v1-supply: [all …]
|
/Linux-v6.1/arch/arm64/boot/dts/qcom/ |
D | sm7225-fairphone-fp4.dts | 1 // SPDX-License-Identifier: BSD-3-Clause 6 /dts-v1/; 8 #include <dt-bindings/gpio/gpio.h> 9 #include <dt-bindings/input/input.h> 10 #include <dt-bindings/pinctrl/qcom,pmic-gpio.h> 11 #include <dt-bindings/regulator/qcom,rpmh-regulator.h> 20 chassis-type = "handset"; 23 qcom,msm-id = <434 0x10000>, <459 0x10000>; 24 qcom,board-id = <8 32>; 31 #address-cells = <2>; [all …]
|
D | sdm845-xiaomi-beryllium.dts | 1 // SPDX-License-Identifier: GPL-2.0 3 /dts-v1/; 5 #include <dt-bindings/pinctrl/qcom,pmic-gpio.h> 6 #include <dt-bindings/regulator/qcom,rpmh-regulator.h> 7 #include <dt-bindings/sound/qcom,q6afe.h> 8 #include <dt-bindings/sound/qcom,q6asm.h> 17 /delete-node/ &tz_mem; 18 /delete-node/ &adsp_mem; 19 /delete-node/ &wlan_msa_mem; 20 /delete-node/ &mpss_region; [all …]
|
D | sdm845-xiaomi-polaris.dts | 1 // SPDX-License-Identifier: BSD-3-Clause 7 /dts-v1/; 9 #include <dt-bindings/gpio/gpio.h> 10 #include <dt-bindings/pinctrl/qcom,pmic-gpio.h> 11 #include <dt-bindings/regulator/qcom,rpmh-regulator.h> 12 #include <dt-bindings/input/linux-event-codes.h> 13 #include <dt-bindings/sound/qcom,q6afe.h> 14 #include <dt-bindings/sound/qcom,q6asm.h> 24 /delete-node/ &rmtfs_mem; 25 /delete-node/ &adsp_mem; [all …]
|
/Linux-v6.1/drivers/usb/misc/ |
D | usb251xb.c | 1 // SPDX-License-Identifier: GPL-2.0+ 3 * Driver for Microchip USB251xB USB 2.0 Hi-Speed Hub Controller 9 * a not-accepted patch by Fabien Lahoudere, see: 110 #define DRIVER_DESC "Microchip USB 2.0 Hi-Speed Hub Controller" 234 if (dev->type == &i2c_adapter_type) { in usb251xb_check_dev_children() 244 struct gpio_chip *gc = gpiod_to_chip(hub->gpio_reset); in usb251x_check_gpio_chip() 245 struct i2c_adapter *adap = hub->i2c->adapter; in usb251x_check_gpio_chip() 248 if (!hub->gpio_reset) in usb251x_check_gpio_chip() 252 return -EINVAL; in usb251x_check_gpio_chip() 254 ret = usb251xb_check_dev_children(&adap->dev, gc->parent); in usb251x_check_gpio_chip() [all …]
|
/Linux-v6.1/drivers/phy/st/ |
D | phy-stm32-usbphyc.c | 1 // SPDX-License-Identifier: GPL-2.0 10 #include <linux/clk-provider.h> 172 ret = regulator_enable(usbphyc->vdda1v1); in stm32_usbphyc_regulators_enable() 176 ret = regulator_enable(usbphyc->vdda1v8); in stm32_usbphyc_regulators_enable() 183 regulator_disable(usbphyc->vdda1v1); in stm32_usbphyc_regulators_enable() 192 ret = regulator_disable(usbphyc->vdda1v8); in stm32_usbphyc_regulators_disable() 196 ret = regulator_disable(usbphyc->vdda1v1); in stm32_usbphyc_regulators_disable() 216 * <=> PLLFRACIN = ((FVCO / (INFF*2)) - PLLNDIV) * 2^16 in stm32_usbphyc_get_pll_params() 222 pll_params->ndiv = (u8)ndiv; in stm32_usbphyc_get_pll_params() 226 frac = frac - (ndiv * (1 << 16)); in stm32_usbphyc_get_pll_params() [all …]
|
/Linux-v6.1/drivers/power/supply/ |
D | cpcap-charger.c | 1 // SPDX-License-Identifier: GPL-2.0-only 10 * Copyright (C) 2009-2010 Motorola, Inc. 31 #include <linux/mfd/motorola-cpcap.h> 38 * similar. Also see the Motorola Linux kernel cpcap-regbits.h. CPCAP_REG_CHRGR_1 45 #define CPCAP_REG_CRM_ICHRG_TR1 BIT(11) /* Trickle charge current */ 53 #define CPCAP_REG_CRM_ICHRG3 BIT(3) /* Charge current bits */ 90 * values in "Table 8-3. Charge Path Regulator Current Limit 114 #define CPCAP_BIT_VBUS_SWITCH BIT(0) /* VBUS boost to 5V */ 181 channel = ddata->channels[CPCAP_CHARGER_IIO_VOLTAGE]; in cpcap_charger_get_charge_voltage() 184 dev_warn(ddata->dev, "%s failed: %i\n", __func__, error); in cpcap_charger_get_charge_voltage() [all …]
|
D | bd99954-charger.c | 1 // SPDX-License-Identifier: GPL-2.0-only 16 * Curve (1) represents charging current. 20 * a) Trickle-charge with constant current (8). 21 * b) pre-charge with constant current (6) 22 * c) fast-charge, first with constant current (5) phase. After 24 * voltage phase until charging current has dropped to termination 30 *(4)` `.` ` ` ` ` ` ` ` ` ` ` ` ` ` ----------------------------. 32 * . o----+/:/ ` ` ` ` ` ` ` ` ` ` ` ` `.` ` (5) 34 * . + /- -- . 35 * . +`/- + . [all …]
|
D | bq24190_charger.c | 1 // SPDX-License-Identifier: GPL-2.0-only 19 #include <linux/extcon-provider.h> 32 #define BQ24190_REG_POC 0x01 /* Power-On Configuration */ 50 #define BQ24190_REG_CCC 0x02 /* Charge Current Control */ 57 #define BQ24190_REG_PCTCC 0x03 /* Pre-charge/Termination Current Cntl */ 152 * reads return the current value. In order to return the fault status 190 * The tables below provide a 2-way mapping for the value that goes in 191 * the register field and the real-world value that it represents. 193 * number at that index in the array is the real-world value that it 233 * 'val'. The index range returned is 0 to 'tbl_size' - 1. Assumes that [all …]
|
/Linux-v6.1/drivers/platform/x86/ |
D | x86-android-tablets.c | 1 // SPDX-License-Identifier: GPL-2.0+ 38 #include "../../gpio/gpiolib-acpi.h" 42 * (either IOAPIC index, or GPIO chip name + pin-number). 62 return gc->label && !strcmp(gc->label, data); in gpiochip_find_match_label() 73 return -ENODEV; in x86_android_tablet_get_gpiod() 97 switch (data->type) { in x86_acpi_irq_helper_get() 104 acpi_unregister_gsi(data->index); in x86_acpi_irq_helper_get() 105 irq = acpi_register_gsi(NULL, data->index, data->trigger, data->polarity); in x86_acpi_irq_helper_get() 107 pr_err("error %d getting APIC IRQ %d\n", irq, data->index); in x86_acpi_irq_helper_get() 112 ret = x86_android_tablet_get_gpiod(data->chip, data->index, &gpiod); in x86_acpi_irq_helper_get() [all …]
|
/Linux-v6.1/sound/soc/codecs/ |
D | rt5651.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * rt5651.c -- RT5651 ALSA SoC audio codec driver 23 #include <sound/soc-dapm.h> 287 static const DECLARE_TLV_DB_SCALE(out_vol_tlv, -4650, 150, 0); 288 static const DECLARE_TLV_DB_MINMAX(dac_vol_tlv, -6562, 0); 289 static const DECLARE_TLV_DB_SCALE(in_vol_tlv, -3450, 150, 0); 290 static const DECLARE_TLV_DB_MINMAX(adc_vol_tlv, -1762, 3000); 332 SOC_SINGLE_TLV("IN1 Boost", RT5651_IN1_IN2, 334 SOC_SINGLE_TLV("IN2 Boost", RT5651_IN1_IN2, 336 SOC_SINGLE_TLV("IN3 Boost", RT5651_IN3, [all …]
|
D | rt5640.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * rt5640.c -- RT5640/RT5639 ALSA SoC audio codec driver 28 #include <sound/soc-dapm.h> 342 static const DECLARE_TLV_DB_SCALE(out_vol_tlv, -4650, 150, 0); 343 static const DECLARE_TLV_DB_MINMAX(dac_vol_tlv, -6562, 0); 344 static const DECLARE_TLV_DB_SCALE(in_vol_tlv, -3450, 150, 0); 345 static const DECLARE_TLV_DB_MINMAX(adc_vol_tlv, -1762, 3000); 411 SOC_SINGLE_TLV("IN1 Boost", RT5640_IN1_IN2, 413 SOC_SINGLE_TLV("IN2 Boost", RT5640_IN3_IN4, 415 SOC_SINGLE_TLV("IN3 Boost", RT5640_IN1_IN2, [all …]
|
/Linux-v6.1/drivers/video/backlight/ |
D | qcom-wled.c | 1 // SPDX-License-Identifier: GPL-2.0-only 61 /* WLED3 specific per-'string' registers below */ 93 /* WLED4 specific per-'string' registers below */ 140 /* WLED5 specific per-'string' registers below */ 238 for (i = 0; i < wled->cfg.num_strings; ++i) { in wled3_set_brightness() 239 rc = regmap_bulk_write(wled->regmap, wled->ctrl_addr + in wled3_set_brightness() 240 WLED3_SINK_REG_BRIGHT(wled->cfg.enabled_strings[i]), in wled3_set_brightness() 252 u16 low_limit = wled->max_brightness * 4 / 1000; in wled4_set_brightness() 261 for (i = 0; i < wled->cfg.num_strings; ++i) { in wled4_set_brightness() 262 rc = regmap_bulk_write(wled->regmap, wled->sink_addr + in wled4_set_brightness() [all …]
|
/Linux-v6.1/drivers/leds/ |
D | leds-lm3692x.c | 1 // SPDX-License-Identifier: GPL-2.0 3 // Copyright (C) 2017-18 Texas Instruments Incorporated - https://www.ti.com/ 73 /* Boost Control Bits */ 106 * @model_id: Current device model ID enumerated 150 ret = regmap_read(led->regmap, LM3692X_FAULT_FLAGS, &read_buf); in lm3692x_fault_check() 155 dev_err(&led->client->dev, "Detected a fault 0x%X\n", read_buf); in lm3692x_fault_check() 160 regmap_read(led->regmap, LM3692X_FAULT_FLAGS, &read_buf); in lm3692x_fault_check() 162 dev_err(&led->client->dev, "Second read of fault flags 0x%X\n", in lm3692x_fault_check() 173 if (led->enabled) in lm3692x_leds_enable() 176 if (led->regulator) { in lm3692x_leds_enable() [all …]
|
/Linux-v6.1/arch/arm64/boot/dts/freescale/ |
D | imx8mq-librem5.dtsi | 1 // SPDX-License-Identifier: GPL-2.0+ 3 * Copyright 2018-2020 Purism SPC 6 /dts-v1/; 8 #include "dt-bindings/input/input.h" 9 #include <dt-bindings/interrupt-controller/irq.h> 10 #include <dt-bindings/leds/common.h> 11 #include "dt-bindings/pwm/pwm.h" 12 #include "dt-bindings/usb/pd.h" 18 chassis-type = "handset"; 20 backlight_dsi: backlight-dsi { [all …]
|