| /kernel/linux/linux-4.19/drivers/mfd/ |
| D | jz4740-adc.c | 2 * Copyright (C) 2009-2010, Lars-Peter Clausen <lars@metafoo.de> 3 * JZ4740 SoC ADC driver 14 * This driver synchronizes access to the JZ4740 ADC core between the 15 * JZ4740 battery and hwmon drivers. 31 #include <linux/jz4740-adc.h> 74 status = readb(gc->reg_base + JZ_REG_ADC_STATUS); in jz4740_adc_irq_demux() 78 generic_handle_irq(gc->irq_base + i); in jz4740_adc_irq_demux() 83 /* Refcounting for the ADC clock is done in here instead of in the clock 86 static inline void jz4740_adc_clk_enable(struct jz4740_adc *adc) in jz4740_adc_clk_enable() argument 88 if (atomic_inc_return(&adc->clk_ref) == 1) in jz4740_adc_clk_enable() [all …]
|
| D | Kconfig | 17 ---help--- 33 tristate "Active-semi ACT8945A" 38 Support for the ACT8945A PMIC from Active-semi. This device 39 features three step-down DC/DC converters and four low-dropout 51 Select this to get support for Allwinner SoCs (A10, A13 and A31) ADC. 54 the ADC or the thermal sensor. This will try to probe the ADC driver 55 sun4i-gpadc-iio and the hwmon driver iio_hwmon. 58 called sun4i-gpadc. 77 tablets etc. It has 4 DC/DC step-down regulators, 3 DC/DC step-down 79 over current monitoring, GPIOs, ADC and a watchdog. [all …]
|
| D | Makefile | 1 # SPDX-License-Identifier: GPL-2.0 6 88pm860x-objs := 88pm860x-core.o 88pm860x-i2c.o 7 obj-$(CONFIG_MFD_88PM860X) += 88pm860x.o 8 obj-$(CONFIG_MFD_88PM800) += 88pm800.o 88pm80x.o 9 obj-$(CONFIG_MFD_88PM805) += 88pm805.o 88pm80x.o 10 obj-$(CONFIG_MFD_ACT8945A) += act8945a.o 11 obj-$(CONFIG_MFD_SM501) += sm501.o 12 obj-$(CONFIG_MFD_ASIC3) += asic3.o tmio_core.o 13 obj-$(CONFIG_MFD_BCM590XX) += bcm590xx.o 14 obj-$(CONFIG_MFD_BD9571MWV) += bd9571mwv.o [all …]
|
| /kernel/linux/linux-5.10/Documentation/devicetree/bindings/iio/adc/ |
| D | ingenic,adc.yaml | 1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 2 # Copyright 2019-2020 Artur Rojek 4 --- 5 $id: "http://devicetree.org/schemas/iio/adc/ingenic,adc.yaml#" 6 $schema: "http://devicetree.org/meta-schemas/core.yaml#" 8 title: Ingenic JZ47xx ADC controller IIO bindings 11 - Artur Rojek <contact@artur-rojek.eu> 14 Industrial I/O subsystem bindings for ADC controller found in 17 ADC clients must use the format described in iio-bindings.txt, giving 18 a phandle and IIO specifier pair ("io-channels") to the ADC controller. [all …]
|
| /kernel/linux/linux-5.10/arch/mips/boot/dts/ingenic/ |
| D | jz4740.dtsi | 1 // SPDX-License-Identifier: GPL-2.0 2 #include <dt-bindings/clock/jz4740-cgu.h> 3 #include <dt-bindings/clock/ingenic,tcu.h> 6 #address-cells = <1>; 7 #size-cells = <1>; 8 compatible = "ingenic,jz4740"; 11 #address-cells = <1>; 12 #size-cells = <0>; 16 compatible = "ingenic,xburst-mxu1.0"; 20 clock-names = "cpu"; [all …]
|
| D | jz4725b.dtsi | 1 // SPDX-License-Identifier: GPL-2.0 2 #include <dt-bindings/clock/jz4725b-cgu.h> 3 #include <dt-bindings/clock/ingenic,tcu.h> 6 #address-cells = <1>; 7 #size-cells = <1>; 11 #address-cells = <1>; 12 #size-cells = <0>; 16 compatible = "ingenic,xburst-mxu1.0"; 20 clock-names = "cpu"; 24 cpuintc: interrupt-controller { [all …]
|
| D | qi_lb60.dts | 1 // SPDX-License-Identifier: GPL-2.0 2 /dts-v1/; 4 #include "jz4740.dtsi" 6 #include <dt-bindings/gpio/gpio.h> 7 #include <dt-bindings/iio/adc/ingenic,adc.h> 8 #include <dt-bindings/clock/ingenic,tcu.h> 9 #include <dt-bindings/input/input.h> 18 compatible = "qi,lb60", "ingenic,jz4740"; 27 stdout-path = &uart0; 31 compatible = "regulator-fixed"; [all …]
|
| D | jz4770.dtsi | 1 // SPDX-License-Identifier: GPL-2.0 2 #include <dt-bindings/clock/jz4770-cgu.h> 3 #include <dt-bindings/clock/ingenic,tcu.h> 6 #address-cells = <1>; 7 #size-cells = <1>; 11 #address-cells = <1>; 12 #size-cells = <0>; 16 compatible = "ingenic,xburst-fpu1.0-mxu1.1"; 20 clock-names = "cpu"; 24 cpuintc: interrupt-controller { [all …]
|
| /kernel/linux/linux-4.19/include/linux/ |
| D | jz4740-adc.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 9 * jz4740_adc_set_config - Configure a JZ4740 adc device 10 * @dev: Pointer to a jz4740-adc device 14 * This function can be used by the JZ4740 ADC mfd cells to configure their
|
| /kernel/linux/linux-5.10/include/linux/ |
| D | jz4740-adc.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 9 * jz4740_adc_set_config - Configure a JZ4740 adc device 10 * @dev: Pointer to a jz4740-adc device 14 * This function can be used by the JZ4740 ADC mfd cells to configure their
|
| /kernel/linux/linux-5.10/Documentation/devicetree/bindings/power/supply/ |
| D | ingenic,battery.yaml | 1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 2 # Copyright 2019-2020 Artur Rojek 4 --- 6 $schema: "http://devicetree.org/meta-schemas/core.yaml#" 11 - Artur Rojek <contact@artur-rojek.eu> 16 - const: ingenic,jz4740-battery 17 - items: 18 - enum: 19 - ingenic,jz4725b-battery 20 - ingenic,jz4770-battery [all …]
|
| /kernel/linux/linux-4.19/arch/mips/jz4740/ |
| D | platform.c | 2 * Copyright (C) 2009-2010, Lars-Peter Clausen <lars@metafoo.de> 3 * JZ4740 platform devices 22 #include <linux/dma-mapping.h> 26 #include <asm/mach-jz4740/platform.h> 27 #include <asm/mach-jz4740/base.h> 28 #include <asm/mach-jz4740/irq.h> 44 .end = JZ4740_UDC_BASE_ADDR + 0x10000 - 1, 56 .name = "musb-jz4740", 57 .id = -1, 70 .end = JZ4740_MSC_BASE_ADDR + 0x1000 - 1, [all …]
|
| /kernel/linux/linux-5.10/sound/soc/codecs/ |
| D | jz4740.c | 1 // SPDX-License-Identifier: GPL-2.0 3 // JZ4740 CODEC driver 5 // Copyright (C) 2009-2010, Lars-Peter Clausen <lars@metafoo.de> 80 static const DECLARE_TLV_DB_SCALE(jz4740_in_tlv, -3450, 150, 0); 111 SND_SOC_DAPM_ADC("ADC", "Capture", JZ4740_REG_CODEC_1, 141 {"ADC", NULL, "Input Mixer"}, 153 struct jz4740_codec *jz4740_codec = snd_soc_component_get_drvdata(dai->component); in jz4740_codec_hw_params() 185 return -EINVAL; in jz4740_codec_hw_params() 190 regmap_update_bits(jz4740_codec->regmap, JZ4740_REG_CODEC_2, in jz4740_codec_hw_params() 201 .name = "jz4740-hifi", [all …]
|
| D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.0-only 5 # setting - SPI can't be modular so that case doesn't need to be covered. 386 tristate "Analog Devices AU1761 CODEC - I2C" 392 tristate "Analog Devices AU1761 CODEC - SPI" 429 tristate "Analog Devices ADAU7002 Stereo PDM-to-I2S/TDM Converter" 435 tristate "Analog Devices ADAU7118 8 Channel PDM-to-I2S/TDM Converter - HW Mode" 438 Enable support for the Analog Devices ADAU7118 8 Channel PDM-to-I2S/TDM 444 will be called snd-soc-adau7118-hw. 447 tristate "Analog Devices ADAU7118 8 Channel PDM-to-I2S/TDM Converter - I2C" 452 Enable support for the Analog Devices ADAU7118 8 Channel PDM-to-I2S/TDM [all …]
|
| /kernel/linux/linux-4.19/sound/soc/codecs/ |
| D | jz4740.c | 2 * Copyright (C) 2009-2010, Lars-Peter Clausen <lars@metafoo.de> 87 static const DECLARE_TLV_DB_SCALE(jz4740_in_tlv, -3450, 150, 0); 118 SND_SOC_DAPM_ADC("ADC", "Capture", JZ4740_REG_CODEC_1, 148 {"ADC", NULL, "Input Mixer"}, 160 struct jz4740_codec *jz4740_codec = snd_soc_component_get_drvdata(dai->component); in jz4740_codec_hw_params() 192 return -EINVAL; in jz4740_codec_hw_params() 197 regmap_update_bits(jz4740_codec->regmap, JZ4740_REG_CODEC_2, in jz4740_codec_hw_params() 208 .name = "jz4740-hifi", 243 struct regmap *regmap = jz4740_codec->regmap; in jz4740_codec_set_bias_level() 290 regmap_update_bits(jz4740_codec->regmap, JZ4740_REG_CODEC_1, in jz4740_codec_dev_probe() [all …]
|
| /kernel/linux/linux-5.10/drivers/iio/adc/ |
| D | ingenic-adc.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * ADC driver for the Ingenic JZ47xx SoCs 4 * Copyright (c) 2019 Artur Rojek <contact@artur-rojek.eu> 6 * based on drivers/mfd/jz4740-adc.c 9 #include <dt-bindings/iio/adc/ingenic,adc.h> 98 int (*init_clk_div)(struct device *dev, struct ingenic_adc *adc); 112 struct ingenic_adc *adc = iio_priv(iio_dev); in ingenic_adc_set_adcmd() local 114 mutex_lock(&adc->lock); in ingenic_adc_set_adcmd() 117 readl(adc->base + JZ_ADC_REG_ADCMD); in ingenic_adc_set_adcmd() 124 adc->base + JZ_ADC_REG_ADCMD); in ingenic_adc_set_adcmd() [all …]
|
| /kernel/linux/linux-4.19/drivers/power/supply/ |
| D | jz4740-battery.c | 5 * Copyright (C) 2010, Lars-Peter Clausen <lars@metafoo.de> 30 #include <linux/power/jz4740-battery.h> 31 #include <linux/jz4740-adc.h> 65 complete(&battery->read_completion); in jz_battery_irq_handler() 75 mutex_lock(&battery->lock); in jz_battery_read_voltage() 77 reinit_completion(&battery->read_completion); in jz_battery_read_voltage() 79 enable_irq(battery->irq); in jz_battery_read_voltage() 80 battery->cell->enable(battery->pdev); in jz_battery_read_voltage() 82 t = wait_for_completion_interruptible_timeout(&battery->read_completion, in jz_battery_read_voltage() 86 val = readw(battery->base) & 0xfff; in jz_battery_read_voltage() [all …]
|
| D | Kconfig | 37 which uses IIO framework to read adc. 90 tristate "Active-semi ACT8945A charger driver" 94 Active-semi ActivePath ACT8945A charger. 133 tristate "DS2782/DS2786 standalone gas-gauge" 137 gas-gauge. 159 tristate "Sharp SL-6000 (tosa) battery" 163 SL-6000 (tosa) models. 166 tristate "Sharp SL-5500 (collie) battery" 170 SL-5500 (collie) models. 189 Say Y to include support for SBS battery driver for SBS-compliant [all …]
|
| D | Makefile | 1 # SPDX-License-Identifier: GPL-2.0 2 subdir-ccflags-$(CONFIG_POWER_SUPPLY_DEBUG) := -DDEBUG 4 power_supply-y := power_supply_core.o 5 power_supply-$(CONFIG_SYSFS) += power_supply_sysfs.o 6 power_supply-$(CONFIG_LEDS_TRIGGERS) += power_supply_leds.o 8 obj-$(CONFIG_POWER_SUPPLY) += power_supply.o 9 obj-$(CONFIG_GENERIC_ADC_BATTERY) += generic-adc-battery.o 11 obj-$(CONFIG_PDA_POWER) += pda_power.o 12 obj-$(CONFIG_APM_POWER) += apm_power.o 13 obj-$(CONFIG_AXP20X_POWER) += axp20x_usb_power.o [all …]
|
| D | generic-adc-battery.c | 4 * based on jz4740-battery.c 25 #include <linux/power/generic-adc-battery.h> 66 schedule_delayed_work(&adc_bat->bat_work, msecs_to_jiffies(0)); in gab_ext_power_changed() 84 * should correspond one-to-one with enum chan_type. 94 struct gab_platform_data *pdata = adc_bat->pdata; in gab_charge_finished() 95 bool ret = gpio_get_value(pdata->gpio_charge_finished); in gab_charge_finished() 96 bool inv = pdata->gpio_inverted; in gab_charge_finished() 98 if (!gpio_is_valid(pdata->gpio_charge_finished)) in gab_charge_finished() 105 struct gab_platform_data *pdata = adc_bat->pdata; in gab_get_status() 108 bat_info = &pdata->battery_info; in gab_get_status() [all …]
|
| /kernel/linux/linux-4.19/drivers/clk/ingenic/ |
| D | jz4740-cgu.c | 2 * Ingenic JZ4740 SoC CGU driver 18 #include <linux/clk-provider.h> 21 #include <dt-bindings/clock/jz4740-cgu.h> 22 #include <asm/mach-jz4740/clock.h> 57 0x0, 0x1, -1, 0x3, 69 .parents = { JZ4740_CLK_EXT, -1, -1, -1 }, 92 .parents = { JZ4740_CLK_PLL, -1, -1, -1 }, 93 .div = { CGU_REG_CPCCR, 21, 1, 1, -1, -1, -1 }, 98 .parents = { JZ4740_CLK_PLL, -1, -1, -1 }, 99 .div = { CGU_REG_CPCCR, 0, 1, 4, 22, -1, -1 }, [all …]
|
| /kernel/linux/linux-5.10/drivers/clk/ingenic/ |
| D | jz4740-cgu.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * Ingenic JZ4740 SoC CGU driver 9 #include <linux/clk-provider.h> 14 #include <dt-bindings/clock/jz4740-cgu.h> 51 0x0, 0x1, -1, 0x3, 71 .parents = { JZ4740_CLK_EXT, -1, -1, -1 }, 96 .parents = { JZ4740_CLK_PLL, -1, -1, -1 }, 98 CGU_REG_CPCCR, 21, 1, 1, -1, -1, -1, 105 .parents = { JZ4740_CLK_PLL, -1, -1, -1 }, 107 CGU_REG_CPCCR, 0, 1, 4, 22, -1, -1, [all …]
|
| /kernel/linux/linux-4.19/drivers/hwmon/ |
| D | Kconfig | 19 sensors-detect script from the lm_sensors package. Read 20 <file:Documentation/hwmon/userspace-tools> for details. 50 will be called abx500-temp. 268 lm-sensors 2.10.1 for proper userspace support. 308 Only Intel-based Apple's computers are supported (MacBook Pro, 315 the laptop to act as a pinball machine-esque joystick. 330 will be called scmi-hwmon. 394 - Dallas Semiconductor DS1625 395 - Maxim Integrated DS1631 396 - Maxim Integrated DS1721 [all …]
|
| D | Makefile | 1 # SPDX-License-Identifier: GPL-2.0 6 obj-$(CONFIG_HWMON) += hwmon.o 7 obj-$(CONFIG_HWMON_VID) += hwmon-vid.o 10 obj-$(CONFIG_SENSORS_ACPI_POWER) += acpi_power_meter.o 11 obj-$(CONFIG_SENSORS_ATK0110) += asus_atk0110.o 15 obj-$(CONFIG_SENSORS_ASB100) += asb100.o 16 obj-$(CONFIG_SENSORS_W83627HF) += w83627hf.o 17 obj-$(CONFIG_SENSORS_W83773G) += w83773g.o 18 obj-$(CONFIG_SENSORS_W83792D) += w83792d.o 19 obj-$(CONFIG_SENSORS_W83793) += w83793.o [all …]
|
| /kernel/linux/linux-5.10/drivers/power/supply/ |
| D | generic-adc-battery.c | 4 * based on jz4740-battery.c 25 #include <linux/power/generic-adc-battery.h> 66 schedule_delayed_work(&adc_bat->bat_work, msecs_to_jiffies(0)); in gab_ext_power_changed() 84 * should correspond one-to-one with enum chan_type. 94 struct gab_platform_data *pdata = adc_bat->pdata; in gab_charge_finished() 95 bool ret = gpio_get_value(pdata->gpio_charge_finished); in gab_charge_finished() 96 bool inv = pdata->gpio_inverted; in gab_charge_finished() 98 if (!gpio_is_valid(pdata->gpio_charge_finished)) in gab_charge_finished() 105 struct gab_platform_data *pdata = adc_bat->pdata; in gab_get_status() 108 bat_info = &pdata->battery_info; in gab_get_status() [all …]
|