/Linux-v6.1/drivers/dma/qcom/ |
D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.0-only 2 config QCOM_ADM 11 and on-chip peripheral devices. 13 config QCOM_BAM_DMA 20 provides DMA capabilities for a variety of on-chip devices. 22 config QCOM_GPI_DMA 23 tristate "Qualcomm Technologies GPI DMA support" 28 Enable support for the QCOM GPI DMA controller. This controller 30 as I2C, UART, and SPI. By using GPI dmaengine driver, bus drivers 34 config QCOM_HIDMA_MGMT [all …]
|
D | gpi.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Copyright (c) 2017-2020, The Linux Foundation. All rights reserved. 7 #include <dt-bindings/dma/qcom-gpi.h> 9 #include <linux/dma-mapping.h> 14 #include <linux/dma/qcom-gpi-dma.h> 18 #include "../virt-dma.h" 68 /* Register offsets from gpi-top */ 181 /* GPII specific Global - Enable bit register */ 186 /* GPII general interrupt - Enable bit register */ 381 [CONFIG_STATE] = "CONFIG", [all …]
|
/Linux-v6.1/Documentation/devicetree/bindings/sound/ |
D | tlv320adcx140.yaml | 1 # SPDX-License-Identifier: (GPL-2.0+ OR BSD-2-Clause) 4 --- 6 $schema: http://devicetree.org/meta-schemas/core.yaml# 8 title: Texas Instruments TLV320ADCX140 Quad Channel Analog-to-Digital Converter 11 - Andrew Davis <afd@ti.com> 14 The TLV320ADCX140 are multichannel (4-ch analog recording or 8-ch digital 15 PDM microphones recording), high-performance audio, analog-to-digital 28 - ti,tlv320adc3140 29 - ti,tlv320adc5140 30 - ti,tlv320adc6140 [all …]
|
/Linux-v6.1/drivers/gpio/ |
D | gpio-vx855.c | 1 // SPDX-License-Identifier: GPL-2.0+ 22 * GPI 0...13 General Purpose Input 24 * GPIO 0...14 General Purpose I/O (Open-Drain) 75 * 0..13 GPI 0..13 87 /* Real GPI bits are always in input direction */ in vx855gpio_direction_input() 93 return -EINVAL; in vx855gpio_direction_input() 96 spin_lock_irqsave(&vg->lock, flags); in vx855gpio_direction_input() 97 reg_out = inl(vg->io_gpo); in vx855gpio_direction_input() 98 reg_out |= gpio_o_bit(nr - NR_VX855_GPInO); in vx855gpio_direction_input() 99 outl(reg_out, vg->io_gpo); in vx855gpio_direction_input() [all …]
|
D | gpio-tn48m.c | 1 // SPDX-License-Identifier: GPL-2.0-only 44 struct gpio_regmap_config config = {}; in tn48m_gpio_probe() local 49 if (!pdev->dev.parent) in tn48m_gpio_probe() 50 return -ENODEV; in tn48m_gpio_probe() 52 gpio_config = device_get_match_data(&pdev->dev); in tn48m_gpio_probe() 54 return -ENODEV; in tn48m_gpio_probe() 56 ret = device_property_read_u32(&pdev->dev, "reg", &base); in tn48m_gpio_probe() 60 regmap = dev_get_regmap(pdev->dev.parent, NULL); in tn48m_gpio_probe() 62 return -ENODEV; in tn48m_gpio_probe() 64 config.regmap = regmap; in tn48m_gpio_probe() [all …]
|
D | gpio-sl28cpld.c | 1 // SPDX-License-Identifier: GPL-2.0-only 25 /* input-only flavor */ 28 /* output-only flavor */ 50 struct gpio_regmap_config *config) in sl28cpld_gpio_irq_init() argument 54 struct device *dev = &pdev->dev; in sl28cpld_gpio_irq_init() 57 if (!device_property_read_bool(dev, "interrupt-controller")) in sl28cpld_gpio_irq_init() 66 return -ENOMEM; in sl28cpld_gpio_irq_init() 68 irq_chip->name = "sl28cpld-gpio-irq"; in sl28cpld_gpio_irq_init() 69 irq_chip->irqs = sl28cpld_gpio_irqs; in sl28cpld_gpio_irq_init() 70 irq_chip->num_irqs = ARRAY_SIZE(sl28cpld_gpio_irqs); in sl28cpld_gpio_irq_init() [all …]
|
/Linux-v6.1/drivers/regulator/ |
D | da9055-regulator.c | 1 // SPDX-License-Identifier: GPL-2.0+ 85 struct da9055_regulator_info *info = regulator->info; in da9055_buck_get_mode() 88 ret = da9055_reg_read(regulator->da9055, info->mode.reg); in da9055_buck_get_mode() 92 switch ((ret & info->mode.mask) >> info->mode.shift) { in da9055_buck_get_mode() 111 struct da9055_regulator_info *info = regulator->info; in da9055_buck_set_mode() 116 val = DA9055_BUCK_MODE_SYNC << info->mode.shift; in da9055_buck_set_mode() 119 val = DA9055_BUCK_MODE_AUTO << info->mode.shift; in da9055_buck_set_mode() 122 val = DA9055_BUCK_MODE_SLEEP << info->mode.shift; in da9055_buck_set_mode() 126 return da9055_reg_update(regulator->da9055, info->mode.reg, in da9055_buck_set_mode() 127 info->mode.mask, val); in da9055_buck_set_mode() [all …]
|
/Linux-v6.1/arch/arm/boot/dts/ |
D | s3c64xx-pinctrl.dtsi | 1 // SPDX-License-Identifier: GPL-2.0 4 * - pin control-related definitions 8 * Samsung's S3C64xx SoCs pin banks, pin-mux and pin-config options are 12 #include "s3c64xx-pinctrl.h" 19 gpa: gpa-gpio-bank { 20 gpio-controller; 21 #gpio-cells = <2>; 22 interrupt-controller; 23 #interrupt-cells = <2>; 26 gpb: gpb-gpio-bank { [all …]
|
/Linux-v6.1/drivers/hwmon/pmbus/ |
D | ucd9000.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 33 /* GPIO CONFIG bits */ 82 if (data->fan_data[fan][3] & 1) in ucd9000_get_fan_config() 86 fan_config |= (data->fan_data[fan][3] & 0x06) >> 1; in ucd9000_get_fan_config() 99 return -ENXIO; in ucd9000_read_byte_data() 113 return -ENXIO; in ucd9000_read_byte_data() 126 ret = -ENODATA; in ucd9000_read_byte_data() 211 dev_dbg(&client->dev, "failed to read GPIO %d config: %d\n", in ucd9000_gpio_set() 233 dev_dbg(&client->dev, "Failed to write GPIO %d config: %d\n", in ucd9000_gpio_set() 242 dev_dbg(&client->dev, "Failed to write GPIO %d config: %d\n", in ucd9000_gpio_set() [all …]
|
/Linux-v6.1/drivers/pinctrl/mvebu/ |
D | pinctrl-mvebu.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 6 * Thomas Petazzoni <thomas.petazzoni@free-electrons.com> 13 * struct mvebu_mpp_ctrl_data - private data for the mpp ctrl operations 29 * struct mvebu_mpp_ctrl - describe a mpp control 53 unsigned long *config); 55 unsigned long config); 62 * struct mvebu_mpp_ctrl_setting - describe a mpp ctrl setting 64 * @name: ctrl setting name, e.g. uart2, spi0 - unique per mpp_mode 67 * @flags: (private) flags to store gpi/gpo/gpio capabilities 77 * If name is one of "gpi", "gpo", "gpio" gpio capabilities are [all …]
|
D | pinctrl-mvebu.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 6 * Thomas Petazzoni <thomas.petazzoni@free-electrons.com> 24 #include "pinctrl-mvebu.h" 59 unsigned int pid, unsigned long *config) in mvebu_mmio_mpp_ctrl_get() argument 64 *config = (readl(data->base + off) >> shift) & MVEBU_MPP_MASK; in mvebu_mmio_mpp_ctrl_get() 70 unsigned int pid, unsigned long config) in mvebu_mmio_mpp_ctrl_set() argument 76 reg = readl(data->base + off) & ~(MVEBU_MPP_MASK << shift); in mvebu_mmio_mpp_ctrl_set() 77 writel(reg | (config << shift), data->base + off); in mvebu_mmio_mpp_ctrl_set() 86 for (n = 0; n < pctl->num_groups; n++) { in mvebu_pinctrl_find_group_by_pid() 87 if (pid >= pctl->groups[n].pins[0] && in mvebu_pinctrl_find_group_by_pid() [all …]
|
/Linux-v6.1/drivers/i2c/busses/ |
D | i2c-qcom-geni.c | 1 // SPDX-License-Identifier: GPL-2.0 2 // Copyright (c) 2017-2018, The Linux Foundation. All rights reserved. 7 #include <linux/dma-mapping.h> 8 #include <linux/dma/qcom-gpi-dma.h> 17 #include <linux/qcom-geni-se.h> 109 [GP_IRQ0] = {-EIO, "Unknown I2C err GP_IRQ0"}, 110 [NACK] = {-ENXIO, "NACK: slv unresponsive, check its power/reset-ln"}, 111 [GP_IRQ2] = {-EIO, "Unknown I2C err GP IRQ2"}, 112 [BUS_PROTO] = {-EPROTO, "Bus proto err, noisy/unexpected start/stop"}, 113 [ARB_LOST] = {-EAGAIN, "Bus arbitration lost, clock line undriveable"}, [all …]
|
D | i2c-elektor.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 2 /* ------------------------------------------------------------------------- */ 3 /* i2c-elektor.c i2c-hw access for PCF8584 style isa bus adaptes */ 4 /* ------------------------------------------------------------------------- */ 5 /* Copyright (C) 1995-97 Simon G. Vogl 6 1998-99 Hans Berglund 9 /* ------------------------------------------------------------------------- */ 15 for Alpha Processor Inc. UP-2000(+) boards */ 28 #include <linux/i2c-algo-pcf.h> 33 #include "../algos/i2c-algo-pcf.h" [all …]
|
/Linux-v6.1/drivers/pinctrl/aspeed/ |
D | pinctrl-aspeed.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 11 #include "pinctrl-aspeed.h" 17 return pdata->pinmux.ngroups; in aspeed_pinctrl_get_groups_count() 25 return pdata->pinmux.groups[group].name; in aspeed_pinctrl_get_group_name() 34 *pins = &pdata->pinmux.groups[group].pins[0]; in aspeed_pinctrl_get_group_pins() 35 *npins = pdata->pinmux.groups[group].npins; in aspeed_pinctrl_get_group_pins() 43 seq_printf(s, " %s", dev_name(pctldev->dev)); in aspeed_pinctrl_pin_dbg_show() 50 return pdata->pinmux.nfunctions; in aspeed_pinmux_get_fn_count() 58 return pdata->pinmux.functions[function].name; in aspeed_pinmux_get_fn_name() 68 *groups = pdata->pinmux.functions[function].groups; in aspeed_pinmux_get_fn_groups() [all …]
|
/Linux-v6.1/include/linux/input/ |
D | adp5589.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 5 * Copyright 2010-2011 Analog Devices Inc. 12 * ADP5589 specific GPI and Keymap defines 47 #define ADP5589_GPIMAPSIZE_MAX (ADP5589_GPI_PIN_END - ADP5589_GPI_PIN_BASE + 1) 50 * ADP5585 specific GPI and Keymap defines 76 #define ADP5585_GPIMAPSIZE_MAX (ADP5585_GPI_PIN_END - ADP5585_GPI_PIN_BASE + 1) 114 * ---------------- BIT ------------------ 131 * ---- BIT -- ----------- 158 unsigned char reset_cfg; /* Reset config */ 166 unsigned pullup_en_100k; /* Pull-Up 100k Enable Mask */ [all …]
|
/Linux-v6.1/arch/mips/sgi-ip22/ |
D | ip22-platform.c | 1 // SPDX-License-Identifier: GPL-2.0 6 #include <linux/dma-mapping.h> 72 * Create a platform device for the GPI port that receives the 79 sgiwd93_0_pd.hregs = &hpc3c0->scsi_chan0; in sgiwd93_devinit() 80 sgiwd93_0_pd.wdregs = (unsigned char *) hpc3c0->scsi0_ext; in sgiwd93_devinit() 89 sgiwd93_1_pd.hregs = &hpc3c0->scsi_chan1; in sgiwd93_devinit() 90 sgiwd93_1_pd.wdregs = (unsigned char *) hpc3c0->scsi1_ext; in sgiwd93_devinit() 144 * Create a platform device for the GPI port that receives the 168 get_dbe(pbdma, (unsigned int *)&hpc3c1->pbdma[1])) in sgiseeq_devinit() 171 sgimc->giopar |= SGIMC_GIOPAR_MASTEREXP1 | SGIMC_GIOPAR_EXP164 | in sgiseeq_devinit() [all …]
|
/Linux-v6.1/Documentation/devicetree/bindings/spi/ |
D | qcom,spi-geni-qcom.yaml | 1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/spi/qcom,spi-geni-qcom.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Andy Gross <agross@kernel.org> 11 - Bjorn Andersson <bjorn.andersson@linaro.org> 12 - Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> 17 mini-core. 24 described in Documentation/devicetree/bindings/soc/qcom/qcom,geni-se.yaml. 27 - $ref: /schemas/spi/spi-controller.yaml# [all …]
|
/Linux-v6.1/drivers/spi/ |
D | spi-geni-qcom.c | 1 // SPDX-License-Identifier: GPL-2.0 2 // Copyright (c) 2017-2018, The Linux foundation. All rights reserved. 6 #include <linux/dma-mapping.h> 7 #include <linux/dma/qcom-gpi-dma.h> 15 #include <linux/qcom-geni-se.h> 109 ret = geni_se_clk_freq_match(&mas->se, in get_spi_clk_cfg() 110 speed_hz * mas->oversampling, in get_spi_clk_cfg() 113 dev_err(mas->dev, "Failed(%d) to find src clk for %dHz\n", in get_spi_clk_cfg() 118 *clk_div = DIV_ROUND_UP(sclk_freq, mas->oversampling * speed_hz); in get_spi_clk_cfg() 119 actual_hz = sclk_freq / (mas->oversampling * *clk_div); in get_spi_clk_cfg() [all …]
|
/Linux-v6.1/drivers/input/keyboard/ |
D | adp5588-keys.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 8 * Copyright (C) 2008-2010 Analog Devices Inc. 24 #include <linux/pinctrl/pinconf-generic.h> 63 #define GPI_EM1 0x20 /* GPI Event Mode 1 */ 64 #define GPI_EM2 0x21 /* GPI Event Mode 2 */ 65 #define GPI_EM3 0x22 /* GPI Event Mode 3 */ 126 * 128 so it fits matrix-keymap maximum number of keys when the full 158 #define ADP5588_ROWS_MAX (GPI_PIN_ROW7 - GPI_PIN_ROW0 + 1) 159 #define ADP5588_COLS_MAX (GPI_PIN_COL9 - GPI_PIN_COL0 + 1) 161 #define ADP5588_GPIMAPSIZE_MAX (GPI_PIN_END - GPI_PIN_BASE + 1) [all …]
|
/Linux-v6.1/arch/arm64/boot/dts/qcom/ |
D | sm6350.dtsi | 1 // SPDX-License-Identifier: BSD-3-Clause 7 #include <dt-bindings/clock/qcom,gcc-sm6350.h> 8 #include <dt-bindings/clock/qcom,rpmh.h> 9 #include <dt-bindings/dma/qcom-gpi.h> 10 #include <dt-bindings/gpio/gpio.h> 11 #include <dt-bindings/interconnect/qcom,sm6350.h> 12 #include <dt-bindings/interrupt-controller/arm-gic.h> 13 #include <dt-bindings/mailbox/qcom-ipcc.h> 14 #include <dt-bindings/power/qcom-rpmpd.h> 15 #include <dt-bindings/soc/qcom,rpmh-rsc.h> [all …]
|
/Linux-v6.1/drivers/watchdog/ |
D | smsc37b787_wdt.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 9 * any of this software. This material is provided "AS-IS" in 12 * (C) Copyright 2003-2006 Sven Anders <anders@anduras.de> 15 * 2003 - Created version 1.0 for Linux 2.4.x. 16 * 2006 - Ported to Linux 2.6, added nowayout and MAGICCLOSE 38 * For an example userspace keep-alive daemon, see: 86 /* -- Low level function ----------------------------------------*/ 124 /* -- Medium level functions ------------------------------------*/ 128 /* -- General Purpose I/O Bit 1.2 -- in gpio_bit12() 132 * Bit 3/4, Function select: 00 = GPI/O, 01 = WDT, 10 = P17, in gpio_bit12() [all …]
|
/Linux-v6.1/sound/soc/codecs/ |
D | cs35l35.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 3 * cs35l35.h -- CS35L35 ALSA SoC audio driver 35 #define CS35L35_PROTECT_CTL 0x18 /* Amp Gain - Prot Ctl Param */ 39 #define CS35L35_GPI_CTL 0x1C /* GPI Ctl */ 200 /* Boost Converter Config */
|
D | tlv320adcx140.c | 1 // SPDX-License-Identifier: GPL-2.0 3 // Copyright (C) 2020 Texas Instruments Incorporated - https://www.ti.com/ 41 "ti,gpo-config-1", 42 "ti,gpo-config-2", 43 "ti,gpo-config-3", 44 "ti,gpo-config-4", 163 /* Digital Volume control. From -100 to 27 dB in 0.5 dB steps */ 164 static DECLARE_TLV_DB_SCALE(dig_vol_tlv, -10050, 50, 0); 169 /* DRE Level. From -12 dB to -66 dB in 1 dB steps */ 170 static DECLARE_TLV_DB_SCALE(dre_thresh_tlv, -6600, 100, 0); [all …]
|
/Linux-v6.1/drivers/pinctrl/sunplus/ |
D | sppctl.c | 1 // SPDX-License-Identifier: GPL-2.0 21 #include <linux/pinctrl/pinconf-generic.h> 24 #include <dt-bindings/pinctrl/sppctl-sp7021.h> 27 #include "../pinctrl-utils.h" 41 return readl(spp_gchip->first_base + SPPCTL_GPIO_OFF_FIRST + off); in sppctl_first_readl() 46 writel(val, spp_gchip->first_base + SPPCTL_GPIO_OFF_FIRST + off); in sppctl_first_writel() 51 return readl(spp_gchip->gpioxt_base + SPPCTL_GPIO_OFF_MASTER + off); in sppctl_gpio_master_readl() 57 writel(val, spp_gchip->gpioxt_base + SPPCTL_GPIO_OFF_MASTER + off); in sppctl_gpio_master_writel() 62 return readl(spp_gchip->gpioxt_base + SPPCTL_GPIO_OFF_OE + off); in sppctl_gpio_oe_readl() 67 writel(val, spp_gchip->gpioxt_base + SPPCTL_GPIO_OFF_OE + off); in sppctl_gpio_oe_writel() [all …]
|
/Linux-v6.1/drivers/input/rmi4/ |
D | rmi_f30.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Copyright (c) 2012-2016 Synaptics Incorporated 89 error = rmi_read_block(fn->rmi_dev, fn->fd.control_base_addr, in rmi_f30_read_control_parameters() 90 f30->ctrl_regs, f30->ctrl_regs_size); in rmi_f30_read_control_parameters() 92 dev_err(&fn->dev, in rmi_f30_read_control_parameters() 94 __func__, fn->fd.control_base_addr, error); in rmi_f30_read_control_parameters() 106 u16 key_code = f30->gpioled_key_map[button]; in rmi_f30_report_button() 107 bool key_down = !(f30->data_regs[reg_num] & BIT(bit_num)); in rmi_f30_report_button() 109 if (f30->trackstick_buttons && in rmi_f30_report_button() 112 rmi_f03_overwrite_button(f30->f03, key_code, key_down); in rmi_f30_report_button() [all …]
|