| /linux/Documentation/devicetree/bindings/leds/ | 
| H A D | maxim,max77693.yaml | 1 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause3 ---
 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/Documentation/devicetree/bindings/mfd/ | 
| H A D | rockchip,rk817.yaml | 1 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause3 ---
 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,rk809
 22       - rockchip,rk817
 30   '#clock-cells':
 32       See <dt-bindings/clock/rockchip,rk808.h> for clock IDs.
 39   clock-names:
 [all …]
 
 | 
| /linux/Documentation/devicetree/bindings/leds/backlight/ | 
| H A 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 <andersson@kernel.org>
 11   - Kiran Gunda <quic_kgunda@quicinc.com>
 21       - qcom,pm8941-wled
 22       - qcom,pmi8950-wled
 23       - qcom,pmi8994-wled
 24       - qcom,pmi8998-wled
 [all …]
 
 | 
| /linux/Documentation/devicetree/bindings/power/supply/ | 
| H A D | richtek,rt9467.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)3 ---
 5 $schema: http://devicetree.org/meta-schemas/core.yaml#
 10   - ChiYuan Huang <cy_huang@richtek.com>
 11   - ChiaEn Wu <chiaen_wu@richtek.com>
 14   RT9467 is a switch-mode single cell Li-Ion/Li-Polymer battery charger for
 16   MOSFETs, input current sensing and regulation, high-accuracy voltage
 17   regulation, and charge termination. The charge current is regulated through
 20   The RT9467 also features USB On-The-Go (OTG) support. It also integrates
 21   D+/D- pin for USB host/charging port detection.
 [all …]
 
 | 
| H A D | richtek,rt9471.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)3 ---
 5 $schema: http://devicetree.org/meta-schemas/core.yaml#
 10   - Alina Yu <alina_yu@richtek.com>
 11   - ChiYuan Huang <cy_huang@richtek.com>
 14   RT9471 is a switch-mode single cell Li-Ion/Li-Polymer battery charger for
 15   portable applications. It supports USB BC1.2 port detection, current and
 16   voltage regulations in both charging and boost mode.
 19   https://www.richtek.com/assets/product_file/RT9471=RT9471D/DS9471D-02.pdf
 28   charge-enable-gpios:
 [all …]
 
 | 
| /linux/arch/arm64/boot/dts/allwinner/ | 
| H A D | sun50i-h700-anbernic-rg35xx-2024.dts | 1 // SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)6 /dts-v1/;
 8 #include "sun50i-h616.dtsi"
 9 #include "sun50i-h616-cpu-opp.dtsi"
 10 #include <dt-bindings/gpio/gpio.h>
 11 #include <dt-bindings/input/linux-event-codes.h>
 12 #include <dt-bindings/interrupt-controller/arm-gic.h>
 13 #include <dt-bindings/leds/common.h>
 17 	chassis-type = "handset";
 18 	compatible = "anbernic,rg35xx-2024", "allwinner,sun50i-h700";
 [all …]
 
 | 
| /linux/arch/arm64/boot/dts/rockchip/ | 
| H A D | rk3566-powkiddy-rk2023.dtsi | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)3 /dts-v1/;
 5 #include <dt-bindings/gpio/gpio.h>
 6 #include <dt-bindings/input/linux-event-codes.h>
 7 #include <dt-bindings/leds/common.h>
 8 #include <dt-bindings/pinctrl/rockchip.h>
 9 #include <dt-bindings/soc/rockchip,vop2.h>
 13 	chassis-type = "handset";
 21 	adc-joystick {
 22 		compatible = "adc-joystick";
 [all …]
 
 | 
| H A D | rk3566-pinetab2.dtsi | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)3 #include <dt-bindings/gpio/gpio.h>
 4 #include <dt-bindings/input/gpio-keys.h>
 5 #include <dt-bindings/input/input.h>
 6 #include <dt-bindings/leds/common.h>
 7 #include <dt-bindings/pinctrl/rockchip.h>
 8 #include <dt-bindings/soc/rockchip,vop2.h>
 9 #include <dt-bindings/usb/pd.h>
 13 	chassis-type = "tablet";
 21 		stdout-path = "serial2:1500000n8";
 [all …]
 
 | 
