/linux/arch/arm/boot/dts/ti/omap/ |
H A D | am43xx-clocks.dtsi | 1 // SPDX-License-Identifier: GPL-2.0-only 8 sys_clkin_ck: clock-sys-clkin-31@40 { 9 #clock-cells = <0>; 10 compatible = "ti,mux-clock"; 11 clock-output-names = "sys_clkin_ck"; 13 ti,bit-shift = <31>; 17 crystal_freq_sel_ck: clock-crystal-freq-sel-29@40 { 18 #clock-cells = <0>; 19 compatible = "ti,mux-clock"; 20 clock-output-names = "crystal_freq_sel_ck"; [all …]
|
H A D | dra7xx-clocks.dtsi | 1 // SPDX-License-Identifier: GPL-2.0-only 8 atl_clkin0_ck: clock-atl-clkin0 { 9 #clock-cells = <0>; 10 compatible = "ti,dra7-atl-clock"; 11 clock-output-names = "atl_clkin0_ck"; 15 atl_clkin1_ck: clock-atl-clkin1 { 16 #clock-cells = <0>; 17 compatible = "ti,dra7-atl-clock"; 18 clock-output-names = "atl_clkin1_ck"; 22 atl_clkin2_ck: clock-atl-clkin2 { [all …]
|
H A D | am33xx-clocks.dtsi | 1 // SPDX-License-Identifier: GPL-2.0-only 8 sys_clkin_ck: clock-sys-clkin-22@40 { 9 #clock-cells = <0>; 10 compatible = "ti,mux-clock"; 11 clock-output-names = "sys_clkin_ck"; 13 ti,bit-shift = <22>; 17 adc_tsc_fck: clock-adc-tsc-fck { 18 #clock-cells = <0>; 19 compatible = "fixed-factor-clock"; 20 clock-output-names = "adc_tsc_fck"; [all …]
|
/linux/Documentation/devicetree/bindings/pinctrl/ |
H A D | brcm,bcm2835-gpio.txt | 7 - compatible: "brcm,bcm2835-gpio" 8 - compatible: should be one of: 9 "brcm,bcm2835-gpio" - BCM2835 compatible pinctrl 10 "brcm,bcm7211-gpio" - BCM7211 compatible pinctrl 11 "brcm,bcm2711-gpio" - BCM2711 compatible pinctrl 12 "brcm,bcm7211-gpio" - BCM7211 compatible pinctrl 13 - reg: Should contain the physical address of the GPIO module's registers. 14 - gpio-controller: Marks the device node as a GPIO controller. 15 - #gpio-cells : Should be two. The first cell is the pin number and the 17 - bit 0 specifies polarity (0 for normal, 1 for inverted) [all …]
|
H A D | atmel,at91rm9200-pinctrl.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/pinctrl/atmel,at91rm9200-pinctrl.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Manikandan Muralidharan <manikandan.m@microchip.com> 22 - items: 23 - enum: 24 - atmel,at91rm9200-pinctrl 25 - atmel,at91sam9x5-pinctrl 26 - atmel,sama5d3-pinctrl [all …]
|
H A D | pinctrl-single.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/pinctrl/pinctrl-single.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Tony Lindgren <tony@atomide.com> 21 - enum: 22 - pinctrl-single 23 - pinconf-single 24 - items: 25 - enum: [all …]
|
/linux/arch/arm/boot/dts/nxp/imx/ |
H A D | imx7s.dtsi | 1 // SPDX-License-Identifier: GPL-2.0+ OR MIT 6 #include <dt-bindings/clock/imx7d-clock.h> 7 #include <dt-bindings/power/imx7-power.h> 8 #include <dt-bindings/gpio/gpio.h> 9 #include <dt-bindings/input/input.h> 10 #include <dt-bindings/interrupt-controller/arm-gic.h> 11 #include <dt-bindings/reset/imx7-reset.h> 12 #include "imx7d-pinfunc.h" 15 #address-cells = <1>; 16 #size-cells = <1>; [all …]
|
/linux/sound/soc/sunxi/ |
H A D | sun8i-codec.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 6 * (C) Copyright 2010-2016 9 * Mylène Josserand <mylene.josserand@free-electrons.com> 27 #include <sound/soc-dapm.h> 251 if (scodec->clk_bus) { in sun8i_codec_runtime_resume() 252 ret = clk_prepare_enable(scodec->clk_bus); in sun8i_codec_runtime_resume() 259 regcache_cache_only(scodec->regmap, false); in sun8i_codec_runtime_resume() 261 ret = regcache_sync(scodec->regmap); in sun8i_codec_runtime_resume() 274 regcache_cache_only(scodec->regmap, true); in sun8i_codec_runtime_suspend() 275 regcache_mark_dirty(scodec->regmap); in sun8i_codec_runtime_suspend() [all …]
|
/linux/sound/pci/ca0106/ |
H A D | ca0106.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 3 * Copyright (c) 2004 James Courtier-Dutton <James@superbug.demon.co.uk> 4 * Driver CA0106 chips. e.g. Sound Blaster Audigy LS and Live 24bit 11 * Support interrupts per period. 48 * Added GPIO info for SB Live 24bit. 50 * Implement support for Line-in capture on SB Live 24bit. 52 * Add support for mute control on SB Live 24bit (cards w/ SPI DAC) 73 #define IPR_MIDI_RX_B 0x00020000 /* MIDI UART-B Receive buffer non-empty */ 74 #define IPR_MIDI_TX_B 0x00010000 /* MIDI UART-B Transmit buffer empty */ 87 #define IPR_MIDI_RX_A 0x00000004 /* MIDI UART-A Receive buffer non-empty */ [all …]
|
/linux/include/net/ |
H A D | kcm.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 60 struct kcm_mux *mux; member 76 /* Don't use bit fields here, these are set under different locks */ 93 struct kcm_mux *mux; member 123 /* Per net MUX list */ 133 /* Structure for a MUX */ 139 struct list_head kcm_socks; /* All KCM sockets on MUX */ 140 int kcm_socks_cnt; /* Total KCM socket count for MUX */ 141 struct list_head psocks; /* List of all psocks on MUX */ 155 spinlock_t lock ____cacheline_aligned_in_smp; /* TX and mux locking */ [all …]
|
/linux/Documentation/devicetree/bindings/interrupt-controller/ |
H A D | brcm,bcm7120-l2-intc.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/interrupt-controller/brcm,bcm7120-l2-intc.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: Broadcom BCM7120-style Level 2 and Broadcom BCM3380 Level 1 / Level 2 10 - Florian Fainelli <f.fainelli@gmail.com> 14 is hooked to a parent interrupt controller: e.g: ARM GIC for ARM-based 19 - outputs multiple interrupts signals towards its interrupt controller parent 21 - controls how some of the interrupts will be flowing, whether they will 26 - has one 32-bit enable word and one 32-bit status word [all …]
|
/linux/arch/hexagon/include/asm/ |
H A D | bitops.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 3 * Bit operations for the Hexagon architecture 5 * Copyright (c) 2010-2011, The Linux Foundation. All rights reserved. 20 * (i.e. I get to shift by #5-2 (32 bits per long, 4 bytes per access), 23 * Typically, R10 is clobbered for address, R11 bit nr, and R12 is temp 27 * test_and_clear_bit - clear a bit and return its old value 28 * @nr: bit number to clear 41 " {if (!P1) jump 1b; %0 = mux(P0,#1,#0);}\n" in test_and_clear_bit() 51 * test_and_set_bit - set a bit and return its old value 52 * @nr: bit number to set [all …]
|
/linux/sound/soc/codecs/ |
H A D | ak4619.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * ak4619.c -- Asahi Kasei ALSA SoC Audio driver 47 #define DAC_DEMP 0x13 /* DAC De-Emphasis Setting */ 51 * Bit fields 55 #define PMAD2 BIT(5) 56 #define PMAD1 BIT(4) 57 #define PMDA2 BIT(2) 58 #define PMDA1 BIT(1) 59 #define RSTN BIT(0) 69 #define BCKP BIT(1) [all …]
|
H A D | lpass-tx-macro.c | 1 // SPDX-License-Identifier: GPL-2.0-only 2 // Copyright (c) 2018-2020, The Linux Foundation. All rights reserved. 12 #include <sound/soc-dapm.h> 15 #include <linux/clk-provider.h> 17 #include "lpass-macro-common.h" 20 #define CDC_TX_MCLK_EN_MASK BIT(0) 21 #define CDC_TX_MCLK_ENABLE BIT(0) 23 #define CDC_TX_FS_CNT_EN_MASK BIT(0) 24 #define CDC_TX_FS_CNT_ENABLE BIT(0) 26 #define CDC_TX_SWR_RESET_MASK BIT(1) [all …]
|
H A D | wcd9335.c | 1 // SPDX-License-Identifier: GPL-2.0 2 // Copyright (c) 2015-2016, The Linux Foundation. All rights reserved. 3 // Copyright (c) 2017-2018, Linaro Limited 19 #include <sound/soc-dapm.h> 26 #include "wcd-clsh-v2.h" 28 #include <dt-bindings/sound/qcom,wcd9335.h> 99 #define WCD9335_CALCULATE_VOUT_D(req_mv) (((req_mv - 650) * 10) / 25) 126 {"RX INT" #id "_2 MUX", "RX0", "SLIM RX0"}, \ 127 {"RX INT" #id "_2 MUX", "RX1", "SLIM RX1"}, \ 128 {"RX INT" #id "_2 MUX", "RX2", "SLIM RX2"}, \ [all …]
|
H A D | wcd934x.c | 1 // SPDX-License-Identifier: GPL-2.0 6 #include <linux/clk-provider.h> 21 #include <sound/soc-dapm.h> 23 #include "wcd-clsh-v2.h" 24 #include "wcd-mbhc-v2.h" 51 #define WCD934X_SLIM_IRQ_OVERFLOW BIT(0) 52 #define WCD934X_SLIM_IRQ_UNDERFLOW BIT(1) 53 #define WCD934X_SLIM_IRQ_PORT_CLOSED BIT(2) 94 #define DSD_DISABLED BIT(DSD_DISABLED_MASK) 95 #define SLNQ_DISABLED BIT(SLNQ_DISABLED_MASK) [all …]
|
/linux/drivers/pinctrl/nomadik/ |
H A D | pinctrl-ab8505.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Copyright (C) ST-Ericsson SA 2012 5 * Author: Patrice Chotard <patrice.chotard@stericsson.com> for ST-Ericsson. 13 #include "pinctrl-abx500.h" 98 * The groups are arranged as sets per altfunction column, so we can 99 * mux in one group at a time by selecting the same altfunction for them 241 * ALTERNATE_FUNCTIONS(GPIO_NUMBER, GPIOSEL bit, ALTERNATFUNC bit1, 247 * means that pin AB8505_PIN_D18 (pin 13) supports 4 mux (default/ALT_A, 249 * select the mux. ALTA, ALTB and ALTC val indicates values to write in 251 * designers didn't apply the same logic on how to select mux in the [all …]
|
/linux/drivers/pinctrl/meson/ |
H A D | pinctrl-meson.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 20 * struct meson_pmx_group - a pinmux group 26 * @reg: register offset for the group in the domain mux registers 27 * @bit bit index enabling the group 38 * struct meson_pmx_func - a pinmux function 51 * struct meson_reg_desc - a register descriptor 54 * @bit: bit index in register 57 * pull-enable, direction, etc. for a single pin 61 unsigned int bit; member 65 * enum meson_reg_type - type of registers encoded in @meson_reg_desc [all …]
|
/linux/drivers/media/pci/dt3155/ |
H A D | dt3155.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 3 * Copyright (C) 2006-2010 by Marin Mitov * 15 #include <media/v4l2-device.h> 16 #include <media/v4l2-dev.h> 17 #include <media/videobuf2-v4l2.h> 69 /* CSR1 bit masks */ 88 /* INT_CSR bit masks */ 96 /* IIC_CSR1 bit masks */ 99 /* IIC_CSR2 bit masks */ 105 /* CSR2 bit masks */ [all …]
|
/linux/drivers/pinctrl/freescale/ |
H A D | pinctrl-imx1-core.c | 1 // SPDX-License-Identifier: GPL-2.0+ 8 // Based on pinctrl-imx.c: 29 #include "pinctrl-imx1.h" 56 #define MX1_MUX_FUNCTION(val) (BIT(0) & val) 57 #define MX1_MUX_GPIO(val) ((BIT(1) & val) >> 1) 58 #define MX1_MUX_DIR(val) ((BIT(2) & val) >> 2) 59 #define MX1_MUX_OCONF(val) (((BIT(4) | BIT(5)) & val) >> 4) 60 #define MX1_MUX_ICONFA(val) (((BIT(8) | BIT(9)) & val) >> 8) 61 #define MX1_MUX_ICONFB(val) (((BIT(10) | BIT(11)) & val) >> 10) 69 * Those controls that are represented by 1 bit have a direct mapping between [all …]
|
/linux/drivers/pinctrl/ |
H A D | pinctrl-at91.c | 1 // SPDX-License-Identifier: GPL-2.0-only 5 * Copyright (C) 2011-2012 Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> 29 #include "pinctrl-at91.h" 46 * @ops: at91 pinctrl mux ops 114 * struct at91_pmx_func - describes AT91 pinmux functions 134 * struct at91_pmx_pin - describes an At91 pin mux 137 * @mux: the mux mode : gpio or periph_x of the pin i.e. alternate function. 143 enum at91_mux mux; member 148 * struct at91_pin_group - describes an At91 pin group 150 * @pins_conf: the mux mode for each pin in this group. The size of this [all …]
|
H A D | pinctrl-rockchip.c | 1 // SPDX-License-Identifier: GPL-2.0-only 8 * With some ideas taken from pinctrl-samsung: 14 * and pinctrl-at91: 15 * Copyright (C) 2011-2012 Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> 30 #include <linux/pinctrl/pinconf-generic.h> 37 #include <dt-bindings/pinctrl/rockchip.h> 41 #include "pinctrl-rockchip.h" 44 * Generate a bitmask for setting a value (v) with a write mask bit in hiword 53 #define IOMUX_GPIO_ONLY BIT(0) 54 #define IOMUX_WIDTH_4BIT BIT(1) [all …]
|
H A D | pinctrl-single.c | 2 * Generic device tree based pinctrl driver for one register per pin 25 #include <linux/pinctrl/pinconf-generic.h> 30 #include <linux/platform_data/pinctrl-single.h> 37 #define DRIVER_NAME "pinctrl-single" 41 * struct pcs_func_vals - mux function register offset and value pair 53 * struct pcs_conf_vals - pinconf parameter, pinconf register offset 70 * struct pcs_conf_type - pinconf property name, pinconf param pair 80 * struct pcs_function - pinctrl function 98 * struct pcs_gpiofunc_range - pin ranges with same mux value of gpio function 100 * @npins: number pins with the same mux value of gpio function [all …]
|
/linux/drivers/iio/adc/ |
H A D | ti-ads131e08.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Texas Instruments ADS131E0x 4-, 6- and 8-Channel ADCs 35 #define ADS131E08_CMD_RREG(r) (BIT(5) | (r & GENMASK(4, 0))) 36 #define ADS131E08_CMD_WREG(r) (BIT(6) | (r & GENMASK(4, 0))) 47 #define ADS131E08_CFG3R_PDB_REFBUF_MASK BIT(7) 48 #define ADS131E08_CFG3R_VREF_4V_MASK BIT(5) 53 #define ADS131E08_CHR_PWD_MASK BIT(7) 87 unsigned int mux; member 166 ret = spi_write_then_read(st->spi, &cmd, 1, NULL, 0); in ads131e08_exec_cmd() 168 dev_err(&st->spi->dev, "Exec cmd(%02x) failed\n", cmd); in ads131e08_exec_cmd() [all …]
|
/linux/drivers/media/pci/cx18/ |
H A D | cx23418.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 11 #include <media/drv-intf/cx2341x.h> 19 IN[0] - Task ID. This is one of the XPU_CMD_MASK_YYY where XPU is 21 OUT[0] - Task handle. This handle is passed along with commands to 23 ReturnCode - One of the ERR_SYS_... */ 27 IN[0] - Task handle. Hanlde of the task to destroy 28 ReturnCode - One of the ERR_SYS_... */ 49 IN[0] - audio parameters (same as CX18_CPU_SET_AUDIO_PARAMETERS?) 50 IN[1] - caller buffer address, or 0 51 ReturnCode - ??? */ [all …]
|