/openbmc/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# 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 24 from <dt-bindings/gpio/gpio.h> since the signal is by definition [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# 10 - Krzysztof Kozlowski <krzk@kernel.org> 15 - samsung,s3c2410-i2c 16 - samsung,s3c2440-i2c 17 # For s3c2440-like I2C used inside HDMIPHY block found on several SoCs: 18 - samsung,s3c2440-hdmiphy-i2c 19 # For s3c2440-like I2C used as a host to SATA PHY controller on an [all …]
|
/openbmc/linux/drivers/i2c/busses/ |
H A D | i2c-gpio.c | 1 // SPDX-License-Identifier: GPL-2.0-only 11 #include <linux/i2c-algo-bit.h> 16 #include <linux/platform_data/i2c-gpio.h> 22 struct gpio_desc *sda; member 36 * Toggle SDA by changing the output value of the pin. This is only 38 * high effectively turns off the output driver.) 44 gpiod_set_value_cansleep(priv->sda, state); in i2c_gpio_setsda_val() 48 * Toggle SCL by changing the output value of the pin. This is used 49 * for pins that are configured as open drain and for output-only 57 gpiod_set_value_cansleep(priv->scl, state); in i2c_gpio_setscl_val() [all …]
|
H A D | i2c-acorn.c | 1 // SPDX-License-Identifier: GPL-2.0-only 8 * - PCF8583 real time clock & static RAM 12 #include <linux/i2c-algo-bit.h> 20 #define SDA 0x01 macro 23 * We must preserve all non-i2c output bits in IOC_CONTROL. 25 * SDA outputs as well (which may be different from the 32 u_int ioc_control = ioc_readb(IOC_CONTROL) & ~(SCL | SDA); in ioc_setscl() 47 u_int ioc_control = ioc_readb(IOC_CONTROL) & ~(SCL | SDA); in ioc_setsda() 51 ones |= SDA; in ioc_setsda() 53 ones &= ~SDA; in ioc_setsda() [all …]
|
H A D | i2c-omap.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 7 * Copyright (C) 2004 - 2007 Texas Instruments. 30 #include <linux/platform_data/i2c-omap.h> 72 /* only on OMAP4430 */ 133 #define OMAP_I2C_CON_TRX (1 << 9) /* TX/RX mode (master only) */ 135 #define OMAP_I2C_CON_RM (1 << 2) /* Repeat mode (master only) */ 136 #define OMAP_I2C_CON_STP (1 << 1) /* Stop cond (master only) */ 150 #define OMAP_I2C_SYSTEST_SCL_O_FUNC (1 << 7) /* SCL line output value */ 151 #define OMAP_I2C_SYSTEST_SDA_I_FUNC (1 << 6) /* SDA line input value */ 152 #define OMAP_I2C_SYSTEST_SDA_O_FUNC (1 << 5) /* SDA line output value */ [all …]
|
/openbmc/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 15 * @sda_is_open_drain: SDA is configured as open drain, i.e. the pin 16 * isn't actively driven high when setting the output value high. 18 * pin is configured as an output. 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. [all …]
|
/openbmc/linux/drivers/staging/sm750fb/ |
H A D | ddk750_swi2c.c | 1 // SPDX-License-Identifier: GPL-2.0 5 * swi2c.c --- SM750/SM718 DDK 19 * a point in time where the SCL or SDA may be changed. 22 * +-------------+-------------+-------------+-------------+ 28 * I.e. the SCL may only be changed in section 1. and section 3. while 29 * the SDA may only be changed in section 2. and section 4. The table 37 * ---------------+---+---+---+---+ 38 * Tx Start SDA | | H | | L | 40 * ---------------+---+---+---+---+ 41 * Tx Stop SDA | | L | | H | [all …]
|
/openbmc/linux/Documentation/devicetree/bindings/pinctrl/ |
H A D | cirrus,lochnagar.yaml | 1 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - patches@opensource.cirrus.com 15 Logic devices on mini-cards, as well as allowing connection of various 26 [2] Pinctrl: ../pinctrl/pinctrl-bindings.txt 29 [3] include/dt-bindings/pinctrl/lochnagar.h 37 - cirrus,lochnagar-pinctrl 39 gpio-controller: true 41 '#gpio-cells': [all …]
|
H A D | renesas,rza1-ports.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/pinctrl/renesas,rza1-ports.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Jacopo Mondi <jacopo+renesas@jmondi.org> 11 - Geert Uytterhoeven <geert+renesas@glider.be> 16 Pin multiplexing and GPIO configuration is performed on a per-pin basis 17 writing configuration values to per-port register sets. 25 - const: renesas,r7s72100-ports # RZ/A1H 26 - items: [all …]
|
/openbmc/linux/drivers/media/usb/cx231xx/ |
H A D | cx231xx-avcore.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 cx231xx_avcore.c - driver for Conexant Cx23100/101/102 24 #include <media/v4l2-common.h> 25 #include <media/v4l2-ioctl.h> 27 #include "cx231xx-dif.h" 31 -: BLOCK ARRANGEMENT :- 32 I2S block ----------------------| 35 Analog Front End --> Direct IF -|-> Cx25840 --> Audio 38 |-> Cx25840 --> Video 73 dev_dbg(dev->dev, "verve_read_byte address0x07=0x%x\n", val); in initGPIO() [all …]
|
/openbmc/qemu/tests/qemu-iotests/ |
H A D | 307.out | 5 {"execute": "nbd-server-start", "arguments": {"addr": {"data": {"path": "SOCK_DIR/PID-socket"}, "ty… 7 {"execute": "query-block-exports", "arguments": {}} 10 === Create a read-only NBD export === 11 {"execute": "block-export-add", "arguments": {"id": "export0", "node-name": "fmt", "type": "nbd"}} 13 {"execute": "query-block-exports", "arguments": {}} 14 {"return": [{"id": "export0", "node-name": "fmt", "shutting-down": false, "type": "nbd"}]} 18 flags: 0x158f ( readonly flush fua df multi cache block-status-payload ) 22 transaction size: 64-bit 28 {"execute": "block-export-add", "arguments": {"id": "#invalid", "node-name": "fmt", "type": "nbd"}} 30 {"execute": "block-export-add", "arguments": {"id": "export0", "node-name": "fmt", "type": "nbd"}} [all …]
|
/openbmc/u-boot/drivers/i2c/ |
H A D | omap24xx_i2c.h | 1 /* SPDX-License-Identifier: GPL-2.0+ */ 3 * (C) Copyright 2004-2010 52 #define I2C_CON_STB (1 << 11) /* Start byte mode (master mode only) */ 55 /* (master mode only) */ 57 #define I2C_CON_STP (1 << 1) /* Stop condition (master mode only) */ 58 #define I2C_CON_STT (1 << 0) /* Start condition (master mode only) */ 67 #define I2C_SYSTEST_SCL_O (1 << 2) /* SCL line drive output value */ 68 #define I2C_SYSTEST_SDA_I (1 << 1) /* SDA line sense input value */ 69 #define I2C_SYSTEST_SDA_O (1 << 0) /* SDA line drive output value */ 112 * thigh = sclh + sclh_trim = (sampling clock * (1 - tlow_duty)) / speed
|
/openbmc/u-boot/arch/arm/dts/ |
H A D | exynos5250-spring.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> 48 samsung,bl1-offset = <0x1400>; 49 samsung,bl2-offset = <0x3400>; 50 u-boot-memory = "/memory"; 51 u-boot-offset = <0x3e00000 0x100000>; 56 #address-cells = <1>; [all …]
|
H A D | armada-388-clearfog.dts | 11 * This file is dual-licensed: you can use it either under the terms 13 * licensing only applies to this file, and not this project as a 49 /dts-v1/; 50 #include <dt-bindings/input/input.h> 51 #include <dt-bindings/gpio/gpio.h> 52 #include "armada-388.dtsi" 53 #include "armada-38x-solidrun-microsom.dtsi" 57 compatible = "solidrun,clearfog-a1", "marvell,armada388", 61 /* So that mvebu u-boot can update the MAC addresses */ 71 stdout-path = "serial0:115200n8"; [all …]
|
/openbmc/linux/arch/arm/boot/dts/nxp/imx/ |
H A D | imx6q-bx50v3.dtsi | 5 * This file is dual-licensed: you can use it either under the terms 7 * licensing only applies to this file, and not this project as a 43 #include "imx6q-ba16.dtsi" 46 mclk: clock-mclk { 47 compatible = "fixed-clock"; 48 #clock-cells = <0>; 49 clock-frequency = <22000000>; 52 gpio-poweroff { 53 compatible = "gpio-poweroff"; 58 reg_wl18xx_vmmc: regulator-wl18xx { [all …]
|
H A D | imx6q-prtwd2.dts | 1 // SPDX-License-Identifier: GPL-2.0-or-later 6 /dts-v1/; 8 #include "imx6qdl-prti6q.dtsi" 9 #include <dt-bindings/leds/common.h> 25 clk50m_phy: phy-clock { 26 compatible = "fixed-clock"; 27 #clock-cells = <0>; 28 clock-frequency = <50000000>; 29 clock-output-names = "enet_ref_pad"; 33 compatible = "mmc-pwrseq-simple"; [all …]
|
/openbmc/linux/drivers/hwmon/ |
H A D | max31760.c | 1 // SPDX-License-Identifier: GPL-2.0-only 7 #include <linux/hwmon-sysfs.h> 34 #define TEMP11_TO_REG(val) (DIV_ROUND_CLOSEST(clamp_val((val), -128000, \ 46 struct sensor_device_attribute sda; member 91 ret = regmap_read(state->regmap, REG_STATUS, ®val); in max31760_read() 99 ret = regmap_read(state->regmap, REG_STATUS, ®val); in max31760_read() 110 ret = regmap_read(state->regmap, REG_STATUS, ®val); in max31760_read() 130 return -EOPNOTSUPP; in max31760_read() 133 ret = regmap_bulk_read(state->regmap, reg_temp, reg, 2); in max31760_read() 145 ret = regmap_bulk_read(state->regmap, REG_TACH(channel), reg, 2); in max31760_read() [all …]
|
/openbmc/linux/arch/arm/mach-sa1100/ |
H A D | assabet.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * linux/arch/arm/mach-sa1100/assabet.c 7 * This file contains all Assabet-specific tweaks. 14 #include <linux/gpio/gpio-reg.h> 18 #include <linux/platform_data/sa11x0-serial.h> 34 #include <asm/mach-types.h> 37 #include <asm/pgtable-hwdef.h> 44 #include <linux/platform_data/mfd-mcp-sa11x0.h> 83 assabet_bcr_gc->set_multiple(assabet_bcr_gc, &m, &v); in ASSABET_BCR_frob() 93 gc = gpio_reg_init(NULL, reg, -1, 32, "assabet", 0xff000000, def_val, in assabet_init_gpio() [all …]
|
/openbmc/linux/arch/arm/boot/dts/st/ |
H A D | ste-nomadik-s8815.dts | 1 // SPDX-License-Identifier: GPL-2.0 3 * Device Tree for the ST-Ericsson Nomadik S8815 board 7 /dts-v1/; 8 #include <dt-bindings/interrupt-controller/irq.h> 9 #include "ste-nomadik-stn8815.dtsi" 12 model = "Calao Systems USB-S8815"; 13 compatible = "calaosystems,usb-s8815"; 26 mmcsd-gpio { 27 gpio-hog; 29 output-low; [all …]
|
/openbmc/linux/arch/arm/include/asm/hardware/ |
H A D | locomo.h | 51 #define LOCOMO_DAC_SCLOEB 0x08 /* SCL pin output data */ 53 #define LOCOMO_DAC_SDA 0x02 /* SDA pin level (read-only) */ 54 #define LOCOMO_DAC_SDAOEB 0x01 /* SDA pin output data */ 184 #define locomo_get_drvdata(d) dev_get_drvdata(&(d)->dev) 185 #define locomo_set_drvdata(d,p) dev_set_drvdata(&(d)->dev, p) 196 #define LOCOMO_DRIVER_NAME(_ldev) ((_ldev)->dev.driver->name) 216 int irq_base; /* IRQ base for cascaded on-chip IRQs */
|
/openbmc/linux/sound/pci/ice1712/ |
H A D | ews.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 38 #define ICE1712_EWX2496_AOUT_SEL 0x04 /* output sensitivity switch; high = louder */ 46 /* RW, SDA snd SCLK are identical with EWX24/96 */ 47 #define ICE1712_EWS88_CS8414_RATE 0x07 /* CS8414 sample rate: gpio 0-2 */ 51 #define ICE1712_EWS88_TX2 0x40 /* MIDI2 (only on 88D) */ 52 #define ICE1712_EWS88_RX2 0x80 /* MIDI2 (only on 88D) */ 62 #define ICE1712_6FIRE_AK4524_CS_MASK 0x07 /* AK4524 chip select #1-#3 */
|
/openbmc/openbmc/poky/meta/lib/oeqa/selftest/cases/ |
H A D | wic.py | 4 # SPDX-License-Identifier: GPL-2.0-only 30 extract file names from the output of debugfs -R 'ls -p', 61 self.resultdir = os.path.join(self.builddir, "wic-tmp") 69 self.skipTest('wic-tools needs USE_NLS=yes') 71 bitbake('wic-tools core-image-minimal core-image-minimal-mtdutils') 83 bitbake('%s -c do_rootfs_wicenv' % image) 91 """Test wic --version""" 92 runCmd('wic --version') 95 """Test wic --help and wic -h""" 96 runCmd('wic --help') [all …]
|
/openbmc/linux/arch/arm/boot/dts/broadcom/ |
H A D | bcm2711.dtsi | 1 // SPDX-License-Identifier: GPL-2.0 4 #include <dt-bindings/interrupt-controller/arm-gic.h> 5 #include <dt-bindings/soc/bcm2835-pm.h> 10 #address-cells = <2>; 11 #size-cells = <1>; 13 interrupt-parent = <&gicv2>; 16 compatible = "brcm,bcm2711-vc5"; 20 clk_27MHz: clk-27M { 21 #clock-cells = <0>; 22 compatible = "fixed-clock"; [all …]
|
/openbmc/linux/drivers/net/can/sja1000/ |
H A D | peak_pci.c | 1 // SPDX-License-Identifier: GPL-2.0-only 4 * Copyright (C) 2012 Stephane Grosjean <s.grosjean@peak-system.com> 8 * Copyright (C) 2001-2006 PEAK System-Technik GmbH 19 #include <linux/i2c-algo-bit.h> 25 MODULE_AUTHOR("Stephane Grosjean <s.grosjean@peak-system.com>"); 26 MODULE_DESCRIPTION("Socket-CAN driver for PEAK PCAN PCI family cards"); 40 struct peak_pciec_card *pciec_card; /* only for PCIeC LEDs */ 62 #define PEAK_PC_104P_DEVICE_ID 0x0006 /* PCAN-PC/104+ cards */ 63 #define PEAK_PCI_104E_DEVICE_ID 0x0007 /* PCAN-PCI/104 Express cards */ 65 #define PEAK_PCIE_OEM_ID 0x0009 /* PCAN-PCI Express OEM */ [all …]
|
/openbmc/linux/arch/arm64/boot/dts/renesas/ |
H A D | rzg2l-smarc-pinfunction.dtsi | 1 // SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 8 #include <dt-bindings/gpio/gpio.h> 9 #include <dt-bindings/pinctrl/rzg2l-pinctrl.h> 12 pinctrl-0 = <&sound_clk_pins>; 13 pinctrl-names = "default"; 20 /* SW7 should be at position 2->3 so that GPIO8_CAN0_STB line is activated */ 21 can0-stb-hog { 22 gpio-hog; 24 output-low; 25 line-name = "can0_stb"; [all …]
|