Home
last modified time | relevance | path

Searched +full:row +full:- +full:gpios (Results 1 – 25 of 35) sorted by relevance

12

/Zephyr-latest/dts/bindings/input/
Dgpio-kbd-matrix.yaml2 # SPDX-License-Identifier: Apache-2.0
11 kbd-matrix {
12 compatible = "gpio-kbd-matrix";
13 row-gpios = <&gpio0 0 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>,
15 col-gpios = <&gpio0 2 GPIO_ACTIVE_LOW>,
18 no-ghostkey-check;
21 compatible: "gpio-kbd-matrix"
24 - name: kbd-matrix-common.yaml
25 property-blocklist:
26 - row-size
[all …]
Dite,it8xxx2-kbd.yaml2 # SPDX-License-Identifier: Apache-2.0
6 compatible: "ite,it8xxx2-kbd"
8 include: [kbd-matrix-common.yaml, pinctrl-device.yaml]
26 kso16-gpios:
27 type: phandle-array
32 kso17-gpios:
33 type: phandle-array
38 kso-ignore-mask:
43 to skip KSO signals between 0 and (col-size - 1) that are used as GPIOs.
46 pinctrl-0:
[all …]
/Zephyr-latest/dts/bindings/display/
Dnordic,nrf-led-matrix.yaml2 # SPDX-License-Identifier: Apache-2.0
4 description: Generic LED matrix driven by nRF SoC GPIOs
6 compatible: "nordic,nrf-led-matrix"
8 include: display-controller.yaml
11 row-gpios:
12 type: phandle-array
15 Array of GPIOs to be used as rows of the matrix.
17 col-gpios:
18 type: phandle-array
21 Array of GPIOs to be used as columns of the matrix.
[all …]
Distech,ist3931.yaml2 # SPDX-License-Identifier: Apache-2.0
8 include: [i2c-device.yaml, display-controller.yaml]
11 reset-gpios:
12 type: phandle-array
21 x-offset:
26 y-offset:
29 description: The row offset in pixels of the LCD to the controller memory
31 voltage-converter:
35 voltage-follower:
39 lcd-bias:
[all …]
/Zephyr-latest/doc/services/input/
Dgpio-kbd.rst1 .. _gpio-kbd:
6 The :dtcompatible:`gpio-kbd-matrix` driver supports a large variety of keyboard
12 row GPIOs (inputs) and selects on the columns GPIOs (output).
14 Base use case, no isolation diodes, interrupt capable GPIOs
21 .. figure:: no-diodes.svg
28 row GPIOs at the same time.
30 .. code-block:: devicetree
32 kbd-matrix {
33 compatible = "gpio-kbd-matrix";
34 row-gpios = <&gpio0 0 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>,
[all …]
/Zephyr-latest/tests/drivers/input/gpio_kbd_matrix/boards/
Dnative_sim.overlay4 * SPDX-License-Identifier: Apache-2.0
12 kbd_matrix_interrupt: kbd-matrix-interrupt {
13 compatible = "gpio-kbd-matrix";
14 row-gpios = <&gpio0 0 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>,
16 col-gpios = <&gpio0 2 GPIO_ACTIVE_LOW>,
18 debounce-down-ms = <80>;
19 debounce-up-ms = <40>;
20 poll-timeout-ms = <500>;
23 kbd_matrix_poll: kbd-matrix-poll {
24 compatible = "gpio-kbd-matrix";
[all …]
/Zephyr-latest/drivers/display/
DKconfig.nrf_led_matrix2 # SPDX-License-Identifier: Apache-2.0
5 bool "LED matrix driven by GPIOs"
12 GPIOs. The driver allows setting one of 256 levels of brightness
14 Assignment of GPIOs to rows and columns and the mapping of those
15 to pixels are specified in properties of a "nordic,nrf-led-matrix"
19 (the latter value depends on the chosen pixel group size - the number
20 of LEDs in one row that can be lit simultaneously).
Ddisplay_nrf_led_matrix.c4 * SPDX-License-Identifier: Apache-2.0
9 #include <zephyr/dt-bindings/gpio/gpio.h>
31 #if (GROUP_SIZE > DT_PROP(TIMER_NODE, cc_num) - 1) || \
33 #error "Invalid pixel-group-size configured."
40 #error "Invalid length of pixel-mapping."
48 _GET_ROW_IDX(dev_config->pixel_mapping[pixel_idx])
54 _GET_COL_IDX(dev_config->pixel_mapping[pixel_idx])
59 "Invalid row index in pixel-mapping["#idx"]."); \
61 "Invalid column index in pixel-mapping["#idx"].");
77 #error "Invalid pixel period. Change refresh-frequency or pixel-group-size."
[all …]
/Zephyr-latest/tests/drivers/build_all/input/
Dapp.overlay4 * SPDX-License-Identifier: Apache-2.0
7 #include <zephyr/dt-bindings/input/input-event-codes.h>
11 #address-cells = <1>;
12 #size-cells = <1>;
17 #io-channel-cells = <1>;
18 #address-cells = <1>;
19 #size-cells = <0>;
26 zephyr,acquisition-time = <ADC_ACQ_TIME_DEFAULT>;
32 gpio-controller;
34 #gpio-cells = <0x2>;
[all …]
Dit82xx2_evb.overlay4 * SPDX-License-Identifier: Apache-2.0
7 /delete-node/ &kbd;
13 compatible = "ite,it8801-mfd";
15 irq-gpios = <&gpioa 1 0>;
19 #include <ite/it8801-common-cfg.dtsi>
25 kso-mapping = <0 1 20 3 4 5 6 17 18 16 15 11 12>;
26 row-size = <8>;
27 col-size = <13>;
29 kscan_input: kscan-input {
30 compatible = "zephyr,kscan-input";
/Zephyr-latest/tests/cmake/hwm/board_extend/oot_root/boards/arm/mps2/
Dmps2_an521_cputest.dts2 * Copyright (c) 2018-2019 Linaro Limited
4 * SPDX-License-Identifier: Apache-2.0
7 /dts-v1/;
10 #include <arm/armv8-m.dtsi>
11 #include <zephyr/dt-bindings/i2c/i2c.h>
12 #include <zephyr/dt-bindings/input/input-event-codes.h>
16 #address-cells = <1>;
17 #size-cells = <1>;
24 uart-1 = &uart1;
30 zephyr,shell-uart = &uart0;
[all …]
/Zephyr-latest/boards/arm/mps2/
Dmps2_an521_cpu0.dts2 * Copyright (c) 2018-2019 Linaro Limited
4 * SPDX-License-Identifier: Apache-2.0
7 /dts-v1/;
10 #include <arm/armv8-m.dtsi>
11 #include <zephyr/dt-bindings/i2c/i2c.h>
12 #include <zephyr/dt-bindings/input/input-event-codes.h>
16 #address-cells = <1>;
17 #size-cells = <1>;
24 uart-1 = &uart1;
30 zephyr,shell-uart = &uart0;
[all …]
Dmps2_an521_cpu0_ns.dts2 * Copyright (c) 2018-2019 Linaro Limited
4 * SPDX-License-Identifier: Apache-2.0
7 /dts-v1/;
10 #include <arm/armv8-m.dtsi>
11 #include <zephyr/dt-bindings/i2c/i2c.h>
12 #include <zephyr/dt-bindings/input/input-event-codes.h>
16 #address-cells = <1>;
17 #size-cells = <1>;
29 zephyr,shell-uart = &uart0;
35 compatible = "gpio-leds";
[all …]
Dmps2_an521_cpu1.dts2 * Copyright (c) 2018-2019 Linaro Limited
4 * SPDX-License-Identifier: Apache-2.0
7 /dts-v1/;
10 #include <arm/armv8-m.dtsi>
11 #include <zephyr/dt-bindings/i2c/i2c.h>
12 #include <zephyr/dt-bindings/input/input-event-codes.h>
16 #address-cells = <1>;
17 #size-cells = <1>;
29 zephyr,shell-uart = &uart0;
35 compatible = "gpio-leds";
[all …]
/Zephyr-latest/dts/bindings/mfd/
Dite,it8801-mfd.yaml2 # SPDX-License-Identifier: Apache-2.0
5 ITE IT8801 ioexpander multi-function device drivers.
8 An example configuration using the it8801-common-cfg.dtsi template:
12 compatible = "ite,it8801-mfd";
14 * SMBus address (7-bit without R/W)
19 irq-gpios = <&gpioa 1 0>; /* SMB_INT# */
22 #include <ite/it8801-common-cfg.dtsi>
24 /* sub-devices available at nodelabels:
25 * - ioex_it8801_port0
26 * - ioex_it8801_port1
[all …]
/Zephyr-latest/dts/bindings/auxdisplay/
Dhit,hd44780.yaml4 # SPDX-License-Identifier: Apache-2.0
11 include: [auxdisplay-device.yaml]
17 description: Operating mode of display, 8-bit or 4 for 4-bit mode
19 - 4
20 - 8
22 register-select-gpios:
23 type: phandle-array
27 read-write-gpios:
28 type: phandle-array
31 enable-gpios:
[all …]
/Zephyr-latest/boards/microchip/mec1501modular_assy6885/
Dmec1501modular_assy6885.dts4 * SPDX-License-Identifier: Apache-2.0
7 /dts-v1/;
9 #include "mec1501modular_assy6885-pinctrl.dtsi"
20 zephyr,keyboard-scan = &kscan_input;
24 pwm-0 = &pwm0;
25 peci-0 = &peci0;
40 current-speed = <115200>;
41 pinctrl-0 = <&uart1_tx_gpio170 &uart1_rx_gpio171>;
42 pinctrl-names = "default";
47 pinctrl-0 = <&adc04_gpio204 &adc05_gpio205
[all …]
/Zephyr-latest/boards/microchip/mec15xxevb_assy6853/
Dmec15xxevb_assy6853.dts4 * SPDX-License-Identifier: Apache-2.0
7 /dts-v1/;
9 #include "mec15xxevb_assy6853-pinctrl.dtsi"
19 zephyr,keyboard-scan = &kscan_input;
26 pwm-0 = &pwm0;
27 peci-0 = &peci0;
29 i2c-0 = &i2c_smb_0;
37 compatible = "gpio-leds";
42 gpios = <MCHP_GPIO_DECODE_156 GPIO_ACTIVE_LOW>;
49 gpios = <MCHP_GPIO_DECODE_157 GPIO_ACTIVE_LOW>;
[all …]
/Zephyr-latest/boards/bbc/microbit_v2/
Dbbc_microbit_v2.dts4 * SPDX-License-Identifier: Apache-2.0
7 /dts-v1/;
9 #include "bbc_microbit_v2-pinctrl.dtsi"
10 #include <zephyr/dt-bindings/input/input-event-codes.h>
14 compatible = "bbc,microbit-v2";
27 zephyr,shell-uart = &uart0;
28 zephyr,bt-mon-uart = &uart0;
29 zephyr,bt-c2h-uart = &uart0;
32 zephyr,code-partition = &slot0_partition;
37 compatible = "gpio-keys";
[all …]
/Zephyr-latest/boards/bbc/microbit/
Dbbc_microbit.dts4 * SPDX-License-Identifier: Apache-2.0
7 /dts-v1/;
9 #include "bbc_microbit-pinctrl.dtsi"
10 #include <zephyr/dt-bindings/input/input-event-codes.h>
27 zephyr,shell-uart = &uart0;
28 zephyr,bt-mon-uart = &uart0;
29 zephyr,bt-c2h-uart = &uart0;
32 zephyr,code-partition = &slot0_partition;
37 compatible = "gpio-keys";
40 gpios = <&gpio0 17 GPIO_ACTIVE_LOW>;
[all …]
/Zephyr-latest/boards/nuvoton/npcx4m8f_evb/
Dnpcx4m8f_evb.dts4 * SPDX-License-Identifier: Apache-2.0
7 /dts-v1/;
10 #include <nuvoton/npcx/npcx-espi-vws-ex-map.dtsi>
11 #include "npcx4m8f_evb-pinctrl.dtsi"
20 zephyr,keyboard-scan = &kscan_input;
24 pwm-led0 = &pwm_led0_green;
26 pwm-0 = &pwm6;
27 i2c-0 = &i2c0_0;
29 peci-0 = &peci0;
33 leds-pwm {
[all …]
/Zephyr-latest/boards/nuvoton/npcx9m6f_evb/
Dnpcx9m6f_evb.dts4 * SPDX-License-Identifier: Apache-2.0
7 /dts-v1/;
10 #include "npcx9m6f_evb-pinctrl.dtsi"
19 zephyr,keyboard-scan = &kscan_input;
24 pwm-led0 = &pwm_led0_green;
28 pwm-0 = &pwm6;
30 i2c-0 = &i2c0_0;
33 peci-0 = &peci0;
38 leds-pwm {
39 compatible = "pwm-leds";
[all …]
/Zephyr-latest/boards/microchip/mec172xmodular_assy6930/
Dmec172xmodular_assy6930.dts4 * SPDX-License-Identifier: Apache-2.0
7 /dts-v1/;
10 #include <microchip/mec172x/mec172xnsz-pinctrl.dtsi>
28 pwm-0 = &pwm0;
32 compatible = "gpio-leds";
37 gpios = <MCHP_GPIO_DECODE_157 GPIO_ACTIVE_HIGH>;
43 gpios = <MCHP_GPIO_DECODE_153 GPIO_ACTIVE_HIGH>;
49 clock-frequency = <96000000>;
77 current-speed = <115200>;
78 pinctrl-0 = <&uart1_tx_gpio170 &uart1_rx_gpio171>;
[all …]
/Zephyr-latest/samples/boards/bbc/microbit/pong/src/
Dmain.c4 * SPDX-License-Identifier: Apache-2.0
21 /* The micro:bit has a 5x5 LED display, using (x, y) notation the top-left
22 * corner has coordinates (0, 0) and the bottom-right has (4, 4). To make
24 * system where top-left is (0, 0) and bottom-right is (49, 49).
37 #define BALL_VEL_Y_START -4 /* Default ball vertical speed */
52 /* Ball starting position (just to the left of the paddle mid-point) */
120 static const struct gpio_dt_spec sw0_gpio = GPIO_DT_SPEC_GET(DT_ALIAS(sw0), gpios);
121 static const struct gpio_dt_spec sw1_gpio = GPIO_DT_SPEC_GET(DT_ALIAS(sw1), gpios);
124 BUILD_ASSERT(DT_SAME_NODE(DT_GPIO_CTLR(DT_ALIAS(sw0), gpios), DT_GPIO_CTLR(DT_ALIAS(sw1), gpios)));
161 SCROLL_SPEED, "%s", select->choice[select_idx].str); in pong_select()
[all …]
/Zephyr-latest/boards/microchip/mec172xevb_assy6906/
Dmec172xevb_assy6906.dts4 * SPDX-License-Identifier: Apache-2.0
7 /dts-v1/;
10 #include <microchip/mec172x/mec172xnsz-pinctrl.dtsi>
26 i2c-0 = &i2c_smb_0;
29 pwm-0 = &pwm0;
34 compatible = "gpio-leds";
39 gpios = <MCHP_GPIO_DECODE_241 GPIO_ACTIVE_HIGH>;
46 gpios = <MCHP_GPIO_DECODE_175 GPIO_ACTIVE_HIGH>;
53 clock-frequency = <96000000>;
81 current-speed = <115200>;
[all …]

12