/linux/Documentation/devicetree/bindings/leds/backlight/ |
H A D | pwm-backlight.yaml | 1 # SPDX-License-Identifier: GPL-2.0-only 3 --- 4 $id: http://devicetree.org/schemas/leds/backlight/pwm-backlight.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: pwm-backlight 10 - Lee Jones <lee@kernel.org> 11 - Daniel Thompson <daniel.thompson@linaro.org> 12 - Jingoo Han <jingoohan1@gmail.com> 15 - $ref: common.yaml# 19 const: pwm-backlight [all …]
|
/linux/include/ufs/ |
H A D | ufs_quirks.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 3 * Copyright (c) 2014-2016, The Linux Foundation. All rights reserved. 22 * ufs_dev_quirk - ufs device quirk info 42 * - As soon as SW sees the DL NAC error, it should schedule the error handler 43 * - Error handler would sleep for 50ms to see if there are any fatal errors 45 * - If there are fatal errors then SW does normal error recovery. 46 * - If there are no fatal errors then SW sends the NOP command to device 48 * - If NOP command times out, SW does normal error recovery 49 * - If NOP command succeed, skip the error handling. 61 * To workaround this issue, host should set its PA_TACTIVATE time to 1ms even [all …]
|
/linux/arch/arm64/boot/dts/rockchip/ |
H A D | rk3399-gru-chromebook.dtsi | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 3 * Google Gru-Chromebook shared properties 8 #include "rk3399-gru.dtsi" 11 pp900_ap: regulator-pp900-ap { 12 compatible = "regulator-fixed"; 13 regulator-name = "pp900_ap"; 16 regulator-always-on; 17 regulator-boot-on; 18 regulator-min-microvolt = <900000>; 19 regulator-max-microvolt = <900000>; [all …]
|
H A D | rk3588s-gameforce-ace.dts | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 3 /dts-v1/; 5 #include <dt-bindings/gpio/gpio.h> 6 #include <dt-bindings/input/linux-event-codes.h> 7 #include <dt-bindings/leds/common.h> 8 #include <dt-bindings/pinctrl/rockchip.h> 9 #include <dt-bindings/pwm/pwm.h> 10 #include <dt-bindings/thermal/thermal.h> 11 #include <dt-bindings/usb/pd.h> 16 chassis-type = "handset"; [all …]
|
H A D | rk3399-pinebook-pro.dts | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 8 /dts-v1/; 9 #include <dt-bindings/input/gpio-keys.h> 10 #include <dt-bindings/input/linux-event-codes.h> 11 #include <dt-bindings/pwm/pwm.h> 12 #include <dt-bindings/usb/pd.h> 13 #include <dt-bindings/leds/common.h> 18 compatible = "pine64,pinebook-pro", "rockchip,rk3399"; 19 chassis-type = "laptop"; 28 stdout-path = "serial2:1500000n8"; [all …]
|
H A D | rk3566-anbernic-rgxx3.dtsi | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 3 /dts-v1/; 5 #include <dt-bindings/gpio/gpio.h> 6 #include <dt-bindings/input/linux-event-codes.h> 7 #include <dt-bindings/leds/common.h> 8 #include <dt-bindings/pinctrl/rockchip.h> 9 #include <dt-bindings/soc/rockchip,vop2.h> 13 chassis-type = "handset"; 16 stdout-path = "serial2:1500000n8"; 19 adc_keys: adc-keys { [all …]
|
H A D | rk3566-powkiddy-rk2023.dtsi | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 3 /dts-v1/; 5 #include <dt-bindings/gpio/gpio.h> 6 #include <dt-bindings/input/linux-event-codes.h> 7 #include <dt-bindings/leds/common.h> 8 #include <dt-bindings/pinctrl/rockchip.h> 9 #include <dt-bindings/soc/rockchip,vop2.h> 13 chassis-type = "handset"; 21 adc-joystick { 22 compatible = "adc-joystick"; [all …]
|
/linux/drivers/video/backlight/ |
H A D | pwm_bl.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Simple PWM based backlight control, board code has to setup 4 * 1) pin configuration so PWM waveforms can output 8 #include <linux/delay.h> 16 #include <linux/pwm.h> 22 struct pwm_device *pwm; member 43 if (pb->enabled) in pwm_backlight_power_on() 46 if (pb->power_supply) { in pwm_backlight_power_on() 47 err = regulator_enable(pb->power_supply); in pwm_backlight_power_on() 49 dev_err(pb->dev, "failed to enable power supply\n"); in pwm_backlight_power_on() [all …]
|
H A D | mp3309c.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 5 * This driver support both analog (by I2C commands) and PWM dimming control 15 #include <linux/delay.h> 20 #include <linux/pwm.h> 92 /* I2C register #0 - Device enable */ in mp3309c_enable_device() 93 ret = regmap_update_bits(chip->regmap, REG_I2C_0, REG_I2C_0_EN, in mp3309c_enable_device() 99 * I2C register #1 - Set working mode: in mp3309c_enable_device() 100 * - enable/disable synchronous mode in mp3309c_enable_device() 101 * - set overvoltage protection (OVP) in mp3309c_enable_device() 104 if (chip->pdata->sync_mode) in mp3309c_enable_device() [all …]
|
/linux/Documentation/devicetree/bindings/display/panel/ |
H A D | panel-edp.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/display/panel/panel-edp.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Douglas Anderson <dianders@chromium.org> 14 to a Embedded DisplayPort AUX bus (see display/dp-aux-bus.yaml) without 17 board, either for second-sourcing purposes or to support multiple SKUs 51 :<T1>:<T2>: :<--T10-->:<T11>:<T12>: 52 : +-----------------------+---------+---------+ 53 eDP -----------+ Black video | Src vid | Blk vid + [all …]
|
/linux/drivers/leds/ |
H A D | leds-lm3533.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * leds-lm3533.c -- LM3533 LED driver 5 * Copyright (C) 2011-2012 Texas Instruments 61 return led->id + 2; in lm3533_led_get_ctrlbank_id() 66 return base + led->id; in lm3533_led_get_lv_reg() 71 return led->id; in lm3533_led_get_pattern() 88 dev_dbg(led->cdev.dev, "%s - %d\n", __func__, enable); in lm3533_led_pattern_enable() 90 mutex_lock(&led->mutex); in lm3533_led_pattern_enable() 92 state = test_bit(LM3533_LED_FLAG_PATTERN_ENABLE, &led->flags); in lm3533_led_pattern_enable() 104 ret = lm3533_update(led->lm3533, LM3533_REG_PATTERN_ENABLE, val, mask); in lm3533_led_pattern_enable() [all …]
|
H A D | leds-pca963x.c | 1 // SPDX-License-Identifier: GPL-2.0-only 6 * Author: Peter Meerwald <p.meerwald@bct-electronic.com> 9 * Based on leds-pca955x.c 11 * LED driver for the PCA9633 I2C LED driver (7-bit slave address 0x62) 12 * LED driver for the PCA9634/5 I2C LED driver (7-bit slave address set by hw.) 22 * or by adding the 'nxp,hw-blink' property to the DTS. 26 #include <linux/delay.h> 37 #define PCA963X_LED_OFF 0x0 /* LED driver off */ 39 #define PCA963X_LED_PWM 0x2 /* Controlled through PWM */ 40 #define PCA963X_LED_GRP_PWM 0x3 /* Controlled through PWM/GRPPWM */ [all …]
|
/linux/Documentation/devicetree/bindings/leds/ |
H A D | common.yaml | 1 # SPDX-License-Identifier: GPL-2.0-only 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Jacek Anaszewski <jacek.anaszewski@gmail.com> 11 - Pavel Machek <pavel@ucw.cz> 25 led-sources: 30 $ref: /schemas/types.yaml#/definitions/uint32-array 35 from the header include/dt-bindings/leds/common.h. If there is no 42 the header include/dt-bindings/leds/common.h. If there is no matching 48 function-enumerator: [all …]
|
/linux/arch/arm/boot/dts/samsung/ |
H A D | s5pv210-aries.dtsi | 1 // SPDX-License-Identifier: GPL-2.0 6 /dts-v1/; 7 #include <dt-bindings/gpio/gpio.h> 8 #include <dt-bindings/interrupt-controller/irq.h> 32 reserved-memory { 33 #address-cells = <1>; 34 #size-cells = <1>; 38 compatible = "shared-dma-pool"; 39 no-map; 44 compatible = "shared-dma-pool"; [all …]
|
/linux/drivers/pwm/ |
H A D | pwm-stmpe.c | 1 // SPDX-License-Identifier: GPL-2.0-only 9 #include <linux/delay.h> 15 #include <linux/pwm.h> 38 static int stmpe_24xx_pwm_enable(struct pwm_chip *chip, struct pwm_device *pwm) in stmpe_24xx_pwm_enable() argument 44 ret = stmpe_reg_read(stmpe_pwm->stmpe, STMPE24XX_PWMCS); in stmpe_24xx_pwm_enable() 46 dev_dbg(pwmchip_parent(chip), "error reading PWM#%u control\n", in stmpe_24xx_pwm_enable() 47 pwm->hwpwm); in stmpe_24xx_pwm_enable() 51 value = ret | BIT(pwm->hwpwm); in stmpe_24xx_pwm_enable() 53 ret = stmpe_reg_write(stmpe_pwm->stmpe, STMPE24XX_PWMCS, value); in stmpe_24xx_pwm_enable() 55 dev_dbg(pwmchip_parent(chip), "error writing PWM#%u control\n", in stmpe_24xx_pwm_enable() [all …]
|
/linux/drivers/gpu/drm/bridge/ |
H A D | ti-sn65dsi86.c | 1 // SPDX-License-Identifier: GPL-2.0 20 #include <linux/pwm.h> 134 * struct ti_sn65dsi86 - Platform data for ti-sn65dsi86 driver. 135 * @bridge_aux: AUX-bus sub device for MIPI-to-eDP bridge functionality. 136 * @gpio_aux: AUX-bus sub device for GPIO controller functionality. 137 * @aux_aux: AUX-bus sub device for eDP AUX channel functionality. 138 * @pwm_aux: AUX-bus sub device for PWM controller functionality. 153 * @ln_polrs: Value for the 4-bit LN_POLRS field of SN_ENH_FRAME_REG. 159 * serves double-duty of keeping track of the direction and 165 * each other's read-modify-write. [all …]
|
H A D | parade-ps8622.c | 1 // SPDX-License-Identifier: GPL-2.0-only 9 #include <linux/delay.h> 68 struct i2c_adapter *adap = client->adapter; in ps8622_set() 72 msg.addr = client->addr + page; in ps8622_set() 80 client->addr + page, reg, val, ret); in ps8622_set() 86 struct i2c_client *cl = ps8622->client; in ps8622_send_config() 137 /* [7:5] DCO_FTRNG=+-40% */ in ps8622_send_config() 147 /* Gitune=-37% */ in ps8622_send_config() 167 /* [7:6] Right-bar GPIO output strength is 8mA */ in ps8622_send_config() 179 err = ps8622_set(cl, 0x01, 0x02, 0x80 | ps8622->max_lane_count); in ps8622_send_config() [all …]
|
/linux/arch/arm/boot/dts/ti/omap/ |
H A D | logicpd-torpedo-baseboard.dtsi | 1 // SPDX-License-Identifier: GPL-2.0-only 5 compatible = "gpio-keys"; 6 pinctrl-names = "default"; 7 pinctrl-0 = <&gpio_key_pins &gpio_key_pins_wkup>; 13 wakeup-source; 20 wakeup-source; 27 wakeup-source; 34 wakeup-source; 39 compatible = "ti,omap-twl4030"; 45 compatible = "gpio-leds"; [all …]
|
H A D | am5729-beagleboneai.dts | 1 // SPDX-License-Identifier: GPL-2.0 3 * Copyright (C) 2014-2019 Texas Instruments Incorporated - https://www.ti.com/ 6 /dts-v1/; 9 #include "am57xx-commercial-grade.dtsi" 10 #include "dra74x-mmc-iodelay.dtsi" 11 #include "dra74-ipu-dsp-common.dtsi" 12 #include <dt-bindings/gpio/gpio.h> 13 #include <dt-bindings/interrupt-controller/irq.h> 14 #include <dt-bindings/pinctrl/dra.h> 18 compatible = "beagle,am5729-beagleboneai", "ti,am5728", [all …]
|
/linux/arch/mips/boot/dts/ingenic/ |
H A D | gcw0.dts | 1 // SPDX-License-Identifier: GPL-2.0 2 /dts-v1/; 5 #include <dt-bindings/clock/ingenic,tcu.h> 7 #include <dt-bindings/gpio/gpio.h> 8 #include <dt-bindings/iio/adc/ingenic,adc.h> 9 #include <dt-bindings/input/input.h> 29 stdout-path = "serial2:57600n8"; 33 compatible = "regulator-fixed"; 34 regulator-name = "vcc"; 36 regulator-min-microvolt = <3300000>; [all …]
|
/linux/drivers/acpi/x86/ |
H A D | lpss.c | 1 // SPDX-License-Identifier: GPL-2.0-only 12 #include <linux/clk-provider.h> 19 #include <linux/platform_data/x86/clk-lpss.h> 23 #include <linux/pwm.h> 26 #include <linux/delay.h> 33 #include <asm/intel-family.h> 70 * For some devices the DSDT AML code for another device turns off the device 71 * before our suspend handler runs, causing us to read/save all 1-s (0xffffffff) 115 * it can be powered off automatically whenever the last LPSS device goes down. 134 offset = pdata->dev_desc->prv_offset + LPSS_TX_INT; in lpss_uart_setup() [all …]
|
/linux/drivers/gpu/drm/radeon/ |
H A D | atombios.h | 2 * Copyright 2006-2007 Advanced Micro Devices, Inc. 214 UCHAR uaFirmWareSignature[4]; /*Signature to distinguish between Atombios and non-atombios, 397 …ONG ulPointerReturnFlag:1; // BYTE_3[7]=1 - Return the pointer to the right Data Block; BYTE_… 403 …ONG ulPointerReturnFlag:1; // BYTE_3[7]=1 - Return the pointer to the right Data Block; BYTE_… 410 …ULONG ulClock; //When returen, it's the re-calculated clock based on given Fb_div Post_Di… 504 …UCHAR ucInputFlag; //Input Flags. ucInputFlag[0] - Strobe(1)/Performance(0)… 536 #define ATOM_PLL_INPUT_FLAG_PLL_STROBE_MODE_EN 1 // 1-StrobeMode, 0-PerformanceMode 544 …bDiv; //Output:UPPER_WORD=FB_DIV_INTEGER, LOWER_WORD=FB_DIV_FRAC shl (16-FB_FRACTION_BITS) 549 … //Input : ATOM_PLL_INPUT_FLAG_PLL_STROBE_MODE_EN: 1-StrobeMode, 0-PerformanceMode 678 UCHAR ucAction; // 0: turn off encoder [all …]
|
/linux/arch/arm/boot/dts/nvidia/ |
H A D | tegra20-harmony.dts | 1 // SPDX-License-Identifier: GPL-2.0 2 /dts-v1/; 4 #include <dt-bindings/input/input.h> 18 stdout-path = "serial0:115200n8"; 37 hdmi-supply = <&vdd_5v0_hdmi>; 38 vdd-supply = <&hdmi_vdd_reg>; 39 pll-supply = <&hdmi_pll_reg>; 41 nvidia,ddc-i2c-bus = <&hdmi_ddc>; 42 nvidia,hpd-gpio = <&gpio TEGRA_GPIO(N, 7) 48 pinctrl-names = "default"; [all …]
|
/linux/drivers/gpu/drm/amd/include/ |
H A D | atombios.h | 2 * Copyright 2006-2007 Advanced Micro Devices, Inc. 107 #define ATOM_SCALER_DISABLE 0 //For Fudo, it's bypass and auto-cengter & no replication 108 #define ATOM_SCALER_CENTER 1 //For Fudo, it's bypass and auto-center & auto replication 110 #define ATOM_SCALER_MULTI_EX 3 //For Fudo only, it's multi-tap mode only used to drive TV or CV,… 222 UCHAR uaFirmWareSignature[4]; //Signature to distinguish between Atombios and non-atombios, 245 UCHAR uaFirmWareSignature[4]; //Signature to distinguish between Atombios and non-atombios, 427 …ONG ulPointerReturnFlag:1; // BYTE_3[7]=1 - Return the pointer to the right Data Block; BYTE_… 433 …ONG ulPointerReturnFlag:1; // BYTE_3[7]=1 - Return the pointer to the right Data Block; BYTE_… 440 …ULONG ulClock; //When returen, it's the re-calculated clock based on given Fb_div Post_Di… 538 …UCHAR ucInputFlag; //Input Flags. ucInputFlag[0] - Strobe(1)/Performance(0)… [all …]
|
/linux/arch/arm/boot/dts/nxp/imx/ |
H A D | imx6qdl-colibri.dtsi | 1 // SPDX-License-Identifier: GPL-2.0+ OR MIT 3 * Copyright 2014-2022 Toradex 8 #include <dt-bindings/gpio/gpio.h> 9 #include <dt-bindings/pwm/pwm.h> 18 /delete-property/ mmc2; 19 /delete-property/ mmc3; 23 compatible = "pwm-backlight"; 24 brightness-levels = <0 45 63 88 119 158 203 255>; 25 default-brightness-level = <4>; 26 enable-gpios = <&gpio3 26 GPIO_ACTIVE_HIGH>; /* Colibri BL_ON */ [all …]
|