| H A D | rk3326-gameforce-chi.dts | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)6 /dts-v1/;
 7 #include <dt-bindings/gpio/gpio.h>
 8 #include <dt-bindings/input/input.h>
 9 #include <dt-bindings/leds/common.h>
 10 #include <dt-bindings/pinctrl/rockchip.h>
 16 	chassis-type = "handset";
 24 		stdout-path = "serial2:115200n8";
 27 	adc_joystick: adc-joystick {
 28 		compatible = "adc-joystick";
 [all …]
 
 | 
| H A D | rk3326-odroid-go.dtsi | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)8 /dts-v1/;
 9 #include <dt-bindings/gpio/gpio.h>
 10 #include <dt-bindings/input/input.h>
 11 #include <dt-bindings/leds/common.h>
 12 #include <dt-bindings/pinctrl/rockchip.h>
 21 		stdout-path = "serial2:115200n8";
 25 		compatible = "pwm-backlight";
 26 		power-supply = <&vcc_bl>;
 30 	builtin_gamepad: gpio-keys {
 [all …]
 
 | 
| /linux/arch/arm/boot/dts/st/ | 
| H A D | stm32mp135f-dhcor-dhsbc.dts | 1 // SPDX-License-Identifier: (GPL-2.0+ OR BSD-3-Clause)6  * DHCR-STM32MP135F-C100-R051-EE-F0409-SPI4-RTC-WBT-I-01LG
 7  * DHCOR PCB number: 718-100 or newer
 8  * DHSBC PCB number: 719-100 or newer
 11 /dts-v1/;
 13 #include <dt-bindings/regulator/st,stm32mp13-regulator.h>
 16 #include "stm32mp13xx-dhcor-som.dtsi"
 20 	compatible = "dh,stm32mp135f-dhcor-dhsbc",
 21 		     "dh,stm32mp135f-dhcor-som",
 32 		stdout-path = "serial0:115200n8";
 [all …]
 
 | 
| H A D | stm32mp135f-dk.dts | 1 // SPDX-License-Identifier: (GPL-2.0+ OR BSD-3-Clause)3  * Copyright (C) STMicroelectronics 2021 - All Rights Reserved
 7 /dts-v1/;
 9 #include <dt-bindings/gpio/gpio.h>
 10 #include <dt-bindings/input/input.h>
 11 #include <dt-bindings/leds/common.h>
 12 #include <dt-bindings/regulator/st,stm32mp13-regulator.h>
 15 #include "stm32mp13-pinctrl.dtsi"
 18 	model = "STMicroelectronics STM32MP135F-DK Discovery Board";
 19 	compatible = "st,stm32mp135f-dk", "st,stm32mp135";
 [all …]
 
 | 
| /linux/drivers/leds/flash/ | 
| H A D | leds-max77693.c | 1 // SPDX-License-Identifier: GPL-2.0-only11 #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 …]
 
 | 
| H A D | leds-as3645a.c | 1 // SPDX-License-Identifier: GPL-2.0-only3  * 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 …]
 
 | 
| H A D | leds-rt8515.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later6  * 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/Documentation/devicetree/bindings/phy/ | 
| H A D | phy-stm32-usbphyc.yaml | 1 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause3 ---
 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/arch/arm64/boot/dts/qcom/ | 
| H A D | sdm630-sony-xperia-nile.dtsi | 1 // SPDX-License-Identifier: BSD-3-Clause10 #include <dt-bindings/gpio/gpio.h>
 11 #include <dt-bindings/input/input.h>
 12 #include <dt-bindings/input/gpio-keys.h>
 13 #include <dt-bindings/leds/common.h>
 17 	qcom,msm-id = <318 0>;
 18 	qcom,board-id = <8 1>;
 19 	qcom,pmic-id = <0x1001b 0x101011a 0x00 0x00 0x1001b 0x201011a 0x00 0x00>;
 21 	/* This part enables graphical output via bootloader-enabled display */
 25 		#address-cells = <2>;
 [all …]
 
 | 
| /linux/drivers/phy/st/ | 
| H A D | phy-stm32-usbphyc.c | 1 // SPDX-License-Identifier: GPL-2.010 #include <linux/clk-provider.h>
 173 	ret = regulator_enable(usbphyc->vdda1v1);  in stm32_usbphyc_regulators_enable()
 177 	ret = regulator_enable(usbphyc->vdda1v8);  in stm32_usbphyc_regulators_enable()
 184 	regulator_disable(usbphyc->vdda1v1);  in stm32_usbphyc_regulators_enable()
 193 	ret = regulator_disable(usbphyc->vdda1v8);  in stm32_usbphyc_regulators_disable()
 197 	ret = regulator_disable(usbphyc->vdda1v1);  in stm32_usbphyc_regulators_disable()
 217 	 * <=>  PLLFRACIN = ((FVCO / (INFF*2)) - PLLNDIV) * 2^16  in stm32_usbphyc_get_pll_params()
 223 	pll_params->ndiv = (u8)ndiv;  in stm32_usbphyc_get_pll_params()
 227 	frac = frac - (ndiv * (1 << 16));  in stm32_usbphyc_get_pll_params()
 [all …]
 
 | 
| /linux/drivers/power/supply/ | 
| H A D | cpcap-charger.c | 1 // SPDX-License-Identifier: GPL-2.0-only10  * 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 …]
 
 | 
| /linux/drivers/video/backlight/ | 
| H A D | qcom-wled.c | 1 // SPDX-License-Identifier: GPL-2.0-only61 /* 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/drivers/leds/ | 
| H A D | leds-lm3692x.c | 1 // SPDX-License-Identifier: GPL-2.03 // 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/arch/arm64/boot/dts/freescale/ | 
| H A 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 …]
 
 | 
| /linux/sound/soc/codecs/ | 
| H A D | rt5640.c | 1 // SPDX-License-Identifier: GPL-2.0-only3  * rt5640.c  --  RT5640/RT5639 ALSA SoC audio codec driver
 27 #include <sound/soc-dapm.h>
 340 static const DECLARE_TLV_DB_SCALE(out_vol_tlv, -4650, 150, 0);
 341 static const DECLARE_TLV_DB_MINMAX(dac_vol_tlv, -6562, 0);
 342 static const DECLARE_TLV_DB_SCALE(in_vol_tlv, -3450, 150, 0);
 343 static const DECLARE_TLV_DB_MINMAX(adc_vol_tlv, -1762, 3000);
 409 	SOC_SINGLE_TLV("IN1 Boost", RT5640_IN1_IN2,
 411 	SOC_SINGLE_TLV("IN2 Boost", RT5640_IN3_IN4,
 413 	SOC_SINGLE_TLV("IN3 Boost", RT5640_IN1_IN2,
 [all …]
 
 |