/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: 24 from <dt-bindings/gpio/gpio.h> since the signal is by definition 28 scl-gpios: [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 14 * SCL low for longer than this, the transfer will time out. 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. [all …]
|
/linux/net/netfilter/ipvs/ |
H A D | ip_vs_proto_tcp.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 44 /* In the event of icmp, we're only guaranteed to have the first 8 in tcp_conn_schedule() 45 * bytes of the transport header, so we only check the rest of the in tcp_conn_schedule() 46 * TCP packet for non-ICMP packets in tcp_conn_schedule() 49 th = skb_header_pointer(skb, iph->len, sizeof(_tcph), &_tcph); in tcp_conn_schedule() 51 if (th->rst || !(sysctl_sloppy_tcp(ipvs) || th->syn)) in tcp_conn_schedule() 53 ports = &th->source; in tcp_conn_schedule() 57 skb, iph->len, sizeof(_ports), &_ports); in tcp_conn_schedule() 65 /* No !th->ack check to allow scheduling on SYN+ACK for Active FTP */ in tcp_conn_schedule() 68 svc = ip_vs_service_find(ipvs, af, skb->mark, iph->protocol, in tcp_conn_schedule() [all …]
|
H A D | ip_vs_proto_sctp.c | 1 // SPDX-License-Identifier: GPL-2.0 27 sh = skb_header_pointer(skb, iph->len, sizeof(_sctph), &_sctph); in sctp_conn_schedule() 29 sch = skb_header_pointer(skb, iph->len + sizeof(_sctph), in sctp_conn_schedule() 32 if (sch->type == SCTP_CID_ABORT || in sctp_conn_schedule() 34 sch->type == SCTP_CID_INIT)) in sctp_conn_schedule() 36 ports = &sh->source; in sctp_conn_schedule() 41 skb, iph->len, sizeof(_ports), &_ports); in sctp_conn_schedule() 50 svc = ip_vs_service_find(ipvs, af, skb->mark, iph->protocol, in sctp_conn_schedule() 51 &iph->daddr, ports[1]); in sctp_conn_schedule() 53 svc = ip_vs_service_find(ipvs, af, skb->mark, iph->protocol, in sctp_conn_schedule() [all …]
|
/linux/drivers/i2c/busses/ |
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> 19 #define SCL 0x02 macro 23 * We must preserve all non-i2c output bits in IOC_CONTROL. 24 * Note also that we need to preserve the value of SCL and 32 u_int ioc_control = ioc_readb(IOC_CONTROL) & ~(SCL | SDA); in ioc_setscl() 36 ones |= SCL; in ioc_setscl() 38 ones &= ~SCL; in ioc_setscl() 47 u_int ioc_control = ioc_readb(IOC_CONTROL) & ~(SCL | 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. 29 #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) */ 139 /* I2C SCL time value when Master */ 149 #define OMAP_I2C_SYSTEST_SCL_I_FUNC (1 << 8) /* SCL line input value */ 150 #define OMAP_I2C_SYSTEST_SCL_O_FUNC (1 << 7) /* SCL line output value */ [all …]
|
/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 * +-------------+-------------+-------------+-------------+ 23 * | SCL set LOW |SCL no change| SCL set HIGH|SCL no change| 26 * SCL == XXXX _____________ ____________ / 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 * ---------------+---+---+---+---+ 39 * SCL | L | | H | | [all …]
|
/linux/arch/arm/boot/dts/st/ |
H A D | stm32mp15xx-dhcom-drc02.dtsi | 1 // SPDX-License-Identifier: GPL-2.0+ OR BSD-3-Clause 6 #include <dt-bindings/input/input.h> 7 #include <dt-bindings/pwm/pwm.h> 17 stdout-path = "serial0:115200n8"; 33 * during TX anyway and that it only controls drive enable DE 36 rs485-rx-en-hog { 37 gpio-hog; 39 output-low; 40 line-name = "rs485-rx-en"; 45 gpio-line-names = "", "", "", "", [all …]
|
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 …]
|
/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 …]
|
H A D | renesas,rzv2m-pinctrl.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/pinctrl/renesas,rzv2m-pinctrl.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Fabrizio Castro <fabrizio.castro.jz@renesas.com> 11 - Geert Uytterhoeven <geert+renesas@glider.be> 15 Pin multiplexing and GPIO configuration is performed on a per-pin basis. 22 const: renesas,r9a09g011-pinctrl # RZ/V2M 27 gpio-controller: true 29 '#gpio-cells': [all …]
|
/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 …]
|
/linux/drivers/gpu/drm/rockchip/ |
H A D | rockchip_drm_vop.c | 1 // SPDX-License-Identifier: GPL-2.0-only 4 * Author:Mark Yao <mark.yao@rock-chips.com> 45 vop_reg_set(vop, &win->phy->name, win->base, ~0, v, #name) 47 vop_reg_set(vop, &win->phy->scl->name, win->base, ~0, v, #name) 49 vop_reg_set(vop, &win->phy->scl->ext->name, \ 50 win->base, ~0, v, #name) 54 if (win_yuv2yuv && win_yuv2yuv->name.mask) \ 55 vop_reg_set(vop, &win_yuv2yuv->name, 0, ~0, v, #name); \ 60 if (win_yuv2yuv && win_yuv2yuv->phy->name.mask) \ 61 vop_reg_set(vop, &win_yuv2yuv->phy->name, win_yuv2yuv->base, ~0, v, #name); \ [all …]
|
H A D | rockchip_vop_reg.c | 1 // SPDX-License-Identifier: GPL-2.0-only 4 * Author:Mark Yao <mark.yao@rock-chips.com> 116 .scl = &rk3036_win0_scl, 136 .scl = &rk3036_win1_scl, 201 .output = &rk3036_output, 245 .output = &rk3126_output, 304 .scl = &px30_win_scl, 373 .output = &px30_output, 390 .output = &px30_output, 404 .scl = &rk3066_win_scl, [all …]
|
/linux/arch/arm/boot/dts/cirrus/ |
H A D | ep7211-edb7211.dts | 1 // SPDX-License-Identifier: GPL-2.0-or-later 4 #include <dt-bindings/gpio/gpio.h> 16 compatible = "pwm-backlight"; 18 brightness-levels = < 22 default-brightness-level = <0x0>; 23 power-supply = <&blen>; 28 bits-per-pixel = <4>; 29 ac-prescale = <17>; 31 display-timings { 32 native-mode = <&timing0>; [all …]
|
/linux/arch/arm64/boot/dts/rockchip/ |
H A D | rk3399-nanopi4.dtsi | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 3 * RK3399-based FriendlyElec boards device tree source 14 /dts-v1/; 15 #include <dt-bindings/input/linux-event-codes.h> 27 stdout-path = "serial2:1500000n8"; 30 clkin_gmac: external-gmac-clock { 31 compatible = "fixed-clock"; 32 clock-frequency = <125000000>; 33 clock-output-names = "clkin_gmac"; 34 #clock-cells = <0>; [all …]
|
H A D | rk3399-gru.dtsi | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 5 * Copyright 2016-2017 Google, Inc 8 #include <dt-bindings/input/input.h> 9 #include "rk3399-op1.dtsi" 18 stdout-path = "serial2:115200n8"; 27 * - Rails that only connect to the EC (or devices that the EC talks to) 29 * - Rails _are_ included if the rails go to the AP even if the AP 38 * - The EC controls the enable and the EC always enables a rail as 40 * - The rails are actually connected to each other by a jumper and 45 ppvar_sys: regulator-ppvar-sys { [all …]
|
/linux/arch/arm64/boot/dts/freescale/ |
H A D | mba8mx.dtsi | 1 // SPDX-License-Identifier: (GPL-2.0-or-later OR MIT) 3 * Copyright 2020-2021 TQ-Systems GmbH 6 #include <dt-bindings/net/ti-dp83867.h> 8 /* TQ-Systems GmbH MBa8Mx baseboard */ 12 compatible = "pwm-backlight"; 14 brightness-levels = <0 4 8 16 32 64 128 255>; 15 default-brightness-level = <7>; 16 power-supply = <®_12v>; 17 enable-gpios = <&expander2 2 GPIO_ACTIVE_HIGH>; 22 compatible = "pwm-beeper"; [all …]
|
/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 …]
|
/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 …]
|
/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 …]
|
H A D | rzg2lc-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"; 16 /* SW8 should be at position 2->1 */ 24 /* SW8 should be at position 2->3 so that GPIO9_CAN1_STB line is activated */ 25 can1-stb-hog { 26 gpio-hog; 28 output-low; [all …]
|
/linux/drivers/auxdisplay/ |
H A D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.0 4 # see Documentation/kbuild/kconfig-language.rst. 25 This is the base system for character-based LCD displays. 58 from Modtronix engineering as a console output device. The display 67 Say Y here if you have an HD44780 or KS-0074 LCD connected to your 68 parallel port. This driver also features 4 and 6-key keypads. The LCD 82 driver instance only supports one parallel port, so if your keypad 88 int "Default panel profile (0-5, 0=custom)" 99 2 = 2x16 serial LCD (KS-0074), new keypad 105 wired to the parallel port, and how it works. This is only intended [all …]
|
/linux/drivers/gpu/drm/gma500/ |
H A D | intel_i2c.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Copyright © 2006-2007 Intel Corporation 11 #include <linux/i2c-algo-bit.h> 26 struct drm_device *dev = chan->drm_dev; in get_clock() 29 val = REG_READ(chan->reg); in get_clock() 36 struct drm_device *dev = chan->drm_dev; in get_data() 39 val = REG_READ(chan->reg); in get_data() 46 struct drm_device *dev = chan->drm_dev; in set_clock() 51 REG_READ(chan->reg) & (GPIO_DATA_PULLUP_DISABLE | in set_clock() 59 REG_WRITE(chan->reg, reserved | clock_bits); in set_clock() [all …]
|