/openbmc/linux/drivers/dma/qcom/ |
H A D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.0-only 2 config QCOM_ADM 11 and on-chip peripheral devices. 13 config QCOM_BAM_DMA 20 provides DMA capabilities for a variety of on-chip devices. 22 config QCOM_GPI_DMA 23 tristate "Qualcomm Technologies GPI DMA support" 28 Enable support for the QCOM GPI DMA controller. This controller 30 as I2C, UART, and SPI. By using GPI dmaengine driver, bus drivers 34 config QCOM_HIDMA_MGMT [all …]
|
H A D | gpi.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Copyright (c) 2017-2020, The Linux Foundation. All rights reserved. 7 #include <dt-bindings/dma/qcom-gpi.h> 9 #include <linux/dma-mapping.h> 14 #include <linux/dma/qcom-gpi-dma.h> 18 #include "../virt-dma.h" 68 /* Register offsets from gpi-top */ 181 /* GPII specific Global - Enable bit register */ 186 /* GPII general interrupt - Enable bit register */ 381 [CONFIG_STATE] = "CONFIG", [all …]
|
/openbmc/linux/Documentation/devicetree/bindings/sound/ |
H A D | tlv320adcx140.yaml | 1 # SPDX-License-Identifier: (GPL-2.0+ OR BSD-2-Clause) 4 --- 6 $schema: http://devicetree.org/meta-schemas/core.yaml# 8 title: Texas Instruments TLV320ADCX140 Quad Channel Analog-to-Digital Converter 11 - Andrew Davis <afd@ti.com> 14 The TLV320ADCX140 are multichannel (4-ch analog recording or 8-ch digital 15 PDM microphones recording), high-performance audio, analog-to-digital 28 - ti,tlv320adc3140 29 - ti,tlv320adc5140 30 - ti,tlv320adc6140 [all …]
|
/openbmc/linux/drivers/gpio/ |
H A D | gpio-vx855.c | 1 // SPDX-License-Identifier: GPL-2.0+ 22 * GPI 0...13 General Purpose Input 24 * GPIO 0...14 General Purpose I/O (Open-Drain) 75 * 0..13 GPI 0..13 87 /* Real GPI bits are always in input direction */ in vx855gpio_direction_input() 93 return -EINVAL; in vx855gpio_direction_input() 96 spin_lock_irqsave(&vg->lock, flags); in vx855gpio_direction_input() 97 reg_out = inl(vg->io_gpo); in vx855gpio_direction_input() 98 reg_out |= gpio_o_bit(nr - NR_VX855_GPInO); in vx855gpio_direction_input() 99 outl(reg_out, vg->io_gpo); in vx855gpio_direction_input() [all …]
|
H A D | gpio-tn48m.c | 1 // SPDX-License-Identifier: GPL-2.0-only 44 struct gpio_regmap_config config = {}; in tn48m_gpio_probe() local 49 if (!pdev->dev.parent) in tn48m_gpio_probe() 50 return -ENODEV; in tn48m_gpio_probe() 52 gpio_config = device_get_match_data(&pdev->dev); in tn48m_gpio_probe() 54 return -ENODEV; in tn48m_gpio_probe() 56 ret = device_property_read_u32(&pdev->dev, "reg", &base); in tn48m_gpio_probe() 60 regmap = dev_get_regmap(pdev->dev.parent, NULL); in tn48m_gpio_probe() 62 return -ENODEV; in tn48m_gpio_probe() 64 config.regmap = regmap; in tn48m_gpio_probe() [all …]
|
H A D | gpio-sl28cpld.c | 1 // SPDX-License-Identifier: GPL-2.0-only 25 /* input-only flavor */ 28 /* output-only flavor */ 50 struct gpio_regmap_config *config) in sl28cpld_gpio_irq_init() argument 54 struct device *dev = &pdev->dev; in sl28cpld_gpio_irq_init() 57 if (!device_property_read_bool(dev, "interrupt-controller")) in sl28cpld_gpio_irq_init() 66 return -ENOMEM; in sl28cpld_gpio_irq_init() 68 irq_chip->name = "sl28cpld-gpio-irq"; in sl28cpld_gpio_irq_init() 69 irq_chip->irqs = sl28cpld_gpio_irqs; in sl28cpld_gpio_irq_init() 70 irq_chip->num_irqs = ARRAY_SIZE(sl28cpld_gpio_irqs); in sl28cpld_gpio_irq_init() [all …]
|
/openbmc/linux/drivers/regulator/ |
H A D | da9055-regulator.c | 1 // SPDX-License-Identifier: GPL-2.0+ 85 struct da9055_regulator_info *info = regulator->info; in da9055_buck_get_mode() 88 ret = da9055_reg_read(regulator->da9055, info->mode.reg); in da9055_buck_get_mode() 92 switch ((ret & info->mode.mask) >> info->mode.shift) { in da9055_buck_get_mode() 111 struct da9055_regulator_info *info = regulator->info; in da9055_buck_set_mode() 116 val = DA9055_BUCK_MODE_SYNC << info->mode.shift; in da9055_buck_set_mode() 119 val = DA9055_BUCK_MODE_AUTO << info->mode.shift; in da9055_buck_set_mode() 122 val = DA9055_BUCK_MODE_SLEEP << info->mode.shift; in da9055_buck_set_mode() 126 return da9055_reg_update(regulator->da9055, info->mode.reg, in da9055_buck_set_mode() 127 info->mode.mask, val); in da9055_buck_set_mode() [all …]
|
/openbmc/linux/arch/arm/boot/dts/samsung/ |
H A D | s3c64xx-pinctrl.dtsi | 1 // SPDX-License-Identifier: GPL-2.0 4 * - pin control-related definitions 8 * Samsung's S3C64xx SoCs pin banks, pin-mux and pin-config options are 12 #include "s3c64xx-pinctrl.h" 19 gpa: gpa-gpio-bank { 20 gpio-controller; 21 #gpio-cells = <2>; 22 interrupt-controller; 23 #interrupt-cells = <2>; 26 gpb: gpb-gpio-bank { [all …]
|
H A D | s5pv210-pinctrl.dtsi | 1 // SPDX-License-Identifier: GPL-2.0 3 * Samsung's S5PV210 SoC device tree source - pin control-related 6 * Copyright (c) 2013-2014 Samsung Electronics, Co. Ltd. 11 * Samsung's S5PV210 SoC pin banks, pin-mux and pin-config options are 15 #include "s5pv210-pinctrl.h" 18 pin- ## _pin { \ 20 samsung,pin-con-pdn = <S5PV210_PIN_PDN_ ##_mode>; \ 21 samsung,pin-pud-pdn = <S5PV210_PIN_PULL_ ##_pull>; \ 25 gpa0: gpa0-gpio-bank { 26 gpio-controller; [all …]
|
/openbmc/openbmc/meta-ampere/meta-mitchell/recipes-ampere/platform/ampere-platform-init/ |
H A D | ampere_platform_init.sh | 4 # shellcheck source=meta-ampere/meta-mitchell/recipes-ampere/platform/ampere-platform-init/mtmitche… 5 # shellcheck source=meta-ampere/meta-common/recipes-ampere/platform/ampere-utils/utils-lib.sh 7 source /usr/sbin/utils-lib.sh 9 function socket-based-fan-conf-update() { 10 echo "Checking phosphor-fan configurations based on CPU 1 presence..." 11 …fanControlConfDir="/usr/share/phosphor-fan-presence/control/com.ampere.Hardware.Chassis.Model.MtMi… 24 if [ -f "$fanControlConfDir/$refConf" ]; then 27 echo "The reference fan config $fanControlConfDir/$refConf does not exist!!" 32 # Support to detect MTC board revisions via board ID and to set GPI pins for the host 36 board_id=$(i2cget -y -a 0 0x20 0x0 b) [all …]
|
/openbmc/linux/drivers/pinctrl/mvebu/ |
H A D | pinctrl-mvebu.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 6 * Thomas Petazzoni <thomas.petazzoni@free-electrons.com> 13 * struct mvebu_mpp_ctrl_data - private data for the mpp ctrl operations 29 * struct mvebu_mpp_ctrl - describe a mpp control 53 unsigned long *config); 55 unsigned long config); 62 * struct mvebu_mpp_ctrl_setting - describe a mpp ctrl setting 64 * @name: ctrl setting name, e.g. uart2, spi0 - unique per mpp_mode 67 * @flags: (private) flags to store gpi/gpo/gpio capabilities 77 * If name is one of "gpi", "gpo", "gpio" gpio capabilities are [all …]
|
/openbmc/linux/drivers/hwmon/pmbus/ |
H A D | ucd9000.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 35 /* GPIO CONFIG bits */ 91 s64 delta = ktime_us_delta(ktime_get(), data->write_time); in ucd90320_wait() 94 udelay(UCD90320_WAIT_DELAY_US - delta); in ucd90320_wait() 104 return -ENXIO; in ucd90320_read_word_data() 128 data->write_time = ktime_get(); in ucd90320_write_word_data() 141 data->write_time = ktime_get(); in ucd90320_write_byte() 152 if (data->fan_data[fan][3] & 1) in ucd9000_get_fan_config() 156 fan_config |= (data->fan_data[fan][3] & 0x06) >> 1; in ucd9000_get_fan_config() 169 return -ENXIO; in ucd9000_read_byte_data() [all …]
|
/openbmc/linux/drivers/pinctrl/aspeed/ |
H A D | pinctrl-aspeed.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 12 #include "pinctrl-aspeed.h" 18 return pdata->pinmux.ngroups; in aspeed_pinctrl_get_groups_count() 26 return pdata->pinmux.groups[group].name; in aspeed_pinctrl_get_group_name() 35 *pins = &pdata->pinmux.groups[group].pins[0]; in aspeed_pinctrl_get_group_pins() 36 *npins = pdata->pinmux.groups[group].npins; in aspeed_pinctrl_get_group_pins() 44 seq_printf(s, " %s", dev_name(pctldev->dev)); in aspeed_pinctrl_pin_dbg_show() 51 return pdata->pinmux.nfunctions; in aspeed_pinmux_get_fn_count() 59 return pdata->pinmux.functions[function].name; in aspeed_pinmux_get_fn_name() 69 *groups = pdata->pinmux.functions[function].groups; in aspeed_pinmux_get_fn_groups() [all …]
|
/openbmc/linux/drivers/i2c/busses/ |
H A D | i2c-qcom-geni.c | 1 // SPDX-License-Identifier: GPL-2.0 2 // Copyright (c) 2017-2018, The Linux Foundation. All rights reserved. 7 #include <linux/dma-mapping.h> 8 #include <linux/dma/qcom-gpi-dma.h> 17 #include <linux/soc/qcom/geni-se.h> 117 [GP_IRQ0] = {-EIO, "Unknown I2C err GP_IRQ0"}, 118 [NACK] = {-ENXIO, "NACK: slv unresponsive, check its power/reset-ln"}, 119 [GP_IRQ2] = {-EIO, "Unknown I2C err GP IRQ2"}, 120 [BUS_PROTO] = {-EPROTO, "Bus proto err, noisy/unexpected start/stop"}, 121 [ARB_LOST] = {-EAGAIN, "Bus arbitration lost, clock line undriveable"}, [all …]
|
/openbmc/linux/include/linux/ |
H A D | pruss_driver.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 3 * PRU-ICSS sub-system specific definitions 5 * Copyright (C) 2014-2020 Texas Instruments Incorporated - http://www.ti.com/ 6 * Suman Anna <s-anna@ti.com> 18 * enum pruss_gp_mux_sel - PRUSS GPI/O Mux modes for the 23 * values are interchanged. Also, this bit-field does not exist on 36 * enum pruss_gpi_mode - PRUSS GPI configuration modes, used 48 * enum pru_type - PRU core type identifier 50 * @PRU_TYPE_PRU: Programmable Real-time Unit 51 * @PRU_TYPE_RTU: Auxiliary Programmable Real-Time Unit [all …]
|
/openbmc/linux/include/linux/input/ |
H A D | adp5589.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 5 * Copyright 2010-2011 Analog Devices Inc. 12 * ADP5589 specific GPI and Keymap defines 47 #define ADP5589_GPIMAPSIZE_MAX (ADP5589_GPI_PIN_END - ADP5589_GPI_PIN_BASE + 1) 50 * ADP5585 specific GPI and Keymap defines 76 #define ADP5585_GPIMAPSIZE_MAX (ADP5585_GPI_PIN_END - ADP5585_GPI_PIN_BASE + 1) 114 * ---------------- BIT ------------------ 131 * ---- BIT -- ----------- 158 unsigned char reset_cfg; /* Reset config */ 166 unsigned pullup_en_100k; /* Pull-Up 100k Enable Mask */ [all …]
|
/openbmc/linux/arch/mips/sgi-ip22/ |
H A D | ip22-platform.c | 1 // SPDX-License-Identifier: GPL-2.0 6 #include <linux/dma-mapping.h> 72 * Create a platform device for the GPI port that receives the 79 sgiwd93_0_pd.hregs = &hpc3c0->scsi_chan0; in sgiwd93_devinit() 80 sgiwd93_0_pd.wdregs = (unsigned char *) hpc3c0->scsi0_ext; in sgiwd93_devinit() 89 sgiwd93_1_pd.hregs = &hpc3c0->scsi_chan1; in sgiwd93_devinit() 90 sgiwd93_1_pd.wdregs = (unsigned char *) hpc3c0->scsi1_ext; in sgiwd93_devinit() 144 * Create a platform device for the GPI port that receives the 168 get_dbe(pbdma, (unsigned int *)&hpc3c1->pbdma[1])) in sgiseeq_devinit() 171 sgimc->giopar |= SGIMC_GIOPAR_MASTEREXP1 | SGIMC_GIOPAR_EXP164 | in sgiseeq_devinit() [all …]
|
/openbmc/witherspoon-pfault-analysis/power-sequencer/ |
H A D | ucd90160.hpp | 43 * @param[in] instance - the device instance number 44 * @param[in] bus - D-Bus bus object 69 * @param[in] callout - the GPU callout string 76 * @param[in] callout - the GPU callout string 83 * @param[in] callout - The MEM callout string 91 * @param[in] path - device path, like 92 * /sys/devices/.../i2c-11/11-0064 94 * @return fs::path - The gpiochip path, like 107 * @return bool - true if an error log was created 118 * @param[in] polling - If this is running while polling for errors, [all …]
|
H A D | ucd90160.cpp | 8 * http://www.apache.org/licenses/LICENSE-2.0 21 #include <elog-errors.hpp> 23 #include <phosphor-logging/elog.hpp> 24 #include <phosphor-logging/log.hpp> 55 interface(std::get<ucd90160::pathField>(deviceMap.find(instance)->second), in UCD90160() 145 // Log errors if any non-warning bits on in checkVOUTFaults() 149 deviceMap.find(getInstance())->second); in checkVOUTFaults() 188 // real time GPI status GPIO. in checkPGOODFaults() 192 deviceMap.find(getInstance())->second); in checkPGOODFaults() 222 gpiStatus = gpio->second->read(); in checkPGOODFaults() [all …]
|
/openbmc/phosphor-power/power-sequencer/ |
H A D | ucd90160.hpp | 43 * @param[in] instance - the device instance number 44 * @param[in] bus - D-Bus bus object 69 * @param[in] callout - the GPU callout string 76 * @param[in] callout - the GPU callout string 83 * @param[in] callout - The MEM callout string 91 * @param[in] path - device path, like 92 * /sys/devices/.../i2c-11/11-0064 94 * @return fs::path - The gpiochip path, like 107 * @return bool - true if an error log was created 118 * @param[in] polling - If this is running while polling for errors, [all …]
|
H A D | ucd90160.cpp | 8 * http://www.apache.org/licenses/LICENSE-2.0 21 #include <elog-errors.hpp> 23 #include <phosphor-logging/elog.hpp> 24 #include <phosphor-logging/log.hpp> 55 interface(std::get<ucd90160::pathField>(deviceMap.find(instance)->second), in UCD90160() 145 // Log errors if any non-warning bits on in checkVOUTFaults() 149 deviceMap.find(getInstance())->second); in checkVOUTFaults() 188 // real time GPI status GPIO. in checkPGOODFaults() 192 deviceMap.find(getInstance())->second); in checkPGOODFaults() 222 gpiStatus = gpio->second->read(); in checkPGOODFaults() [all …]
|
/openbmc/linux/Documentation/devicetree/bindings/spi/ |
H A D | qcom,spi-geni-qcom.yaml | 1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/spi/qcom,spi-geni-qcom.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Andy Gross <agross@kernel.org> 11 - Bjorn Andersson <bjorn.andersson@linaro.org> 12 - Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> 17 mini-core. 24 described in Documentation/devicetree/bindings/soc/qcom/qcom,geni-se.yaml. 27 - $ref: /schemas/spi/spi-controller.yaml# [all …]
|
/openbmc/linux/drivers/pinctrl/starfive/ |
H A D | pinctrl-starfive-jh7110.c | 1 // SPDX-License-Identifier: GPL-2.0 27 #include <dt-bindings/pinctrl/starfive,jh7110-pinctrl.h> 30 #include "../pinctrl-utils.h" 33 #include "pinctrl-starfive-jh7110.h" 52 * | 31 - 24 | 23 - 16 | 15 - 10 | 9 - 8 | 7 - 0 | 100 const struct jh7110_pinctrl_soc_info *info = sfp->info; in jh7110_pin_dbg_show() 102 seq_printf(s, "%s", dev_name(pctldev->dev)); in jh7110_pin_dbg_show() 104 if (pin < sfp->gc.ngpio) { in jh7110_pin_dbg_show() 107 u32 dout = readl_relaxed(sfp->base + info->dout_reg_base + offset); in jh7110_pin_dbg_show() 108 u32 doen = readl_relaxed(sfp->base + info->doen_reg_base + offset); in jh7110_pin_dbg_show() [all …]
|
/openbmc/linux/arch/arm64/boot/dts/qcom/ |
H A D | sdm670.dtsi | 1 // SPDX-License-Identifier: GPL-2.0 9 #include <dt-bindings/clock/qcom,gcc-sdm845.h> 10 #include <dt-bindings/clock/qcom,rpmh.h> 11 #include <dt-bindings/dma/qcom-gpi.h> 12 #include <dt-bindings/gpio/gpio.h> 13 #include <dt-bindings/interconnect/qcom,osm-l3.h> 14 #include <dt-bindings/interconnect/qcom,sdm670-rpmh.h> 15 #include <dt-bindings/interrupt-controller/arm-gic.h> 16 #include <dt-bindings/phy/phy-qcom-qusb2.h> 17 #include <dt-bindings/power/qcom-rpmpd.h> [all …]
|
H A D | sm6125.dtsi | 1 // SPDX-License-Identifier: BSD-3-Clause 6 #include <dt-bindings/clock/qcom,gcc-sm6125.h> 7 #include <dt-bindings/clock/qcom,rpmcc.h> 8 #include <dt-bindings/dma/qcom-gpi.h> 9 #include <dt-bindings/gpio/gpio.h> 10 #include <dt-bindings/interrupt-controller/arm-gic.h> 11 #include <dt-bindings/power/qcom-rpmpd.h> 14 interrupt-parent = <&intc>; 15 #address-cells = <2>; 16 #size-cells = <2>; [all …]
|