Home
last modified time | relevance | path

Searched +full:i2c +full:- +full:retry +full:- +full:count (Results 1 – 25 of 44) sorted by relevance

12

/freebsd-src/sys/contrib/device-tree/Bindings/power/supply/
H A Dsbs,sbs-battery.yaml1 # SPDX-License-Identifier: GPL-2.0
3 ---
4 $id: http://devicetree.org/schemas/power/supply/sbs,sbs-battery.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - Sebastian Reichel <sre@kernel.org>
16 - $ref: power-supply.yaml#
21 - items:
22 - enum:
23 - ti,bq20z45
24 - ti,bq20z65
[all …]
/freebsd-src/sys/contrib/device-tree/Bindings/i2c/
H A Di2c-arb-gpio-challenge.yaml1 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
3 ---
4 $id: http://devicetree.org/schemas/i2c/i2c-arb-gpio-challenge.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: GPIO-based I2C Arbitration Using a Challenge & Response Mechanism
10 - Doug Anderson <dianders@chromium.org>
11 - Peter Rosin <peda@axentia.se>
15 the master of an I2C bus in a multimaster situation.
18 standard I2C multi-master rules. Using GPIOs is generally useful in the case
23 * It is nonstandard (not using standard I2C multimaster)
[all …]
H A Di2c-cros-ec-tunnel.txt1 I2C bus that tunnels through the ChromeOS EC (cros-ec)
6 to tunnel our i2c commands through the EC.
8 The node for this device should be under a cros-ec node like google,cros-ec-spi
9 or google,cros-ec-i2c.
13 - compatible: google,cros-ec-i2c-tunnel
14 - google,remote-bus: The EC bus we'd like to talk to.
17 - One node per I2C device connected to the tunnelled I2C bus.
21 cros-ec@0 {
22 compatible = "google,cros-ec-spi";
26 i2c-tunnel {
[all …]
H A Dgoogle,cros-ec-i2c-tunnel.yaml1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
3 ---
5 $id: http://devicetree.org/schemas/i2c/google,cros-e
[all...]
/freebsd-src/sys/contrib/device-tree/src/arm/
H A Dcros-ec-sbs.dtsi2 * Smart battery dts fragment for devices that use cros-ec-sbs
6 * This file is dual-licensed: you can use it either under the terms
46 battery: sbs-battery@b {
47 compatible = "sbs,sbs-battery";
49 sbs,i2c-retry-count = <2>;
50 sbs,poll-retry-count = <1>;
/freebsd-src/sys/dev/iicbus/sensor/
H A Dmax6690.c1 /*-
2 * SPDX-License-Identifier: BSD-2-Clause
100 static MALLOC_DEFINE(M_MAX6690, "max6690", "Temp-Monitor MAX6690");
111 /* first read the status register, 0x2. If busy, retry. */ in max6690_read()
123 goto retry; in max6690_read()
125 goto retry; in max6690_read()
126 /* Check for invalid value and retry. */ in max6690_read()
128 goto retry; in max6690_read()
133 retry: in max6690_read()
136 return (-1); in max6690_read()
[all …]
/freebsd-src/sys/contrib/device-tree/src/arm/samsung/
H A Dexynos5250-snow-common.dtsi1 // SPDX-License-Identifier: GPL-2.0
8 #include <dt-bindings/gpio/gpio.h>
9 #include <dt-bindings/clock/maxim,max77686.h>
10 #include <dt-bindings/interrupt-controller/irq.h>
11 #include <dt-bindings/input/input.h>
12 #include <dt-bindings/sound/samsung-i2s.h>
30 stdout-path = "serial3:115200n8";
33 gpio-keys {
34 compatible = "gpio-keys";
35 pinctrl-names = "default";
[all …]
H A Dexynos5420-peach-pit.dts1 // SPDX-License-Identifier: GPL-2.0
8 /dts-v1/;
9 #include <dt-bindings/input/input.h>
10 #include <dt-bindings/gpio/gpio.h>
11 #include <dt-bindings/interrupt-controller/irq.h>
12 #include <dt-bindings/clock/maxim,max77802.h>
13 #include <dt-binding
[all...]
H A Dexynos5800-peach-pi.dts1 // SPDX-License-Identifier: GPL-2.0
8 /dts-v1/;
9 #include <dt-bindings/input/input.h>
10 #include <dt-bindings/gpio/gpio.h>
11 #include <dt-bindings/interrupt-controller/irq.h>
12 #include <dt-bindings/clock/maxim,max77802.h>
13 #include <dt-binding
[all...]
/freebsd-src/sys/contrib/device-tree/src/arm/nvidia/
H A Dtegra124-nyan.dtsi1 // SPDX-License-Identifier: GPL-2.0
2 #include <dt-bindings/input/input.h>
3 #include <dt-bindings/thermal/thermal.h>
8 rtc0 = "/i2c@7000d000/pmic@40";
14 stdout-path = "serial0:115200n8";
20 * missing a unit-address. However, the bootloader on these Chromebook
22 * Adding the unit-address causes the bootloader to create a /memory
34 /delete-nod
[all...]
H A Dtegra20-seaboard.dts1 // SPDX-License-Identifier: GPL-2.0
2 /dts-v1/;
4 #include <dt-bindings/input/input.h>
12 rtc0 = "/i2c@7000d000/tps6586x@34";
18 stdout-path = "serial0:115200n8";
37 vdd-supply = <&hdmi_vdd_reg>;
38 pll-supply = <&hdmi_pll_reg>;
39 hdmi-supply = <&vdd_hdmi>;
41 nvidia,ddc-i2c-bus = <&hdmi_ddc>;
42 nvidia,hpd-gpio = <&gpio TEGRA_GPIO(N, 7)
[all …]
H A Dtegra20-asus-tf101.dts1 // SPDX-License-Identifier: GPL-2.0
2 /dts-v1/;
4 #include <dt-bindings/input/atmel-maxtouch.h>
5 #include <dt-bindings/input/gpio-keys.h>
6 #include <dt-bindings/input/input.h>
7 #include <dt-bindings/thermal/thermal.h>
10 #include "tegra20-cpu-opp.dtsi"
11 #include "tegra20-cpu-opp-microvolt.dtsi"
16 chassis-type = "convertible";
33 * pre-existing /chosen node to be available to insert the
[all …]
H A Dtegra124-venice2.dts1 // SPDX-License-Identifier: GPL-2.0
2 /dts-v1/;
4 #include <dt-bindings/input/input.h>
12 rtc0 = "/i2c@7000d000/pmic@40";
18 stdout-path = "serial0:115200n8";
29 vdd-supply = <&vdd_3v3_hdmi>;
30 pll-supply = <&vdd_hdmi_pll>;
31 hdmi-suppl
[all...]
H A Dtegra114-dalmore.dts1 // SPDX-License-Identifier: GPL-2.0
7 /dts-v1/;
9 #include <dt-bindings/input/input.h>
17 rtc0 = "/i2c@7000d000/tps65913@58";
23 stdout-path = "serial0:115200n8";
34 hdmi-supply = <&vdd_5v0_hdmi>;
35 vdd-supply = <&vdd_hdmi_reg>;
36 pll-supply = <&palmas_smps3_reg>;
38 nvidia,ddc-i2c-bus = <&hdmi_ddc>;
39 nvidia,hpd-gpio =
[all …]
/freebsd-src/sys/dev/e1000/
H A De1000_82575.c2 SPDX-License-Identifier: BSD-3-Clause
4 Copyright (c) 2001-2020, Intel Corporation
121 * e1000_sgmii_uses_mdio_82575 - Determine if I2C pins are for external MDIO
124 * Called to determine if the I2C pins are being used for I2C or as an
134 switch (hw->ma in e1000_sgmii_uses_mdio_82575()
3037 u32 retry = 1; e1000_read_i2c_byte_generic() local
3126 u32 retry = 0; e1000_write_i2c_byte_generic() local
[all...]
/freebsd-src/sys/dev/iicbus/adc/
H A Dad7417.c1 /*-
2 * SPDX-License-Identifier: BSD-2-Clause
121 static MALLOC_DEFINE(M_AD7417, "ad7417", "Supply-Monitor AD7417");
145 return (-1); in ad7417_write()
166 goto retry; in ad7417_read_1()
170 retry: in ad7417_read_1()
173 return (-1); in ad7417_read_1()
194 goto retry; in ad7417_read_2()
198 retry: in ad7417_read_2()
201 return (-1); in ad7417_read_2()
[all …]
/freebsd-src/sys/dev/iicbus/pwm/
H A Dadt746x.c1 /*-
2 * SPDX-License-Identifier: BSD-2-Clause
124 /* i2c read/write functions. */
147 /* i2c read/write functions. */
169 return (-1); in adt746x_write()
191 goto retry; in adt746x_read()
195 retry: in adt746x_read()
198 return (-1); in adt746x_read()
222 sc->sc_dev = dev; in adt746x_probe()
223 sc->sc_addr = iicbus_get_addr(dev); in adt746x_probe()
[all …]
/freebsd-src/sys/contrib/device-tree/src/arm/nxp/imx/
H A Dimx6q-evi.dts4 * This file is dual-licensed: you can use it either under the terms
44 /dts-v1/;
46 #include <dt-bindings/gpio/gpio.h>
47 #include <dt-bindings/interrupt-controller/irq.h>
51 compatible = "uniwest,imx6q-evi", "fsl,imx6q";
58 reg_usbh1_vbus: regulator-usbhubreset {
59 compatible = "regulator-fixed";
60 regulator-name = "usbh1_vbus";
61 regulator-min-microvolt = <5000000>;
62 regulator-max-microvolt = <5000000>;
[all …]
/freebsd-src/sys/dev/ismt/
H A Dismt.c1 /*-
53 /* Hardware Descriptor Constants - Control Field */
58 #define ISMT_DESC_I2C 0x20 /* I2C Enable */
62 /* Hardware Descriptor Constants - Status Field */
87 #define ISMT_MSTR_RPOLICY 0x114 /* Retry Policy */
135 uint8_t retry; /* collision retry and retry count */ member
182 val = bus_read_4(sc->mmio_re in ismt_intr()
473 ismt_bwrite(device_t dev,u_char slave,char cmd,u_char count,char * buf) ismt_bwrite() argument
494 ismt_bread(device_t dev,u_char slave,char cmd,u_char * count,char * buf) ismt_bread() argument
[all...]
/freebsd-src/sys/dev/axgbe/
H A Dxgbe-phy-v2.c116 #include "xgbe-common.h"
130 /* I2C target addresses */
142 /* Rate-change complete wait/retry count */
275 * Optical specification compliance - denotes wavelength
306 ((_x)->extd[XGBE_SFP_EXTD_SFF_8472] && \
307 !((_x)->extd[XGBE_SFP_EXTD_DIAG] & XGBE_SFP_EXTD_DIAG_ADDR_CHANGE))
314 #define XGBE_BEL_FUSE_VENDOR "BEL-FUSE "
315 #define XGBE_BEL_FUSE_PARTNO "1GBT-SFP0
440 unsigned int i, retry; xgbe_phy_redrv_write() local
499 int retry, ret; xgbe_phy_i2c_write() local
520 int retry, ret; xgbe_phy_i2c_read() local
[all...]
H A Dxgbe.h4 * Copyright (c) 2014-2016,2020 Advanced Micro Devices, Inc.
134 #define XGBE_DRV_NAME "amd-xgbe"
151 #define XGBE_TX_MAX_BUF_SIZE (0x3fff & ~(64 - 1))
157 * - Maximum number of SKB frags
158 * - Maximum descriptors for contiguous TSO/GSO packet
159 * - Possible context descriptor
160 * - Possible TSO header descriptor
174 /* DMA cache settings - Outer sharable, write-back, write-allocate */
178 /* DMA cache settings - System, no caches used */
182 /* DMA cache settings - PCI device */
[all …]
/freebsd-src/sys/dev/ichiic/
H A Dig4_iic.c38 * Intel fourth generation mobile cpus integrated I2C device.
75 #define DO_POLL(sc) (cold || kdb_active || SCHEDULER_STOPPED() || sc->poll)
79 * lines are taken from I2C specifications.
147 * 0 - Try read clock registers from ACPI and fallback to p.1.
148 * 1 - Calculate values based on controller type (IC clock rate).
149 * 2 - Use values inherited from DragonflyBSD driver (old behavior).
150 * 3 - Keep clock registers intact.
157 * Low-level inline support functions
162 bus_write_4(sc->regs_res, reg, value); in reg_write()
163 bus_barrier(sc->regs_re in reg_write()
241 int retry; set_controller() local
[all...]
/freebsd-src/sys/contrib/device-tree/src/arm64/mediatek/
H A Dmt8173-elm.dtsi1 // SPDX-License-Identifier: GPL-2.0-only
6 #include <dt-bindings/input/input.h>
7 #include <dt-bindings/input/linux-event-codes.h>
8 #include <dt-bindings/regulator/dlg,da9211-regulato
[all...]
/freebsd-src/sys/contrib/device-tree/src/arm64/nvidia/
H A Dtegra132-norrin.dts1 // SPDX-License-Identifier: GPL-2.0
2 /dts-v1/;
4 #include <dt-bindings/input/input.h>
18 stdout-path = "serial0:115200n8";
30 vdd-supply = <&vdd_3v3_hdmi>;
31 pll-supply = <&vdd_hdmi_pll>;
32 hdmi-supply = <&vdd_5v0_hdmi>;
34 nvidia,ddc-i2
[all...]
/freebsd-src/sys/powerpc/powermac/
H A Dfcu.c1 /*-
2 * SPDX-License-Identifier: BSD-2-Clause
54 * /u3@0,f8000000/i2c@f8001000/fan@15e
56 #define FCU_RPM_FAIL 0x0b /* fans states in bits 0<1-6>7 */
155 return (-1); in fcu_write()
176 goto retry; in fcu_read_1()
180 retry: in fcu_read_1()
183 return (-1); in fcu_read_1()
205 sc->sc_dev = dev; in fcu_probe()
206 sc->sc_addr = iicbus_get_addr(dev); in fcu_probe()
[all …]

12