/linux/Documentation/devicetree/bindings/i2c/ |
H A D | i2c-gpio.yaml | 1 # SPDX-License-Identifier: GPL-2.0 3 --- 4 $id: http://devicetree.org/schemas/i2c/i2c-gpio.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: GPIO bitbanged I2C 10 - Wolfram Sang <wsa@kernel.org> 13 - $ref: /schemas/i2c/i2c-controller.yaml# 18 - const: i2c-gpio 20 sda-gpios: 22 gpio used for the sda signal, this should be flagged as [all …]
|
H A D | samsung,s3c2410-i2c.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/i2c/samsung,s3c2410-i2c.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: Samsung S3C/S5P/Exynos SoC I2C Controller 10 - Krzysztof Kozlowski <krzk@kernel.org> 15 - enum: 16 - samsung,s3c2410-i2c 17 - samsung,s3c2440-i2c 18 # For s3c2440-like I2C used inside HDMIPHY block found on several SoCs: [all …]
|
/linux/arch/arm/boot/dts/samsung/ |
H A D | exynos5250-spring.dts | 1 // SPDX-License-Identifier: GPL-2.0 9 /dts-v1/; 10 #include <dt-bindings/clock/samsung,s2mps11.h> 11 #include <dt-bindings/gpio/gpio.h> 12 #include <dt-bindings/interrupt-controller/irq.h> 13 #include <dt-bindings/input/input.h> 19 chassis-type = "laptop"; 33 stdout-path = "serial3:115200n8"; 36 gpio-keys { 37 compatible = "gpio-keys"; [all …]
|
H A D | exynos5250-snow-common.dtsi | 1 // 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 D | s5pv210-aries.dtsi | 1 // SPDX-License-Identifier: GPL-2.0 6 /dts-v1/; 7 #include <dt-bindings/gpio/gpio.h> 8 #include <dt-bindings/interrupt-controller/irq.h> 32 reserved-memory { 33 #address-cells = <1>; 34 #size-cells = <1>; 38 compatible = "shared-dma-pool"; 39 no-map; 44 compatible = "shared-dma-pool"; [all …]
|
H A D | exynos5250-smdk5250.dts | 1 // SPDX-License-Identifier: GPL-2.0 9 /dts-v1/; 10 #include <dt-bindings/clock/maxim,max77686.h> 11 #include <dt-bindings/gpio/gpio.h> 12 #include <dt-bindings/interrupt-controller/irq.h> 31 stdout-path = "serial2:115200n8"; 34 vdd: fixed-regulator-vdd { 35 compatible = "regulator-fixed"; 36 regulator-name = "vdd-supply"; 37 regulator-min-microvolt = <1800000>; [all …]
|
H A D | exynos4210-i9100.dts | 1 // SPDX-License-Identifier: GPL-2.0 3 * Samsung's Exynos4210 based Galaxy S2 (GT-I9100 version) device tree 11 /dts-v1/; 13 #include "exynos4412-ppmu-common.dtsi" 15 #include <dt-bindings/gpio/gpio.h> 16 #include <dt-bindings/input/linux-event-codes.h> 19 model = "Samsung Galaxy S2 (GT-I9100)"; 21 chassis-type = "handset"; 35 stdout-path = "serial2:115200n8"; 38 vemmc_reg: regulator-0 { [all …]
|
H A D | exynos4412-galaxy-s3.dtsi | 1 // SPDX-License-Identifier: GPL-2.0 9 /dts-v1/; 10 #include <dt-bindings/leds/common.h> 11 #include "exynos4412-midas.dtsi" 19 led-controller { 21 flen-gpios = <&gpj1 1 GPIO_ACTIVE_HIGH>; 22 enset-gpios = <&gpj1 2 GPIO_ACTIVE_HIGH>; 24 pinctrl-names = "default", "host", "isp"; 25 pinctrl-0 = <&camera_flash_host>; 26 pinctrl-1 = <&camera_flash_host>; [all …]
|
H A D | exynos5250-arndale.dts | 1 // SPDX-License-Identifier: GPL-2.0 9 /dts-v1/; 10 #include <dt-bindings/gpio/gpio.h> 11 #include <dt-bindings/interrupt-controller/irq.h> 12 #include <dt-bindings/input/input.h> 13 #include <dt-bindings/clock/samsung,s2mps11.h> 14 #include <dt-bindings/sound/samsung-i2s.h> 32 stdout-path = "serial2:115200n8"; 35 gpio-keys { 36 compatible = "gpio-keys"; [all …]
|
H A D | s5pv210-goni.dts | 1 // SPDX-License-Identifier: GPL-2.0 5 * Copyright (c) 2013-2014 Samsung Electronics, Co. Ltd. 13 /dts-v1/; 14 #include <dt-bindings/gpio/gpio.h> 15 #include <dt-bindings/interrupt-controller/irq.h> 16 #include <dt-bindings/input/input.h> 38 pmic_ap_clk: clock-0 { 40 compatible = "fixed-clock"; 41 #clock-cells = <0>; 42 clock-frequency = <32768>; [all …]
|
H A D | exynos4412-midas.dtsi | 1 // SPDX-License-Identifier: GPL-2.0 12 /dts-v1/; 14 #include "exynos4412-ppmu-common.dtsi" 16 #include <dt-bindings/gpio/gpio.h> 17 #include <dt-bindings/input/input.h> 18 #include <dt-bindings/interrupt-controller/irq.h> 19 #include <dt-bindings/clock/maxim,max77686.h> 20 #include "exynos-pinctrl.h" 34 stdout-path = &serial_2; 38 compatible = "samsung,secure-firmware"; [all …]
|
H A D | exynos4412-p4note.dtsi | 1 // SPDX-License-Identifier: GPL-2.0 4 * Based on exynos4412-midas.dtsi. 10 /dts-v1/; 12 #include "exynos4412-ppmu-common.dtsi" 14 #include <dt-bindings/clock/maxim,max77686.h> 15 #include <dt-bindings/gpio/gpio.h> 16 #include <dt-bindings/input/linux-event-codes.h> 17 #include <dt-bindings/interrupt-controller/irq.h> 18 #include <dt-bindings/power/summit,smb347-charger.h> 19 #include "exynos-pinctrl.h" [all …]
|
/linux/Documentation/i2c/ |
H A D | gpio-fault-injection.rst | 2 Linux I2C fault injection 5 The GPIO based I2C bus master driver can be configured to provide fault 6 injection capabilities. It is then meant to be connected to another I2C bus 7 which is driven by the I2C bus master driver under test. The GPIO fault 8 injection driver can create special states on the bus which the other I2C bus 12 'i2c-fault-injector' subdirectory in the Kernel debugfs filesystem, usually 14 driven I2C bus. Each subdirectory will contain files to trigger the fault 15 injection. They will be described now along with their intended use-cases. 21 ----- 30 "sda" [all …]
|
/linux/arch/arm/boot/dts/marvell/ |
H A D | kirkwood-km_common.dtsi | 1 // SPDX-License-Identifier: GPL-2.0 5 stdout-path = &uart0; 9 pinctrl: pin-controller@10000 { 10 pinctrl-0 = < &pmx_i2c_gpio_sda &pmx_i2c_gpio_scl >; 11 pinctrl-names = "default"; 13 pmx_i2c_gpio_sda: pmx-gpio-sda { 17 pmx_i2c_gpio_scl: pmx-gpio-scl { 28 i2c { 29 compatible = "i2c-gpio"; 30 gpios = < &gpio0 8 GPIO_ACTIVE_HIGH /* sda */ [all …]
|
/linux/arch/riscv/boot/dts/starfive/ |
H A D | jh7110-common.dtsi | 1 // SPDX-License-Identifier: GPL-2.0 OR MIT 7 /dts-v1/; 9 #include "jh7110-pinfunc.h" 10 #include <dt-bindings/gpio/gpio.h> 25 stdout-path = "serial0:115200n8"; 33 gpio-restart { 34 compatible = "gpio-restart"; 39 pwmdac_codec: audio-codec { 40 compatible = "linux,spdif-dit"; 41 #sound-dai-cells = <0>; [all …]
|
/linux/drivers/staging/sm750fb/ |
H A D | ddk750_swi2c.c | 1 // SPDX-License-Identifier: GPL-2.0 5 * swi2c.c --- SM750/SM718 DDK 6 * This file contains the source code for I2C using software 16 * I2C Software Master Driver: 18 * Each i2c cycle is split into 4 sections. Each of these section marks 19 * a point in time where the SCL or SDA may be changed. 22 * +-------------+-------------+-------------+-------------+ 29 * the SDA may only be changed in section 2. and section 4. The table 37 * ---------------+---+---+---+---+ 38 * Tx Start SDA | | H | | L | [all …]
|
/linux/include/linux/platform_data/ |
H A D | i2c-gpio.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 3 * i2c-gpio interface to platform code 11 * struct i2c_gpio_platform_data - Platform-dependent data for i2c-gpio 12 * @udelay: signal toggle delay. SCL frequency is (500 / udelay) kHz 15 * @sda_is_open_drain: SDA is configured as open drain, i.e. the pin 19 * @sda_is_output_only: SDA output drivers can't be turned off. 20 * This is for clients that can only read SDA/SCL. 21 * @sda_has_no_pullup: SDA is used in a non-compliant way and has no pull-up. 22 * Therefore disable open-drain. 26 * @scl_has_no_pullup: SCL is used in a non-compliant way and has no pull-up. [all …]
|
/linux/drivers/infiniband/hw/qib/ |
H A D | qib_twsi.c | 3 * Copyright (c) 2006 - 2012 QLogic Corporation. All rights reserved. 16 * - Redistributions of source code must retain the above 20 * - Redistributions in binary form must reproduce the above 35 #include <linux/delay.h> 43 * Originally written for a not-quite-i2c serial eeprom, which is 45 * variety of other uses, most board-specific, so the bit-boffing 47 * have been moved to chip-specific files. 51 * the restrictions of the generic i2c interface (e.g. no access from 59 * i2c_wait_for_writes - wait for a write 74 dd->f_gpio_mod(dd, 0, 0, 0); in i2c_wait_for_writes() [all …]
|
/linux/arch/arm/boot/dts/nxp/mxs/ |
H A D | imx23-sansa.dts | 2 * Copyright (C) 2013-2016 Marek Vasut <marek.vasut@gmail.com> 4 * This file is dual-licensed: you can use it either under the terms 44 /dts-v1/; 45 #include <dt-bindings/gpio/gpio.h> 58 apbh-bus@80000000 { 60 compatible = "fsl,imx23-mmc"; 61 pinctrl-names = "default"; 62 pinctrl-0 = <&mmc0_4bit_pins_a &mmc0_pins_fixup>; 63 bus-width = <4>; 64 vmmc-supply = <®_vddio_sd0>; [all …]
|
/linux/drivers/i2c/algos/ |
H A D | i2c-algo-bit.c | 1 // SPDX-License-Identifier: GPL-2.0+ 3 * i2c-algo-bit.c: i2c driver algorithms for bit-shift adapters 5 * Copyright (C) 1995-2000 Simon G. Vogl 13 #include <linux/delay.h> 16 #include <linux/i2c.h> 17 #include <linux/i2c-algo-bit.h> 20 /* ----- global defines ----------------------------------------------- */ 33 /* ----- global variables --------------------------------------------- */ 35 static int bit_test; /* see if the line-setting functions work */ 37 MODULE_PARM_DESC(bit_test, "lines testing - 0 off; 1 report; 2 fail if stuck"); [all …]
|
/linux/drivers/i2c/busses/ |
H A D | i2c-omap.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * TI OMAP I2C master mode driver 7 * Copyright (C) 2004 - 2007 Texas Instruments. 19 #include <linux/delay.h> 20 #include <linux/i2c.h> 29 #include <linux/platform_data/i2c-omap.h> 34 /* I2C controller revisions */ 37 /* I2C controller revisions present on specific hardware */ 80 /* I2C Interrupt Enable Register (OMAP_I2C_IE): */ 89 /* I2C Status Register (OMAP_I2C_STAT): */ [all …]
|
H A D | i2c-designware-pcidrv.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * Synopsys DesignWare I2C adapter driver (master only). 5 * Based on the TI DAVINCI I2C adapter driver. 12 #include <linux/delay.h> 15 #include <linux/i2c.h> 27 #include "i2c-designware-core.h" 28 #include "i2c-ccgx-ucsi.h" 30 #define DRIVER_NAME "i2c-designware-pci" 65 /* Merrifield HCNT/LCNT/SDA hold time */ 73 /* BayTrail HCNT/LCNT/SDA hold time */ [all …]
|
/linux/drivers/media/usb/gspca/ |
H A D | w996Xcf.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 9 * Copyright (C) 2002-2004 by Luca Risolia <luca.risolia@studio.unibo.it> 21 #define W9968CF_I2C_BUS_DELAY 4 /* delay in us for I2C bit r/w operations */ 23 #define Y_QUANTABLE (&sd->jpeg_hdr[JPEG_QT0_OFFSET]) 24 #define UV_QUANTABLE (&sd->jpeg_hdr[JPEG_QT1_OFFSET]) 51 /*-------------------------------------------------------------------------- 52 Write 64-bit data to the fast serial bus registers. 53 Return 0 on success, -1 otherwise. 54 --------------------------------------------------------------------------*/ 57 struct usb_device *udev = sd->gspca_dev.dev; in w9968cf_write_fsb() [all …]
|
/linux/arch/arm/boot/dts/st/ |
H A D | ste-ux500-samsung-janice.dts | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Devicetree for the Samsung Galaxy S Advance GT-I9070 also known as Janice. 6 /dts-v1/; 7 #include "ste-db8500.dtsi" 8 #include "ste-ab8500.dtsi" 9 #include "ste-dbx5x0-pinctrl.dtsi" 10 #include <dt-bindings/gpio/gpio.h> 11 #include <dt-bindings/leds/common.h> 12 #include <dt-bindings/input/input.h> 13 #include <dt-bindings/interrupt-controller/irq.h> [all …]
|
/linux/drivers/media/pci/ivtv/ |
H A D | ivtv-i2c.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 I2C functions 4 Copyright (C) 2003-2004 Kevin Thayer <nufan_wfk at yahoo.com> 5 Copyright (C) 2005-2007 Hans Verkuil <hverkuil@xs4all.nl> 10 This file includes an i2c implementation that was reverse engineered 11 from the Hauppauge windows driver. Older ivtv versions used i2c-algo-bit, 13 CPU on the PVR-150 which handles IR functions (occasional inability to 14 communicate with the chip until it was reset) and also with the i2c 17 The implementation is very similar to i2c-algo-bit, but there are enough 19 employed by i2c-algo-bit is to use udelay() to implement the timing [all …]
|