Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
cloud-kernel
提交
54e2602f
cloud-kernel
项目概览
openanolis
/
cloud-kernel
1 年多 前同步成功
通知
160
Star
36
Fork
7
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
10
列表
看板
标记
里程碑
合并请求
2
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
cloud-kernel
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
10
Issue
10
列表
看板
标记
里程碑
合并请求
2
合并请求
2
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
54e2602f
编写于
10月 24, 2016
作者:
L
Linus Walleij
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'ib-sx150x' of /home/linus/linux-pinctrl into devel
上级
f08ea3cc
9e80f906
变更
7
展开全部
隐藏空白更改
内联
并排
Showing
7 changed file
with
1151 addition
and
801 deletion
+1151
-801
Documentation/devicetree/bindings/pinctrl/pinctrl-sx150x.txt
Documentation/devicetree/bindings/pinctrl/pinctrl-sx150x.txt
+69
-0
drivers/gpio/Kconfig
drivers/gpio/Kconfig
+5
-8
drivers/gpio/Makefile
drivers/gpio/Makefile
+0
-1
drivers/gpio/gpio-sx150x.c
drivers/gpio/gpio-sx150x.c
+0
-792
drivers/pinctrl/Kconfig
drivers/pinctrl/Kconfig
+14
-0
drivers/pinctrl/Makefile
drivers/pinctrl/Makefile
+1
-0
drivers/pinctrl/pinctrl-sx150x.c
drivers/pinctrl/pinctrl-sx150x.c
+1062
-0
未找到文件。
Documentation/devicetree/bindings/
gpio/gpio
-sx150x.txt
→
Documentation/devicetree/bindings/
pinctrl/pinctrl
-sx150x.txt
浏览文件 @
54e2602f
SEMTECH SX150x GPIO expander bindings
Please refer to pinctrl-bindings.txt, ../gpio/gpio.txt, and
../interrupt-controller/interrupts.txt for generic information regarding
pin controller, GPIO, and interrupt bindings.
Required properties:
- compatible: should be
"semtech,sx1506q",
- compatible: should be one of :
"semtech,sx1506q",
"semtech,sx1508q",
"semtech,sx1509q",
"semtech,sx1502q".
- reg: The I2C slave address for this device.
- interrupt-parent: phandle of the parent interrupt controller.
- interrupts: Interrupt specifier for the controllers interrupt.
- #gpio-cells: Should be 2. The first cell is the GPIO number and the
second cell is used to specify optional parameters:
bit 0: polarity (0: normal, 1: inverted)
- gpio-controller: Marks the device as a GPIO controller.
Optional properties :
- interrupt-parent: phandle of the parent interrupt controller.
- interrupts: Interrupt specifier for the controllers interrupt.
- interrupt-controller: Marks the device as a interrupt controller.
- semtech,probe-reset: Will trigger a reset of the GPIO expander on probe,
only for sx1508q and sx1509q
The GPIO expander can optionally be used as an interrupt controller, in
which case it uses the default two cell specifier as described in
Documentation/devicetree/bindings/interrupt-controller/interrupts.txt.
which case it uses the default two cell specifier.
Required properties for pin configuration sub-nodes:
- pins: List of pins to which the configuration applies.
Optional properties for pin configuration sub-nodes:
----------------------------------------------------
- bias-disable: disable any pin bias, except the OSCIO pin
- bias-pull-up: pull up the pin, except the OSCIO pin
- bias-pull-down: pull down the pin, except the OSCIO pin
- bias-pull-pin-default: use pin-default pull state, except the OSCIO pin
- drive-push-pull: drive actively high and low
- drive-open-drain: drive with open drain only for sx1508q and sx1509q and except the OSCIO pin
- output-low: set the pin to output mode with low level
- output-high: set the pin to output mode with high level
Example:
i2c
_gpio_
expander@20{
i2c
0gpio-
expander@20{
#gpio-cells = <2>;
#interrupt-cells = <2>;
compatible = "semtech,sx1506q";
...
...
@@ -38,4 +58,12 @@ Example:
gpio-controller;
interrupt-controller;
pinctrl-names = "default";
pinctrl-0 = <&gpio1_cfg_pins>;
gpio1_cfg_pins: gpio1-cfg {
pins = "gpio1";
bias-pull-up;
};
};
drivers/gpio/Kconfig
浏览文件 @
54e2602f
...
...
@@ -781,16 +781,13 @@ config GPIO_PCF857X
platform-neutral GPIO calls.
config GPIO_SX150X
bool "Semtech SX150x I2C GPIO expander"
depends on I2C=y
select
GPIOLIB_IRQCHIP
bool "Semtech SX150x I2C GPIO expander
(deprecated)
"
depends on
PINCTRL &&
I2C=y
select
PINCTRL_SX150X
default n
help
Say yes here to provide support for Semtech SX150-series I2C
GPIO expanders. Compatible models include:
8 bits: sx1508q
16 bits: sx1509q
Say yes here to provide support for Semtech SX150x-series I2C
GPIO expanders. The GPIO driver was replaced by a Pinctrl version.
config GPIO_TPIC2810
tristate "TPIC2810 8-Bit I2C GPO expander"
...
...
drivers/gpio/Makefile
浏览文件 @
54e2602f
...
...
@@ -104,7 +104,6 @@ obj-$(CONFIG_GPIO_SPEAR_SPICS) += gpio-spear-spics.o
obj-$(CONFIG_GPIO_STA2X11)
+=
gpio-sta2x11.o
obj-$(CONFIG_GPIO_STMPE)
+=
gpio-stmpe.o
obj-$(CONFIG_GPIO_STP_XWAY)
+=
gpio-stp-xway.o
obj-$(CONFIG_GPIO_SX150X)
+=
gpio-sx150x.o
obj-$(CONFIG_GPIO_SYSCON)
+=
gpio-syscon.o
obj-$(CONFIG_GPIO_TB10X)
+=
gpio-tb10x.o
obj-$(CONFIG_GPIO_TC3589X)
+=
gpio-tc3589x.o
...
...
drivers/gpio/gpio-sx150x.c
已删除
100644 → 0
浏览文件 @
f08ea3cc
此差异已折叠。
点击以展开。
drivers/pinctrl/Kconfig
浏览文件 @
54e2602f
...
...
@@ -164,6 +164,20 @@ config PINCTRL_SIRF
select GENERIC_PINCONF
select GPIOLIB_IRQCHIP
config PINCTRL_SX150X
bool "Semtech SX150x I2C GPIO expander pinctrl driver"
depends on GPIOLIB && I2C=y
select PINMUX
select PINCONF
select GENERIC_PINCONF
select GPIOLIB_IRQCHIP
help
Say yes here to provide support for Semtech SX150x-series I2C
GPIO expanders as pinctrl module.
Compatible models include:
- 8 bits: sx1508q, sx1502q
- 16 bits: sx1509q, sx1506q
config PINCTRL_PISTACHIO
def_bool y if MACH_PISTACHIO
depends on GPIOLIB
...
...
drivers/pinctrl/Makefile
浏览文件 @
54e2602f
...
...
@@ -25,6 +25,7 @@ obj-$(CONFIG_PINCTRL_PISTACHIO) += pinctrl-pistachio.o
obj-$(CONFIG_PINCTRL_ROCKCHIP)
+=
pinctrl-rockchip.o
obj-$(CONFIG_PINCTRL_SINGLE)
+=
pinctrl-single.o
obj-$(CONFIG_PINCTRL_SIRF)
+=
sirf/
obj-$(CONFIG_PINCTRL_SX150X)
+=
pinctrl-sx150x.o
obj-$(CONFIG_ARCH_TEGRA)
+=
tegra/
obj-$(CONFIG_PINCTRL_TZ1090)
+=
pinctrl-tz1090.o
obj-$(CONFIG_PINCTRL_TZ1090_PDC)
+=
pinctrl-tz1090-pdc.o
...
...
drivers/pinctrl/pinctrl-sx150x.c
0 → 100644
浏览文件 @
54e2602f
此差异已折叠。
点击以展开。
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录