Home
last modified time | relevance | path

Searched +full:gpio +full:- +full:key (Results 1 – 25 of 737) sorted by relevance

12345678910>>...30

/openbmc/linux/arch/arm/mach-omap1/
H A Dboard-ams-delta.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * linux/arch/arm/mach-omap1/board-ams-delta.c
5 * Modified from board-generic.c
11 #include <linux/gpio/driver.h>
12 #include <linux/gpio/machine.h>
13 #include <linux/gpio/consumer.h>
19 #include <linux/mtd/nand-gpio.h>
29 #include <linux/platform_data/gpio-omap.h>
30 #include <linux/soc/ti/omap1-mux.h>
33 #include <asm/mach-types.h>
[all …]
H A Dboard-nokia770.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * linux/arch/arm/mach-omap1/board-nokia770.c
5 * Modified from board-generic.c
9 #include <linux/gpio/consumer.h>
10 #include <linux/gpio/machine.h>
11 #include <linux/gpio/property.h>
24 #include <linux/platform_data/keypad-omap.h>
25 #include <linux/platform_data/lcd-mipid.h>
26 #include <linux/platform_data/gpio-omap.h>
28 #include <asm/mach-types.h>
[all …]
H A Dboard-sx1.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * linux/arch/arm/mach-omap1/board-sx1.c
5 * Modified from board-generic.c
9 * Original version : Vladimir Ananiev (Vovan888-at-gmail com)
14 #include <linux/gpio/machine.h>
15 #include <linux/gpio/consumer.h>
29 #include <linux/platform_data/keypad-omap.h>
30 #include <linux/omap-dma.h>
33 #include <asm/mach-types.h>
39 #include "board-sx1.h"
[all …]
H A Dboard-palmte.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * linux/arch/arm/mach-omap1/board-palmte.c
5 * Modified from board-generic.c
12 * palmtelinux-developpers@lists.sf.net
16 #include <linux/gpio/machine.h>
17 #include <linux/gpio/consumer.h>
27 #include <linux/apm-emulation.h>
29 #include <linux/omap-dma.h>
30 #include <linux/platform_data/keypad-omap.h>
33 #include <asm/mach-types.h>
[all …]
/openbmc/linux/arch/arm/boot/dts/nxp/imx/
H A Dimx6dl-prtvt7.dts1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
6 /dts-v1/;
8 #include "imx6qdl-prti6q.dtsi"
9 #include <dt-bindings/display/sdtv-standards.h>
10 #include <dt-bindings/input/input.h>
11 #include <dt-bindings/leds/common.h>
12 #include <dt-bindings/sound/fsl-imx-audmux.h>
23 backlight_lcd: backlight-lcd {
24 compatible = "pwm-backlight";
26 brightness-levels = <0 20 81 248 1000>;
[all …]
H A Dimx6dl-prtmvt.dts1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
7 /dts-v1/;
8 #include <dt-bindings/display/sdtv-standards.h>
9 #include <dt-bindings/gpio/gpio.h>
10 #include <dt-bindings/input/input.h>
11 #include <dt-bindings/leds/common.h>
12 #include <dt-bindings/media/tvp5150.h>
13 #include <dt-bindings/sound/fsl-imx-audmux.h>
21 stdout-path = &uart4;
25 compatible = "pwm-backlight";
[all …]
/openbmc/linux/Documentation/devicetree/bindings/input/
H A Dgpio-keys.yaml1 # 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 …]
H A Dgpio-matrix-keypad.txt1 * GPIO driven matrix keypad device tree bindings
3 GPIO driven matrix keypad is used to interface a SoC with a matrix keypad.
4 The matrix keypad supports multiple row and column lines, a key can be
6 keypad can sense a key-press and key-release by means of GPIO lines and
7 report the event using GPIO interrupts to the cpu.
10 - compatible: Should be "gpio-matrix-keypad"
11 - row-gpios: List of gpios used as row lines. The gpio specifier
12 for this property depends on the gpio controller to
14 - col-gpios: List of gpios used as column lines. The gpio specifier
15 for this property depends on the gpio controller to
[all …]
/openbmc/phosphor-fan-presence/presence/config_files/p10bmc/com.ibm.Hardware.Chassis.Model.Rainier2U/
H A Dconfig.json7 "type": "gpio",
8 "key": 6, number
9 "physpath": "/sys/bus/i2c/devices/7-0061",
10 "devpath": "/dev/input/by-path/platform-gpio-keys-polled-event"
26 "type": "gpio",
27 "key": 7, number
28 "physpath": "/sys/bus/i2c/devices/7-0061",
29 "devpath": "/dev/input/by-path/platform-gpio-keys-polled-event"
45 "type": "gpio",
46 "key": 8, number
[all …]
/openbmc/phosphor-fan-presence/presence/config_files/p10bmc/com.ibm.Hardware.Chassis.Model.Rainier4U/
H A Dconfig.json7 "type": "gpio",
8 "key": 6, number
9 "physpath": "/sys/bus/i2c/devices/7-0061",
10 "devpath": "/dev/input/by-path/platform-gpio-keys-polled-event"
26 "type": "gpio",
27 "key": 7, number
28 "physpath": "/sys/bus/i2c/devices/7-0061",
29 "devpath": "/dev/input/by-path/platform-gpio-keys-polled-event"
45 "type": "gpio",
46 "key": 8, number
[all …]
/openbmc/phosphor-gpio-monitor/
H A Dmonitor.hpp6 #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 …]
H A Devdev.hpp5 #include <systemd/sd-event.h>
15 namespace gpio namespace
49 * @brief Responsible for catching GPIO state changes conditions and taking
59 // Association between interface and the D-Bus property
75 * @param[in] path - Device path to read for GPIO pin state
76 * @param[in] key - GPIO key to monitor
77 * @param[in] event - sd_event handler
78 * @param[in] handler - IO callback handler.
79 * @param[in] useEvDev - Whether to use EvDev to retrieve events
81 Evdev(const std::string& path, const unsigned int key, EventPtr& event, in Evdev() argument
[all …]
H A Dmainapp.cpp8 * http://www.apache.org/licenses/LICENSE-2.0
19 #include <systemd/sd-event.h>
22 #include <phosphor-logging/lg2.hpp>
29 CLI::App app{"Monitor GPIO line for requested state change"}; in main()
33 std::string key{}; in main() local
39 app.add_option("-p,--path", path, in main()
41 ->required(); in main()
42 app.add_option("-k,--key", key, "Input GPIO key number")->required(); in main()
43 app.add_option("-r,--polarity", polarity, in main()
45 ->required(); in main()
[all …]
/openbmc/openbmc/meta-ibm/recipes-phosphor/fans/phosphor-fan-presence-config/swift/
H A Dconfig.yaml1 - name: fan0
4 - type: gpio
5 key: 5
6 …hyspath: /sys/devices/platform/ahb/1e780000.apb/1e780000.apb:bus@1e78a000/1e78a100.i2c/i2c-3/3-0060
7 devpath: /dev/input/by-path/platform-gpio-keys-polled-event
8 - type: tach
10 - fan0_0
14 - name: fan1
17 - type: gpio
18 key: 6
[all …]
/openbmc/skeleton/pysystemmgr/
H A Dsystem_manager.py30 for key in System.ID_LOOKUP[category]:
31 val = System.ID_LOOKUP[category][key]
35 System.ID_LOOKUP[category][key] = new_val
39 def doObjectLookup(self, category, key): argument
43 obj_path = System.ID_LOOKUP[category][key]
54 def getObjectFromId(self, category, key): argument
55 return self.doObjectLookup(category, key)
58 def getObjectFromByteId(self, category, key): argument
59 byte = int(key)
65 gpio_num = -1
[all …]
/openbmc/linux/arch/arm/boot/dts/samsung/
H A Dexynos4412-itop-elite.dts1 // SPDX-License-Identifier: GPL-2.0
13 /dts-v1/;
14 #include <dt-bindings/leds/common.h>
15 #include <dt-bindings/pwm/pwm.h>
16 #include <dt-bindings/sound/samsung-i2s.h>
17 #include "exynos4412-itop-scp-core.dtsi"
21 compatible = "topeet,itop4412-elite", "samsung,exynos4412", "samsung,exynos4";
29 stdout-path = "serial2:115200n8";
33 compatible = "gpio-leds";
39 default-state = "off";
[all …]
/openbmc/linux/drivers/input/keyboard/
H A Dadp5588-keys.c1 // SPDX-License-Identifier: GPL-2.0-or-later
8 * Copyright (C) 2008-2010 Analog Devices Inc.
14 #include <linux/gpio/consumer.h>
15 #include <linux/gpio/driver.h>
24 #include <linux/pinctrl/pinconf-generic.h>
34 #define KEY_LCK_EC_STAT 0x03 /* Key Lock and Event Counter Register */
35 #define KEY_EVENTA 0x04 /* Key Event Register A */
36 #define KEY_EVENTB 0x05 /* Key Event Register B */
37 #define KEY_EVENTC 0x06 /* Key Event Register C */
38 #define KEY_EVENTD 0x07 /* Key Event Register D */
[all …]
/openbmc/phosphor-fan-presence/presence/config_files/p10bmc/com.ibm.Hardware.Chassis.Model.Rainier1S4U/
H A Dconfig.json7 "type": "gpio",
8 "key": 6, number
9 "physpath": "/sys/bus/i2c/devices/7-0061",
10 "devpath": "/dev/input/by-path/platform-gpio-keys-polled-event"
26 "type": "gpio",
27 "key": 7, number
28 "physpath": "/sys/bus/i2c/devices/7-0061",
29 "devpath": "/dev/input/by-path/platform-gpio-keys-polled-event"
45 "type": "gpio",
46 "key": 8, number
[all …]
/openbmc/phosphor-fan-presence/presence/config_files/witherspoon/
H A Dconfig.json7 "type": "gpio",
8 "key": 4, number
9 "physpath": "/sys/bus/i2c/devices/3-0060",
10 "devpath": "/dev/input/by-path/platform-gpio-keys-polled-event"
26 "type": "gpio",
27 "key": 5, number
28 "physpath": "/sys/bus/i2c/devices/3-0060",
29 "devpath": "/dev/input/by-path/platform-gpio-keys-polled-event"
45 "type": "gpio",
46 "key": 6, number
[all …]
/openbmc/linux/arch/arm/boot/dts/ti/omap/
H A Dam3517-evm-ui.dtsi1 // SPDX-License-Identifier: GPL-2.0-only
3 * Copyright (C) 2018 Logic PD, Inc - https://www.logicpd.com/
6 #include <dt-bindings/input/input.h>
10 compatible = "simple-audio-card";
11 simple-audio-card,name = "tlv320aic23-hifi";
13 simple-audio-card,widgets =
18 simple-audio-card,routing =
25 simple-audio-card,format = "i2s";
26 simple-audio-card,bitclock-master = <&sound_master>;
27 simple-audio-card,frame-master = <&sound_master>;
[all …]
/openbmc/linux/arch/arm/boot/dts/nxp/lpc/
H A Dlpc3250-ea3250.dts1 // SPDX-License-Identifier: GPL-2.0-or-later
8 /dts-v1/;
20 gpio-keys {
21 compatible = "gpio-keys";
25 label = "Interrupt Key";
27 gpios = <&gpio 4 1 0>; /* GPI_P3 1 */
55 label = "Joystick Key 0";
57 gpios = <&gpio 2 0 0>; /* P2.0 */
61 label = "Joystick Key 1";
63 gpios = <&gpio 2 1 0>; /* P2.1 */
[all …]
/openbmc/phosphor-fan-presence/presence/config_files/p10bmc/com.ibm.Hardware.Chassis.Model.Everest/
H A Dconfig.json7 "type": "gpio",
8 "key": 15, number
9 "physpath": "/sys/bus/i2c/devices/30-0061",
10 "devpath": "/dev/input/by-path/platform-gpio-keys-polled-event"
21 "bus_address": "31-0050",
31 "type": "gpio",
32 "key": 14, number
33 "physpath": "/sys/bus/i2c/devices/30-0061",
34 "devpath": "/dev/input/by-path/platform-gpio-keys-polled-event"
45 "bus_address": "32-0050",
[all …]
/openbmc/phosphor-fan-presence/presence/example/
H A Dexample.yaml11 - name: Example Fan0
23 - type: tach
25 - fan0
27 - name: Example Fan1
29 'Example fan with gpio detection method.
31 Fans with dedicated gpios can use the gpio detection method. The gpio
32 detection uses Linux gpio-keys: the event number must be provided via the
33 key property.'
36 - type: gpio
37 key: 123
[all …]
H A Dconfig.json25 "Example fan with gpio detection method. Fans with dedicated gpios can",
26 "use the gpio detection method. The gpio detection uses Linux gpio-keys,",
27 "where the event number is provided via the `key` property."
34 "type": "gpio",
35 "key": 123, number
37 "devpath": "/dev/input/by-path/platform-gpio-keys-event"
56 "type": "gpio",
57 "key": 124, number
59 "devpath": "/dev/input/by-path/platform-gpio-keys-polled-event"
80 "type": "gpio",
[all …]
/openbmc/linux/arch/arm/mach-pxa/
H A Dspitz.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * Support for Sharp SL-Cxx00 Series of PDAs
4 * Models: SL-C3000 (Spitz), SL-C1000 (Akita) and SL-C3100 (Borzoi)
15 #include <linux/gpio.h>
16 #include <linux/gpio/machine.h>
19 #include <linux/platform_data/i2c-pxa.h>
27 #include <linux/input-event-codes.h>
35 #include <asm/mach-types.h>
41 #include "pxa27x-udc.h"
43 #include <linux/platform_data/mmc-pxamci.h>
[all …]

12345678910>>...30