/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 22 ti,x-plate-resistance: 26 ti,coordinate-readouts: 36 ti,wire-config: 38 wires on touchscreen. We need to provide an 8-bit number where the [all …]
|
H A D | fsl,imx6ul-tsc.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/input/touchscreen/fsl,imx6ul-tsc.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Haibo Chen <haibo.chen@nxp.com> 11 - Shawn Guo <shawnguo@kernel.org> 12 - Sascha Hauer <s.hauer@pengutronix.de> 16 const: fsl,imx6ul-tsc 20 - description: touch controller address 21 - description: ADC2 address [all …]
|
/linux/drivers/power/supply/ |
H A D | huawei-gaokun-battery.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * huawei-gaokun-battery - A power supply driver for HUAWEI Matebook E Go 10 #include <linux/delay.h> 14 #include <linux/platform_data/huawei-gaokun-ec.h> 18 /* -------------------------------------------------------------------------- */ 22 #define EC_BAT_MODEL 0x11 /* from 0x11 to 0x1F, HB30A8P9ECW-22T */ 34 /* -------------------------------------------------------------------------- */ 60 /* -------------------------------------------------------------------------- */ 114 char battery_model[0x10]; /* HB30A8P9ECW-22T, the real one is XXX-22A */ 123 /* -------------------------------------------------------------------------- */ [all …]
|
H A D | ltc2941-battery-gauge.c | 1 // SPDX-License-Identifier: GPL-2.0-only 11 #include <linux/devm-helpers.h> 19 #include <linux/delay.h> 26 #define LTC294X_WORK_DELAY 10 /* Update delay in seconds */ 77 int charge; /* Last charge register content */ member 85 return ((Q * (info->Qlsb / 10))) / 100; in convert_bin_to_uAh() 93 Q = (uAh * 100) / (info->Qlsb/10); in convert_uAh_to_bin() 104 msgs[0].addr = client->addr; in ltc294x_read_regs() 108 msgs[1].addr = client->addr; in ltc294x_read_regs() 113 ret = i2c_transfer(client->adapter, &msgs[0], 2); in ltc294x_read_regs() [all …]
|
H A 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 */ 49 #define CPCAP_REG_CRM_VCHRG3 BIT(7) /* Charge voltage bits */ 53 #define CPCAP_REG_CRM_ICHRG3 BIT(3) /* Charge current bits */ 58 /* CPCAP_REG_CRM trickle charge voltages */ 66 * CPCAP_REG_CRM charge voltages based on the ADC channel 1 values. 89 * CPCAP_REG_CRM charge currents. These seem to match MC13783UG.pdf [all …]
|
H A D | 88pm860x_charger.c | 1 // SPDX-License-Identifier: GPL-2.0-only 16 #include <linux/delay.h> 86 /* over-temperature on PM8606 setting */ 90 /* over-voltage protect on vchg setting mv */ 113 "battery-monitor", 121 ret = pm860x_bulk_read(info->i2c, PM8607_VCHG_MEAS1, 2, buf); in measure_vchg() 129 dev_dbg(info->dev, "%s, vchg: %d mv\n", __func__, *data); in measure_vchg() 144 pm860x_reg_write(info->i2c, PM8607_VCHG_LOWTH, data); in set_vchg_threshold() 145 dev_dbg(info->dev, "VCHG_LOWTH:%dmv, 0x%x\n", min, data); in set_vchg_threshold() 151 pm860x_reg_write(info->i2c, PM8607_VCHG_HIGHTH, data); in set_vchg_threshold() [all …]
|
/linux/arch/arm/mach-pxa/ |
H A D | sharpsl_pm.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Battery and Power Management code for the Sharp SL-C7xx and SL-Cxx00 6 * Copyright (c) 2004-2005 Richard Purdie 17 #include <linux/apm-emulation.h> 19 #include <linux/delay.h> 25 #include <asm/mach-types.h> 27 #include "pxa2xx-regs.h" 28 #include "regs-rtc.h" 173 /* max1111 accepts channels from 0-3, however, in sharpsl_pm_pxa_read_max1111() 174 * it is encoded from 0-7 here in the code. in sharpsl_pm_pxa_read_max1111() [all …]
|
H A D | spitz_pm.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Battery and Power Management code for the Sharp SL-Cxx00 12 #include <linux/delay.h> 14 #include <linux/gpio-pxa.h> 17 #include <linux/apm-emulation.h> 21 #include <asm/mach-types.h> 80 /* HACK - For unknown reasons, accurate voltage readings are only made with a load 91 spitz_last_ac_status = sharpsl_pm.machinfo->read_devdata(SHARPSL_STATUS_ACIN); in spitz_presuspend() 134 int acin = sharpsl_pm.machinfo->read_devdata(SHARPSL_STATUS_ACIN); in spitz_should_wakeup() 138 /* charge on */ in spitz_should_wakeup() [all …]
|
/linux/include/linux/iio/frequency/ |
H A D | ad9523.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 38 * struct ad9523_channel_spec - Output channel configuration 42 * @sync_ignore_en: Ignore chip-level SYNC signal. 49 * @channel_divider: 10-bit channel divider. 106 * struct ad9523_platform_data - platform specific information 109 * @refa_diff_rcv_en: REFA differential/single-ended input selection. 110 * @refb_diff_rcv_en: REFB differential/single-ended input selection. 111 * @zd_in_diff_en: Zero Delay differential/single-ended input selection. 112 * @osc_in_diff_en: OSC differential/ single-ended input selection. 113 * @refa_cmos_neg_inp_en: REFA single-ended neg./pos. input enable. [all …]
|
/linux/arch/sh/boards/mach-r2d/ |
H A D | setup.c | 1 // SPDX-License-Identifier: GPL-2.0 5 * Copyright (C) 2002 - 2006 Atom Create Engineering Co., Ltd. 6 * Copyright (C) 2004 - 2007 Paul Mundt 15 #include <linux/sm501-regs.h> 29 .end = PA_AREA5_IO + 0x1000 + 0x10 - 0x2, 37 #ifndef CONFIG_RTS7751R2D_1 /* For R2D-1 polling is preferred */ 51 .id = -1, 61 .modalias = "rtc-r9701", 69 BUG_ON(cs != 0); /* Single Epson RTC-9701JE attached on CS0 */ in r2d_chip_select() 88 .id = -1, [all …]
|
/linux/include/linux/mfd/ |
H A D | ti_am335x_tscadc.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 5 * Copyright (C) 2012 Texas Instruments Incorporated - https://www.ti.com/ 77 /* Delay register */ 85 /* Charge Config */ 94 /* Charge delay */ 134 * max num cycles = open delay + (sample delay + conv time) * averaging 180 struct ti_tscadc_dev **tscadc_dev = p->dev.platform_data; in ti_tscadc_dev_get() 187 return of_device_is_compatible(tscadc->dev->of_node, in ti_adc_with_touchscreen() 188 "ti,am3359-tscadc"); in ti_adc_with_touchscreen()
|
/linux/Documentation/ABI/testing/ |
H A D | sysfs-class-power-gaokun | 1 What: /sys/class/power_supply/gaokun-ec-battery/smart_charge_delay 6 This entry allows configuration of smart charging delay. 9 for delay hours, battery charging will follow the rules of 11 For more information about charge control, please refer to 12 sysfs-class-power. 16 Valid values: In hours (non-negative) 18 What: /sys/class/power_supply/gaokun-ec-battery/battery_adaptive_charge
|
/linux/arch/arm/boot/dts/qcom/ |
H A D | qcom-msm8974pro-sony-xperia-shinano-castor.dts | 1 // SPDX-License-Identifier: GPL-2.0 2 #include "qcom-msm8974pro-sony-xperia-shinano-common.dtsi" 6 compatible = "sony,xperia-castor", "qcom,msm8974pro", "qcom,msm8974"; 7 chassis-type = "tablet"; 9 vreg_bl_vddio: lcd-backlight-vddio { 10 compatible = "regulator-fixed"; 11 regulator-name = "vreg_bl_vddio"; 12 regulator-min-microvolt = <3150000>; 13 regulator-max-microvolt = <3150000>; 16 enable-active-high; [all …]
|
/linux/drivers/gpu/drm/i915/selftests/ |
H A D | mock_request.c | 4 * Permission is hereby granted, free of charge, to any person obtaining a 31 mock_request(struct intel_context *ce, unsigned long delay) in mock_request() argument 35 /* NB the i915->requests slab cache is enlarged to fit mock_request */ in mock_request() 40 request->mock.delay = delay; in mock_request() 47 container_of(request->engine, typeof(*engine), base); in mock_cancel_request() 50 spin_lock_irq(&engine->hw_lock); in mock_cancel_request() 51 was_queued = !list_empty(&request->mock.link); in mock_cancel_request() 52 list_del_init(&request->mock.link); in mock_cancel_request() 53 spin_unlock_irq(&engine->hw_lock); in mock_cancel_request()
|
/linux/drivers/input/touchscreen/ |
H A D | imx6ul_tsc.c | 1 // SPDX-License-Identifier: GPL-2.0 14 #include <linux/delay.h> 111 reinit_completion(&tsc->completion); in imx6ul_adc_init() 113 adc_cfg = readl(tsc->adc_regs + REG_ADC_CFG); in imx6ul_adc_init() 118 if (tsc->average_enable) { in imx6ul_adc_init() 120 adc_cfg |= (tsc->average_select) << ADC_AVGS_SHIFT; in imx6ul_adc_init() 123 writel(adc_cfg, tsc->adc_regs + REG_ADC_CFG); in imx6ul_adc_init() 128 writel(adc_hc, tsc->adc_regs + REG_ADC_HC0); in imx6ul_adc_init() 131 adc_gc = readl(tsc->adc_regs + REG_ADC_GC); in imx6ul_adc_init() 133 if (tsc->average_enable) in imx6ul_adc_init() [all …]
|
H A D | ti_am335x_tsc.c | 4 * Copyright (C) 2011 Texas Instruments Incorporated - http://www.ti.com/ 26 #include <linux/delay.h> 35 #define MAX_12BIT ((1 << 12) - 1) 64 return readl(ts->mfd_tscadc->tscadc_base + reg); in titsc_readl() 70 writel(val, tsc->mfd_tscadc->tscadc_base + reg); in titsc_writel() 84 analog_line[i] = (ts_dev->config_inp[i] & 0xF0) >> 4; in titsc_config_wires() 85 wire_order[i] = ts_dev->config_inp[i] & 0x0F; in titsc_config_wires() 87 return -EINVAL; in titsc_config_wires() 89 return -EINVAL; in titsc_config_wires() 100 return -EINVAL; in titsc_config_wires() [all …]
|
/linux/Documentation/devicetree/bindings/mfd/ |
H A 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,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/sound/ |
H A D | wlf,wm8903.yaml | 1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 30 - patches@opensource.cirrus.com 39 gpio-controller: true 40 '#gpio-cells': 46 micdet-cfg: 51 micdet-delay: 54 description: The debounce delay for microphone detection in mS. 56 gpio-cfg: [all …]
|
H A D | realtek,rt5682s.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Derek Fang <derek.fang@realtek.com> 13 Rt5682s(ALC5682I-VS) is a rt5682i variant which supports I2C only. 16 - $ref: dai-common.yaml# 30 realtek,dmic1-data-pin: 33 - 0 # dmic1 data is not used 34 - 1 # using GPIO2 pin as dmic1 data pin 35 - 2 # using GPIO5 pin as dmic1 data pin [all …]
|
/linux/drivers/platform/arm64/ |
H A D | huawei-gaokun-ec.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * huawei-gaokun-ec - An EC driver for HUAWEI Matebook E Go 5 * Copyright (C) 2024-2025 Pengyu Luo <mitltlatltl@gmail.com> 10 #include <linux/delay.h> 13 #include <linux/hwmon-sysfs.h> 19 #include <linux/platform_data/huawei-gaokun-ec.h> 86 [RESP_HDR_SIZE + (SIZE) - 1] = 0, \ 128 struct i2c_client *client = ec->client; in gaokun_ec_request() 131 .addr = client->addr, in gaokun_ec_request() 132 .flags = client->flags, in gaokun_ec_request() [all …]
|
/linux/drivers/media/dvb-frontends/ |
H A D | ix2505v.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 3 * Driver for Sharp IX2505V (marked B0017) DVB-S silicon tuner 15 * struct ix2505v_config - ix2505 attachment configuration 18 * @tuner_gain: Baseband AMP gain control 0/1=0dB(default) 2=-2bB 3=-4dB 19 * @tuner_chargepump: Charge pump output +/- 0=120 1=260 2=555 3=1200(default) 20 * @min_delay_ms: delay after tune 34 * ix2505v_attach - Attach a ix2505v tuner to the supplied frontend structure.
|
/linux/arch/arm/boot/dts/allwinner/ |
H A D | sun5i-a13.dtsi | 4 * Maxime Ripard <maxime.ripard@free-electrons.com> 6 * This file is dual-licensed: you can use it either under the terms 23 * b) Permission is hereby granted, free of charge, to any person 47 #include <dt-bindings/thermal/thermal.h> 50 thermal-zones { 51 cpu-thermal { 53 polling-delay-passive = <250>; 54 polling-delay = <1000>; 55 thermal-sensors = <&rtp>; 57 cooling-maps { [all …]
|
/linux/drivers/staging/fbtft/ |
H A D | fb_ssd1305.c | 1 // SPDX-License-Identifier: GPL-2.0+ 12 #include <linux/delay.h> 35 par->fbtftops.reset(par); in init_display() 37 if (par->gamma.curves[0] == 0) { in init_display() 38 mutex_lock(&par->gamma.lock); in init_display() 39 if (par->info->var.yres == 64) in init_display() 40 par->gamma.curves[0] = 0xCF; in init_display() 42 par->gamma.curves[0] = 0x8F; in init_display() 43 mutex_unlock(&par->gamma.lock); in init_display() 55 if (par->info->var.yres == 64) in init_display() [all …]
|
/linux/Documentation/devicetree/bindings/memory-controllers/ |
H A D | mvebu-devbus.txt | 9 - compatible: Armada 370/XP SoC are supported using the 10 "marvell,mvebu-devbus" compatible string. 13 "marvell,orion-devbus" compatible string. 15 - reg: A resource specifier for the register space. 20 - #address-cells: Must be set to 1 21 - #size-cells: Must be set to 1 22 - ranges: Must be set up to reflect the memory layout with four 23 integer values for each chip-select line in use: 28 - devbus,keep-config This property can optionally be used to keep 37 - devbus,turn-off-ps: Defines the time during which the controller does not [all …]
|
/linux/arch/arm/boot/dts/nxp/imx/ |
H A D | imx53-usbarmory.dts | 8 * This file is dual-licensed: you can use it either under the terms 25 * b) Permission is hereby granted, free of charge, to any person 47 /dts-v1/; 52 compatible = "inversepath,imx53-usbarmory", "fsl,imx53"; 57 stdout-path = &uart1; 66 compatible = "gpio-leds"; 67 pinctrl-names = "default"; 68 pinctrl-0 = <&pinctrl_led>; 70 led-user { 73 linux,default-trigger = "heartbeat"; [all …]
|