File tree Expand file tree Collapse file tree 9 files changed +2
-1900
lines changed
Expand file tree Collapse file tree 9 files changed +2
-1900
lines changed Original file line number Diff line number Diff line change @@ -4,12 +4,6 @@ GPIO Mappings
44
55This document explains how GPIOs can be assigned to given devices and functions.
66
7- Note that it only applies to the new descriptor-based interface. For a
8- description of the deprecated integer-based GPIO interface please refer to
9- legacy.rst (actually, there is no real mapping possible with the old
10- interface; you just fetch an integer from somewhere and request the
11- corresponding GPIO).
12-
137All platforms can enable the GPIO library, but if the platform strictly
148requires GPIO functionality to be present, it needs to select GPIOLIB from its
159Kconfig. Then, how GPIOs are mapped depends on what the platform uses to
Original file line number Diff line number Diff line change 22GPIO Descriptor Consumer Interface
33==================================
44
5- This document describes the consumer interface of the GPIO framework. Note that
6- it describes the new descriptor-based interface. For a description of the
7- deprecated integer-based GPIO interface please refer to legacy.rst.
5+ This document describes the consumer interface of the GPIO framework.
86
97
108Guidelines for GPIOs consumers
Original file line number Diff line number Diff line change @@ -13,7 +13,6 @@ Contents:
1313 consumer
1414 board
1515 drivers-on-gpio
16- legacy
1716 bt8xxgpio
1817
1918Core
Original file line number Diff line number Diff line change @@ -10,18 +10,6 @@ The documents in this directory give detailed instructions on how to access
1010GPIOs in drivers, and how to write a driver for a device that provides GPIOs
1111itself.
1212
13- Due to the history of GPIO interfaces in the kernel, there are two different
14- ways to obtain and use GPIOs:
15-
16- - The descriptor-based interface is the preferred way to manipulate GPIOs,
17- and is described by all the files in this directory excepted legacy.rst.
18- - The legacy integer-based interface which is considered deprecated (but still
19- usable for compatibility reasons) is documented in legacy.rst.
20-
21- The remainder of this document applies to the new descriptor-based interface.
22- legacy.rst contains the same information applied to the legacy
23- integer-based interface.
24-
2513
2614What is a GPIO?
2715===============
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1818 :caption: 目录
1919 :maxdepth: 2
2020
21- legacy
22-
2321Todolist:
2422
2523* intro
Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 11/* SPDX-License-Identifier: GPL-2.0 */
22/*
3- * <linux/gpio.h>
3+ * NOTE: This header *must not* be included.
44 *
55 * This is the LEGACY GPIO bulk include file, including legacy APIs. It is
66 * used for GPIO drivers still referencing the global GPIO numberspace,
1616
1717struct device ;
1818
19- /* see Documentation/driver-api/gpio/legacy.rst */
20-
2119/* make these flag values available regardless of GPIO kconfig options */
2220#define GPIOF_DIR_OUT (0 << 0)
2321#define GPIOF_DIR_IN (1 << 0)
@@ -121,8 +119,6 @@ static inline int gpio_to_irq(unsigned gpio)
121119
122120int gpio_request_one (unsigned gpio , unsigned long flags , const char * label );
123121
124- /* CONFIG_GPIOLIB: bindings for managed devices that want to request gpios */
125-
126122int devm_gpio_request (struct device * dev , unsigned gpio , const char * label );
127123int devm_gpio_request_one (struct device * dev , unsigned gpio ,
128124 unsigned long flags , const char * label );
You can’t perform that action at this time.
0 commit comments