| /OK3568_Linux_fs/kernel/drivers/gpio/ |
| H A D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.0-only 3 # GPIO infrastructure and drivers 6 config ARCH_HAVE_CUSTOM_GPIO_H 9 Selecting this config option from the architecture Kconfig allows 10 the architecture to provide a custom asm/gpio.h implementation 15 bool "GPIO Support" 17 This enables GPIO support through the generic GPIO library. 19 one or more of the GPIO drivers below. 25 config GPIOLIB_FASTPATH_LIMIT 37 config OF_GPIO [all …]
|
| H A D | gpio-regmap.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * regmap based generic GPIO driver 8 #include <linux/gpio/driver.h> 9 #include <linux/gpio/regmap.h> 27 int (*reg_mask_xlate)(struct gpio_regmap *gpio, unsigned int base, 42 static int gpio_regmap_simple_xlate(struct gpio_regmap *gpio, in gpio_regmap_simple_xlate() argument 46 unsigned int line = offset % gpio->ngpio_per_reg; in gpio_regmap_simple_xlate() 47 unsigned int stride = offset / gpio->ngpio_per_reg; in gpio_regmap_simple_xlate() 49 *reg = base + stride * gpio->reg_stride; in gpio_regmap_simple_xlate() 57 struct gpio_regmap *gpio = gpiochip_get_data(chip); in gpio_regmap_get() local [all …]
|
| H A D | gpio-sl28cpld.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * sl28cpld GPIO driver 9 #include <linux/gpio/driver.h> 10 #include <linux/gpio/regmap.h> 18 /* GPIO flavor */ 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() [all …]
|
| /OK3568_Linux_fs/u-boot/drivers/gpio/ |
| H A D | Kconfig | 2 # GPIO infrastructure and drivers 5 menu "GPIO Support" 7 config DM_GPIO 8 bool "Enable Driver Model for GPIO drivers" 11 Enable driver model for GPIO access. The standard GPIO 13 the GPIO uclass. Drivers provide methods to query the 15 is defined in include/asm-generic/gpio.h. 17 config GPIO_HOG 18 bool "Enable GPIO hog support" 22 Enable gpio hog support [all …]
|
| H A D | tegra_gpio.c | 2 * NVIDIA Tegra20 GPIO handling. 3 * (C) Copyright 2010-2012,2015 6 * SPDX-License-Identifier: GPL-2.0+ 22 #include <asm/gpio.h> 23 #include <dm/device-internal.h> 24 #include <dt-bindings/gpio/gpio.h> 36 int base_gpio; /* Port number for this port (0, 1,.., n-1) */ 39 /* Information about each port at run-time */ 42 int base_gpio; /* Port number for this port (0, 1,.., n-1) */ 45 /* Return config of pin 'gpio' as GPIO (1) or SFIO (0) */ [all …]
|
| H A D | .gpio-uclass.o.cmd | |
| /OK3568_Linux_fs/kernel/drivers/pinctrl/ |
| H A D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.0-only 11 config GENERIC_PINCTRL_GROUPS 14 config PINMUX 17 config GENERIC_PINMUX_FUNCTIONS 21 config PINCONF 24 config GENERIC_PINCONF 28 config DEBUG_PINCTRL 34 config PINCTRL_ARTPEC6 35 bool "Axis ARTPEC-6 pin controller driver" 40 This is the driver for the Axis ARTPEC-6 pin controller. This driver [all …]
|
| H A D | pinctrl-falcon.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * linux/drivers/pinctrl/pinmux-falcon.c 4 * based on linux/drivers/pinctrl/pinmux-pxa910.c 10 #include <linux/gpio/driver.h> 22 #include "pinctrl-lantiq.h" 107 MFP_FALCON(GPIO0, RST, GPIO, NONE, NONE), 108 MFP_FALCON(GPIO1, GPIO, GPIO, NONE, NONE), 109 MFP_FALCON(GPIO2, GPIO, GPIO, NONE, NONE), 110 MFP_FALCON(GPIO3, GPIO, GPIO, NONE, NONE), 111 MFP_FALCON(GPIO4, NTR, GPIO, NONE, NONE), [all …]
|
| /OK3568_Linux_fs/kernel/arch/arm/boot/dts/ |
| H A D | ste-hrefv60plus.dtsi | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * Copyright 2012 ST-Ericsson AB 6 #include "ste-href-ab8500.dtsi" 7 #include "ste-href.dtsi" 10 model = "ST-Ericsson HREF (v60+) platform with Device Tree"; 11 compatible = "st-ericsson,hrefv60+", "st-ericsson,u8500"; 14 /* Name the GPIO muxed rails on the HREF boards */ 15 gpio@8012e000 { 16 /* GPIOs 0 - 31 */ 17 gpio-line-names = [all …]
|
| H A D | ste-ux500-samsung-skomer.dts | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Devicetree for the Samsung XCover 2 GT-S7710 also known as Skomer. 6 /dts-v1/; 7 #include "ste-db8500.dtsi" 8 #include "ste-ab8505.dtsi" 9 #include "ste-dbx5x0-pinctrl.dtsi" 10 #include <dt-bindings/gpio/gpio.h> 11 #include <dt-bindings/input/input.h> 12 #include <dt-bindings/interrupt-controller/irq.h> 15 model = "Samsung XCover 2 (GT-S7710)"; [all …]
|
| H A D | ste-ux500-samsung-golden.dts | 1 // SPDX-License-Identifier: GPL-2.0-only 2 /dts-v1/; 4 #include "ste-db8500.dtsi" 5 #include "ste-ab8505.dtsi" 6 #include "ste-dbx5x0-pinctrl.dtsi" 7 #include <dt-bindings/gpio/gpio.h> 8 #include <dt-bindings/input/input.h> 9 #include <dt-bindings/interrupt-controller/irq.h> 13 * You need an intermediate, device-tree compatible bootloader 16 * There is a port of (mainline) U-Boot, see [all …]
|
| /OK3568_Linux_fs/kernel/arch/arm64/boot/dts/qcom/ |
| H A D | msm8996-pins.dtsi | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Copyright (c) 2013-2016, The Linux Foundation. All rights reserved. 12 function = "gpio"; 15 config { 17 drive-strength = <2>; /* 2 mA */ 18 bias-pull-down; /* pull down */ 19 input-enable; 28 function = "gpio"; 30 config { 32 drive-strength = <16>; [all …]
|
| /OK3568_Linux_fs/kernel/drivers/pinctrl/intel/ |
| H A D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.0 6 config PINCTRL_BAYTRAIL 7 bool "Intel Baytrail GPIO pin control" 11 driver for memory mapped GPIO functionality on Intel Baytrail 14 so only a small amount is available for gpio use. 18 config PINCTRL_CHERRYVIEW 19 tristate "Intel Cherryview/Braswell pinctrl and GPIO driver" 26 config PINCTRL_LYNXPOINT 27 tristate "Intel Lynxpoint pinctrl and GPIO driver" 39 config PINCTRL_MERRIFIELD [all …]
|
| /OK3568_Linux_fs/kernel/drivers/pinctrl/bcm/ |
| H A D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.0-only 6 config PINCTRL_BCM281XX 18 framework. GPIO is provided by a separate GPIO driver. 20 config PINCTRL_BCM2835 21 bool "Broadcom BCM2835 GPIO (with PINCONF) driver" 30 Say Y here to enable the Broadcom BCM2835 GPIO driver. 32 config PINCTRL_IPROC_GPIO 33 bool "Broadcom iProc GPIO (with PINCONF) driver" 40 Say yes here to enable the Broadcom iProc GPIO driver. 42 The Broadcom iProc based SoCs- Cygnus, NS2, NSP and Stingray, use [all …]
|
| /OK3568_Linux_fs/kernel/tools/gpio/ |
| H A D | gpio-utils.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * GPIO tools - helpers library for the GPIO tools 17 #include <linux/gpio.h> 18 #include "gpio-utils.h" 20 #define CONSUMER "gpio-utils" 23 * doc: Operation of gpio 27 * ioctl, including request and release for lines of gpio, read/write 28 * the value of gpio. If the user want to do lots of read and write of 29 * lines of gpio, user should use this type of api. 32 * following api will request gpio lines, do the operation and then [all …]
|
| H A D | gpio-event-mon.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * gpio-event-mon - monitor GPIO line events from userspace 8 * gpio-event-mon -n <device-name> -o <offset> 25 #include <linux/gpio.h> 26 #include "gpio-utils.h" 31 struct gpio_v2_line_config *config, in monitor_device() argument 42 return -ENOMEM; in monitor_device() 45 if (cfd == -1) { in monitor_device() 46 ret = -errno; in monitor_device() 51 ret = gpiotools_request_line(device_name, lines, num_lines, config, in monitor_device() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/gpu/drm/msm/hdmi/ |
| H A D | hdmi_connector.c | 1 // SPDX-License-Identifier: GPL-2.0-only 8 #include <linux/gpio/consumer.h> 72 const struct hdmi_platform_config *config = hdmi->config; in gpio_config() local 77 struct hdmi_gpio_data gpio = config->gpios[i]; in gpio_config() local 79 if (gpio.gpiod) { in gpio_config() 80 if (gpio.output) { in gpio_config() 81 gpiod_direction_output(gpio.gpiod, in gpio_config() 82 gpio.value); in gpio_config() 84 gpiod_direction_input(gpio.gpiod); in gpio_config() 85 gpiod_set_value_cansleep(gpio.gpiod, in gpio_config() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/pinctrl/mvebu/ |
| H A D | pinctrl-dove.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 20 #include "pinctrl-mvebu.h" 23 #define INT_REGS_MASK ~(SZ_1M - 1) 44 /* Global Config regmap registers */ 64 unsigned pid, unsigned long *config) in dove_pmu_mpp_ctrl_get() argument 68 unsigned long pmu = readl(data->base + PMU_MPP_GENERAL_CTRL); in dove_pmu_mpp_ctrl_get() 72 return mvebu_mmio_mpp_ctrl_get(data, pid, config); in dove_pmu_mpp_ctrl_get() 75 *config = (func >> shift) & MVEBU_MPP_MASK; in dove_pmu_mpp_ctrl_get() 76 *config |= CONFIG_PMU; in dove_pmu_mpp_ctrl_get() 82 unsigned pid, unsigned long config) in dove_pmu_mpp_ctrl_set() argument [all …]
|
| /OK3568_Linux_fs/kernel/arch/arm/mach-pxa/ |
| H A D | mfp-pxa2xx.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * linux/arch/arm/mach-pxa/mfp-pxa2xx.c 12 #include <linux/gpio.h> 13 #include <linux/gpio-pxa.h> 20 #include <mach/pxa2xx-regs.h> 21 #include "mfp-pxa2xx.h" 30 #define BANK_OFF(n) (((n) < 3) ? (n) << 2 : 0x100 + (((n) - 3) << 2)) 44 unsigned int mux_mask; /* bit mask of muxed gpio bits, 0 if no mux */ 45 unsigned long config; member 52 static int __mfp_config_gpio(unsigned gpio, unsigned long c) in __mfp_config_gpio() argument [all …]
|
| /OK3568_Linux_fs/kernel/arch/arm/mach-s3c/ |
| H A D | gpio-samsung.c | 1 // SPDX-License-Identifier: GPL-2.0 3 // Copyright (c) 2009-2011 Samsung Electronics Co., Ltd. 11 // Samsung - GPIOlib support 16 #include <linux/gpio.h> 31 #include "regs-gpio.h" 32 #include "gpio-samsung.h" 35 #include "gpio-core.h" 36 #include "gpio-cfg.h" 37 #include "gpio-cfg-helpers.h" 43 void __iomem *reg = chip->base + 0x08; in samsung_gpio_setpull_updown() [all …]
|
| H A D | gpio-cfg-helpers.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 8 * Samsung Platform - GPIO pin configuration helper definitions 18 /* As a note, all gpio configuration functions are entered exclusively, either 24 unsigned int off, unsigned int config) in samsung_gpio_do_setcfg() argument 26 return (chip->config->set_config)(chip, off, config); in samsung_gpio_do_setcfg() 32 return (chip->config->get_config)(chip, off); in samsung_gpio_do_getcfg() 38 return (chip->config->set_pull)(chip, off, pull); in samsung_gpio_do_setpull() 44 return chip->config->get_pull(chip, off); in samsung_gpio_do_getpull() 47 /* Pull-{up,down} resistor controls. 49 * S3C2410,S3C2440 = Pull-UP, [all …]
|
| /OK3568_Linux_fs/kernel/drivers/gpu/drm/amd/display/dc/gpio/ |
| H A D | gpio_service.c | 2 * Copyright 2012-15 Advanced Micro Devices, Inc. 27 * Pre-requisites: headers required by header of this unit 45 * Post-requisites: headers required by this unit 70 if (!dal_hw_translate_init(&service->translate, dce_version, in dal_gpio_service_create() 76 if (!dal_hw_factory_init(&service->factory, dce_version, in dal_gpio_service_create() 85 service->ctx = ctx; in dal_gpio_service_create() 89 service->factory.number_of_pins[index_of_id]; in dal_gpio_service_create() 93 service->busyness[index_of_id] = in dal_gpio_service_create() 97 if (!service->busyness[index_of_id]) { in dal_gpio_service_create() 103 service->busyness[index_of_id][i] = 0; in dal_gpio_service_create() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/regulator/ |
| H A D | gpio-regulator.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * gpio-regulator.c 14 * Roger Quadros <ext-roger.quadros@nokia.com> 17 * non-controllable regulators, as well as for allowing testing on 28 #include <linux/regulator/gpio-regulator.h> 29 #include <linux/gpio/consumer.h> 50 for (ptr = 0; ptr < data->nr_states; ptr++) in gpio_regulator_get_value() 51 if (data->states[ptr].gpios == data->state) in gpio_regulator_get_value() 52 return data->states[ptr].value; in gpio_regulator_get_value() 54 return -EINVAL; in gpio_regulator_get_value() [all …]
|
| /OK3568_Linux_fs/u-boot/arch/mips/mach-bmips/ |
| H A D | Kconfig | 4 config SYS_SOC 15 config SOC_BMIPS_BCM3380 26 config SOC_BMIPS_BCM6328 37 config SOC_BMIPS_BCM6338 48 config SOC_BMIPS_BCM6348 59 config SOC_BMIPS_BCM6358 70 config SOC_BMIPS_BCM63268 87 config BOARD_COMTREND_AR5387UN 88 bool "Comtrend AR-5387un" 92 Comtrend AR-5387un boards have a BCM6328 SoC with 64 MB of RAM and 16 [all …]
|
| /OK3568_Linux_fs/kernel/drivers/mfd/ |
| H A D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.0-only 9 config MFD_CORE 14 config MFD_CS5535 20 necessary for using the board's GPIO and MFGPT functionality. 22 config MFD_ALTERA_A10SR 30 accessing the external gpio extender (LEDs & buttons) and 33 config MFD_ALTERA_SYSMGR 43 config MFD_ACT8945A 44 tristate "Active-semi ACT8945A" 49 Support for the ACT8945A PMIC from Active-semi. This device [all …]
|