/openbmc/u-boot/drivers/gpio/ |
H A D | hsdk-creg-gpio.c | 12 #include <asm-generic/gpio.h> 32 u8 reg_shift = oft * hcg->bit_per_gpio + hcg->shift; in hsdk_creg_gpio_set_value() 33 u32 reg = readl(hcg->regs); in hsdk_creg_gpio_set_value() 35 reg &= ~(GENMASK(hcg->bit_per_gpio - 1, 0) << reg_shift); in hsdk_creg_gpio_set_value() 36 reg |= ((val ? hcg->deactivate : hcg->activate) << reg_shift); in hsdk_creg_gpio_set_value() 38 writel(reg, hcg->regs); in hsdk_creg_gpio_set_value() 55 pr_err("%s can't be used as input!\n", uc_priv->bank_name); in hsdk_creg_gpio_direction_input() 57 return -ENOTSUPP; in hsdk_creg_gpio_direction_input() 63 u32 val = readl(hcg->regs); in hsdk_creg_gpio_get_value() 65 val >>= oft * hcg->bit_per_gpio + hcg->shift; in hsdk_creg_gpio_get_value() [all …]
|
/openbmc/linux/Documentation/devicetree/bindings/power/supply/ |
H A D | active-semi,act8945a-charger.yaml | 1 # SPDX-License-Identifier: GPL-2.0 3 --- 4 $id: http://devicetree.org/schemas/power/supply/active-semi,act8945a-charger.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: Active-semi ACT8945A Charger Function 10 - Sebastian Reichel <sre@kernel.org> 13 - $ref: power-supply.yaml# 17 const: active-semi,act8945a-charger 22 active-semi,chglev-gpios: 24 description: charge current level GPIO [all …]
|
/openbmc/linux/Documentation/devicetree/bindings/input/ |
H A D | rotary-encoder.txt | 4 - gpios: a spec for at least two GPIOs to be used, most significant first 7 - linux,axis: the input subsystem axis to map to this rotary encoder. 8 Defaults to 0 (ABS_X / REL_X) 9 - rotary-encoder,steps: Number of steps in a full turnaround of the 10 encoder. Only relevant for absolute axis. Defaults to 24 which is a 12 - rotary-encoder,relative-axis: register a relative axis rather than an 13 absolute one. Relative axis will only generate +1/-1 events on the input 15 - rotary-encoder,rollover: Automatic rollover when the rotary value becomes 17 - rotary-encoder,steps-per-period: Number of steps (stable states) per period. 19 1: Full-period mode (default) [all …]
|
H A D | gpio-decoder.txt | 1 * GPIO Decoder DT bindings 4 - compatible: should be "gpio-decoder" 5 - gpios: a spec of gpios (at least two) to be decoded to a number with 9 - decoder-max-value: Maximum possible value that can be reported by 11 - linux,axis: the input subsystem axis to map to (ABS_X/ABS_Y). 12 Defaults to 0 (ABS_X). 15 gpio-decoder0 { 16 compatible = "gpio-decoder"; 22 decoder-max-value = <9>;
|
H A D | gpio-keys.yaml | 1 # SPDX-License-Identifier: GPL-2.0-only 3 --- 4 $id: http://devicetree.org/schemas/input/gpio-keys.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: GPIO attached keys 10 - Rob Herring <robh@kernel.org> 15 - gpio-keys 16 - gpio-keys-polled 23 poll-interval: true 26 …"^(button|event|key|switch|(button|event|key|switch)-[a-z0-9-]+|[a-z0-9-]+-(button|event|key|switc… [all …]
|
/openbmc/linux/Documentation/devicetree/bindings/regulator/ |
H A D | maxim,max8952.yaml | 1 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Krzysztof Kozlowski <krzk@kernel.org> 13 - $ref: regulator.yaml# 19 max8952,default-mode: 25 max8952,dvs-mode-microvolt: 35 max8952,en-gpio: 38 GPIO used to control enable status of regulator 40 max8952,ramp-speed: [all …]
|
/openbmc/u-boot/doc/device-tree-bindings/gpio/ |
H A D | altera_pio.txt | 1 Altera GPIO controller bindings 4 - compatible: 5 - "altr,pio-1.0" 6 - reg: Physical base address and length of the controller's registers. 9 - altr,gpio-bank-width: Width of the GPIO bank. This defines how many pins the 10 GPIO device has. Ranges between 1-32. Optional and defaults to 32 if not 12 - gpio-bank-name: bank name attached to this device. 16 user_led_pio_8out: gpio@0x4cc0 { 17 compatible = "altr,pio-1.0"; 20 altr,gpio-bank-width = <8>; [all …]
|
/openbmc/linux/Documentation/devicetree/bindings/mfd/ |
H A D | wlf,arizona.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 17 - $ref: /schemas/spi/spi-peripheral-props.yaml 18 - $ref: /schemas/sound/wlf,arizona.yaml# 19 - $ref: /schemas/regulator/wlf,arizona.yaml# 20 - $ref: /schemas/extcon/wlf,arizona.yaml# 21 - if: 26 - cirrus,cs47l24 [all …]
|
H A D | da9062.txt | 4 - https://www.dialog-semiconductor.com/products/da9062 5 - https://www.dialog-semiconductor.com/products/da9061 10 ------ ------------ ----------- 11 da9062-regulator : : LDOs & BUCKs 12 da9062-rtc : : Real-Time Clock 13 da9062-onkey : : On Key 14 da9062-watchdog : : Watchdog Timer 15 da9062-thermal : : Thermal 16 da9062-gpio : : GPIOs 21 ------ ------------ ----------- [all …]
|
/openbmc/linux/Documentation/devicetree/bindings/gpio/ |
H A D | gpio-altera.txt | 1 Altera GPIO controller bindings 4 - compatible: 5 - "altr,pio-1.0" 6 - reg: Physical base address and length of the controller's registers. 7 - #gpio-cells : Should be 2 8 - The first cell is the gpio offset number. 9 - The second cell is reserved and is currently unused. 10 - gpio-controller : Marks the device node as a GPIO controller. 11 - interrupt-controller: Mark the device node as an interrupt controller 12 - #interrupt-cells : Should be 2. The interrupt type is fixed in the hardware. [all …]
|
/openbmc/linux/Documentation/devicetree/bindings/net/ |
H A D | rfkill-gpio.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/net/rfkill-gpio.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: GPIO controlled rfkill switch 10 - Johannes Berg <johannes@sipsolutions.net> 11 - Philipp Zabel <p.zabel@pengutronix.de> 15 const: rfkill-gpio 18 description: rfkill switch name, defaults to node name 20 radio-type: [all …]
|
H A D | qca,qca7000.txt | 3 The QCA7000 is a serial-to-powerline bridge with a host interface which could 13 - compatible : Should be "qca,qca7000" 14 - reg : Should specify the SPI chip select 15 - interrupts : The first cell should specify the index of the source 18 - spi-cpha : Must be set 19 - spi-cpol : Must be set 22 - spi-max-frequency : Maximum frequency of the SPI bus the chip can operate at. 26 - qca,legacy-mode : Set the SPI data transfer of the QCA7000 to legacy mode. 30 the QCA7000 is setup via GPIO pin strapping. If the 31 property is missing the driver defaults to burst mode. [all …]
|
H A D | mediatek-bluetooth.txt | 1 MediaTek SoC built-in Bluetooth Devices 5 child node of the serial node with BTIF. The dt-bindings details for BTIF 10 - compatible: Must be 11 "mediatek,mt7622-bluetooth": for MT7622 SoC 12 - clocks: Should be the clock specifiers corresponding to the entry in 13 clock-names property. 14 - clock-names: Should contain "ref" entries. 15 - power-domains: Phandle to the power domain that the device is part of 20 compatible = "mediatek,mt7622-btif", 21 "mediatek,mtk-btif"; [all …]
|
/openbmc/linux/Documentation/devicetree/bindings/mtd/ |
H A D | gpio-control-nand.txt | 1 GPIO assisted NAND flash 3 The GPIO assisted NAND flash uses a memory mapped interface to 4 read/write the NAND commands and data and GPIO pins for the control 8 - compatible : "gpio-control-nand" 9 - reg : should specify localbus chip select and size used for the chip. The 12 - #address-cells, #size-cells : Must be present if the device has sub-nodes 14 - gpios : Specifies the GPIO pins to control the NAND device. The order of 15 GPIO references is: RDY, nCE, ALE, CLE, and nWP. nCE and nWP are optional. 18 - bank-width : Width (in bytes) of the device. If not present, the width 19 defaults to 1 byte. [all …]
|
/openbmc/phosphor-gpio-monitor/ |
H A D | monitor.hpp | 6 #include <systemd/sd-event.h> 15 namespace gpio namespace 19 * @brief Responsible for catching GPIO state change 34 * @param[in] path - Path to gpio input device 35 * @param[in] key - GPIO key to monitor 36 * @param[in] polarity - GPIO assertion polarity to look for 37 * @param[in] target - systemd unit to be started on GPIO 39 * @param[in] event - sd_event handler 40 * @param[in] continueRun - Whether to continue after key pressed 41 * @param[in] handler - IO callback handler. Defaults to one in this [all …]
|
/openbmc/u-boot/doc/device-tree-bindings/spi/ |
H A D | spi-bus.txt | 10 - #address-cells - number of cells required to define a chip select 12 - #size-cells - should be zero. 13 - compatible - name of SPI bus controller following generic names 15 - cs-gpios - (optional) gpios chip select. 20 flexible and non-standardized, it is left out of this binding with the 26 - num-cs : total number of chipselects 28 If cs-gpios is used the number of chip select will automatically increased 29 with max(cs-gpios > hw cs) 31 So if for example the controller has 2 CS lines, and the cs-gpios 34 cs-gpios = <&gpio1 0 0> <0> <&gpio1 1 0> <&gpio1 2 0>; [all …]
|
/openbmc/linux/include/linux/mfd/madera/ |
H A D | pdata.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 5 * Copyright (C) 2015-2018 Cirrus Logic 12 #include <linux/regulator/arizona-ldo1.h> 13 #include <linux/regulator/arizona-micsupp.h> 15 #include <sound/madera-pdata.h> 26 * struct madera_pdata - Configuration data for Madera devices 28 * @reset: GPIO controlling /RESET (NULL = none) 31 * @irq_flags: Mode for primary IRQ (defaults to active low) 32 * @gpio_base: Base GPIO number 33 * @gpio_configs: Array of GPIO configurations (See [all …]
|
/openbmc/u-boot/board/gateworks/gw_ventana/ |
H A D | common.h | 1 /* SPDX-License-Identifier: GPL-2.0+ */ 13 /* GPIO's common to all baseboards */ 48 * can be pinmuxed as a GPIO or in some cases a PWM 64 /* various gpios (0 if non-existent) */ 94 /* configure gpio iomux/defaults */ 96 /* late setup of GPIO (configuration per baseboard and env) */
|
/openbmc/linux/arch/arm/boot/dts/renesas/ |
H A D | r8a7792-wheat.dts | 1 // SPDX-License-Identifier: GPL-2.0 9 /dts-v1/; 11 #include <dt-bindings/gpio/gpio.h> 12 #include <dt-bindings/input/input.h> 24 stdout-path = "serial0:115200n8"; 32 d3_3v: regulator-3v3 { 33 compatible = "regulator-fixed"; 34 regulator-name = "D3.3V"; 35 regulator-min-microvolt = <3300000>; 36 regulator-max-microvolt = <3300000>; [all …]
|
/openbmc/linux/arch/arm/boot/dts/gemini/ |
H A D | gemini-rut1xx.dts | 1 // SPDX-License-Identifier: GPL-2.0 6 /dts-v1/; 9 #include <dt-bindings/input/input.h> 14 #address-cells = <1>; 15 #size-cells = <1>; 24 stdout-path = &uart0; 28 compatible = "gpio-keys"; 30 button-setup { 31 debounce-interval = <100>; 32 wakeup-source; [all …]
|
/openbmc/linux/arch/arm64/boot/dts/qcom/ |
H A D | qcs404-evb-4000.dts | 1 // SPDX-License-Identifier: GPL-2.0 6 /dts-v1/; 8 #include <dt-bindings/gpio/gpio.h> 9 #include "qcs404-evb.dtsi" 13 compatible = "qcom,qcs404-evb-4000", "qcom,qcs404-evb", 20 snps,reset-gpio = <&tlmm 60 GPIO_ACTIVE_LOW>; 21 snps,reset-active-low; 22 snps,reset-delays-us = <0 10000 10000>; 24 pinctrl-names = "default"; 25 pinctrl-0 = <ðernet_defaults>; [all …]
|
/openbmc/linux/Documentation/devicetree/bindings/i2c/ |
H A D | i2c-mux-gpio.yaml | 1 # SPDX-License-Identifier: GPL-2.0-only 3 --- 4 $id: http://devicetree.org/schemas/i2c/i2c-mux-gpio.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: GPIO-based I2C Bus Mux 10 - Wolfram Sang <wsa@kernel.org> 15 +-----+ +-----+ 17 +------------+ +-----+ +-----+ 19 | | /--------+--------+ 20 | +------+ | +------+ child bus A, on GPIO value set to 0 [all …]
|
/openbmc/linux/Documentation/devicetree/bindings/input/touchscreen/ |
H A D | ti,tsc2005.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Marek Vasut <marex@denx.de> 11 - Michael Welling <mwelling@ieee.org> 19 - ti,tsc2004 20 - ti,tsc2005 31 reset-gpios: 33 description: GPIO specifier for the controller reset line 35 spi-max-frequency: [all …]
|
/openbmc/openbmc/meta-raspberrypi/recipes-devtools/pi-blaster/ |
H A D | pi-blaster_git.bb | 1 DESCRIPTION = "This project enables PWM on the GPIO pins you request of a Raspberry Pi." 2 HOMEPAGE = "https://github.com/sarfata/pi-blaster/" 7 SRC_URI = "git://github.com/sarfata/pi-blaster;branch=master;protocol=https \ 8 file://remove-initscript-lsb-dependency.patch \ 15 inherit update-rc.d autotools 19 INITSCRIPT_PARAMS:${PN} = "defaults 15 85"
|
/openbmc/linux/Documentation/devicetree/bindings/sound/ |
H A D | wlf,wm8994.yaml | 1 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> 11 - patches@opensource.cirrus.com 25 - wlf,wm1811 26 - wlf,wm8994 27 - wlf,wm8958 36 clock-names: 39 - const: MCLK1 [all …]
|