| /linux/Documentation/leds/ | 
| H A D | leds-lm3556.rst | 16 There are 3 functions in LM3556, Flash, Torch and Indicator.47 Torch Mode
 50 In Torch Mode, the current source(LED) is programmed via the CURRENT CONTROL
 51 REGISTER(0x09).Torch Mode is activated by the ENABLE REGISTER(0x0A) or by the
 52 hardware TORCH input.
 54 LM3556 torch can be controlled through /sys/class/leds/torch/brightness file.
 55 * if TORCH pin is enabled, below example control brightness only,
 56 and ON / OFF will be controlled by TORCH pin.
 58 Torch Example:
 62 	#echo 0 > /sys/class/leds/torch/brightness
 [all …]
 
 | 
| H A D | leds-class-flash.rst | 5 Some LED devices provide two modes - torch and flash. In the LED subsystem7 and LED Flash class respectively. The torch mode related features are enabled
 68 		constraints for the LED in TORCH mode
 
 | 
| /linux/drivers/leds/flash/ | 
| H A D | Kconfig | 40 	  of flash, torch and indicator classes.50 	  and torch mode.
 62 	  Independent current sources supply for each flash LED support torch
 71 	  Support 2 channels and torch/strobe mode.
 102 	  RT4505 includes torch and flash functions with programmable current.
 107 	tristate "LED support for Richtek RT8515 flash/torch LED"
 112 	  and torch LEDs found on some mobile phones.
 131 	  SY7802 includes torch and flash functions with programmable current.
 
 | 
| H A D | leds-rt8515.c | 3  * LED driver for Richtek RT8515 flash/torch white LEDs15  * RTS (resistance torch setting?) is 39 kOhm
 40 /* The maximum intensity is 1-16 for flash and 1-100 for torch */
 89 /* This is setting the torch light level */
 105 		/* Max torch brightness requested */  in rt8515_led_brightness_set()
 136 	/* After this the torch LED will be disabled */  in rt8515_led_flash_strobe_set()
 301 	/* ENT - Enable Torch line */  in rt8515_probe()
 305 				     "cannot get ENT (enable torch) GPIO\n");  in rt8515_probe()
 
 | 
| H A D | leds-max77693.c | 42 	TORCH,  enumerator83 	/* maximum torch current values for FLED outputs */
 162 			 * Enable hw triggering also for torch mode, as some  in max77693_set_mode_reg()
 163 			 * camera sensors use torch led to fathom ambient light  in max77693_set_mode_reg()
 212 	 * strobing on each subsequent torch mode setting.  in max77693_add_mode()
 273 	max77693_distribute_currents(led, fled_id, TORCH, micro_amp,  in max77693_set_torch_current()
 399 	 * Initialize only flash current. Torch current doesn't  in max77693_setup()
 475 				"Failed to clear torch mode (%d)\n",  in max77693_led_brightness_set()
 483 			"Failed to set torch current (%d)\n",  in max77693_led_brightness_set()
 491 			"Failed to set torch mode (%d)\n",  in max77693_led_brightness_set()
 
 | 
| H A D | leds-lm3601x.c | 2 // Flash and torch driver for Texas Instruments LM3601X LED80  * @torch_current_max: maximum current for the torch
 83  * @led_mode: The mode to enable either IR or Torch
 352 					"torch" : "infrared";  in lm3601x_register_leds()
 392 			 "Max torch current set too high (%d vs %d)\n",  in lm3601x_parse_node()
 
 | 
| H A D | leds-sy7802.c | 123 		dev_warn(chip->dev, "Cannot set torch brightness whilst strobe is enabled\n");  in sy7802_torch_brightness_set()141 	/* Disable torch to apply brightness */  in sy7802_torch_brightness_set()
 207 		dev_warn(chip->dev, "Cannot set strobe brightness whilst torch is enabled\n");  in sy7802_strobe_set()
 
 | 
| /linux/Documentation/devicetree/bindings/leds/ | 
| H A D | richtek,rt8515.yaml | 14   supports driving a white LED in flash or torch mode. The maximum28     description: A connection to the 'ENT' (enable torch) pin.
 43       resistors limits the maximum torch current. This must be set
 44       for the property torch-max-microamp to work, the RTS resistor
 46       torch LED.
 70         description: The maximum current for torch mode
 
 | 
| H A D | mediatek,mt6370-flashlight.yaml | 14   Add MT6370 flash LED driver include 2-channel flash LED support Torch/Strobe Mode.
 | 
| H A D | leds-rt4505.yaml | 14   torch and flash mode, respectively.
 | 
| H A D | leds-sgm3140.yaml | 14   levels for Flash and Torch modes.
 | 
| H A D | leds-lm3601x.txt | 16 		1 - Indicates a Torch (white LED) mode
 | 
| /linux/drivers/leds/trigger/ | 
| H A D | ledtrig-camera.c | 3  * Camera Flash and Torch On/Off Trigger39 	led_trigger_register_simple("torch", &ledtrig_torch);  in ledtrig_camera_init()
 51 MODULE_DESCRIPTION("LED Trigger for Camera Flash/Torch Control");
 
 | 
| H A D | Kconfig | 110 	tristate "LED Camera Flash/Torch Trigger"112 	  This allows LEDs to be controlled as a camera flash/torch device.
 113 	  This enables direct flash/torch on/off by the driver, kernel space.
 
 | 
| /linux/drivers/media/v4l2-core/ | 
| H A D | v4l2-flash-led-class.c | 50 	 * Indicator LEDs, unlike torch LEDs, are turned on/off basing on  in __intensity_to_led_brightness()65 	 * Indicator LEDs, unlike torch LEDs, are turned on/off basing on  in __led_brightness_to_intensity()
 68 	 * indicator LED as it may equal 0. For torch LEDs this function  in __led_brightness_to_intensity()
 71 	 * V4L2_FLASH_LED_MODE_NONE the cached torch intensity value is used.  in __led_brightness_to_intensity()
 131 		 * Update torch brightness only if in TORCH_MODE. In other modes  in v4l2_flash_update_led_brightness()
 132 		 * torch led is turned off, which would spuriously inform the  in v4l2_flash_update_led_brightness()
 240 			/* Turn the torch LED off */  in v4l2_flash_s_ctrl()
 272 		 * affect torch mode. Therefore, if not in the flash mode,  in v4l2_flash_s_ctrl()
 548 	 * torch mode. Synchronize strobe source setting only if not in torch  in __sync_device_with_v4l2_controls()
 549 	 * mode. For torch mode case it will get synchronized upon switching  in __sync_device_with_v4l2_controls()
 
 | 
| /linux/include/media/i2c/ | 
| H A D | lm3646.h | 30 /*  TOTAL TORCH Brightness Max50 /*  LED1 TORCH Brightness
 74  * @led1_torch_brt: led1 torch mode brightness, uA
 
 | 
| H A D | lm3560.h | 44 /*  TORCH BRT74  * @max_torch_brt: torch mode led brightness
 
 | 
| /linux/drivers/leds/ | 
| H A D | leds-tps6105x.c | 44 	/* This instance is not set for torch mode so bail out */  in tps6105x_led_probe()47 			"chip not in torch mode, exit probe");  in tps6105x_led_probe()
 63 	init_data.default_label = ":torch";  in tps6105x_led_probe()
 
 | 
