diff options
| author | Linus Torvalds <torvalds@linux-foundation.org> | 2015-04-14 20:58:15 -0400 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2015-04-14 20:58:15 -0400 |
| commit | 07e492eb8921a8aa53fd2bf637bee3da94cc03fe (patch) | |
| tree | f1c1c5004146cbf5ddd3a0c27c05d79627bff775 /include/dt-bindings/pinctrl | |
| parent | b240452a0f5846280e25be7c5a507a99b382fd10 (diff) | |
| parent | 1dfe0d159dc7f7b6d1734b2010aabda2bbe87d5a (diff) | |
Merge tag 'pinctrl-v4.1-1' of git://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-pinctrl
Pull pincontrol updates from Linus Walleij:
"This is the bulk of pin control changes for the v4.1 development
cycle. Nothing really exciting this time: we basically added a few
new drivers and subdrivers and stabilized them in linux-next. Some
cleanups too. With sunrisepoint Intel has a real fine fully featured
pin control driver for contemporary hardware, and the AMD driver is
also for large deployments. Most of the others are ARM devices.
New drivers:
- Intel Sunrisepoint
- AMD KERNCZ GPIO
- Broadcom Cygnus IOMUX
New subdrivers:
- Marvell MVEBU Armada 39x SoCs
- Samsung Exynos 5433
- nVidia Tegra 210
- Mediatek MT8135
- Mediatek MT8173
- AMLogic Meson8b
- Qualcomm PM8916
On top of this cleanups and development history for the above drivers
as issues were fixed after merging"
* tag 'pinctrl-v4.1-1' of git://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-pinctrl: (71 commits)
pinctrl: sirf: move sgpio lock into state container
pinctrl: Add support for PM8916 GPIO's and MPP's
pinctrl: bcm2835: Fix support for threaded level triggered IRQs
sh-pfc: r8a7790: add EtherAVB pin groups
pinctrl: Document "function" + "pins" pinmux binding
pinctrl: intel: Add Intel Sunrisepoint pin controller and GPIO support
pinctrl: fsl: imx: Check for 0 config register
pinctrl: Add support for Meson8b
documentation: Extend pinctrl docs for Meson8b
pinctrl: Cleanup Meson8 driver
Fix inconsistent spinlock of AMD GPIO driver which can be recognized by static analysis tool smatch. Declare constant Variables with Sparse's suggestion.
pinctrl: at91: convert __raw to endian agnostic IO
pinctrl: constify of_device_id array
pinctrl: pinconf-generic: add dt node names to error messages
pinctrl: pinconf-generic: scan also referenced phandle node
pinctrl: mvebu: add suspend/resume support to Armada XP pinctrl driver
pinctrl: st: Display pin's function when printing pinctrl debug information
pinctrl: st: Show correct pin direction also in GPIO mode
pinctrl: st: Supply a GPIO get_direction() call-back
pinctrl: st: Move st_get_pio_control() further up the source file
...
Diffstat (limited to 'include/dt-bindings/pinctrl')
| -rw-r--r-- | include/dt-bindings/pinctrl/mt65xx.h | 40 | ||||
| -rw-r--r-- | include/dt-bindings/pinctrl/qcom,pmic-gpio.h | 15 | ||||
| -rw-r--r-- | include/dt-bindings/pinctrl/qcom,pmic-mpp.h | 4 |
3 files changed, 59 insertions, 0 deletions
diff --git a/include/dt-bindings/pinctrl/mt65xx.h b/include/dt-bindings/pinctrl/mt65xx.h new file mode 100644 index 000000000000..1198f4541327 --- /dev/null +++ b/include/dt-bindings/pinctrl/mt65xx.h | |||
| @@ -0,0 +1,40 @@ | |||
| 1 | /* | ||
| 2 | * Copyright (c) 2014 MediaTek Inc. | ||
| 3 | * Author: Hongzhou.Yang <hongzhou.yang@mediatek.com> | ||
| 4 | * | ||
| 5 | * This program is free software; you can redistribute it and/or modify | ||
| 6 | * it under the terms of the GNU General Public License version 2 as | ||
| 7 | * published by the Free Software Foundation. | ||
| 8 | * | ||
| 9 | * This program is distributed in the hope that it will be useful, | ||
| 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 12 | * GNU General Public License for more details. | ||
| 13 | */ | ||
| 14 | |||
| 15 | #ifndef _DT_BINDINGS_PINCTRL_MT65XX_H | ||
| 16 | #define _DT_BINDINGS_PINCTRL_MT65XX_H | ||
| 17 | |||
| 18 | #define MTK_PIN_NO(x) ((x) << 8) | ||
| 19 | #define MTK_GET_PIN_NO(x) ((x) >> 8) | ||
| 20 | #define MTK_GET_PIN_FUNC(x) ((x) & 0xf) | ||
| 21 | |||
| 22 | #define MTK_PUPD_SET_R1R0_00 100 | ||
| 23 | #define MTK_PUPD_SET_R1R0_01 101 | ||
| 24 | #define MTK_PUPD_SET_R1R0_10 102 | ||
| 25 | #define MTK_PUPD_SET_R1R0_11 103 | ||
| 26 | |||
| 27 | #define MTK_DRIVE_2mA 2 | ||
| 28 | #define MTK_DRIVE_4mA 4 | ||
| 29 | #define MTK_DRIVE_6mA 6 | ||
| 30 | #define MTK_DRIVE_8mA 8 | ||
| 31 | #define MTK_DRIVE_10mA 10 | ||
| 32 | #define MTK_DRIVE_12mA 12 | ||
| 33 | #define MTK_DRIVE_14mA 14 | ||
| 34 | #define MTK_DRIVE_16mA 16 | ||
| 35 | #define MTK_DRIVE_20mA 20 | ||
| 36 | #define MTK_DRIVE_24mA 24 | ||
| 37 | #define MTK_DRIVE_28mA 28 | ||
| 38 | #define MTK_DRIVE_32mA 32 | ||
| 39 | |||
| 40 | #endif /* _DT_BINDINGS_PINCTRL_MT65XX_H */ | ||
diff --git a/include/dt-bindings/pinctrl/qcom,pmic-gpio.h b/include/dt-bindings/pinctrl/qcom,pmic-gpio.h index fa74d7cc960c..aafa76cb569d 100644 --- a/include/dt-bindings/pinctrl/qcom,pmic-gpio.h +++ b/include/dt-bindings/pinctrl/qcom,pmic-gpio.h | |||
| @@ -48,6 +48,14 @@ | |||
| 48 | #define PM8058_GPIO_L5 6 | 48 | #define PM8058_GPIO_L5 6 |
| 49 | #define PM8058_GPIO_L2 7 | 49 | #define PM8058_GPIO_L2 7 |
| 50 | 50 | ||
| 51 | /* | ||
| 52 | * Note: PM8916 GPIO1 and GPIO2 are supporting | ||
| 53 | * only L2(1.15V) and L5(1.8V) options | ||
| 54 | */ | ||
| 55 | #define PM8916_GPIO_VPH 0 | ||
| 56 | #define PM8916_GPIO_L2 2 | ||
| 57 | #define PM8916_GPIO_L5 3 | ||
| 58 | |||
| 51 | #define PM8917_GPIO_VPH 0 | 59 | #define PM8917_GPIO_VPH 0 |
| 52 | #define PM8917_GPIO_S4 2 | 60 | #define PM8917_GPIO_S4 2 |
| 53 | #define PM8917_GPIO_L15 3 | 61 | #define PM8917_GPIO_L15 3 |
| @@ -115,6 +123,13 @@ | |||
| 115 | #define PM8058_GPIO39_MP3_CLK PMIC_GPIO_FUNC_FUNC1 | 123 | #define PM8058_GPIO39_MP3_CLK PMIC_GPIO_FUNC_FUNC1 |
| 116 | #define PM8058_GPIO40_EXT_BB_EN PMIC_GPIO_FUNC_FUNC1 | 124 | #define PM8058_GPIO40_EXT_BB_EN PMIC_GPIO_FUNC_FUNC1 |
| 117 | 125 | ||
| 126 | #define PM8916_GPIO1_BAT_ALRM_OUT PMIC_GPIO_FUNC_FUNC1 | ||
| 127 | #define PM8916_GPIO1_KEYP_DRV PMIC_GPIO_FUNC_FUNC2 | ||
| 128 | #define PM8916_GPIO2_DIV_CLK PMIC_GPIO_FUNC_FUNC1 | ||
| 129 | #define PM8916_GPIO2_SLEEP_CLK PMIC_GPIO_FUNC_FUNC2 | ||
| 130 | #define PM8916_GPIO3_KEYP_DRV PMIC_GPIO_FUNC_FUNC1 | ||
| 131 | #define PM8916_GPIO4_KEYP_DRV PMIC_GPIO_FUNC_FUNC2 | ||
| 132 | |||
| 118 | #define PM8917_GPIO9_18_KEYP_DRV PMIC_GPIO_FUNC_FUNC1 | 133 | #define PM8917_GPIO9_18_KEYP_DRV PMIC_GPIO_FUNC_FUNC1 |
| 119 | #define PM8917_GPIO20_BAT_ALRM_OUT PMIC_GPIO_FUNC_FUNC1 | 134 | #define PM8917_GPIO20_BAT_ALRM_OUT PMIC_GPIO_FUNC_FUNC1 |
| 120 | #define PM8917_GPIO21_23_UART_TX PMIC_GPIO_FUNC_FUNC2 | 135 | #define PM8917_GPIO21_23_UART_TX PMIC_GPIO_FUNC_FUNC2 |
diff --git a/include/dt-bindings/pinctrl/qcom,pmic-mpp.h b/include/dt-bindings/pinctrl/qcom,pmic-mpp.h index d2c7dabe3223..c10205491f8d 100644 --- a/include/dt-bindings/pinctrl/qcom,pmic-mpp.h +++ b/include/dt-bindings/pinctrl/qcom,pmic-mpp.h | |||
| @@ -10,6 +10,10 @@ | |||
| 10 | #define PM8841_MPP_VPH 0 | 10 | #define PM8841_MPP_VPH 0 |
| 11 | #define PM8841_MPP_S3 2 | 11 | #define PM8841_MPP_S3 2 |
| 12 | 12 | ||
| 13 | #define PM8916_MPP_VPH 0 | ||
| 14 | #define PM8916_MPP_L2 2 | ||
| 15 | #define PM8916_MPP_L5 3 | ||
| 16 | |||
| 13 | #define PM8941_MPP_VPH 0 | 17 | #define PM8941_MPP_VPH 0 |
| 14 | #define PM8941_MPP_L1 1 | 18 | #define PM8941_MPP_L1 1 |
| 15 | #define PM8941_MPP_S3 2 | 19 | #define PM8941_MPP_S3 2 |
