Home
last modified time | relevance | path

Searched +full:register +full:- +full:bit +full:- +full:led (Results 1 – 25 of 415) sorted by relevance

12345678910>>...17

/linux/arch/mips/boot/dts/mti/
H A Dsead3.dts1 // SPDX-License-Identifier: GPL-2.0
2 /dts-v1/;
8 #include <dt-bindings/interrupt-controller/mips-gic.h>
11 #address-cells = <1>;
12 #size-cells = <1>;
13 compatible = "mti,sead-3";
14 model = "MIPS SEAD-3";
17 stdout-path = "serial1:115200";
36 cpu_intc: interrupt-controller {
37 compatible = "mti,cpu-interrupt-controller";
[all …]
/linux/drivers/leds/
H A Dleds-mt6323.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * LED driver for Mediatek MT6323 PMIC
17 * Register field for TOP_CKPDN0 to enable
18 * 32K clock common for LED device.
20 #define RG_DRV_32K_CK_PDN BIT(11)
21 #define RG_DRV_32K_CK_PDN_MASK BIT(11)
24 #define RG_VWLED_1M_CK_PDN BIT(0)
25 #define RG_VWLED_32K_CK_PDN BIT(12)
26 #define RG_VWLED_6M_CK_PDN BIT(13)
29 * Register field for TOP_CKPDN2 to enable
[all …]
H A Dleds-pca955x.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * Copyright 2007-2008 Extreme Engineering Solutions, Inc.
5 * Author: Nate Case <ncase@xes-inc.com>
7 * LED driver for various PCA955x I2C LED drivers
11 * Device Description 7-bit slave address
12 * ------ ----------- -------------------
13 * PCA9550 2-bit driver 0x60 .. 0x61
14 * PCA9551 8-bit driver 0x60 .. 0x67
15 * PCA9552 16-bit driver 0x60 .. 0x67
16 * PCA9553/01 4-bit driver 0x62
[all …]
H A Dleds-lm3532.c1 // SPDX-License-Identifier: GPL-2.0
2 // TI LM3532 LED driver
3 // Copyright (C) 2019 Texas Instruments Incorporated - https://www.ti.com/
16 #define LM3532_NAME "lm3532-led"
48 #define LM3532_CTRL_A_ENABLE BIT(0)
49 #define LM3532_CTRL_B_ENABLE BIT(1)
50 #define LM3532_CTRL_C_ENABLE BIT(2)
54 #define LM3532_PWM_ZONE_0_EN BIT(2)
55 #define LM3532_PWM_ZONE_1_EN BIT(3)
56 #define LM3532_PWM_ZONE_2_EN BIT(4)
[all …]
H A Dleds-st1202.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * LED driver for STMicroelectronics LED1202 chip
5 * Copyright (C) 2024 Remote-Tech Ltd. UK
24 #define ST1202_CONFIG_REG_PATS BIT(7)
25 /* PATSR: Pattern sequence runs (self-clear when sequence is finished) */
26 #define ST1202_CONFIG_REG_PATSR BIT(6)
27 #define ST1202_CONFIG_REG_SHFT BIT(3)
29 #define ST1202_DEV_ENABLE_ON BIT(0)
30 #define ST1202_DEV_ENABLE_RESET BIT(7)
62 struct device *dev = &chip->client->dev; in st1202_read_reg()
[all …]
H A Dleds-lm3692x.c1 // SPDX-License-Identifier: GPL-2.0
2 // TI LM3692x LED chip family driver
3 // Copyright (C) 2017-18 Texas Instruments Incorporated - https://www.ti.com/
34 #define LM3692X_SW_RESET BIT(0)
35 #define LM3692X_DEVICE_EN BIT(0)
36 #define LM3692X_LED1_EN BIT(1)
37 #define LM3692X_LED2_EN BIT(2)
38 #define LM36923_LED3_EN BIT(3)
43 #define LM3692X_BL_ADJ_POL BIT(0)
45 #define LM3692X_RAMP_RATE_250us BIT(1)
[all …]
H A Dleds-aw2013.c1 // SPDX-License-Identifier: GPL-2.0+
2 // Driver for Awinic AW2013 3-channel LED driver
14 /* Reset and ID register */
19 /* Global control register */
21 #define AW2013_GCR_ENABLE BIT(0)
23 /* LED channel enable register */
25 #define AW2013_LCTR_LE(x) BIT((x))
27 /* LED channel control registers */
29 #define AW2013_LCFG_IMAX_MASK (BIT(0) | BIT(1)) // Should be 0-3
30 #define AW2013_LCFG_MD BIT(4)
[all …]
H A Dleds-lm3697.c1 // SPDX-License-Identifier: GPL-2.0
2 // TI LM3697 LED chip family driver
3 // Copyright (C) 2018 Texas Instruments Incorporated - https://www.ti.com/
15 #include <linux/leds-ti-lmu-common.h>
34 #define LM3697_SW_RESET BIT(0)
36 #define LM3697_CTRL_A_EN BIT(0)
37 #define LM3697_CTRL_B_EN BIT(1)
47 * struct lm3697_led -
48 * @hvled_strings: Array of LED strings associated with a control bank
49 * @label: LED label
[all …]
H A Dleds-tca6507.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * leds-tca6507
5 * The TCA6507 is a programmable LED controller that can drive 7
9 * blink or double-blink.
12 * out-only (pull-up resistor required) or as an LED with variable
13 * brightness and hardware-assisted blinking.
17 * 500usec intervals in each 8msec that the led is 'on'. The levels
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'.
[all …]
H A Dleds-syscon.c1 // SPDX-License-Identifier: GPL-2.0-or-later
19 * struct syscon_led - state container for syscon based LEDs
20 * @cdev: LED class device for this LED
21 * @map: regmap to access the syscon device backing this LED
22 * @offset: the offset into the syscon regmap for the LED register
23 * @mask: the bit in the register corresponding to the LED
24 * @state: current state of the LED
44 sled->state = false; in syscon_led_set()
46 val = sled->mask; in syscon_led_set()
47 sled->state = true; in syscon_led_set()
[all …]
/linux/drivers/pci/
H A Dnpem.c1 // SPDX-License-Identifier: GPL-2.0
3 * PCIe Enclosure management driver created for LED interfaces based on
5 * they blink - it is hardware defined.
13 * _DSM Definitions for PCIe SSD Status LED
16 * Two backends are supported to manipulate indications: Direct NPEM register
20 * Copyright (c) 2021-2022 Dell Inc.
21 * Copyright (c) 2023-2024 Intel Corporation
39 u32 bit; member
65 /* _DSM PCIe SSD LED States correspond to NPEM register values */
81 for (ind = inds; ind->bit; ind++)
[all …]
/linux/arch/arm/boot/dts/arm/
H A Dintegrator.dtsi1 // SPDX-License-Identifier: GPL-2.0
7 #address-cells = <1>;
8 #size-cells = <1>;
15 core-module@10000000 {
16 compatible = "arm,core-module-integrator", "syscon", "simple-mfd";
19 #address-cells = <1>;
20 #size-cells = <1>;
22 /* Use core module LED to indicate CPU load */
23 led@c,0 {
24 compatible = "register-bit-led";
[all …]
H A Darm-realview-eb.dtsi23 #include <dt-bindings/interrupt-controller/irq.h>
24 #include <dt-bindings/gpio/gpio.h>
27 #address-cells = <1>;
28 #size-cells = <1>;
29 compatible = "arm,realview-eb";
48 vmmc: regulator-vmmc {
49 compatible = "regulator-fixed";
50 regulator-name = "vmmc";
51 regulator-min-microvolt = <3300000>;
52 regulator-max-microvolt = <3300000>;
[all …]
H A Dversatile-ab.dts1 // SPDX-License-Identifier: GPL-2.0
2 /dts-v1/;
6 compatible = "arm,versatile-ab";
7 #address-cells = <1>;
8 #size-cells = <1>;
9 interrupt-parent = <&vic>;
19 stdout-path = &uart0;
27 xtal24mhz: clock-24000000 {
28 #clock-cells = <0>;
29 compatible = "fixed-clock";
[all …]
H A Darm-realview-pbx.dtsi23 #include <dt-bindings/interrupt-controller/irq.h>
24 #include <dt-bindings/gpio/gpio.h>
27 #address-cells = <1>;
28 #size-cells = <1>;
29 compatible = "arm,realview-pbx";
49 vmmc: regulator-vmmc {
50 compatible = "regulator-fixed";
51 regulator-name = "vmmc";
52 regulator-min-microvolt = <3300000>;
53 regulator-max-microvolt = <3300000>;
[all …]
H A Darm-realview-pb1176.dts23 /dts-v1/;
24 #include <dt-bindings/interrupt-controller/irq.h>
25 #include <dt-bindings/gpio/gpio.h>
28 #address-cells = <1>;
29 #size-cells = <1>;
31 compatible = "arm,realview-pb1176";
50 vmmc: regulator-vmmc {
51 compatible = "regulator-fixed";
52 regulator-name = "vmmc";
53 regulator-min-microvolt = <3300000>;
[all …]
/linux/arch/arm64/boot/dts/arm/
H A Djuno-motherboard.dtsi4 * Copyright (c) 2013-2014 ARM Ltd
11 mb_clk24mhz: clock-24000000 {
12 compatible = "fixed-clock";
13 #clock-cells = <0>;
14 clock-frequency = <24000000>;
15 clock-output-names = "juno_mb:clk24mhz";
18 mb_clk25mhz: clock-25000000 {
19 compatible = "fixed-clock";
20 #clock-cells = <0>;
21 clock-frequency = <25000000>;
[all …]
/linux/drivers/leds/flash/
H A Dleds-lm3601x.c1 // SPDX-License-Identifier: GPL-2.0
2 // Flash and torch driver for Texas Instruments LM3601X LED
4 // Copyright (C) 2018 Texas Instruments Incorporated - https://www.ti.com/
9 #include <linux/led-class-flash.h>
25 #define LM3601X_SW_RESET BIT(7)
29 #define LM3601X_MODE_IR_DRV BIT(0)
30 #define LM3601X_MODE_TORCH BIT(1)
31 #define LM3601X_MODE_STROBE (BIT(0) | BIT(1))
32 #define LM3601X_STRB_EN BIT(2)
33 #define LM3601X_STRB_EDGE_TRIG BIT(3)
[all …]
H A Dleds-sy7802.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * Silergy SY7802 flash LED driver with an I2C interface
11 #include <linux/led-class-flash.h>
39 #define SY7802_LEDS_MASK(_id) (BIT(_id) << SY7802_LEDS_SHIFT)
66 #define SY7802_FLAG_TIMEOUT BIT(0)
67 #define SY7802_FLAG_THERMAL_SHUTDOWN BIT(1)
68 #define SY7802_FLAG_LED_FAULT BIT(2)
69 #define SY7802_FLAG_TX1_INTERRUPT BIT(3)
70 #define SY7802_FLAG_TX2_INTERRUPT BIT(4)
71 #define SY7802_FLAG_LED_THERMAL_FAULT BIT(5)
[all …]
H A Dleds-mt6360.c1 // SPDX-License-Identifier: GPL-2.0-only
8 #include <linux/led-class-flash.h>
9 #include <linux/led-class-multicolor.h>
15 #include <media/v4l2-flash-led-class.h>
29 #define MT6360_ISNK_ENMASK(_led_no) BIT(7 - (_led_no))
31 #define MT6360_CHRINDSEL_MASK BIT(3)
39 #define MT6360_REG_FLEDBASE(_id) (0x372 + 4 * (_id - MT6360_LED_FLASH1))
47 #define MT6360_TORCHEN_MASK BIT(3)
48 #define MT6360_STROBEN_MASK BIT(2)
49 #define MT6360_FLCSEN_MASK(_id) BIT(MT6360_LED_FLASH2 - _id)
[all …]
/linux/arch/arm/boot/dts/intel/ixp/
H A Dintel-ixp42x-freecom-fsg-3.dts1 // SPDX-License-Identifier: ISC
3 * Device Tree file for the Freecom FSG-3 router.
8 /dts-v1/;
10 #include "intel-ixp42x.dtsi"
11 #include <dt-bindings/input/input.h>
14 model = "Freecom FSG-3";
15 compatible = "freecom,fsg-3", "intel,ixp42x";
16 #address-cells = <1>;
17 #size-cells = <1>;
28 stdout-path = "uart0:115200n8";
[all …]
/linux/arch/sparc/include/asm/
H A Dfhc.h1 /* SPDX-License-Identifier: GPL-2.0 */
2 /* fhc.h: FHC and Clock board register definitions.
10 /* Clock board register offsets. */
20 #define CLOCK_CTRL_LLED 0x04 /* Left LED, 0 == on */
21 #define CLOCK_CTRL_MLED 0x02 /* Mid LED, 1 == on */
22 #define CLOCK_CTRL_RLED 0x01 /* RIght LED, 1 == on */
24 /* Firehose controller register offsets */
30 #define FHC_PREGS_RCS 0x10UL /* FHC Reset Control/Status Register */
39 #define FHC_PREGS_CTRL 0x20UL /* FHC Control Register */
44 #define FHC_CONTROL_DCD 0x00008000 /* DC-->DC Converter Disable */
[all …]
/linux/include/linux/
H A Dleds.h1 /* SPDX-License-Identifier: GPL-2.0-only */
3 * Driver model for leds and led triggers
11 #include <dt-bindings/leds/common.h>
29 * LED Core
47 * struct led_lookup_data - represents a single LED lookup entry
49 * @list: internal list of all LED lookup entries
50 * @provider: name of led_classdev providing the LED
51 * @dev_id: name of the device associated with this LED
52 * @con_id: name of the LED from the device's point of view
66 * with in-driver hard-coded LED names used as a fallback when
[all …]
/linux/drivers/input/keyboard/
H A Dqt2160.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * qt2160.c - Atmel AT42QT2160 Touch Sense Controller
35 #define QT2160_CYCLE_INTERVAL 2000 /* msec - 2 sec */
72 struct qt2160_led *led = container_of(cdev, struct qt2160_led, cdev); in qt2160_led_set() local
73 struct qt2160_data *qt2160 = led->qt2160; in qt2160_led_set()
74 struct i2c_client *client = qt2160->client; in qt2160_led_set()
77 if (value != led->brightness) { in qt2160_led_set()
81 drive |= BIT(led->id); in qt2160_led_set()
82 pwmen |= BIT(led->id); in qt2160_led_set()
85 drive &= ~BIT(led->id); in qt2160_led_set()
[all …]
/linux/drivers/net/ethernet/marvell/
H A Dskge.h1 /* SPDX-License-Identifier: GPL-2.0 */
131 /* B0_CTST 16 bit Control/Status register */
133 CS_CLK_RUN_HOT = 1<<13,/* CLK_RUN hot m. (YUKON-Lite only) */
134 CS_CLK_RUN_RST = 1<<12,/* CLK_RUN reset (YUKON-Lite only) */
135 CS_CLK_RUN_ENA = 1<<11,/* CLK_RUN enable (YUKON-Lite only) */
138 CS_BUS_SLOT_SZ = 1<<8, /* Slot Size 0/1 = 32/64 bit slot */
142 CS_STOP_MAST = 1<<4, /* Command Bit to stop the master */
148 /* B0_LED 8 Bit LED register */
149 /* Bit 7.. 2: reserved */
150 LED_STAT_ON = 1<<1, /* Status LED on */
[all …]

12345678910>>...17