/linux/Documentation/hwmon/ |
H A D | ucd9000.rst | 11 Addresses scanned: - 15 - http://focus.ti.com/lit/ds/symlink/ucd90120.pdf 16 - http://focus.ti.com/lit/ds/symlink/ucd90124.pdf 17 - http://focus.ti.com/lit/ds/symlink/ucd90160.pdf 18 - http://focus.ti.com/lit/ds/symlink/ucd90320.pdf 19 - http://focus.ti.com/lit/ds/symlink/ucd9090.pdf 20 - http://focus.ti.com/lit/ds/symlink/ucd90910.pdf 22 Author: Guenter Roeck <linux@roeck-us.net> 26 ----------- 31 sequences up to 12 independent voltage rails. The device integrates a 12-bit [all …]
|
/linux/drivers/hwmon/ |
H A D | corsair-psu.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * corsair-psu.c - Linux driver for Corsair power supplies with HID sensors interface 12 #include <linux/hwmon-sysfs.h> 29 * - commands are byte sized opcodes 30 * - length is the sum of all bytes of the commands/params 31 * - the micro-controller of most of these PSUs support concatenation in the request and reply, 33 * - the driver uses raw events to be accessible from userspace (though this is not really 35 * - a reply always starts with the length and command in the same order the request used it 36 * - length of the reply data is specific to the command used 37 * - some of the commands work on a rail and can be switched to a specific rail (0 = 12v, [all …]
|
H A D | corsair-cpro.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * corsair-cpro.c - Linux driver for Corsair Commander Pro 33 #define CTL_GET_FW_VER 0x02 /* returns the firmware version in bytes 1-3 */ 34 #define CTL_GET_BL_VER 0x06 /* returns the bootloader version in bytes 1-2 */ 36 * returns in bytes 1-4 for each temp sensor: 42 * rcv: returns temp for channel in centi-degree celsius 47 * send: byte 1 is rail number: 0 = 12v, 1 = 5v, 2 = 3.3v 52 * returns in bytes 1-6 for each fan: 70 * send: byte 2 is percentage from 0 - 100 75 * send: byte 2-3 is target [all …]
|
/linux/drivers/hwmon/pmbus/ |
H A D | mp2891.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * Hardware monitoring driver for MPS Multi-phase Digital VR Controllers(MP2891) 18 * to read input power per rail. The MP2891 does not have standard 30 #define MP2891_IOUT_SCALE_DIV 32 76 val >>= -exponent; in mp2891_reg2data_linear11() 99 * Obtain vout scale from the register MFR_VOUT_LOOP_CTRL, bits 15-14,bit 13. in mp2891_identify_vout_scale() 104 * 00b - 6.25mV/LSB, 01b - 5mV/LSB, 10b - 2mV/LSB, 11b - 1mV in mp2891_identify_vout_scale() 107 data->vout_scale[page] = 250; in mp2891_identify_vout_scale() 111 data->vout_scale[page] = 625; in mp2891_identify_vout_scale() 113 data->vout_scale[page] = 500; in mp2891_identify_vout_scale() [all …]
|
H A D | mp2993.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * Hardware monitoring driver for MPS Multi-phase Digital VR Controllers(MP2993) 16 #define MP2993_READ_VIN_DIV 32 46 mantissa = mantissa << (exponent - target_exponent); in mp2993_linear11_exponent_transfer() 48 mantissa = mantissa >> (target_exponent - exponent); in mp2993_linear11_exponent_transfer() 96 * per rail are always the same, so only PMBUS_OT_FAULT_LIMIT in mp2993_read_word_data() 103 /* The MP2993 vin scale is (1/32V)/Lsb */ in mp2993_read_word_data() 132 ret = -ENODATA; in mp2993_read_word_data() 135 ret = -EINVAL; in mp2993_read_word_data() 157 * per rail are always the same, so only PMBUS_OT_FAULT_LIMIT in mp2993_write_word_data() [all …]
|
/linux/arch/mips/include/asm/ |
H A D | mips-cpc.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 8 # error Please include asm/mips-cps.h rather than asm/mips-cpc.h 21 * mips_cpc_default_phys_base - retrieve the default physical base address of 26 * implemented per-platform. 31 * mips_cpc_probe - probe for a Cluster Power Controller 34 * a CPC is successfully detected, else -errno. 41 return -ENODEV; in mips_cpc_probe() 46 * mips_cpc_present - determine whether a Cluster Power Controller is present 80 /* CPC_ACCESS - Control core/IOCU access to CPC registers prior to CM 3 */ 81 CPC_ACCESSOR_RW(32, 0x000, access) [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. 68 * (atleast for 500us) from UFS rails (especially from VCCQ rail). [all …]
|
/linux/Documentation/devicetree/bindings/hwmon/pmbus/ |
H A D | ti,ucd90320.yaml | 1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 3 --- 6 $schema: http://devicetree.org/meta-schemas/core.yaml# 11 - Jim Wright <wrightj@linux.vnet.ibm.com> 14 The UCD90320 is a 32-rail PMBus/I2C addressable power-supply sequencer and 17 digital monitors (DMONx), 32 to enable the power supply (ENx), 24 for 18 margining (MARx), 16 for logical GPO, and 32 GPIs for cascading, and system 26 - ti,ucd90320 32 - compatible 33 - reg [all …]
|
/linux/arch/arm/boot/dts/nxp/ls/ |
H A D | ls1021a-tsn.dts | 1 // SPDX-License-Identifier: GPL-2.0 2 /* Copyright 2016-2018 NXP Semiconductors 6 /dts-v1/; 10 model = "NXP LS1021A-TSN Board"; 11 compatible = "fsl,ls1021a-tsn", "fsl,ls1021a"; 13 sys_mclk: clock-mclk { 14 compatible = "fixed-clock"; 15 #clock-cells = <0>; 16 clock-frequency = <24576000>; 19 reg_vdda_codec: regulator-3V3 { [all …]
|
/linux/arch/arm/boot/dts/ti/omap/ |
H A D | am335x-pepper.dts | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Copyright (C) 2014 Gumstix, Inc. - https://www.gumstix.com/ 5 /dts-v1/; 7 #include <dt-bindings/input/input.h> 12 compatible = "gumstix,am335x-pepper", "ti,am33xx"; 16 cpu0-supply = <&dcdc3_reg>; 26 compatible = "gpio-keys"; 29 leds: user-leds-pins { 30 compatible = "gpio-leds"; 38 compatible = "ti,da830-evm-audio"; [all …]
|
/linux/Documentation/driver-api/gpio/ |
H A D | driver.rst | 26 between 0 and n-1, n being the number of GPIOs managed by the chip. 29 example if a system uses a memory-mapped set of I/O-registers where 32 GPIO 30 lines are handled by one bit per line in a 32-bit register, it makes sense to 44 So for example one platform could use global numbers 32-159 for GPIOs, with a 45 controller defining 128 GPIOs at a "base" of 32 ; while another platform uses 46 global numbers 0..63 with one set of GPIO controllers, 64-79 with another type 47 of GPIO controller, and on one particular board 80-95 with an FPGA. The legacy 49 2000-2063 to identify GPIO lines in a bank of I2C GPIO expanders. 60 - methods to establish GPIO line direction 61 - methods used to access GPIO line values [all …]
|
/linux/Documentation/devicetree/bindings/soc/tegra/ |
H A D | nvidia,tegra20-pmc.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/soc/tegra/nvidia,tegra20-pmc.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Thierry Reding <thierry.reding@gmail.com> 11 - Jonathan Hunter <jonathanh@nvidia.com> 16 - nvidia,tegra20-pmc 17 - nvidia,tegra30-pmc 18 - nvidia,tegra114-pmc 19 - nvidia,tegra124-pmc [all …]
|
/linux/arch/arm64/boot/dts/rockchip/ |
H A D | rk3399-gru.dtsi | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 5 * Copyright 2016-2017 Google, Inc 8 #include <dt-bindings/input/input.h> 9 #include "rk3399-op1.dtsi" 18 stdout-path = "serial2:115200n8"; 27 * - Rails that only connect to the EC (or devices that the EC talks to) 29 * - Rails _are_ included if the rails go to the AP even if the AP 36 * put the child rail as an alias of the parent rail. Sometimes rails 38 * - The EC controls the enable and the EC always enables a rail as 40 * - The rails are actually connected to each other by a jumper and [all …]
|
/linux/include/uapi/linux/ |
H A D | gpio.h | 1 /* SPDX-License-Identifier: GPL-2.0-only WITH Linux-syscall-note */ 3 * <linux/gpio.h> - userspace ABI for the GPIO character devices 21 * Must be a multiple of 8 to ensure 32/64-bit alignment of structs. 23 #define GPIO_MAX_NAME_SIZE 32 26 * struct gpiochip_info - Information about a certain GPIO chip 41 * Must be no greater than 64, as bitmaps are restricted here to 64-bits 42 * for simplicity, and a multiple of 2 to ensure 32/64-bit alignment of 54 * enum gpio_v2_line_flag - &struct gpio_v2_line_attribute.flags values 65 * @GPIO_V2_LINE_FLAG_BIAS_PULL_UP: line has pull-up bias enabled 66 * @GPIO_V2_LINE_FLAG_BIAS_PULL_DOWN: line has pull-down bias enabled [all …]
|
/linux/drivers/net/wireless/broadcom/b43/ |
H A D | phy_n.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 8 Copyright (c) 2010-2011 Rafał Miłecki <zajec5@gmail.com> 96 enum nl80211_band band = b43_current_band(dev->wl); in b43_nphy_ipa() 97 return ((dev->phy.n->ipa2g_on && band == NL80211_BAND_2GHZ) || in b43_nphy_ipa() 98 (dev->phy.n->ipa5g_on && band == NL80211_BAND_5GHZ)); in b43_nphy_ipa() 101 /* https://bcm-v4.sipsolutions.net/802.11/PHY/N/RxCoreGetState */ 112 /* https://bcm-v4.sipsolutions.net/802.11/PHY/N/ForceRFSeq */ 137 b43err(dev->wl, "RF sequence status timeout\n"); in b43_nphy_force_rf_sequence() 149 /* https://bcm-v4.sipsolutions.net/802.11/PHY/N/RFCtrlOverrideRev7 */ 154 struct b43_phy *phy = &dev->phy; in b43_nphy_rf_ctl_override_rev7() [all …]
|
/linux/Documentation/devicetree/bindings/net/wireless/ |
H A D | qcom,ath10k.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Kalle Valo <kvalo@kernel.org> 11 - Jeff Johnson <jjohnson@kernel.org> 19 - qcom,ath10k # SDIO-based devices 20 - qcom,ipq4019-wifi 21 - qcom,wcn3990-wifi # SNoC-based devices 26 reg-names: 28 - const: membase [all …]
|
/linux/drivers/gpio/ |
H A D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.0-only 19 range 32 512 47 this symbol, but new drivers should use the generic gpio-regmap 57 non-sleeping contexts. They can make bitbanged serial protocols 126 Enables support for the idio-16 library functions. The idio-16 library 128 ACCES IDIO-16 family such as the 104-IDIO-16 and the PCI-IDIO-16. 130 If built as a module its name will be gpio-idio-16. 136 tristate "GPIO driver for 74xx-ICs with MMIO access" 140 Say yes here to support GPIO functionality for 74xx-compatible ICs 155 If driver is built as a module it will be called gpio-altera. [all …]
|
/linux/Documentation/devicetree/bindings/gpio/ |
H A D | gpio.txt | 5 ----------------- 7 GPIO properties should be named "[<name>-]gpios", with <name> being the purpose 8 of this GPIO for the device. While a non-existent <name> is considered valid 10 for new bindings. Also, GPIO properties named "[<name>-]gpio" are valid and old 24 and bit-banged data signals: 27 gpio-controller; 28 #gpio-cells = <2>; 32 data-gpios = <&gpio1 12 0>, 44 recommended to use the two-cell approach. 48 include/dt-bindings/gpio/gpio.h whenever possible: [all …]
|
/linux/arch/arm/boot/dts/nvidia/ |
H A D | tegra114-roth.dts | 1 // SPDX-License-Identifier: GPL-2.0 2 /dts-v1/; 4 #include <dt-bindings/input/input.h> 15 linux,initrd-start = <0x82000000>; 16 linux,initrd-end = <0x82800000>; 24 trusted-foundations { 25 compatible = "tlm,trusted-foundations"; 26 tlm,version-major = <2>; 27 tlm,version-minor = <8>; 40 avdd-dsi-csi-supply = <&vdd_1v2_ap>; [all …]
|
H A D | tegra114-dalmore.dts | 1 // SPDX-License-Identifier: GPL-2.0 7 /dts-v1/; 9 #include <dt-bindings/input/input.h> 23 stdout-path = "serial0:115200n8"; 34 hdmi-supply = <&vdd_5v0_hdmi>; 35 vdd-supply = <&vdd_hdmi_reg>; 36 pll-supply = <&palmas_smps3_reg>; 38 nvidia,ddc-i2c-bus = <&hdmi_ddc>; 39 nvidia,hpd-gpio = 46 avdd-dsi-csi-supply = <&avdd_1v2_reg>; [all …]
|
H A D | tegra20-paz00.dts | 1 // SPDX-License-Identifier: GPL-2.0 2 /dts-v1/; 4 #include <dt-bindings/input/input.h> 5 #include <dt-bindings/thermal/thermal.h> 8 #include "tegra20-cpu-opp.dtsi" 9 #include "tegra20-cpu-opp-microvolt.dtsi" 25 stdout-path = "serial0:115200n8"; 44 vdd-supply = <&hdmi_vdd_reg>; 45 pll-supply = <&hdmi_pll_reg>; 47 nvidia,ddc-i2c-bus = <&hdmi_ddc>; [all …]
|
/linux/arch/arm64/boot/dts/qcom/ |
H A D | apq8016-sbc.dts | 1 // SPDX-License-Identifier: GPL-2.0-only 6 /dts-v1/; 8 #include "msm8916-pm8916.dtsi" 9 #include <dt-bindings/gpio/gpio.h> 10 #include <dt-bindings/input/input.h> 11 #include <dt-bindings/leds/common.h> 12 #include <dt-bindings/pinctrl/qcom,pmic-gpio.h> 13 #include <dt-bindings/pinctrl/qcom,pmic-mpp.h> 14 #include <dt-bindings/sound/apq8016-lpass.h> 18 compatible = "qcom,apq8016-sbc", "qcom,apq8016"; [all …]
|
/linux/drivers/misc/bcm-vk/ |
H A D | bcm_vk.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 3 * Copyright 2018-2020 Broadcom. 24 #define DRV_MODULE_NAME "bcm-vk" 29 * 1) When the VK device boot-up, M7 CPU runs and executes the BootROM. 110 /* defines for voltage rail conversion */ 115 /* Error log register bit definition - register for error alerts */ 194 #define VK_MSG_ID_BITMAP_MASK (VK_MSG_ID_BITMAP_SIZE - 1) 228 #define VK_BAR1_SCRATCH_DEF_NR_PAGES 32 381 /* Reference-counting to handle file operations */ 407 /* house-keeping variable of error logs */ [all …]
|
/linux/arch/arm64/boot/dts/hisilicon/ |
H A D | hi3660-hikey960.dts | 1 // SPDX-License-Identifier: GPL-2.0 9 /dts-v1/; 12 #include "hikey960-pinctrl.dtsi" 13 #include <dt-bindings/gpio/gpio.h> 14 #include <dt-bindings/input/input.h> 15 #include <dt-bindings/interrupt-controller/irq.h> 16 #include <dt-bindings/usb/pd.h> 20 compatible = "hisilicon,hi3660-hikey960", "hisilicon,hi3660"; 35 stdout-path = "serial6:115200n8"; 44 reserved-memory { [all …]
|
/linux/drivers/clk/tegra/ |
H A D | clk-tegra114.c | 1 // SPDX-License-Identifier: GPL-2.0-only 7 #include <linux/clk-provider.h> 13 #include <dt-bindings/clock/tegra114-car.h> 16 #include "clk-id.h" 20 #define CPU_FINETRIM_DR 0x4d8 /* rise->rise prop dly A */ 21 #define CPU_FINETRIM_R 0x4e4 /* rise->rise prop dly inc A */ 163 { .pdiv = 32, .hw_val = 14 }, 541 { .pdiv = 32, .hw_val = 14 }, 613 #define MASK(x) (BIT(x) - 1) 870 { .dev_id = "rtc-tegra", .dt_id = TEGRA114_CLK_RTC }, [all …]
|