/openbmc/linux/drivers/pps/clients/ |
H A D | pps-gpio.c | 31 struct gpio_desc *gpio_pin; /* GPIO port descriptors */ member 55 rising_edge = gpiod_get_value(info->gpio_pin); in pps_gpio_irq_handler() 108 data->gpio_pin = devm_gpiod_get(dev, NULL, GPIOD_IN); in pps_gpio_setup() 109 if (IS_ERR(data->gpio_pin)) in pps_gpio_setup() 110 return dev_err_probe(dev, PTR_ERR(data->gpio_pin), in pps_gpio_setup() 175 ret = gpiod_to_irq(data->gpio_pin); in pps_gpio_probe()
|
/openbmc/u-boot/arch/arm/cpu/arm920t/ep93xx/ |
H A D | led.c | 12 static uint32_t gpio_pin[2] = {1 << CONFIG_LED_STATUS_GREEN, variable 19 writel(readl(&gpio->pedr) | gpio_pin[led], &gpio->pedr); in switch_LED_on() 27 writel(readl(&gpio->pedr) & ~gpio_pin[led], &gpio->pedr); in switch_LED_off()
|
/openbmc/openbmc/meta-facebook/meta-yosemite4/recipes-phosphor/dbus/phosphor-dbus-monitor/ |
H A D | switch-nic-main-or-aux-mode | 30 gpio_pin=$(( SLOT + 3 )) 32 gpioset "$GPIO_CHIP" $gpio_pin=$gpio_val
|
/openbmc/linux/drivers/pinctrl/nxp/ |
H A D | pinctrl-s32cc.c | 379 struct gpio_pin_config *gpio_pin; in s32_pmx_gpio_request_enable() local 389 gpio_pin = kmalloc(sizeof(*gpio_pin), GFP_KERNEL); in s32_pmx_gpio_request_enable() 390 if (!gpio_pin) in s32_pmx_gpio_request_enable() 393 gpio_pin->pin_id = offset; in s32_pmx_gpio_request_enable() 394 gpio_pin->config = config; in s32_pmx_gpio_request_enable() 397 list_add(&gpio_pin->list, &ipctl->gpio_configs); in s32_pmx_gpio_request_enable() 411 struct gpio_pin_config *gpio_pin, *tmp; in s32_pmx_gpio_disable_free() local 417 list_for_each_entry_safe(gpio_pin, tmp, &ipctl->gpio_configs, list) { in s32_pmx_gpio_disable_free() 418 if (gpio_pin->pin_id == offset) { in s32_pmx_gpio_disable_free() 419 ret = s32_regmap_write(pctldev, gpio_pin->pin_id, in s32_pmx_gpio_disable_free() [all …]
|
/openbmc/u-boot/drivers/gpio/ |
H A D | stm32f7_gpio.c | 18 #define MODE_BITS(gpio_pin) (gpio_pin * 2) argument 20 #define BSRR_BIT(gpio_pin, value) BIT(gpio_pin + (value ? 0 : 16)) argument
|
/openbmc/linux/drivers/pinctrl/renesas/ |
H A D | gpio.c | 48 struct sh_pfc_gpio_pin *gpio_pin = &chip->pins[idx]; in gpio_get_data_reg() local 50 *reg = &chip->regs[gpio_pin->dreg]; in gpio_get_data_reg() 51 *bit = gpio_pin->dbit; in gpio_get_data_reg() 75 struct sh_pfc_gpio_pin *gpio_pin = &chip->pins[idx]; in gpio_setup_data_reg() local 84 gpio_pin->dreg = i; in gpio_setup_data_reg() 85 gpio_pin->dbit = bit; in gpio_setup_data_reg()
|
/openbmc/linux/drivers/net/ethernet/intel/ice/ |
H A D | ice_ptp.c | 1511 ice_ptp_cfg_extts(struct ice_pf *pf, bool ena, unsigned int chan, u32 gpio_pin, in ice_ptp_cfg_extts() argument 1558 wr32(hw, GLGEN_GPIO_CTL(gpio_pin), gpio_reg); in ice_ptp_cfg_extts() 1578 u32 func, val, gpio_pin; in ice_ptp_cfg_clkout() local 1595 gpio_pin = pf->ptp.perout_channels[chan].gpio_pin; in ice_ptp_cfg_clkout() 1596 wr32(hw, GLGEN_GPIO_CTL(gpio_pin), val); in ice_ptp_cfg_clkout() 1608 gpio_pin = config->gpio_pin; in ice_ptp_cfg_clkout() 1656 wr32(hw, GLGEN_GPIO_CTL(gpio_pin), val); in ice_ptp_cfg_clkout() 1720 u32 gpio_pin; in ice_ptp_gpio_enable_e810() local 1731 clk_cfg.gpio_pin = GPIO_20; in ice_ptp_gpio_enable_e810() 1733 clk_cfg.gpio_pin = GPIO_22; in ice_ptp_gpio_enable_e810() [all …]
|
H A D | ice_ptp.h | 31 u32 gpio_pin; member
|
/openbmc/linux/drivers/net/ethernet/microchip/ |
H A D | lan743x_ptp.h | 63 int gpio_pin; /* GPIO pin where output appears */ member
|
H A D | lan743x_ptp.c | 437 if (perout->gpio_pin >= 0) { in lan743x_ptp_perout_off() 438 lan743x_gpio_release(adapter, perout->gpio_pin); in lan743x_ptp_perout_off() 439 perout->gpio_pin = -1; in lan743x_ptp_perout_off() 488 perout->gpio_pin >= 0) { in lan743x_ptp_perout() 503 perout->gpio_pin = lan743x_gpio_rsrv_ptp_out(adapter, in lan743x_ptp_perout() 507 if (perout->gpio_pin < 0) { in lan743x_ptp_perout() 1475 ptp->perout[i].gpio_pin = -1; in lan743x_ptp_init()
|
/openbmc/u-boot/arch/arm/dts/ |
H A D | am335x-pxm2.dtsi | 371 pinctrl-0 = <&clkout2_pin &gpio_pin>; 439 gpio_pin: gpio_pin { label
|
H A D | am335x-rut.dts | 418 pinctrl-0 = <&clkout2_pin &gpio_pin>; 483 gpio_pin: gpio_pin { label
|
/openbmc/openbmc/meta-raspberrypi/recipes-bsp/bootfiles/ |
H A D | rpi-config_git.bb | 208 echo "dtoverlay=gpio-ir,gpio_pin=${GPIO_IR}" >>$CONFIG 209 echo "dtoverlay=gpio-ir-tx,gpio_pin=${GPIO_IR_TX}" >>$CONFIG 293 echo "dtoverlay=gpio-shutdown,gpio_pin=${GPIO_SHUTDOWN_PIN}" >> $CONFIG
|
/openbmc/linux/drivers/gpu/drm/amd/pm/powerplay/smumgr/ |
H A D | vegam_smumgr.c | 1927 struct pp_atomctrl_gpio_pin_assignment gpio_pin; in vegam_init_smc_table() local 2050 VDDC_VRHOT_GPIO_PINID, &gpio_pin)) { in vegam_init_smc_table() 2051 table->VRHotGpio = gpio_pin.uc_gpio_pin_bit_shift; in vegam_init_smc_table() 2062 PP_AC_DC_SWITCH_GPIO_PINID, &gpio_pin)) { in vegam_init_smc_table() 2063 table->AcDcGpio = gpio_pin.uc_gpio_pin_bit_shift; in vegam_init_smc_table() 2077 THERMAL_INT_OUTPUT_GPIO_PINID, &gpio_pin)) { in vegam_init_smc_table() 2078 table->ThermOutGpio = gpio_pin.uc_gpio_pin_bit_shift; in vegam_init_smc_table() 2087 (1 << gpio_pin.uc_gpio_pin_bit_shift))) ? 1:0; in vegam_init_smc_table()
|
H A D | fiji_smumgr.c | 1927 struct pp_atomctrl_gpio_pin_assignment gpio_pin; in fiji_init_smc_table() local 2038 if (atomctrl_get_pp_assign_pin(hwmgr, VDDC_VRHOT_GPIO_PINID, &gpio_pin)) { in fiji_init_smc_table() 2039 table->VRHotGpio = gpio_pin.uc_gpio_pin_bit_shift; in fiji_init_smc_table() 2049 &gpio_pin)) { in fiji_init_smc_table() 2050 table->AcDcGpio = gpio_pin.uc_gpio_pin_bit_shift; in fiji_init_smc_table() 2061 &gpio_pin)) { in fiji_init_smc_table() 2065 table->ThermOutGpio = gpio_pin.uc_gpio_pin_bit_shift; in fiji_init_smc_table() 2073 (1 << gpio_pin.uc_gpio_pin_bit_shift))) ? 1:0; in fiji_init_smc_table()
|
H A D | polaris10_smumgr.c | 1923 struct pp_atomctrl_gpio_pin_assignment gpio_pin; in polaris10_init_smc_table() local 2041 if (atomctrl_get_pp_assign_pin(hwmgr, VDDC_VRHOT_GPIO_PINID, &gpio_pin)) { in polaris10_init_smc_table() 2042 table->VRHotGpio = gpio_pin.uc_gpio_pin_bit_shift; in polaris10_init_smc_table() 2052 &gpio_pin)) { in polaris10_init_smc_table() 2053 table->AcDcGpio = gpio_pin.uc_gpio_pin_bit_shift; in polaris10_init_smc_table() 2067 &gpio_pin)) { in polaris10_init_smc_table() 2071 table->ThermOutGpio = gpio_pin.uc_gpio_pin_bit_shift; in polaris10_init_smc_table() 2079 & (1 << gpio_pin.uc_gpio_pin_bit_shift))) ? 1:0; in polaris10_init_smc_table()
|
H A D | ci_smumgr.c | 1948 struct pp_atomctrl_gpio_pin_assignment gpio_pin; in ci_init_smc_table() local 2073 if (atomctrl_get_pp_assign_pin(hwmgr, VDDC_VRHOT_GPIO_PINID, &gpio_pin)) { in ci_init_smc_table() 2074 table->VRHotGpio = gpio_pin.uc_gpio_pin_bit_shift; in ci_init_smc_table()
|
/openbmc/linux/drivers/gpio/ |
H A D | gpio-amd-fch.c | 134 unsigned int gpio_pin) in amd_fch_gpio_request() argument
|
H A D | gpio-mmio.c | 566 static int bgpio_request(struct gpio_chip *chip, unsigned gpio_pin) in bgpio_request() argument 568 if (gpio_pin < chip->ngpio) in bgpio_request()
|
/openbmc/linux/drivers/net/ethernet/aquantia/atlantic/hw_atl/ |
H A D | hw_atl_utils.h | 173 enum gpio_pin_function gpio_pin[3]; member
|
/openbmc/linux/drivers/pinctrl/ |
H A D | pinctrl-lpc18xx.c | 753 unsigned int gpio_port, gpio_pin; in lpc18xx_gpio_to_pintsel_val() local 756 gpio_pin = gpio % LPC18XX_GPIO_PINS_PER_PORT; in lpc18xx_gpio_to_pintsel_val() 758 return gpio_pin | (gpio_port << LPC18XX_SCU_PINTSEL_PORT_SHIFT); in lpc18xx_gpio_to_pintsel_val()
|
/openbmc/linux/drivers/gpu/drm/amd/display/dc/bios/ |
H A D | bios_parser2.c | 491 pin = (struct atom_gpio_pin_assignment *) header->gpio_pin; in get_gpio_i2c_info() 681 if (header->gpio_pin[i].gpio_id != gpio_id) in bios_parser_get_gpio_pin_info() 686 header->gpio_pin[i].data_a_reg_index); in bios_parser_get_gpio_pin_info() 692 header->gpio_pin[i].gpio_bitshift); in bios_parser_get_gpio_pin_info()
|
/openbmc/linux/drivers/gpu/drm/amd/pm/powerplay/hwmgr/ |
H A D | ppatomfwctrl.c | 186 offsetof(struct atom_gpio_pin_lut_v2_1, gpio_pin[0]); in pp_atomfwctrl_lookup_gpio_pin()
|
/openbmc/docs/development/ |
H A D | add-new-system.md | 323 {'gpio_pin': 'D1', 'direction': 'out'} 325 {'gpio_pin': 'D2', 'direction': 'in'}
|
/openbmc/linux/drivers/net/ethernet/aquantia/atlantic/ |
H A D | aq_ptp.c | 1103 if (hw_info->gpio_pin[i] == in aq_ptp_gpio_init()
|