Home
last modified time | relevance | path

Searched +full:gpio +full:- +full:7 +full:- +full:segment (Results 1 – 25 of 65) sorted by relevance

123

/linux/Documentation/devicetree/bindings/auxdisplay/
H A Dgpio-7-segment.yaml1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
3 ---
4 $id: http://devicetree.org/schemas/auxdisplay/gpio-7-segment.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: GPIO based LED segment display
10 - Chris Packham <chris.packham@alliedtelesis.co.nz>
14 const: gpio-7-segment
16 segment-gpios:
18 An array of GPIOs one per segment. The first GPIO corresponds to the A
19 segment, the seventh GPIO corresponds to the G segment. Some LED blocks
[all …]
/linux/drivers/auxdisplay/
H A Dseg-led-gpio.c1 // SPDX-License-Identifier: GPL-2.0
3 * Driver for a 7-segment LED display
14 #include <linux/gpio/consumer.h>
22 #include "line-display.h"
33 struct linedisp *linedisp = &priv->linedisp; in seg_led_update()
34 struct linedisp_map *map = linedisp->map; in seg_led_update()
37 bitmap_set_value8(values, map_to_seg7(&map->map.seg7, linedisp->buf[0]), 0); in seg_led_update()
39 gpiod_set_array_value_cansleep(priv->segment_gpios->ndescs, priv->segment_gpios->desc, in seg_led_update()
40 priv->segment_gpios->info, values); in seg_led_update()
47 INIT_DELAYED_WORK(&priv->work, seg_led_update); in seg_led_linedisp_get_map_type()
[all …]
H A DKconfig1 # SPDX-License-Identifier: GPL-2.0
4 # see Documentation/kbuild/kconfig-language.rst.
25 This is the base system for character-based LCD displays.
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
88 int "Default panel profile (0-5, 0=custom)"
99 2 = 2x16 serial LCD (KS-0074), new keypad
119 2 : new 6 keys keypad, as used on the server at www.ant-computing.com
140 3 : 2x16 serial LCD (KS-0074 based)
150 int "Number of lines on the LCD (1-2)"
[all …]
/linux/arch/arm/boot/dts/marvell/
H A Darmada-385-atl-x530.dts1 // SPDX-License-Identifier: (GPL-2.0 OR MIT)
4 (x530/AT-GS980MX)
9 /dts-v1/;
10 #include "armada-385.dtsi"
12 #include <dt-bindings/gpio/gpio.h>
15 model = "x530/AT-GS980MX";
19 stdout-path = "serial1:115200n8";
32 internal-regs {
34 pinctrl-names = "default";
35 pinctrl-0 = <&i2c0_pins>;
[all …]
/linux/include/linux/
H A Di2c.h1 /* SPDX-License-Identifier: GPL-2.0-or-later */
3 * i2c.h - definitions for the Linux i2c bus interface
4 * Copyright (C) 1995-2000 Simon G. Vogl
5 * Copyright (C) 2013-2019 Wolfram Sang <wsa@kernel.org>
30 /* --- General options ------------------------------------------------ */
69 * i2c_master_recv - issue a single I2C message in master receive mode
83 * i2c_master_recv_dmasafe - issue a single I2C message in master receive mode
99 * i2c_master_send - issue a single I2C message in master transmit mode
113 * i2c_master_send_dmasafe - issue a single I2C message in master transmit mode
195 * struct i2c_device_identity - i2c client device identification
[all …]
/linux/arch/arm/boot/dts/ti/omap/
H A Domap5-l4.dtsi2 compatible = "ti,omap5-l4-cfg", "simple-pm-bus";
3 power-domains = <&prm_core>;
5 clock-names = "fck";
9 reg-names = "ap", "la", "ia0";
10 #address-cells = <1>;
11 #size-cells = <1>;
12 ranges = <0x00000000 0x4a000000 0x080000>, /* segment 0 */
13 <0x00080000 0x4a080000 0x080000>, /* segment 1 */
14 <0x00100000 0x4a100000 0x080000>, /* segment 2 */
15 <0x00180000 0x4a180000 0x080000>, /* segment 3 */
[all …]
H A Dam33xx-l4.dtsi2 compatible = "ti,am33xx-l4-wkup", "simple-pm-bus";
3 power-domains = <&prm_wkup>;
5 clock-names = "fck";
10 reg-names = "ap", "la", "ia0", "ia1";
11 #address-cells = <1>;
12 #size-cells = <1>;
13 ranges = <0x00000000 0x44c00000 0x100000>, /* segment 0 */
14 <0x00100000 0x44d00000 0x100000>, /* segment 1 */
15 <0x00200000 0x44e00000 0x100000>; /* segment 2 */
17 segment@0 { /* 0x44c00000 */
[all …]
H A Domap4-l4.dtsi1 // SPDX-License-Identifier: GPL-2.0
3 compatible = "ti,omap4-l4-cfg", "simple-pm-bus";
4 power-domains = <&prm_core>;
6 clock-names = "fck";
10 reg-names = "ap", "la", "ia0";
11 #address-cells = <1>;
12 #size-cells = <1>;
13 ranges = <0x00000000 0x4a000000 0x080000>, /* segment 0 */
14 <0x00080000 0x4a080000 0x080000>, /* segment 1 */
15 <0x00100000 0x4a100000 0x080000>, /* segment 2 */
[all …]
H A Dam437x-l4.dtsi2 compatible = "ti,am4-l4-wkup", "simple-pm-bus";
3 power-domains = <&prm_wkup>;
5 clock-names = "fck";
10 reg-names = "ap", "la", "ia0", "ia1";
11 #address-cells = <1>;
12 #size-cells = <1>;
13 ranges = <0x00000000 0x44c00000 0x100000>, /* segment 0 */
14 <0x00100000 0x44d00000 0x100000>, /* segment 1 */
15 <0x00200000 0x44e00000 0x100000>; /* segment 2 */
17 segment@0 { /* 0x44c00000 */
[all …]
H A Ddra7-l4.dtsi2 compatible = "ti,dra7-l4-cfg", "simple-pm-bus";
3 power-domains = <&prm_coreaon>;
5 clock-names = "fck";
9 reg-names = "ap", "la", "ia0";
10 #address-cells = <1>;
11 #size-cells = <1>;
12 ranges = <0x00000000 0x4a000000 0x100000>, /* segment 0 */
13 <0x00100000 0x4a100000 0x100000>, /* segment 1 */
14 <0x00200000 0x4a200000 0x100000>; /* segment 2 */
16 segment@0 { /* 0x4a000000 */
[all …]
/linux/drivers/usb/misc/
H A Dusb251xb.c1 // SPDX-License-Identifier: GPL-2.0+
3 * Driver for Microchip USB251xB USB 2.0 Hi-Speed Hub Controller
9 * a not-accepted patch by Fabien Lahoudere, see:
14 #include <linux/gpio/consumer.h>
15 #include <linux/gpio/driver.h>
95 #define USB251XB_DEF_PORT_MAP_34 0x00 /* USB251{3B/i,4B/i,7/i} only */
110 #define DRIVER_DESC "Microchip USB 2.0 Hi-Speed Hub Controller"
217 .port_cnt = 7,
225 .port_cnt = 7,
234 if (dev->type == &i2c_adapter_type) { in usb251xb_check_dev_children()
[all …]
H A DKconfig1 # SPDX-License-Identifier: GPL-2.0
13 Technologies USS-720 chip. These cables are plugged into your USB
19 printers may be connected to the USS-720 in this mode. The generic
30 Say Y here if you own an USS-720 USB->Parport cable and intend to
72 tristate "USB 7-Segment LED Display"
74 Say Y here if you have a USB 7-Segment Display by Delcom
107 driver supports the pre-programmed devices (incl. firmware)
108 by AK Modul-Bus Computer GmbH.
110 Please see: https://www.ak-modul-bus.de/stat/mikrocontroller.html
154 which reports VBUS attach/detach events and has USB-based
[all …]
/linux/drivers/media/i2c/
H A Dov772x.c1 // SPDX-License-Identifier: GPL-2.0
12 * Copyright 2006-7 Jonathan Corbet <corbet@lwn.net>
19 #include <linux/gpio/consumer.h>
26 #include <linux/v4l2-mediabus.h>
31 #include <media/v4l2-ctrls.h>
32 #include <media/v4l2-device.h>
33 #include <media/v4l2-event.h>
34 #include <media/v4l2-fwnode.h>
35 #include <media/v4l2-image-sizes.h>
36 #include <media/v4l2-subdev.h>
[all …]
/linux/drivers/scsi/qla2xxx/
H A Dqla_fw.h1 /* SPDX-License-Identifier: GPL-2.0-only */
4 * Copyright (c) 2003-2014 QLogic Corporation
10 #include <linux/nvme-fc.h>
78 /* Bits 15-0 of word 0 */
80 /* Bits 15-0 of word 3 */
87 uint16_t prli_nvme_svc_param_word_0; /* Bits 15-0 of word 0 */
88 uint16_t prli_nvme_svc_param_word_3; /* Bits 15-0 of word 3 */
111 u8 prli_svc_param_word_0[2]; /* Bits 15-0 of word 0 */
112 u8 prli_svc_param_word_3[2]; /* Bits 15-0 of word 3 */
164 * BIT 1-15 =
[all …]
/linux/drivers/gpio/
H A Dgpio-adnp.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * Copyright (C) 2011-2012 Avionic Design GmbH
6 #include <linux/gpio/driver.h>
15 #define GPIO_DDR(gpio) (0x00 << (gpio)->reg_shift) argument
16 #define GPIO_PLR(gpio) (0x01 << (gpio)->reg_shift) argument
17 #define GPIO_IER(gpio) (0x02 << (gpio)->reg_shift) argument
18 #define GPIO_ISR(gpio) (0x03 << (gpio)->reg_shift) argument
19 #define GPIO_PTR(gpio) (0x04 << (gpio)->reg_shift) argument
23 struct gpio_chip gpio; member
41 err = i2c_smbus_read_byte_data(adnp->client, offset); in adnp_read()
[all …]
/linux/drivers/fsi/
H A Dfsi-master-ast-cf.c1 // SPDX-License-Identifier: GPL-2.0+
11 #include <linux/gpio/consumer.h>
20 #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/ti/
H A Dk3-am62p.dtsi1 // SPDX-License-Identifier: GPL-2.0-only OR MIT
5 * Copyright (C) 2023-2024 Texas Instruments Incorporated - https://www.ti.com/
8 #include <dt-bindings/gpio/gpio.h>
9 #include <dt-bindings/interrupt-controller/irq.h>
10 #include <dt-bindings/interrupt-controller/arm-gic.h>
11 #include <dt-bindings/soc/ti,sci_pm_domain.h>
13 #include "k3-pinctrl.h"
18 interrupt-parent = <&gic500>;
19 #address-cells = <2>;
20 #size-cells = <2>;
[all …]
H A Dk3-j721s2.dtsi1 // SPDX-License-Identifier: GPL-2.0-only OR MIT
7 * Copyright (C) 2021-2024 Texas Instruments Incorporated - https://www.ti.com/
11 #include <dt-bindings/interrupt-controller/irq.h>
12 #include <dt-bindings/interrupt-controller/arm-gic.h>
13 #include <dt-bindings/soc/ti,sci_pm_domain.h>
15 #include "k3-pinctrl.h"
21 interrupt-parent = <&gic500>;
22 #address-cells = <2>;
23 #size-cells = <2>;
28 #address-cells = <1>;
[all …]
/linux/arch/mips/include/asm/octeon/
H A Dcvmx.h7 * Copyright (c) 2003-2017 Cavium, Inc.
14 * AS-IS and WITHOUT ANY WARRANTY; without even the implied warranty
21 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
44 #define CVMX_ADD_SEG32(segment, add) \ argument
45 (((int32_t)segment << 31) | (int32_t)(add))
50 #define CVMX_ADD_SEG(segment, add) \ argument
51 ((((uint64_t)segment) << 62) | (add))
56 #include <asm/octeon/cvmx-asm.h>
57 #include <asm/octeon/cvmx-packet.h>
58 #include <asm/octeon/cvmx-sysinfo.h>
[all …]
/linux/Documentation/devicetree/bindings/bus/
H A Dqcom,ebi2.yaml1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
3 ---
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
11 external memory (such as NAND or other memory-mapped peripherals) whereas
22 unused they can be left unconnected or remuxed to be used as GPIO or in some
25 Also CS1 and CS2 has -A and -B signals. Why they have that is unclear to me.
31 CS0 GPIO134 0x1a800000-0x1b000000 (8MB)
32 CS1 GPIO39 (A) / GPIO123 (B) 0x1b000000-0x1b800000 (8MB)
33 CS2 GPIO40 (A) / GPIO124 (B) 0x1b800000-0x1c000000 (8MB)
34 CS3 GPIO133 0x1d000000-0x25000000 (128 MB)
[all …]
/linux/arch/arm/boot/dts/nxp/imx/
H A Dimx6dl-yapp43-common.dtsi1 // SPDX-License-Identifier: GPL-2.0
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/interrupt-controller/irq.h>
7 #include <dt-bindings/input/input.h>
8 #include <dt-bindings/leds/common.h>
9 #include <dt-bindings/pwm/pwm.h>
20 compatible = "pwm-backlight";
22 brightness-levels = <0 32 64 128 255>;
23 default-brightness-level = <32>;
24 num-interpolated-steps = <8>;
[all …]
/linux/drivers/staging/fbtft/
H A Dfb_ssd1351.c1 // SPDX-License-Identifier: GPL-2.0
30 if (par->pdata && in init_display()
31 par->pdata->display.backlight == FBTFT_ONBOARD_BACKLIGHT) { in init_display()
32 /* module uses onboard GPIO for panel power */ in init_display()
33 par->fbtftops.register_backlight = register_onboard_backlight; in init_display()
36 par->fbtftops.reset(par); in init_display()
47 write_reg(par, 0xb5, 0x00); /* Set GPIO */ in init_display()
50 write_reg(par, 0xb4, 0xa0, 0xb5, 0x55); /* Set Segment Low Voltage */ in init_display()
73 if (par->fbtftops.init_display != init_display) { in set_var()
78 remap = 0x60 | (par->bgr << 2); /* Set Colour Depth */ in set_var()
[all …]
/linux/drivers/i2c/
H A Di2c-core-base.c1 // SPDX-License-Identifier: GPL-2.0-or-later
5 * Copyright (C) 1995-99 Simon G. Vogl
10 * Copyright (C) 2013-2017 Wolfram Sang <wsa@kernel.org>
13 #define pr_fmt(fmt) "i2c-core: " fmt
15 #include <dt-bindings/i2c/i2c.h>
17 #include <linux/clk/clk-conf.h>
23 #include <linux/gpio/consumer.h>
25 #include <linux/i2c-smbus.h>
46 #include "i2c-core.h"
111 while (id->name[0]) { in i2c_match_id()
[all …]
/linux/drivers/gpu/drm/solomon/
H A Dssd130x.c1 // SPDX-License-Identifier: GPL-2.0-only
16 #include <linux/gpio/consumer.h>
87 #define SSD130X_SET_CLOCK_FREQ_MASK GENMASK(7, 4)
91 #define SSD130X_SET_PRECHARGE_PERIOD2_MASK GENMASK(7, 4)
158 .default_dclk_frq = 7,
246 return regmap_bulk_write(ssd130x->regmap, SSD13XX_DATA, values, count); in ssd130x_write_data()
268 ret = regmap_write(ssd130x->regmap, SSD13XX_COMMAND, value); in ssd130x_write_cmd()
271 } while (--count); in ssd130x_write_cmd()
283 u8 col_end = col_start + cols - 1; in ssd130x_set_col_range()
286 if (col_start == ssd130x->col_start && col_end == ssd130x->col_end) in ssd130x_set_col_range()
[all …]
/linux/drivers/video/fbdev/
H A Dssd1307fb.c1 // SPDX-License-Identifier: GPL-2.0-or-later
11 #include <linux/gpio/consumer.h>
122 array->type = type; in ssd1307fb_alloc_array()
136 dev_err(&client->dev, "Couldn't send I2C command.\n"); in ssd1307fb_write_array()
150 return -ENOMEM; in ssd1307fb_write_cmd()
152 array->data[0] = cmd; in ssd1307fb_write_cmd()
163 u8 col_end = col_start + cols - 1; in ssd1307fb_set_col_range()
166 if (col_start == par->col_start && col_end == par->col_end) in ssd1307fb_set_col_range()
169 ret = ssd1307fb_write_cmd(par->client, SSD1307FB_SET_COL_RANGE); in ssd1307fb_set_col_range()
173 ret = ssd1307fb_write_cmd(par->client, col_start); in ssd1307fb_set_col_range()
[all …]

123