| /linux/arch/arm64/boot/dts/hisilicon/ |
| H A D | hi3798cv200-poplar.dts | 1 // SPDX-License-Identifier: GPL-2.0 5 * Copyright (c) 2016-2017 HiSilicon Technologies Co., Ltd. 8 /dts-v1/; 10 #include <dt-bindings/gpio/gpio.h> 12 #include "poplar-pinctrl.dtsi" 16 compatible = "hisilicon,hi3798cv200-poplar", "hisilicon,hi3798cv200"; 24 stdout-path = "serial0:115200n8"; 33 compatible = "gpio-leds"; 35 user-led0 { 38 linux,default-trigger = "heartbeat"; [all …]
|
| /linux/include/linux/ |
| H A D | wm97xx.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 62 #define WM97XX_SLT(i) ((i - 5) & 0x7) /* panel slot (5-11) */ 65 #define WM97XX_PRP_DET 0x8000 /* detect on, digitise off, no wake */ 71 #define WM9712_45W 0x1000 /* set for 5-wire touchscreen */ 76 #define WM9712_MASK_EDGE 0x0080 /* rising/falling edge on pin delays sample */ 94 #define WM9705_MASK_EDGE 0x0020 /* rising/falling edge on pin delays sample */ 124 /* Codec GPIO's */ 146 /*---------------- Return codes from sample reading functions ---------------*/ 160 * The wm97xx driver provides a private API for writing platform-specific 172 * Codec GPIO status [all …]
|
| H A D | rmi.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 3 * Copyright (c) 2011-2016 Synaptics Incorporated 21 * struct rmi_2d_axis_alignment - target axis alignment 22 * @swap_axes: set to TRUE if desired to swap x- and y-axis 23 * @flip_x: set to TRUE if desired to flip direction on x-axis 24 * @flip_y: set to TRUE if desired to flip direction on y-axis 25 * @clip_x_low - reported X coordinates below this setting will be clipped to 27 * @clip_x_high - reported X coordinates above this setting will be clipped to 29 * @clip_y_low - reported Y coordinates below this setting will be clipped to 31 * @clip_y_high - reported Y coordinates above this setting will be clipped to [all …]
|
| H A D | leds.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 11 #include <dt-bindings/leds/common.h> 47 * struct led_lookup_data - represents a single LED lookup entry 66 * with in-driver hard-coded LED names used as a fallback when 79 * only LEDs exposed by drivers of hot-pluggable devices should 122 /* Brightness off also disables hw-blinking so it is a separate action */ 134 * Set LED brightness level immediately - it can block the caller for 143 * Activate hardware accelerated blink, delays are in milliseconds 187 /* true if activated - deactivate routine uses it to do cleanup */ 199 * Return 0 on success. Return -EOPNOTSUPP when the passed flags are not [all …]
|
| /linux/drivers/fsi/ |
| H A D | fsi-master-gpio.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * A FSI master controller, using a simple GPIO bit-banging interface 10 #include <linux/gpio/consumer.h> 18 #include "fsi-master.h" 54 if (!master->no_delays) in clock_toggle() 56 gpiod_set_value(master->gpio_clk, 0); in clock_toggle() 57 if (!master->no_delays) in clock_toggle() 59 gpiod_set_value(master->gpio_clk, 1); in clock_toggle() 67 if (!master->no_delays) in sda_clock_in() 69 gpiod_set_value(master->gpio_clk, 0); in sda_clock_in() [all …]
|
| H A D | fsi-master-ast-cf.c | 1 // SPDX-License-Identifier: GPL-2.0+ 11 #include <linux/gpio/consumer.h> 21 #include <linux/gpio/aspeed.h> 25 #include "fsi-master.h" 26 #include "cf-fsi-fw.h" 28 #define FW_FILE_NAME "cf-fsi-fw.bin" 132 msg->msg <<= bits; in msg_push_bits() 133 msg->msg |= data & ((1ull << bits) - 1); in msg_push_bits() 134 msg->bits += bits; in msg_push_bits() 142 top = msg->bits & 0x3; in msg_push_crc() [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 …]
|
| H A D | imx8mp-var-som.dtsi | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 8 /dts-v1/; 10 #include <dt-bindings/phy/phy-imx8-pcie.h> 11 #include <dt-bindings/leds/common.h> 12 #include <dt-bindings/usb/pd.h> 16 model = "Variscite VAR-SOM-MX8M Plus module"; 19 stdout-path = &uart2; 22 gpio-leds { 23 compatible = "gpio-leds"; 25 led-0 { [all …]
|
| /linux/Documentation/devicetree/bindings/mmc/ |
| H A D | mmc-controller-common.yaml | 1 # SPDX-License-Identifier: GPL-2.0 3 --- 4 $id: http://devicetree.org/schemas/mmc/mmc-controller-common.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Ulf Hansson <ulf.hansson@linaro.org> 14 possible slots or ports for multi-slot controllers. 17 "#address-cells": 22 "#size-cells": 29 broken-cd: 32 There is no card detection available; polling must be used. [all …]
|
| /linux/include/linux/mfd/wm8994/ |
| H A D | pdata.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 3 * include/linux/mfd/wm8994/pdata.h -- Platform data for WM8994 39 * panel provided by the WISCE - see http://www.wolfsonmicro.com/wisce/ 52 * control panel in WISCE - see http://www.wolfsonmicro.com/wisce/ 64 * WISCE - see http://www.wolfsonmicro.com/wisce/ 78 * multiband compressor configuration panel in WISCE - see 89 * multiband compressor configuration panel in WISCE - see 100 * the multiband compressor configuration panel in WISCE - see 113 * @idle: True if this configuration should use when no accessory is detected, 129 * Default values for GPIOs if non-zero, WM8994_CONFIGURE_GPIO [all …]
|
| /linux/arch/arm/boot/dts/st/ |
| H A D | stm32mp157c-emstamp-argon.dtsi | 1 // SPDX-License-Identifier: (GPL-2.0 OR MIT) 9 #include "stm32mp15-pinctrl.dtsi" 10 #include "stm32mp15xxac-pinctrl.dtsi" 11 #include <dt-bindings/gpio/gpio.h> 12 #include <dt-bindings/mfd/st,stpmic1.h> 23 stdout-path = "serial0:115200n8"; 31 reserved-memory { 32 #address-cells = <1>; 33 #size-cells = <1>; 37 compatible = "shared-dma-pool"; [all …]
|
| /linux/Documentation/iio/ |
| H A D | ad7606.rst | 1 .. SPDX-License-Identifier: GPL-2.0-only 24 ---------------- 30 ------------------ 33 .. code-block:: 35 +-------------+ +-------------+ 36 | BUSY |-------->| TRIGGER | 37 | CS |<--------| CS | 41 | SDI |<--------| SDO | 42 | DOUTA |-------->| SDI | 43 | SCLK |<--------| SCLK | [all …]
|
| /linux/drivers/leds/ |
| H A D | leds-tca6507.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * leds-tca6507 9 * blink or double-blink. 11 * This driver can configure each line either as a 'GPIO' which is 12 * out-only (pull-up resistor required) or as an LED with variable 13 * brightness and hardware-assisted blinking. 21 * with separate time for rise, on, fall, off and second-off. Thus if 22 * 3 or more different non-trivial rates are required, software must 25 * support double-blink so 'second-off' always matches 'off'. 41 * Choosing pairs of delays with 12.5% errors allows us to match [all …]
|
| /linux/drivers/gpio/ |
| H A D | gpio-aggregator.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 // GPIO Aggregator 5 // Copyright (C) 2019-2020 Glider bv 7 #define DRV_NAME "gpio-aggregator" 30 #include <linux/gpio/consumer.h> 31 #include <linux/gpio/driver.h> 32 #include <linux/gpio/forwarder.h> 33 #include <linux/gpio/machine.h> 35 #include "dev-sync-probe.h" 41 * GPIO Aggregator sysfs interface [all …]
|
| H A D | gpio-virtio.c | 1 // SPDX-License-Identifier: GPL-2.0+ 3 * GPIO driver for virtio-based virtual GPIO controllers 14 #include <linux/gpio/driver.h> 58 static int _virtio_gpio_req(struct virtio_gpio *vgpio, u16 type, u16 gpio, in _virtio_gpio_req() argument 61 struct virtio_gpio_line *line = &vgpio->lines[gpio]; in _virtio_gpio_req() 62 struct virtio_gpio_request *req = &line->req; in _virtio_gpio_req() 65 struct device *dev = &vgpio->vdev->dev; in _virtio_gpio_req() 70 * pre-allocated request/response buffers for each GPIO line. Moreover in _virtio_gpio_req() 71 * Linux always accesses a GPIO line sequentially, so this locking shall in _virtio_gpio_req() 72 * always go through without any delays. in _virtio_gpio_req() [all …]
|
| /linux/arch/arm64/boot/dts/qcom/ |
| H A D | sa8155p-adp.dts | 1 // SPDX-License-Identifier: BSD-3-Clause 6 /dts-v1/; 8 #include <dt-bindings/regulator/qcom,rpmh-regulator.h> 9 #include <dt-bindings/gpio/gpio.h> 16 compatible = "qcom,sa8155p-adp", "qcom,sa8155p"; 24 stdout-path = "serial0:115200n8"; 27 vreg_3p3: vreg-3p3-regulator { 28 compatible = "regulator-fixed"; 29 regulator-name = "vreg_3p3"; 30 regulator-min-microvolt = <3300000>; [all …]
|
| /linux/drivers/net/ethernet/intel/ice/ |
| H A D | ice_ptp.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 17 * selecting an open index. Hardware makes no attempt to lock or prevent 18 * re-use of an index for multiple packets. 21 * that an index is not re-used for multiple transmitted packets. The 29 * The timestamp blocks are handled differently for E810- and E822-based 35 * +--------+--------+--------+--------+--------+--------+--------+--------+ 40 * +--------+--------+--------+--------+--------+--------+--------+--------+ 43 * |--- quad offset is always 0 44 * ---- quad number 47 * +-----------------------------+-----------------------------+ [all …]
|
| /linux/drivers/scsi/ |
| H A D | wd719x.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 31 __le32 Int_SCB; /* 00-03 Internal SCB link pointer (must be cleared) */ 36 u8 CDB[16]; /* 08-23 SCSI CDB (16 bytes as defined by ANSI spec. */ 37 __le32 data_p; /* 24-27 Data transfer address (or SG list address) */ 38 __le32 data_length; /* 28-31 Data transfer Length (or SG list length) */ 39 __le32 CDB_link; /* 32-35 SCSI CDB Link Ptr */ 40 __le32 sense_buf; /* 36-39 Auto request sense buffer address */ 43 u8 SCB_options; /* 42 SCB-options */ 46 __le32 req_ptr; /* 44-47 Ptr to Host Request returned on interrupt */ 51 __le32 transferred; /* 52-55 Bytes Transferred */ [all …]
|
| /linux/arch/arm64/boot/dts/rockchip/ |
| H A D | rk3588-tiger.dtsi | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 6 #include <dt-bindings/gpio/gpio.h> 7 #include <dt-bindings/leds/common.h> 8 #include <dt-bindings/pinctrl/rockchip.h> 13 compatible = "tsd,rk3588-tiger", "rockchip,rk3588"; 21 emmc_pwrseq: emmc-pwrseq { 22 compatible = "mmc-pwrseq-emmc"; 23 pinctrl-0 = <&emmc_reset>; 24 pinctrl-names = "default"; 25 reset-gpios = <&gpio2 RK_PA3 GPIO_ACTIVE_HIGH>; [all …]
|
| H A D | rk3399-puma.dtsi | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 6 #include <dt-bindings/pwm/pwm.h> 17 compatible = "gpio-leds"; 18 pinctrl-names = "default"; 19 pinctrl-0 = <&module_led_pin>; 21 module_led: led-0 { 24 linux,default-trigger = "heartbeat"; 25 panic-indicator; 29 extcon_usb3: extcon-usb3 { 30 compatible = "linux,extcon-usb-gpio"; [all …]
|
| H A D | rk3566-quartz64-a.dts | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 3 /dts-v1/; 5 #include <dt-bindings/gpio/gpio.h> 6 #include <dt-bindings/pinctrl/rockchip.h> 7 #include <dt-bindings/soc/rockchip,vop2.h> 12 compatible = "pine64,quartz64-a", "rockchip,rk3566"; 21 stdout-path = "serial2:1500000n8"; 24 gmac1_clkin: external-gmac1-clock { 25 compatible = "fixed-clock"; 26 clock-frequency = <125000000>; [all …]
|
| /linux/drivers/net/dsa/sja1105/ |
| H A D | sja1105_main.c | 1 // SPDX-License-Identifier: GPL-2.0 2 /* Copyright (c) 2018, Sensor-Technik Wiedemann GmbH 3 * Copyright (c) 2018-2019, Vladimir Oltean <olteanv@gmail.com> 13 #include <linux/gpio/consumer.h> 34 struct gpio_desc *gpio; in sja1105_hw_reset() local 36 gpio = gpiod_get_optional(dev, "reset", GPIOD_OUT_HIGH); in sja1105_hw_reset() 37 if (IS_ERR(gpio)) in sja1105_hw_reset() 38 return PTR_ERR(gpio); in sja1105_hw_reset() 40 if (!gpio) in sja1105_hw_reset() 43 gpiod_set_value_cansleep(gpio, 1); in sja1105_hw_reset() [all …]
|
| /linux/include/linux/spi/ |
| H A D | spi.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later 13 #include <linux/gpio/consumer.h> 23 /* Max no. of CS supported per spi device */ 38 * INTERFACES between SPI controller-side drivers and SPI target protocol handlers, 44 * struct spi_statistics - statistics for spi transfers 45 * @syncp: seqcount to protect members in this struct for per-cp [all...] |
| /linux/arch/arm64/boot/dts/mediatek/ |
| H A D | mt8395-genio-1200-evk.dts | 1 // SPDX-License-Identifier: (GPL-2.0 OR MIT) 7 /dts-v1/; 11 #include <dt-bindings/gpio/gpio.h> 12 #include <dt-bindings/input/input.h> 13 #include <dt-bindings/interrupt-controller/irq.h> 14 #include <dt-bindings/pinctrl/mt8195-pinfunc.h> 15 #include <dt-bindings/regulator/mediatek,mt6360-regulator.h> 16 #include <dt-bindings/spmi/spmi.h> 17 #include <dt-bindings/usb/pd.h> 20 model = "MediaTek Genio 1200 EVK-P1V2-EMMC"; [all …]
|
| H A D | mt8390-genio-common.dtsi | 1 // SPDX-License-Identifier: (GPL-2.0 OR MIT) 4 * Author: Chris Chen <chris-qj.chen@mediatek.com> 9 * Louis-Alexis Eyraud <louisalexis.eyraud@collabora.com> 14 #include <dt-bindings/gpio/gpio.h> 15 #include <dt-bindings/input/input.h> 16 #include <dt-bindings/interrupt-controller/irq.h> 17 #include <dt-bindings/pinctrl/mediatek,mt8188-pinfunc.h> 18 #include <dt-bindings/regulator/mediatek,mt6360-regulator.h> 19 #include <dt-bindings/spmi/spmi.h> 20 #include <dt-bindings/usb/pd.h> [all …]
|