Home
last modified time | relevance | path

Searched +full:smbus +full:- +full:timeout +full:- +full:disable (Results 1 – 25 of 41) sorted by relevance

12

/linux/Documentation/devicetree/bindings/hwmon/
H A Dmax6697.txt4 - compatible:
16 - reg: I2C address
20 - smbus-timeout-disable
21 Set to disable SMBus timeout. If not specified, SMBus timeout will be
23 - extended-range-enable
26 - beta-compensation-enable
30 - alert-mask
34 - over-temperature-mask
35 Over-temperature bit mask. Over-temperature reporting disabled for
38 If not specified, over-temperature reporting will be enabled for all
[all …]
H A Dst,stts751.yaml1 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
3 ---
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - Javier Carrasco <javier.carrasco.cruz@gmail.com>
19 smbus-timeout-disable:
21 When set, the smbus timeout function will be disabled.
25 - compatible
26 - reg
31 - |
33 #address-cells = <1>;
[all …]
H A Djedec,jc42.yaml1 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
3 ---
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: Jedec JC-42.4 compatible temperature sensors
10 - Jean Delvare <jdelvare@suse.com>
11 - Guenter Roeck <linux@roeck-us.net>
16 const: jedec,jc-42.4-temp
19 - compatible
24 - const: jedec,jc-42.4-temp
25 - items:
[all …]
/linux/drivers/i2c/busses/
H A Di2c-amd8111.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * SMBus 2.0 driver for AMD-8111 IO-Hub.
21 MODULE_DESCRIPTION("AMD8111 SMBus 2.0 driver");
61 #define AMD_EC_CMD_BD 0x83 /* disable burst mode */
68 static int amd_ec_wait_write(struct amd_smbus *smbus) in amd_ec_wait_write() argument
70 int timeout = 500; in amd_ec_wait_write() local
72 while ((inb(smbus->base + AMD_EC_SC) & AMD_EC_SC_IBF) && --timeout) in amd_ec_wait_write()
75 if (!timeout) { in amd_ec_wait_write()
76 dev_warn(&smbus->dev->dev, in amd_ec_wait_write()
77 "Timeout while waiting for IBF to clear\n"); in amd_ec_wait_write()
[all …]
H A Di2c-i801.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 Copyright (c) 1998 - 2002 Frodo Looijaard <frodol@dds.nl>,
6 Copyright (C) 2007 - 2014 Jean Delvare <jdelvare@suse.de>
16 * region SMBus Block proc. block
18 * ---------------------------------------------------------------------------
43 * Lynx Point-LP (PCH) 0x9c22 32 hard yes yes yes
51 * Wildcat Point-LP (PCH) 0x9ca2 32 hard yes yes yes
54 * Sunrise Point-H (PCH) 0xa123 32 hard yes yes yes
55 * Sunrise Point-LP (PCH) 0x9d23 32 hard yes yes yes
61 * Kaby Lake PCH-H (PCH) 0xa2a3 32 hard yes yes yes
[all …]
H A Di2c-ali15x3.c1 // SPDX-License-Identifier: GPL-2.0-or-later
34 ACPI-compliant Power Management Unit (PMU).
47 /* Note: we assume there can only be one ALI15X3, with one SMBus interface */
59 /* ALI15X3 SMBus address offsets */
127 - SMB I/O address is initialized in ali15x3_setup()
128 - Device is enabled in ali15x3_setup()
129 - We can use the addresses in ali15x3_setup()
133 The data sheet says that the address registers are read-only in ali15x3_setup()
143 /* Determine the address of the SMBus area */ in ali15x3_setup()
145 ali15x3_smba &= (0xffff & ~(ALI15X3_SMB_IOSIZE - 1)); in ali15x3_setup()
[all …]
H A Di2c-ali1535.c1 // SPDX-License-Identifier: GPL-2.0-or-later
18 the sequencing of the SMBus transactions has been modified
22 by comparing this driver to the i2c-ali15x3 driver.
26 ACPI-compliant Power Management Unit (PMU).
39 /* Note: we assume there can only be one ALI1535, with one SMBus interface */
52 /* ALI1535 SMBus address offsets */
87 #define ALI1535_DEV10B_EN 0x80 /* Enable 10-bit addressing in */
89 #define ALI1535_T_OUT 0x08 /* Time-out Command (write) */
90 #define ALI1535_A_HIGH_BIT9 0x08 /* Bit 9 of 10-bit address in */
91 /* Alert-Response-Address */
[all …]
H A Di2c-viapro.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 Copyright (c) 1998 - 2002 Frodo Looijaard <frodol@dds.nl>,
6 Copyright (C) 2005 - 2008 Jean Delvare <jdelvare@suse.de>
30 Note: we assume there can only be one device, with one SMBus interface.
50 /* SMBus address offsets */
62 /* SMBus data in configuration space can be found in two places,
84 MODULE_PARM_DESC(force, "Forcibly enable the SMBus. DANGEROUS!");
91 "Forcibly enable the SMBus at the given address. "
118 for (; i < I2C_SMBUS_BLOCK_MAX - 1; i++) in vt596_dump_regs()
127 /* Return -1 on error, 0 on success */
[all …]
H A Di2c-sis630.c1 // SPDX-License-Identifier: GPL-2.0-or-later
16 +------------------------+--------------------+-------------------+
18 +------------------------+--------------------+-------------------+
20 | SMBus registers offset | 0x80 | 0xE0 |
25 +------------------------+--------------------+-------------------+
28 Note: we assume there can only be one device, with one SMBus interface.
43 /* SIS630/730/964 SMBus registers */
58 #define MSTO_EN 0x40 /* Host Master Timeout Enable */
100 /* SMBus base address */
126 /* Make sure the SMBus host is ready to start transmitting. */ in sis630_transaction_start()
[all …]
H A Di2c-piix4.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 Copyright (c) 1998 - 2002 Frodo Looijaard <frodol@dds.nl> and
11 Serverworks OSB4, CSB5, CSB6, HT-1000, HT-1100
13 AMD Hudson-2, ML, CZ
18 SMBus interfaces.
32 #include <linux/i2c-smbus.h>
38 #include "i2c-piix4.h"
61 /* Multi-port constants */
75 * Hudson-2/Bolton port is always selected by bits 2:1 of register 0x2f.
116 DMI_MATCH(DMI_BOARD_NAME, "PC-AM2RD790"),
[all …]
H A Di2c-nomadik.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * Copyright (C) 2009 ST-Ericsson SA
11 * - The memory bus only supports 32-bit accesses.
12 * - (only EyeQ5) A register must be configured for the I2C speed mode;
35 #define DRIVER_NAME "nmk-i2c"
74 #define I2C_MCR_A7 GENMASK(7, 1) /* 7-bit address */
75 #define I2C_MCR_EA10 GENMASK(10, 8) /* 10-bit Extended address */
88 /* Baud-rate counter register (BRCR) */
89 #define I2C_BRCR_BRCNT1 GENMASK(31, 16) /* Baud-rate counter 1 */
90 #define I2C_BRCR_BRCNT2 GENMASK(15, 0) /* Baud-rate counter 2 */
[all …]
H A Di2c-at91.h1 /* SPDX-License-Identifier: GPL-2.0 */
3 * i2c Support for Atmel's AT91 Two-Wire Interface (TWI)
18 #include <linux/dma-mapping.h>
23 #define AT91_I2C_TIMEOUT msecs_to_jiffies(100) /* transfer timeout */
33 #define AT91_TWI_MSDIS BIT(3) /* Master Transfer Disable */
35 #define AT91_TWI_SVDIS BIT(5) /* Slave Transfer Disable */
36 #define AT91_TWI_QUICK BIT(6) /* SMBus quick command */
40 #define AT91_TWI_ACMDIS BIT(17) /* Alternative Command Mode Disable */
45 #define AT91_TWI_FIFODIS BIT(29) /* FIFO Disable */
80 #define AT91_TWI_IDR 0x0028 /* Interrupt Disable Register */
[all …]
H A Di2c-imx-lpi2c.c1 // SPDX-License-Identifier: GPL-2.0+
26 #define DRIVER_NAME "imx-lpi2c"
116 writel(enable, lpi2c_imx->base + LPI2C_MIER); in lpi2c_imx_intctrl()
125 temp = readl(lpi2c_imx->base + LPI2C_MSR); in lpi2c_imx_bus_busy()
129 writel(temp, lpi2c_imx->base + LPI2C_MSR); in lpi2c_imx_bus_busy()
130 return -EAGAIN; in lpi2c_imx_bus_busy()
137 dev_dbg(&lpi2c_imx->adapter.dev, "bus not work\n"); in lpi2c_imx_bus_busy()
138 if (lpi2c_imx->adapter.bus_recovery_info) in lpi2c_imx_bus_busy()
139 i2c_recover_bus(&lpi2c_imx->adapter); in lpi2c_imx_bus_busy()
140 return -ETIMEDOUT; in lpi2c_imx_bus_busy()
[all …]
H A Di2c-s3c2410.c1 // SPDX-License-Identifier: GPL-2.0-or-later
2 /* linux/drivers/i2c/busses/i2c-s3c2410.c
34 #include <linux/platform_data/i2c-s3c2410.h>
125 .name = "s3c2410-i2c",
128 .name = "s3c2440-i2c",
131 .name = "s3c2440-hdmiphy-i2c",
141 { .compatible = "samsung,s3c2410-i2c", .data = (void *)0 },
142 { .compatible = "samsung,s3c2440-i2c", .data = (void *)QUIRK_S3C2440 },
143 { .compatible = "samsung,s3c2440-hdmiphy-i2c",
145 { .compatible = "samsung,exynos5-sata-phy-i2c",
[all …]
/linux/Documentation/driver-api/
H A Dipmi.rst12 standardized database for field-replaceable units (FRUs) and a watchdog
25 -------------
32 No matter what, you must pick 'IPMI top-level message handler' to use
35 The message handler does not provide any user-level interfaces.
47 this, choose 'IPMI SMBus handler', but be ready to try to do some
50 these enabled and let the drivers auto-detect what is present.
61 "The SMBus Driver" on how to hand-configure your system.
65 the kernel, then via a kernel command-line option you can have the
71 'Disable watchdog shutdown on close'.
74 'IPMI Poweroff' to do this. The driver will auto-detect if the system
[all …]
/linux/drivers/input/mouse/
H A Dcyapa.c9 * Copyright (C) 2011-2015 Cypress Semiconductor, Inc.
10 * Copyright (C) 2011-2012 Google, Inc.
46 if (cyapa->gen == CYAPA_GEN6 && cyapa->state == CYAPA_STATE_GEN6_BL) in cyapa_is_pip_bl_mode()
49 if (cyapa->gen == CYAPA_GEN5 && cyapa->state == CYAPA_STATE_GEN5_BL) in cyapa_is_pip_bl_mode()
57 if (cyapa->gen == CYAPA_GEN6 && cyapa->state == CYAPA_STATE_GEN6_APP) in cyapa_is_pip_app_mode()
60 if (cyapa->gen == CYAPA_GEN5 && cyapa->state == CYAPA_STATE_GEN5_APP) in cyapa_is_pip_app_mode()
71 if (cyapa->gen == CYAPA_GEN3 && in cyapa_is_bootloader_mode()
72 cyapa->state >= CYAPA_STATE_BL_BUSY && in cyapa_is_bootloader_mode()
73 cyapa->state <= CYAPA_STATE_BL_ACTIVE) in cyapa_is_bootloader_mode()
84 if (cyapa->gen == CYAPA_GEN3 && cyapa->state == CYAPA_STATE_OP) in cyapa_is_operational_mode()
[all …]
/linux/drivers/net/ethernet/intel/e1000e/
H A Dich8lan.c1 // SPDX-License-Identifier: GPL-2.0
2 /* Copyright(c) 1999 - 2018 Intel Corporation. */
5 * 82562G-2 10/100 Network Connection
7 * 82562GT-2 10/100 Network Connection
9 * 82562V-2 10/100 Network Connection
10 * 82566DC-2 Gigabit Network Connection
12 * 82566DM-2 Gigabit Network Connection
19 * 82567LM-2 Gigabit Network Connection
20 * 82567LF-2 Gigabit Network Connection
21 * 82567V-2 Gigabit Network Connection
[all …]
H A Dich8lan.h1 /* SPDX-License-Identifier: GPL-2.0 */
2 /* Copyright(c) 1999 - 2018 Intel Corporation. */
36 #define E1000_ICH_FWSM_PCIM2PCI 0x01000000 /* ME PCIm-to-PCI active */
93 /* bit24: RXDCTL thresholds granularity: 0 - cache lines, 1 - descriptors */
106 #define E1000_PCH2_RAR_ENTRIES 5 /* RAR[0], SHRA[0-3] */
107 #define E1000_PCH_LPT_RAR_ENTRIES 12 /* RAR[0], SHRA[0-10] */
144 /* Half-duplex collision counts */
165 /* SMBus Control Phy Register */
176 #define I218_ULP_CONFIG1_RESET_TO_SMBUS 0x0100 /* Reset to SMBus mode */
179 /* disable clear of sticky ULP on PERST */
[all …]
/linux/drivers/usb/host/
H A Dpci-quirks.c1 // SPDX-License-Identifier: GPL-2.0
4 * Some of it includes work-arounds for PCI hardware and BIOS quirks.
5 * It may need to run early during booting -- before USB would normally
6 * initialize -- to ensure that Linux doesn't use any legacy modes.
22 #include "pci-quirks.h"
23 #include "xhci-ext-caps.h"
146 * amd_chipset_sb_type_init - initialize amd chipset southbridge type
148 * AMD FCH/SB generation and revision is identified by SMBus controller
156 pinfo->sb_type.gen = AMD_CHIPSET_UNKNOWN; in amd_chipset_sb_type_init()
158 pinfo->smbus_dev = pci_get_device(PCI_VENDOR_ID_ATI, in amd_chipset_sb_type_init()
[all …]
/linux/drivers/hwmon/
H A Djc42.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * jc42.c - driver for Jedec JC42.4 compliant temperature sensors
69 /* SMBUS register */
70 #define SMBUS_STMOUT BIT(7) /* SMBus time-out, active low */
190 #define JC42_TEMP_MIN_EXTENDED (-40000)
219 mutex_lock(&data->update_lock); in jc42_read()
223 ret = regmap_read(data->regmap, JC42_REG_TEMP, &regval); in jc42_read()
230 ret = regmap_read(data->regmap, JC42_REG_TEMP_LOWER, &regval); in jc42_read()
237 ret = regmap_read(data->regmap, JC42_REG_TEMP_UPPER, &regval); in jc42_read()
244 ret = regmap_read(data->regmap, JC42_REG_TEMP_CRITICAL, in jc42_read()
[all …]
H A Dstts751.c1 // SPDX-License-Identifier: GPL-2.0-or-later
5 * Copyright (C) 2016-2017 Istituto Italiano di Tecnologia - RBCS - EDL
17 #include <linux/hwmon-sysfs.h>
32 0x48, 0x49, 0x38, 0x39, /* STTS751-0 */
33 0x4A, 0x4B, 0x3A, 0x3B, /* STTS751-1 */
104 * vice-vers. They are (mostly) taken from lm90 driver. Unit is in mC.
120 switch (priv->interval) { in stts751_adjust_resolution()
135 if (priv->res == res) in stts751_adjust_resolution()
138 priv->config &= ~STTS751_CONF_RES_MASK; in stts751_adjust_resolution()
139 priv->config |= res << STTS751_CONF_RES_SHIFT; in stts751_adjust_resolution()
[all …]
/linux/drivers/misc/eeprom/
H A Didt_89hpesx.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * Copyright (C) 2016 T-Platforms. All Rights Reserved.
5 * IDT PCIe-switch NTB Linux driver
8 * Serge Semin <fancer.lancer@gmail.com>, <Sergey.Semin@t-platforms.ru>
11 * NOTE of the IDT 89HPESx SMBus-slave interface driver
13 * IDT PCIe-switches. IDT provides a simple SMBus interface to perform IO-
15 * SMBus of switches. Using that interface this the driver creates a simple
16 * binary sysfs-file in the device directory:
17 * /sys/bus/i2c/devices/<bus>-<devaddr>/eeprom
18 * In case if read-only flag is specified in the dts-node of device desription,
[all …]
/linux/drivers/rtc/
H A Drtc-ds1374.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * RTC client/driver for the Maxim/Dallas DS1374 Real-Time Clock over I2C
9 * Copyright (C) 2006-2007 Freescale Semiconductor
14 * recommended in .../Documentation/i2c/writing-clients.rst section
15 * "Sending and receiving", using SMBus level communication is preferred.
93 return -EINVAL; in ds1374_read_rtc()
100 return -EIO; in ds1374_read_rtc()
102 for (i = nbytes - 1, *time = 0; i >= 0; i--) in ds1374_read_rtc()
116 return -EINVAL; in ds1374_write_rtc()
137 dev_warn(&client->dev, in ds1374_check_rtc_status()
[all …]
/linux/arch/arm/boot/dts/microchip/
H A Dat91-nattis-2-natte-2.dts1 // SPDX-License-Identifier: GPL-2.0+
3 * at91-nattis-2-natte-2.dts - Device Tree file for the Linea/Nattis board
9 /dts-v1/;
10 #include "at91-linea.dtsi"
11 #include "at91-natte.dtsi"
14 model = "Axentia Linea-Nattis v2 Natte v2";
15 compatible = "axentia,nattis-2", "axentia,natte-2", "axentia,linea",
18 gpio-keys {
19 compatible = "gpio-keys";
21 key-wakeup {
[all …]
/linux/drivers/char/ipmi/
H A Dipmi_ssif.c1 // SPDX-License-Identifier: GPL-2.0+
5 * The interface to the IPMI driver for SMBus access to a SMBus
12 * non-blocking I2C interface, add support for multi-part
63 /* ssif_debug is a bit-field
64 * SSIF_DEBUG_MSG - commands and their responses
65 * SSIF_DEBUG_STATES - message states
66 * SSIF_DEBUG_TIMING - Measure times between events in the driver
92 * Timeout for the watch, only used for get flag timer.
103 /* FIXME - add watchdog stuff. */
106 #define IS_SSIF_IDLE(ssif) ((ssif)->ssif_state == SSIF_IDLE \
[all …]

12