/Linux-v6.1/Documentation/i2c/ |
D | i2c-topology.rst | 6 than a straight-forward I2C bus with one adapter and one or more devices. 10 1. A mux may be needed on the bus to prevent address collisions. 25 I2C transfers, and all adapters with a parent are part of an "i2c-mux" 28 Depending of the particular mux driver, something happens when there is 29 an I2C transfer on one of its child adapters. The mux driver can 30 obviously operate a mux, but it can also do arbitration with an external 31 bus master or open a gate. The mux driver has two operations for this, 40 mux-locked or parent-locked muxes. 43 Mux-locked muxes 44 ---------------- [all …]
|
/Linux-v6.1/Documentation/devicetree/bindings/i2c/ |
D | i2c-mux-gpmux.yaml | 1 # SPDX-License-Identifier: GPL-2.0 3 --- 4 $id: http://devicetree.org/schemas/i2c/i2c-mux-gpmux.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: General Purpose I2C Bus Mux 10 - Peter Rosin <peda@axentia.se> 13 This binding describes an I2C bus multiplexer that uses a mux controller 14 from the mux subsystem to route the I2C signals. 16 .-----. .-----. 18 .------------. '-----' '-----' [all …]
|
/Linux-v6.1/drivers/i2c/ |
D | i2c-mux.c | 4 * Copyright (c) 2008-2009 Rodolfo Giometti <giometti@linux.it> 5 * Copyright (c) 2008-2009 Eurotech S.p.A. <info@eurotech.it> 6 * Copyright (c) 2009-2010 NSN GmbH & Co KG <michael.lawnick.ext@nsn.com> 10 * Supports multi-level mux'ing (mux behind a mux). 13 * i2c-virt.c from Kumar Gala <galak@kernel.crashing.org> 14 * i2c-virtual.c from Ken Harrenstien, Copyright (c) 2004 Google, Inc. 15 * i2c-virtual.c from Brian Kuschak <bkuschak@yahoo.com> 24 #include <linux/i2c-mux.h> 42 struct i2c_mux_priv *priv = adap->algo_data; in __i2c_mux_master_xfer() 43 struct i2c_mux_core *muxc = priv->muxc; in __i2c_mux_master_xfer() [all …]
|
/Linux-v6.1/drivers/mux/ |
D | core.c | 1 // SPDX-License-Identifier: GPL-2.0 10 #define pr_fmt(fmt) "mux-core: " fmt 19 #include <linux/mux/consumer.h> 20 #include <linux/mux/driver.h> 26 * The idle-as-is "state" is not an actual state that may be selected, it 33 * struct mux_state - Represents a mux controller state specific to a given 35 * @mux: Pointer to a mux controller. 36 * @state: State of the mux to be selected. 42 struct mux_control *mux; member 47 .name = "mux", [all …]
|
/Linux-v6.1/drivers/i2c/muxes/ |
D | i2c-mux-gpmux.c | 1 // SPDX-License-Identifier: GPL-2.0-only 11 #include <linux/i2c-mux.h> 13 #include <linux/mux/consumer.h> 17 struct mux { struct 25 struct mux *mux = i2c_mux_priv(muxc); in i2c_mux_select() argument 28 ret = mux_control_select(mux->control, chan); in i2c_mux_select() 29 mux->do_not_deselect = ret < 0; in i2c_mux_select() 36 struct mux *mux = i2c_mux_priv(muxc); in i2c_mux_deselect() local 38 if (mux->do_not_deselect) in i2c_mux_deselect() 41 return mux_control_deselect(mux->control); in i2c_mux_deselect() [all …]
|
D | i2c-mux-pinctrl.c | 1 // SPDX-License-Identifier: GPL-2.0-only 9 #include <linux/i2c-mux.h> 24 struct i2c_mux_pinctrl *mux = i2c_mux_priv(muxc); in i2c_mux_pinctrl_select() local 26 return pinctrl_select_state(mux->pinctrl, mux->states[chan]); in i2c_mux_pinctrl_select() 31 return i2c_mux_pinctrl_select(muxc, muxc->num_adapters); in i2c_mux_pinctrl_deselect() 41 list_for_each_entry(setting, &state->settings, node) { in i2c_mux_pinctrl_root_adapter() 42 pin_root = i2c_root_adapter(setting->pctldev->dev); in i2c_mux_pinctrl_root_adapter() 56 struct device_node *np = dev->of_node; in i2c_mux_pinctrl_parent_adapter() 60 parent_np = of_parse_phandle(np, "i2c-parent", 0); in i2c_mux_pinctrl_parent_adapter() 62 dev_err(dev, "Cannot parse i2c-parent\n"); in i2c_mux_pinctrl_parent_adapter() [all …]
|
D | i2c-mux-gpio.c | 1 // SPDX-License-Identifier: GPL-2.0-only 9 #include <linux/i2c-mux.h> 11 #include <linux/platform_data/i2c-mux-gpio.h> 26 static void i2c_mux_gpio_set(const struct gpiomux *mux, unsigned val) in i2c_mux_gpio_set() argument 32 gpiod_set_array_value_cansleep(mux->ngpios, mux->gpios, NULL, values); in i2c_mux_gpio_set() 37 struct gpiomux *mux = i2c_mux_priv(muxc); in i2c_mux_gpio_select() local 39 i2c_mux_gpio_set(mux, chan); in i2c_mux_gpio_select() 46 struct gpiomux *mux = i2c_mux_priv(muxc); in i2c_mux_gpio_deselect() local 48 i2c_mux_gpio_set(mux, mux->data.idle); in i2c_mux_gpio_deselect() 53 static int i2c_mux_gpio_probe_fw(struct gpiomux *mux, in i2c_mux_gpio_probe_fw() argument [all …]
|
/Linux-v6.1/arch/arm/boot/dts/ |
D | at91-natte.dtsi | 1 // SPDX-License-Identifier: GPL-2.0+ 3 * at91-natte.dts - Device Tree include file for the Natte board 11 mux: mux-controller { label 12 compatible = "gpio-mux"; 13 #mux-control-cells = <0>; 15 mux-gpios = <&ioexp 0 GPIO_ACTIVE_HIGH>, 20 batntc-mux { 21 compatible = "io-channel-mux"; 22 io-channels = <&adc 5>; 23 io-channel-names = "parent"; [all …]
|
/Linux-v6.1/drivers/media/i2c/ |
D | max9286.c | 1 // SPDX-License-Identifier: GPL-2.0+ 5 * Copyright (C) 2017-2019 Jacopo Mondi 6 * Copyright (C) 2017-2019 Kieran Bingham 7 * Copyright (C) 2017-2019 Laurent Pinchart 8 * Copyright (C) 2017-2019 Niklas Söderlund 20 #include <linux/i2c-mux.h> 27 #include <media/v4l2-async.h> 28 #include <media/v4l2-ctrls.h> 29 #include <media/v4l2-device.h> 30 #include <media/v4l2-fwnode.h> [all …]
|
/Linux-v6.1/Documentation/devicetree/bindings/clock/ |
D | qoriq-clock.txt | 5 multiple phase locked loops (PLL) to create a variety of frequencies 14 --------------- ------------- 21 - compatible: Should contain a chip-specific clock block compatible 22 string and (if applicable) may contain a chassis-version clock 25 Chip-specific strings are of the form "fsl,<chip>-clockgen", such as: 26 * "fsl,p2041-clockgen" 27 * "fsl,p3041-clockgen" 28 * "fsl,p4080-clockgen" 29 * "fsl,p5020-clockgen" 30 * "fsl,p5040-clockgen" [all …]
|
/Linux-v6.1/drivers/spi/ |
D | spi-dw-bt1.c | 1 // SPDX-License-Identifier: GPL-2.0-only 9 // Baikal-T1 DW APB SPI and System Boot SPI driver 17 #include <linux/mux/consumer.h> 24 #include <linux/spi/spi-mem.h> 27 #include "spi-dw.h" 35 struct mux_control *mux; member 52 struct dw_spi_bt1 *dwsbt1 = to_dw_spi_bt1(desc->mem->spi->controller); in dw_spi_bt1_dirmap_create() 54 if (!dwsbt1->map || in dw_spi_bt1_dirmap_create() 55 !dwsbt1->dws.mem_ops.supports_op(desc->mem, &desc->info.op_tmpl)) in dw_spi_bt1_dirmap_create() 56 return -EOPNOTSUPP; in dw_spi_bt1_dirmap_create() [all …]
|
/Linux-v6.1/drivers/mtd/nand/onenand/ |
D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.0-only 48 a One-Time Programmable Block memory area. 51 The OTP block can be read, programmed and locked using the same 55 OTP block is fully-guaranteed to be a valid block. 61 Since the device is equipped with two DataRAMs, and two-plane NAND 69 Mux: KFM2G16Q2M, KFN4G16Q2M,
|
/Linux-v6.1/drivers/clk/davinci/ |
D | da8xx-cfgchip.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Clock driver for DA8xx/AM17xx/AM18xx/OMAP-L13x CFGCHIP 8 #include <linux/clk-provider.h> 12 #include <linux/mfd/da8xx-cfgchip.h> 16 #include <linux/platform_data/clk-da8xx-cfgchip.h> 21 /* --- Gate clocks --- */ 46 return regmap_write_bits(clk->regmap, clk->reg, clk->mask, clk->mask); in da8xx_cfgchip_gate_clk_enable() 53 regmap_write_bits(clk->regmap, clk->reg, clk->mask, 0); in da8xx_cfgchip_gate_clk_disable() 61 regmap_read(clk->regmap, clk->reg, &val); in da8xx_cfgchip_gate_clk_is_enabled() 63 return !!(val & clk->mask); in da8xx_cfgchip_gate_clk_is_enabled() [all …]
|
/Linux-v6.1/net/kcm/ |
D | kcmsock.c | 1 // SPDX-License-Identifier: GPL-2.0-only 45 return (struct kcm_tx_msg *)skb->cb; in kcm_tx_msg() 50 csk->sk_err = EPIPE; in report_csk_error() 57 struct sock *csk = psock->sk; in kcm_abort_tx_psock() 58 struct kcm_mux *mux = psock->mux; in kcm_abort_tx_psock() local 62 spin_lock_bh(&mux->lock); in kcm_abort_tx_psock() 64 if (psock->tx_stopped) { in kcm_abort_tx_psock() 65 spin_unlock_bh(&mux->lock); in kcm_abort_tx_psock() 69 psock->tx_stopped = 1; in kcm_abort_tx_psock() 70 KCM_STATS_INCR(psock->stats.tx_aborts); in kcm_abort_tx_psock() [all …]
|
/Linux-v6.1/drivers/tty/serial/ |
D | dz.c | 1 // SPDX-License-Identifier: GPL-2.0 12 * [31-AUG-98] triemer 14 * removed base_addr code - moving address assignment to setup.c 16 * [13-NOV-98] triemer fixed code to receive characters 18 * [09-JAN-99] triemer minor fix for schedule - due to removal of timeout 19 * field from "current" - somewhere between 2.1.121 and 2.1.131 21 * [27-JUN-2001] Arnaldo Carvalho de Melo <acme@conectiva.com.br> - cleanups 24 * [07-SEP-99] Bugfixes 26 * [06-Jan-2002] Russell King <rmk@arm.linux.org.uk> 71 struct dz_mux *mux; member [all …]
|
/Linux-v6.1/drivers/clk/xilinx/ |
D | xlnx_vcu.c | 1 // SPDX-License-Identifier: GPL-2.0 5 * Copyright (C) 2016 - 2017 Xilinx, Inc. 11 #include <linux/clk-provider.h> 16 #include <linux/mfd/syscon/xlnx-vcu.h> 22 #include <dt-bindings/clock/xlnx-vcu.h> 50 * struct xvcu_device - Xilinx VCU init device structure 81 * struct xvcu_pll_cfg - Helper data 203 * xvcu_read - Read from the VCU register space 216 * xvcu_write - Write to the VCU register space 237 void __iomem *base = pll->reg_base; in xvcu_pll_wait_for_lock() [all …]
|
/Linux-v6.1/drivers/media/dvb-frontends/ |
D | mxl692_defs.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 23 #define MXL_EAGLE_VERSION_SIZE 5 /* A.B.C.D-RCx */ 226 /* Enum of I/O Mux function, used in device I/O mux configuration API */ 271 MXL_EAGLE_QAM_DEMOD_ANNEX_A, /* DVB-C */ 295 MXL_EAGLE_OOB_DEMOD_SYMB_RATE_0_772MHZ, /* ANSI/SCTE 55-2 0.772 MHz */ 296 MXL_EAGLE_OOB_DEMOD_SYMB_RATE_1_024MHZ, /* ANSI/SCTE 55-1 1.024 MHz */ 297 MXL_EAGLE_OOB_DEMOD_SYMB_RATE_1_544MHZ, /* ANSI/SCTE 55-2 1.544 MHz */ 509 u8 locked; member
|
/Linux-v6.1/sound/usb/ |
D | mixer_scarlett.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 21 * Auto-detection via UAC2 is not feasible to properly discover the vast 38 * - change Impedance of inputs (Line-in, Mic / Instrument, Hi-Z) 39 * - select clock source 40 * - dynamic input to mixer-matrix assignment 41 * - 18 x 6 mixer-matrix gain stages 42 * - bus routing & volume control 43 * - automatic re-initialization on connect if device was power-cycled 49 * pad (-10dB) switch, wValue=0x0b01 + channel, data=Off/On (2bytes) 54 * 0x29 Set Sample-rate, wValue=0x0100, data=sample-rate(4bytes) [all …]
|
/Linux-v6.1/drivers/pinctrl/intel/ |
D | pinctrl-intel.c | 1 // SPDX-License-Identifier: GPL-2.0 22 #include <linux/pinctrl/pinconf-generic.h> 25 #include "pinctrl-intel.h" 98 #define pin_to_padno(c, p) ((p) - (c)->pin_base) 99 #define padgroup_offset(g, p) ((p) - (g)->base) 107 for (i = 0; i < pctrl->ncommunities; i++) { in intel_get_community() 108 community = &pctrl->communities[i]; in intel_get_community() 109 if (pin >= community->pin_base && in intel_get_community() 110 pin < community->pin_base + community->npins) in intel_get_community() 114 dev_warn(pctrl->dev, "failed to find community for pin %u\n", pin); in intel_get_community() [all …]
|
/Linux-v6.1/sound/soc/codecs/ |
D | da7213.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 33 /* -54dB */ 34 0x0, 0x11, TLV_DB_SCALE_ITEM(-5400, 0, 0), 35 /* -52.5dB to 15dB */ 36 0x12, 0x3f, TLV_DB_SCALE_ITEM(-5250, 150, 0) 41 /* -78dB to 12dB */ 42 0x08, 0x7f, TLV_DB_SCALE_ITEM(-7800, 75, 0) 51 static const DECLARE_TLV_DB_SCALE(mic_vol_tlv, -600, 600, 0); 52 static const DECLARE_TLV_DB_SCALE(mixin_gain_tlv, -450, 150, 0); 53 static const DECLARE_TLV_DB_SCALE(eq_gain_tlv, -1050, 150, 0); [all …]
|
D | da7219.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * da7219.c - DA7219 ALSA SoC Codec Driver 13 #include <linux/clk-provider.h> 26 #include <sound/soc-dapm.h> 33 #include "da7219-aad.h" 41 static const DECLARE_TLV_DB_SCALE(da7219_mic_gain_tlv, -600, 600, 0); 42 static const DECLARE_TLV_DB_SCALE(da7219_mixin_gain_tlv, -450, 150, 0); 43 static const DECLARE_TLV_DB_SCALE(da7219_adc_dig_gain_tlv, -8325, 75, 0); 44 static const DECLARE_TLV_DB_SCALE(da7219_alc_threshold_tlv, -9450, 150, 0); 47 static const DECLARE_TLV_DB_SCALE(da7219_sidetone_gain_tlv, -4200, 300, 0); [all …]
|
D | wm8993.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * wm8993.c -- WM8993 ALSA SoC audio driver 5 * Copyright 2009-12 Wolfson Microelectronics plc 42 { 1, 0x0000 }, /* R1 - Power Management (1) */ 43 { 2, 0x6000 }, /* R2 - Power Management (2) */ 44 { 3, 0x0000 }, /* R3 - Power Management (3) */ 45 { 4, 0x4050 }, /* R4 - Audio Interface (1) */ 46 { 5, 0x4000 }, /* R5 - Audio Interface (2) */ 47 { 6, 0x01C8 }, /* R6 - Clocking 1 */ 48 { 7, 0x0000 }, /* R7 - Clocking 2 */ [all …]
|
/Linux-v6.1/drivers/net/mctp/ |
D | mctp-i2c.c | 1 // SPDX-License-Identifier: GPL-2.0 10 * mux topology a single I2C client is attached to the root of the mux topology, 11 * shared between all mux I2C busses underneath. For non-mux cases an I2C client 14 * mctp-i2c-controller.yml devicetree binding has further details. 23 #include <linux/i2c-mux.h> 31 #define MCTP_I2C_MAXMTU (MCTP_I2C_MAXBLOCK - 1) 41 #define MCTP_I2C_OF_PROP "mctp-controller" 87 * mux tree, shared by multiple netdevs 118 return i2c_root_adapter(&adap->dev); in mux_root_adapter() 120 /* In non-mux config all i2c adapters are root adapters */ in mux_root_adapter() [all …]
|
/Linux-v6.1/drivers/clk/ti/ |
D | adpll.c | 1 // SPDX-License-Identifier: GPL-2.0-only 5 #include <linux/clk-provider.h> 181 err = of_property_read_string_index(d->np, in ti_adpll_clk_get_name() 182 "clock-output-names", in ti_adpll_clk_get_name() 188 name = devm_kasprintf(d->dev, GFP_KERNEL, "%08lx.adpll.%s", in ti_adpll_clk_get_name() 189 d->pa, postfix); in ti_adpll_clk_get_name() 205 d->clocks[index].clk = clock; in ti_adpll_setup_clock() 206 d->clocks[index].unregister = unregister; in ti_adpll_setup_clock() 212 dev_warn(d->dev, "clock %s con_id lookup may fail\n", in ti_adpll_setup_clock() 214 snprintf(con_id, 16, "pll%03lx%s", d->pa & 0xfff, postfix + 1); in ti_adpll_setup_clock() [all …]
|
/Linux-v6.1/sound/pci/ca0106/ |
D | ca0106.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 3 * Copyright (c) 2004 James Courtier-Dutton <James@superbug.demon.co.uk> 50 * Implement support for Line-in capture on SB Live 24bit. 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 */ 88 #define IPR_MIDI_TX_A 0x00000002 /* MIDI UART-A Transmit buffer empty */ 93 #define INTE_MIDI_RX_B 0x00020000 /* MIDI UART-B Receive buffer non-empty */ 94 #define INTE_MIDI_TX_B 0x00010000 /* MIDI UART-B Transmit buffer empty */ 107 #define INTE_MIDI_RX_A 0x00000004 /* MIDI UART-A Receive buffer non-empty */ [all …]
|