cregit-Linux how code gets into the kernel

Release 4.15 include/dt-bindings/gpio/gpio.h

/* SPDX-License-Identifier: GPL-2.0 */
/*
 * This header provides constants for most GPIO bindings.
 *
 * Most GPIO bindings include a flags cell as part of the GPIO specifier.
 * In most cases, the format of the flags cell uses the standard values
 * defined in this header.
 */

#ifndef _DT_BINDINGS_GPIO_GPIO_H

#define _DT_BINDINGS_GPIO_GPIO_H

/* Bit 0 express polarity */

#define GPIO_ACTIVE_HIGH 0

#define GPIO_ACTIVE_LOW 1

/* Bit 1 express single-endedness */

#define GPIO_PUSH_PULL 0

#define GPIO_SINGLE_ENDED 2

/* Bit 2 express Open drain or open source */

#define GPIO_LINE_OPEN_SOURCE 0

#define GPIO_LINE_OPEN_DRAIN 4

/*
 * Open Drain/Collector is the combination of single-ended open drain interface.
 * Open Source/Emitter is the combination of single-ended open source interface.
 */

#define GPIO_OPEN_DRAIN (GPIO_SINGLE_ENDED | GPIO_LINE_OPEN_DRAIN)

#define GPIO_OPEN_SOURCE (GPIO_SINGLE_ENDED | GPIO_LINE_OPEN_SOURCE)

/* Bit 3 express GPIO suspend/resume persistence */

#define GPIO_SLEEP_MAINTAIN_VALUE 0

#define GPIO_SLEEP_MAY_LOSE_VALUE 8

#endif

Overall Contributors

PersonTokensPropCommitsCommitProp
Stephen Warren1730.91%116.67%
Linus Walleij1629.09%116.67%
Laxman Dewangan1221.82%116.67%
Charles Keepax814.55%116.67%
Andrew Jeffery11.82%116.67%
Greg Kroah-Hartman11.82%116.67%
Total55100.00%6100.00%
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.
Created with cregit.