/Linux-v6.1/Documentation/devicetree/bindings/power/supply/ |
D | dlg,da9150-fuel-gauge.yaml | 1 # SPDX-License-Identifier: GPL-2.0 3 --- 4 $id: http://devicetree.org/schemas/power/supply/dlg,da9150-fuel-gauge.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: Dialog Semiconductor DA9150 Fuel-Gauge Power Supply bindings 10 - Sebastian Reichel <sre@kernel.org> 13 - $ref: power-supply.yaml# 17 const: dlg,da9150-fuel-gauge 19 dlg,update-interval: 21 description: Interval time (milliseconds) between battery level checks. [all …]
|
/Linux-v6.1/drivers/power/supply/ |
D | da9150-fg.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * DA9150 Fuel-Gauge Driver 23 #include <linux/devm-helpers.h> 85 int soc; member 100 da9150_read_qif(fg->da9150, read_addr, size, buf); in da9150_fg_read_attr() 122 da9150_write_qif(fg->da9150, write_addr, size, buf); in da9150_fg_write_attr() 131 mutex_lock(&fg->io_lock); in da9150_fg_read_sync_start() 151 dev_err(fg->dev, "Failed to perform QIF read sync!\n"); in da9150_fg_read_sync_start() 160 mutex_unlock(&fg->io_lock); in da9150_fg_read_sync_end() 182 mutex_lock(&fg->io_lock); in da9150_fg_write_attr_sync() [all …]
|
/Linux-v6.1/Documentation/devicetree/bindings/mfd/ |
D | da9150.txt | 1 Dialog Semiconductor DA9150 Combined Charger/Fuel-Gauge MFD bindings 3 DA9150 consists of a group of sub-devices: 6 ------ ----------- 7 da9150-gpadc : General Purpose ADC 8 da9150-charger : Battery Charger 9 da9150-fg : Battery Fuel-Gauge 14 - compatible : Should be "dlg,da9150" 15 - reg: Specifies the I2C slave address 16 - interrupts: IRQ line info for da9150 chip. 17 - interrupt-controller: da9150 has internal IRQs (own IRQ domain). [all …]
|
/Linux-v6.1/drivers/irqchip/ |
D | irq-aspeed-vic.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * Copyright (C) 2015 - Ben Herrenschmidt, IBM Corp. 5 * Driver for Aspeed "new" VIC as found in SoC generation 3 and later 7 * Based on irq-vic.c: 9 * Copyright (C) 1999 - 2003 ARM Limited 63 writel(0xffffffff, vic->base + AVIC_INT_ENABLE_CLR); in vic_init_hw() 64 writel(0xffffffff, vic->base + AVIC_INT_ENABLE_CLR + 4); in vic_init_hw() 67 writel(0xffffffff, vic->base + AVIC_INT_TRIGGER_CLR); in vic_init_hw() 68 writel(0xffffffff, vic->base + AVIC_INT_TRIGGER_CLR + 4); in vic_init_hw() 71 writel(0, vic->base + AVIC_INT_SELECT); in vic_init_hw() [all …]
|
/Linux-v6.1/drivers/pinctrl/intel/ |
D | pinctrl-lynxpoint.c | 1 // SPDX-License-Identifier: GPL-2.0 25 #include <linux/pinctrl/pinconf-generic.h> 27 #include "pinctrl-intel.h" 162 #define TRIG_SEL_BIT BIT(4) /* 0: Edge, 1: Level */ 187 * LP_ACPI_OWNED[31:0] gpio ownerships for gpios 0-31 (bitmapped registers) 188 * LP_ACPI_OWNED[63:32] gpio ownerships for gpios 32-63 189 * LP_ACPI_OWNED[94:64] gpio ownerships for gpios 63-94 204 * IOxAPIC redirection map applies only for gpio 8-10, 13-14, 45-55. 213 for (i = 0; i < lg->ncommunities; i++) { in lp_get_community() 214 comm = &lg->communities[i]; in lp_get_community() [all …]
|
D | pinctrl-baytrail.c | 1 // SPDX-License-Identifier: GPL-2.0 5 * Copyright (c) 2012-2013, Intel Corporation 25 #include <linux/pinctrl/pinconf-generic.h> 27 #include "pinctrl-intel.h" 560 for (i = 0; i < vg->ncommunities; i++) { in byt_get_community() 561 comm = vg->communities + i; in byt_get_community() 562 if (pin < comm->pin_base + comm->npins && pin >= comm->pin_base) in byt_get_community() 578 offset -= comm->pin_base; in byt_gpio_reg() 587 reg_offset = comm->pad_map[offset] * 16; in byt_gpio_reg() 591 return comm->pad_regs + reg_offset + reg; in byt_gpio_reg() [all …]
|
/Linux-v6.1/sound/soc/codecs/ |
D | tas6424.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * ALSA SoC Texas Instruments TAS6424 Quad-Channel Audio Amplifier 5 * Copyright (C) 2016-2017 Texas Instruments Incorporated - https://www.ti.com/ 23 #include <sound/soc.h> 24 #include <sound/soc-dapm.h> 33 "dvdd", /* Digital power supply. Connect to 3.3-V supply. */ 35 "pvdd", /* Class-D amp output FETs supply. */ 53 * DAC digital volumes. From -103.5 to 24 dB in 0.5 dB steps. Note that 54 * setting the gain below -100 dB (register value <0x7) is effectively a MUTE 57 static DECLARE_TLV_DB_SCALE(dac_tlv, -10350, 50, 0); [all …]
|
D | wm8580.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * wm8580.c -- WM8580 and WM8581 ALSA Soc Audio driver 5 * Copyright 2008-12 Wolfson Microelectronics PLC. 14 * Currently only the primary audio interface is supported - S/PDIF and 33 #include <sound/soc.h> 116 /* AIF control 1 (registers 9h-bh) */ 127 /* AIF control 2 (registers ch-eh) */ 254 static const DECLARE_TLV_DB_SCALE(dac_tlv, -12750, 50, 1); 260 (struct soc_mixer_control *)kcontrol->private_value; in wm8580_out_vu() 263 unsigned int reg = mc->reg; in wm8580_out_vu() [all …]
|
D | wm_hubs.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * wm_hubs.c -- WM8993/4 common code 5 * Copyright 2009-12 Wolfson Microelectronics plc 20 #include <sound/soc.h> 27 const DECLARE_TLV_DB_SCALE(wm_hubs_spkmix_tlv, -300, 300, 0); 30 static const DECLARE_TLV_DB_SCALE(inpga_tlv, -1650, 150, 0); 32 static const DECLARE_TLV_DB_SCALE(inmix_tlv, -1500, 300, 1); 33 static const DECLARE_TLV_DB_SCALE(earpiece_tlv, -600, 600, 0); 34 static const DECLARE_TLV_DB_SCALE(outmix_tlv, -2100, 300, 0); 35 static const DECLARE_TLV_DB_SCALE(spkmixout_tlv, -1800, 600, 1); [all …]
|
D | wm8900.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * wm8900.c -- WM8900 ALSA Soc Audio driver 10 * - Tristating. 11 * - TDM. 12 * - Jack detect. 13 * - FLL source configuration, currently only MCLK is supported. 29 #include <sound/soc.h> 224 struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm); in wm8900_hp_event() 279 WARN(1, "Invalid event %d\n", event); in wm8900_hp_event() 286 static const DECLARE_TLV_DB_SCALE(out_pga_tlv, -5700, 100, 0); [all …]
|
/Linux-v6.1/drivers/fpga/ |
D | stratix10-soc.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * FPGA Manager Driver for Intel Stratix10 SoC 8 #include <linux/fpga/fpga-mgr.h> 9 #include <linux/firmware/intel/stratix10-svc-client.h> 15 * FPGA programming requires a higher level of privilege (EL3), per the SoC 49 struct stratix10_svc_chan *chan = priv->chan; in s10_svc_send_msg() 50 struct device *dev = priv->client.dev; in s10_svc_send_msg() 73 struct s10_priv *priv = mgr->priv; in s10_free_buffers() 78 if (!priv->svc_bufs[i].buf) { in s10_free_buffers() 84 &priv->svc_bufs[i].lock)) { in s10_free_buffers() [all …]
|
/Linux-v6.1/drivers/soc/bcm/brcmstb/ |
D | biuctrl.c | 1 // SPDX-License-Identifier: GPL-2.0-only 14 #include <linux/soc/brcmstb/brcmstb.h> 26 /* Bitmask to enable instruction and data prefetching with a 256-bytes stride */ 63 if (offset == -1 || in cbc_readl() 65 return (u32)-1; in cbc_readl() 74 if (offset == -1 || in cbc_writel() 83 [CPU_MCP_FLOW_REG] = -1, 84 [CPU_WRITEBACK_CTRL_REG] = -1, 85 [RAC_CONFIG0_REG] = -1, 86 [RAC_CONFIG1_REG] = -1, [all …]
|
/Linux-v6.1/Documentation/gpu/ |
D | todo.rst | 11 ---------- 29 Subsystem-wide refactorings 33 --------------------------------------------- 42 Level: Intermediate 45 -------------------------------------------------- 53 non-converted driver (again virtual HW drivers for KVM are still all 62 Level: Advanced 65 --------------------------------------------------------- 71 avoid confusion - the other helpers in that file are all deprecated legacy 76 Level: Advanced [all …]
|
/Linux-v6.1/arch/arm/mach-omap2/ |
D | omap-mpuss-lowpower.c | 1 // SPDX-License-Identifier: GPL-2.0-only 8 * OMAP4430 MPUSS mainly consists of dual Cortex-A9 with per-CPU 17 * to the Cortex-A9 processor must be asserted by the external 24 * ---------------------------------------------- 30 * ---------------------------------------------- 33 * and first to wake-up when MPUSS low power states are excercised 47 #include <asm/hardware/cache-l2x0.h> 49 #include "soc.h" 52 #include "omap4-sar-layout.h" 59 #include "prm-regbits-44xx.h" [all …]
|
D | omap-wakeupgen.c | 1 // SPDX-License-Identifier: GPL-2.0-only 28 #include "omap-wakeupgen.h" 29 #include "omap-secure.h" 31 #include "soc.h" 32 #include "omap4-sar-layout.h" 138 _wakeupgen_clear(d->hwirq, irq_target_cpu[d->hwirq]); in wakeupgen_mask() 151 _wakeupgen_set(d->hwirq, irq_target_cpu[d->hwirq]); in wakeupgen_unmask() 179 if (inverted && d->hwirq != SYS_NIRQ1_EXT_SYS_IRQ_1 && in wakeupgen_irq_set_type() 180 d->hwirq != SYS_NIRQ2_EXT_SYS_IRQ_2) in wakeupgen_irq_set_type() 182 d->hwirq); in wakeupgen_irq_set_type() [all …]
|
/Linux-v6.1/arch/arm/ |
D | Kconfig.debug | 1 # SPDX-License-Identifier: GPL-2.0 21 bool "Warn on W+X mappings at boot" 44 once the kernel has booted up - it's a one time check. 107 1 - undefined instruction events 108 2 - system calls 109 4 - invalid data aborts 110 8 - SIGSEGV faults 111 16 - SIGBUS faults 115 bool "Kernel low-level debugging functions (read help!)" 128 prompt "Kernel low-level debugging port" [all …]
|
/Linux-v6.1/drivers/remoteproc/ |
D | keystone_remoteproc.c | 1 // SPDX-License-Identifier: GPL-2.0-only 5 * Copyright (C) 2015-2017 Texas Instruments Incorporated - http://www.ti.com/ 25 #define KEYSTONE_RPROC_LOCAL_ADDRESS_MASK (SZ_16M - 1) 28 * struct keystone_rproc_mem - internal memory structure 42 * struct keystone_rproc - keystone remote processor driver structure 72 reset_control_assert(ksproc->reset); in keystone_rproc_dsp_reset() 80 if (boot_addr & (SZ_1K - 1)) { in keystone_rproc_dsp_boot() 81 dev_err(ksproc->dev, "invalid boot address 0x%x, must be aligned on a 1KB boundary\n", in keystone_rproc_dsp_boot() 83 return -EINVAL; in keystone_rproc_dsp_boot() 86 ret = regmap_write(ksproc->dev_ctrl, ksproc->boot_offset, boot_addr); in keystone_rproc_dsp_boot() [all …]
|
/Linux-v6.1/drivers/gpu/drm/msm/adreno/ |
D | a6xx_gmu.c | 1 // SPDX-License-Identifier: GPL-2.0 2 /* Copyright (c) 2017-2019 The Linux Foundation. All rights reserved. */ 8 #include <soc/qcom/cmd-db.h> 20 struct adreno_gpu *adreno_gpu = &a6xx_gpu->base; in a6xx_gmu_fault() 21 struct msm_gpu *gpu = &adreno_gpu->base; in a6xx_gmu_fault() 24 gmu->hung = true; in a6xx_gmu_fault() 27 del_timer(&gpu->hangcheck_timer); in a6xx_gmu_fault() 30 kthread_queue_work(gpu->worker, &gpu->recover_work); in a6xx_gmu_fault() 42 dev_err_ratelimited(gmu->dev, "GMU watchdog expired\n"); in a6xx_gmu_irq() 48 dev_err_ratelimited(gmu->dev, "GMU AHB bus error\n"); in a6xx_gmu_irq() [all …]
|
/Linux-v6.1/Documentation/arm/stm32/ |
D | stm32-dma-mdma-chaining.rst | 1 .. SPDX-License-Identifier: GPL-2.0 4 STM32 DMA-MDMA chaining 9 ------------ 11 This document describes the STM32 DMA-MDMA chaining feature. But before going 37 hierarchical structure that uses STM32 DMA as first level data buffer 38 interfaces for AHB peripherals, while the STM32 MDMA acts as a second level 44 ---------- 46 STM32 DMA-MDMA chaining feature relies on the strengths of STM32 DMA and 50 (when DMA data counter - DMA_SxNDTR - reaches 0), the memory pointers 56 With STM32 MDMA linked-list mode, a single request initiates the data array [all …]
|
/Linux-v6.1/sound/soc/ |
D | soc-dapm.c | 1 // SPDX-License-Identifier: GPL-2.0+ 3 // soc-dapm.c -- ALSA SoC Dynamic Audio Power Management 12 // o Platform power domain - can support external components i.e. amps and 15 // o Jack insertion power event initiation - e.g. hp insertion will enable 37 #include <sound/soc.h> 42 #define DAPM_UPDATE_STAT(widget, val) widget->dapm->card->dapm_stats.val++; 67 /* dapm power sequences - make this per codec in the future */ 152 if (dapm->card && dapm->card->instantiated) in dapm_assert_locked() 153 lockdep_assert_held(&dapm->card->dapm_mutex); in dapm_assert_locked() 185 return !list_empty(&w->dirty); in dapm_dirty_widget() [all …]
|
/Linux-v6.1/drivers/clk/ |
D | clk.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Copyright (C) 2010-2011 Canonical Ltd <jeremy.kerr@canonical.com> 4 * Copyright (C) 2011-2012 Linaro Ltd <mturquette@linaro.org> 6 * Standard functionality for the common clock API. See Documentation/driver-api/clk.rst 10 #include <linux/clk-provider.h> 11 #include <linux/clk/clk-conf.h> 111 if (!core->rpm_enabled) in clk_pm_runtime_get() 114 return pm_runtime_resume_and_get(core->dev); in clk_pm_runtime_get() 119 if (!core->rpm_enabled) in clk_pm_runtime_put() 122 pm_runtime_put_sync(core->dev); in clk_pm_runtime_put() [all …]
|
/Linux-v6.1/arch/x86/kernel/cpu/ |
D | intel.c | 1 // SPDX-License-Identifier: GPL-2.0 22 #include <asm/intel-family.h> 67 * Processors which have self-snooping capability can handle conflicting 75 switch (c->x86_model) { in check_memory_type_self_snoop_errata() 107 if (c->x86 != 6) in probe_xeon_phi_r3mwait() 109 switch (c->x86_model) { in probe_xeon_phi_r3mwait() 131 * - https://newsroom.intel.com/wp-content/uploads/sites/11/2018/03/microcode-update-guidance.pdf 132 * - https://kb.vmware.com/s/article/52345 133 * - Microcode revisions observed in the wild 134 * - Release note from 20180108 microcode release [all …]
|
/Linux-v6.1/drivers/gpu/drm/amd/pm/swsmu/smu13/ |
D | aldebaran_ppt.c | 51 * DO NOT use these for err/warn/info/debug messages. 99 {-273150, 99000, 99000, -273150, 99000, 99000, -273150, 99000, 99000}, 230 struct smu_table_context *smu_table = &smu->smu_table; in aldebaran_tables_init() 231 struct smu_table *tables = smu_table->tables; in aldebaran_tables_init() 248 smu_table->metrics_table = kzalloc(sizeof(SmuMetrics_t), GFP_KERNEL); in aldebaran_tables_init() 249 if (!smu_table->metrics_table) in aldebaran_tables_init() 250 return -ENOMEM; in aldebaran_tables_init() 251 smu_table->metrics_time = 0; in aldebaran_tables_init() 253 smu_table->gpu_metrics_table_size = sizeof(struct gpu_metrics_v1_3); in aldebaran_tables_init() 254 smu_table->gpu_metrics_table = kzalloc(smu_table->gpu_metrics_table_size, GFP_KERNEL); in aldebaran_tables_init() [all …]
|
/Linux-v6.1/drivers/net/ethernet/ti/ |
D | netcp_core.c | 1 // SPDX-License-Identifier: GPL-2.0 7 * Sandeep Paulraj <s-paulraj@ti.com> 10 * Murali Karicheri <m-karicheri2@ti.com> 11 * Wingman Kwok <w-kwok2@ti.com> 21 #include <linux/soc/ti/knav_qmss.h> 22 #include <linux/soc/ti/knav_dma.h> 67 &((netcp_device)->modpriv_head), inst_list) 70 list_for_each_entry(intf_modpriv, &netcp->module_head, intf_list) 103 static int netcp_debug_level = -1; 105 MODULE_PARM_DESC(netcp_debug_level, "Netcp debug level (NETIF_MSG bits) (0=none,...,16=all)"); [all …]
|
/Linux-v6.1/drivers/bus/ |
D | ti-sysc.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * ti-sysc.c - Texas Instruments sysc interconnect target driver 24 #include <linux/platform_data/ti-sysc.h> 26 #include <dt-bindings/bus/ti-sysc.h> 63 enum sysc_soc soc; member 95 * struct sysc - TI sysc interconnect target module registers and capabilities 101 * @mdata: ti-sysc to hwmod translation data for a module 118 * @pre_reset_quirk: module specific pre-reset quirk 119 * @post_reset_quirk: module specific post-reset quirk 164 if (ddata->cfg.quirks & SYSC_QUIRK_16BIT) { in sysc_write() [all …]
|