/linux/Documentation/devicetree/bindings/auxdisplay/ |
H A D | gpio-7-segment.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/auxdisplay/gpio-7-segment.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: GPIO based LED segment display 10 - Chris Packham <chris.packham@alliedtelesis.co.nz> 14 const: gpio-7-segment 16 segment-gpios: 18 An array of GPIOs one per segment. The first GPIO corresponds to the A 19 segment, the seventh GPIO corresponds to the G segment. Some LED blocks [all …]
|
/linux/Documentation/devicetree/bindings/display/ |
H A D | solomon,ssd1307fb.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Maxime Ripard <mripard@kernel.org> 11 - Javier Martinez Canillas <javierm@redhat.com> 17 - enum: 18 - solomon,ssd1305fb-i2c 19 - solomon,ssd1306fb-i2c 20 - solomon,ssd1307fb-i2c 21 - solomon,ssd1309fb-i2c [all …]
|
/linux/Documentation/i2c/muxes/ |
H A D | i2c-mux-gpio.rst | 2 Kernel driver i2c-mux-gpio 8 ----------- 10 i2c-mux-gpio is an i2c mux driver providing access to I2C bus segments 15 ---------- ---------- Bus segment 1 - - - - - 16 | | SCL/SDA | |-------------- | | 17 | |------------| | 18 | | | | Bus segment 2 | | 19 | Linux | GPIO 1..N | MUX |--------------- Devices 20 | |------------| | | | 21 | | | | Bus segment M [all …]
|
/linux/arch/arm/boot/dts/marvell/ |
H A D | armada-385-atl-x530.dts | 1 // SPDX-License-Identifier: (GPL-2.0 OR MIT) 4 (x530/AT-GS980MX) 9 /dts-v1/; 10 #include "armada-385.dtsi" 12 #include <dt-bindings/gpio/gpio.h> 15 model = "x530/AT-GS980MX"; 19 stdout-path = "serial1:115200n8"; 32 internal-regs { 34 pinctrl-names = "default"; 35 pinctrl-0 = <&i2c0_pins>; [all …]
|
/linux/drivers/fsi/ |
H A D | fsi-master-ast-cf.c | 1 // SPDX-License-Identifier: GPL-2.0+ 25 #include "fsi-master.h" 26 #include "cf-fsi-fw.h" 28 #define FW_FILE_NAME "cf-fsi-fw.bin" 132 msg->msg <<= bits; in msg_push_bits() 133 msg->msg |= data & ((1ull << bits) - 1); in msg_push_bits() 134 msg->bits += bits; in msg_push_bits() 142 top = msg->bits & 0x3; in msg_push_crc() 144 /* start bit, and any non-aligned top bits */ in msg_push_crc() 145 crc = crc4(0, 1 << top | msg->msg >> (msg->bits - top), top + 1); in msg_push_crc() [all …]
|
/linux/arch/arm/boot/dts/nxp/imx/ |
H A D | imx6dl-yapp43-common.dtsi | 1 // SPDX-License-Identifier: GPL-2.0 5 #include <dt-bindings/gpio/gpio.h> 6 #include <dt-bindings/interrupt-controller/irq.h> 7 #include <dt-bindings/input/input.h> 8 #include <dt-bindings/leds/common.h> 9 #include <dt-bindings/pwm/pwm.h> 20 compatible = "pwm-backlight"; 22 brightness-levels = <0 32 64 128 255>; 23 default-brightness-level = <32>; 24 num-interpolated-steps = <8>; [all …]
|
/linux/drivers/net/usb/ |
H A D | smsc95xx.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 4 * Copyright (C) 2007-2008 SMSC 13 #define TX_CMD_A_FIRST_SEG_ (0x00002000) /* First Segment */ 14 #define TX_CMD_A_LAST_SEG_ (0x00001000) /* Last Segment */ 38 /* SCSRs - System Control and Status Registers */ 60 #define INT_STS_GPIOS_ (0x000007FF) /* GPIOs Interrupts */ 167 #define STRAP_STATUS_PWR_SEL_ (0x00000020) /* Device self-powered */ 168 #define STRAP_STATUS_AMDIX_EN_ (0x00000010) /* Auto-MDIX Enabled */ 169 #define STRAP_STATUS_PORT_SWAP_ (0x00000008) /* USBD+/USBD- Swapped */ 204 #define INT_EP_CTL_GPIOS_ (0x000007FF) /* GPIOs Interrupt Enable */ [all …]
|
/linux/include/linux/ |
H A D | i2c.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 3 * i2c.h - definitions for the Linux i2c bus interface 4 * Copyright (C) 1995-2000 Simon G. Vogl 5 * Copyright (C) 2013-2019 Wolfram Sang <wsa@kernel.org> 30 /* --- General options ------------------------------------------------ */ 69 * i2c_master_recv - issue a single I2C message in master receive mode 83 * i2c_master_recv_dmasafe - issue a single I2C message in master receive mode 99 * i2c_master_send - issue a single I2C message in master transmit mode 113 * i2c_master_send_dmasafe - issue a single I2C message in master transmit mode 195 * struct i2c_device_identity - i2c client device identification [all …]
|
/linux/Documentation/devicetree/bindings/bus/ |
H A D | qcom,ebi2.yaml | 1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 11 external memory (such as NAND or other memory-mapped peripherals) whereas 25 Also CS1 and CS2 has -A and -B signals. Why they have that is unclear to me. 31 CS0 GPIO134 0x1a800000-0x1b000000 (8MB) 32 CS1 GPIO39 (A) / GPIO123 (B) 0x1b000000-0x1b800000 (8MB) 33 CS2 GPIO40 (A) / GPIO124 (B) 0x1b800000-0x1c000000 (8MB) 34 CS3 GPIO133 0x1d000000-0x25000000 (128 MB) 35 CS4 GPIO132 0x1c800000-0x1d000000 (8MB) [all …]
|
/linux/drivers/gpio/ |
H A D | gpio-adnp.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Copyright (C) 2011-2012 Avionic Design GmbH 15 #define GPIO_DDR(gpio) (0x00 << (gpio)->reg_shift) 16 #define GPIO_PLR(gpio) (0x01 << (gpio)->reg_shift) 17 #define GPIO_IER(gpio) (0x02 << (gpio)->reg_shift) 18 #define GPIO_ISR(gpio) (0x03 << (gpio)->reg_shift) 19 #define GPIO_PTR(gpio) (0x04 << (gpio)->reg_shift) 41 err = i2c_smbus_read_byte_data(adnp->client, offset); in adnp_read() 43 dev_err(adnp->gpio.parent, "%s failed: %d\n", in adnp_read() 56 err = i2c_smbus_write_byte_data(adnp->client, offset, value); in adnp_write() [all …]
|
/linux/drivers/i2c/ |
H A D | i2c-core-base.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 5 * Copyright (C) 1995-99 Simon G. Vogl 10 * Copyright (C) 2013-2017 Wolfram Sang <wsa@kernel.org> 13 #define pr_fmt(fmt) "i2c-core: " fmt 15 #include <dt-bindings/i2c/i2c.h> 17 #include <linux/clk/clk-conf.h> 25 #include <linux/i2c-smbus.h> 46 #include "i2c-core.h" 111 while (id->name[0]) { in i2c_match_id() 112 if (strcmp(client->name, id->name) == 0) in i2c_match_id() [all …]
|
H A D | i2c-core-smbus.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 7 * (e.g. smbalert) are handled in a separate i2c-smbus module. 9 * All SMBus-related things are written by Frodo Looijaard <frodol@dds.nl> 16 #include <linux/i2c-smbus.h> 20 #include "i2c-core.h" 42 * i2c_smbus_pec - Incremental CRC8 over the given input data array 59 /* Assume a 7-bit address, which is reasonable for SMBus */ 67 return i2c_smbus_pec(pec, msg->buf, msg->len); in i2c_smbus_msg_pec() 73 msg->buf[msg->len] = i2c_smbus_msg_pec(0, msg); in i2c_smbus_add_pec() 74 msg->len++; in i2c_smbus_add_pec() [all …]
|
/linux/drivers/i2c/busses/ |
H A D | i2c-pxa.c | 1 // SPDX-License-Identifier: GPL-2.0-only 8 * Copyright (C) 2004-2005 Deep Blue Solutions Ltd. 13 * Jan 2003: Fixed several bugs concerning interrupt handling [Kai-Uwe Bloem] 14 * Jan 2003: added limited signal handling [Kai-Uwe Bloem] 34 #include <linux/platform_data/i2c-pxa.h> 59 #define ICR_A3700_FM (1 << 16) /* fast mode for armada-3700 */ 60 #define ICR_A3700_HS (1 << 17) /* high speed mode for armada-3700 */ 92 * looking at a multi-master environment 96 #define NO_SLAVE (-ENXIO) 97 #define BUS_ERROR (-EREMOTEIO) [all …]
|
/linux/drivers/media/dvb-frontends/ |
H A D | dib8000.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Linux-DVB Driver for DiBcom's DiB8000 chip (ISDB-T). 22 #define LAYER_ALL -1 149 {.addr = i2c->addr >> 1, .flags = 0, .len = 2}, in dib8000_i2c_read16() 150 {.addr = i2c->addr >> 1, .flags = I2C_M_RD, .len = 2}, in dib8000_i2c_read16() 153 if (mutex_lock_interruptible(i2c->i2c_buffer_lock) < 0) { in dib8000_i2c_read16() 158 msg[0].buf = i2c->i2c_write_buffer; in dib8000_i2c_read16() 161 msg[1].buf = i2c->i2c_read_buffer; in dib8000_i2c_read16() 163 if (i2c_transfer(i2c->adap, msg, 2) != 2) in dib8000_i2c_read16() 167 mutex_unlock(i2c->i2c_buffer_lock); in dib8000_i2c_read16() [all …]
|
/linux/include/linux/spi/ |
H A D | spi.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later 36 * INTERFACES between SPI master-side drivers and SPI slave protocol handlers, 42 * struct spi_statistics - statistics for spi transfers 43 * @syncp: seqcount to protect members in this struct for per-cpu update 44 * on 32-bit systems 46 * @messages: number of spi-messages handled 95 u64_stats_update_begin(&__lstats->syncp); \ 96 u64_stats_add(&__lstats->field, count); \ 97 u64_stats_update_end(&__lstats->syncp); \ 106 u64_stats_update_begin(&__lstats->syncp); \ [all …]
|
/linux/drivers/mmc/host/ |
H A D | mmci.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * linux/drivers/mmc/host/mmci.c - ARM PrimeCell MMCI PL180/1 driver 6 * Copyright (C) 2010 ST-Ericsson SA 26 #include <linux/mmc/slot-gpio.h> 33 #include <linux/dma-mapping.h> 47 #define DRIVER_NAME "mmci-pl18x" 377 spin_lock_irqsave(&host->lock, flags); in mmci_card_busy() 378 if (readl(host->base + MMCISTATUS) & host->variant->busy_detect_flag) in mmci_card_busy() 380 spin_unlock_irqrestore(&host->lock, flags); in mmci_card_busy() 394 if (host->cclk < 25000000) in mmci_reg_delay() [all …]
|
/linux/drivers/net/wireless/ath/ath11k/ |
H A D | qmi.c | 1 // SPDX-License-Identifier: BSD-3-Clause-Clear 3 * Copyright (c) 2018-2019 The Linux Foundation. All rights reserved. 4 * Copyright (c) 2021-2024 Qualcomm Innovation Center, Inc. All rights reserved. 94 gpios), 1719 req.mem_cfg_mode = ab->qmi.target_mem_mode; in ath11k_qmi_host_cap_send() 1724 if (ab->hw_params.m3_fw_support) { in ath11k_qmi_host_cap_send() 1737 req.cal_done = ab->qmi.cal_done; in ath11k_qmi_host_cap_send() 1739 if (ab->hw_params.internal_sleep_clock) { in ath11k_qmi_host_cap_send() 1742 /* Notify firmware that this is non-qualcomm platform. */ in ath11k_qmi_host_cap_send() 1747 * non-qualcomm platforms should select internal sleep in ath11k_qmi_host_cap_send() [all …]
|
/linux/drivers/net/wireless/ath/ath12k/ |
H A D | qmi.c | 1 // SPDX-License-Identifier: BSD-3-Clause-Clear 3 * Copyright (c) 2018-2021 The Linux Foundation. All rights reserved. 4 * Copyright (c) 2021-2024 Qualcomm Innovation Center, Inc. All rights reserved. 126 gpios), 2026 if (!(ab->mlo_capable_flags & ATH12K_INTRA_DEVICE_MLO_SUPPORT)) { in ath12k_host_cap_parse_mlo() 2032 if (!ab->qmi.num_radios || ab->qmi.num_radios == U8_MAX) { in ath12k_host_cap_parse_mlo() 2033 ab->mlo_capable_flags = 0; in ath12k_host_cap_parse_mlo() 2037 ab->qmi.num_radios); in ath12k_host_cap_parse_mlo() 2041 req->mlo_capable_valid = 1; in ath12k_host_cap_parse_mlo() 2042 req->mlo_capable = 1; in ath12k_host_cap_parse_mlo() [all …]
|
/linux/drivers/net/ethernet/broadcom/ |
H A D | tg3.c | 7 * Copyright (C) 2005-2016 Broadcom Corporation. 8 * Copyright (C) 2016-2017 Broadcom Limited. 14 * Copyright (C) 2000-2016 Broadcom Corporation. 15 * Copyright (C) 2016-2017 Broadcom Ltd. 52 #include <linux/dma-mapping.h> 56 #include <linux/hwmon-sysfs.h> 93 _tg3_flag(TG3_FLAG_##flag, (tp)->tg3_flags) 95 _tg3_flag_set(TG3_FLAG_##flag, (tp)->tg3_flags) 97 _tg3_flag_clear(TG3_FLAG_##flag, (tp)->tg3_flags) 123 * and dev->tx_timeout() should be called to fix the problem [all …]
|