| H A D | leds-lm3642.c | 165 /* torch */167 /* torch pin config for lm3642 */
 348 	/* torch */  in lm3642_probe()
 349 	chip->cdev_torch.name = "torch";  in lm3642_probe()
 352 	chip->cdev_torch.default_trigger = "torch";  in lm3642_probe()
 356 		dev_err(chip->dev, "failed to register torch\n");  in lm3642_probe()
 
 | 
| H A D | leds-lm355x.c | 235 				 "torch brt is set - ext. torch pin mode\n");  in lm355x_control()306 /* torch */
 459 	/* torch */  in lm355x_probe()
 460 	chip->cdev_torch.name = "torch";  in lm355x_probe()
 463 	chip->cdev_torch.default_trigger = "torch";  in lm355x_probe()
 
 | 
| /linux/Documentation/userspace-api/media/v4l/ | 
| H A D | ext-ctrls-flash.rst | 45 LED flash as torch48 LED flash may be used as torch in conjunction with another use case
 77       - Torch mode.
 126     Intensity of the flash LED in torch mode
 
 | 
| /linux/drivers/media/i2c/ | 
| H A D | lm3646.c | 237 	/* max torch current */  in lm3646_init_controls()323 	 * LED1 torch current setting  in lm3646_init_device()
 324 	 * LED2 torch current = Total(Max) torch current - LED1 torch current  in lm3646_init_device()
 
 | 
| /linux/include/linux/platform_data/ | 
| H A D | leds-lm355x.h | 48  *              lm3554-tx1/torch/gpio149  *              lm3556-torch
 
 | 
| /linux/drivers/video/backlight/ | 
| H A D | lm3639_bl.c | 218 /* torch */271 	/* torch off before flash control */  in lm3639_flash_brightness_set()
 372 	/* torch */  in lm3639_probe()
 379 		dev_err(&client->dev, "fail : torch register\n");  in lm3639_probe()
 
 | 
| /linux/drivers/staging/greybus/ | 
| H A D | light.c | 140 	/* If the channel is flash we need to get the attached torch channel */  in __gb_lights_flash_brightness_set()731 	/* we can only attach torch to a flash channel */  in __gb_lights_channel_torch_attach()
 735 	/* Move torch brightness to the destination */  in __gb_lights_channel_torch_attach()
 779 	 * If light have torch mode channel, this channel will be the led  in __gb_lights_flash_led_register()
 827 	 * Intensity constraints for flash related modes: flash, torch,  in gb_lights_channel_flash_config()
 893 	 * flash classdev, torch will be led classdev of the flash classdev.  in gb_lights_channel_register()
 975 	 * If it is not a flash related channel (flash, torch or indicator) we  in gb_lights_channel_config()
 
 |