diff options
Diffstat (limited to 'include')
| -rw-r--r-- | include/dt-bindings/gpio/meson8b-gpio.h | 32 | ||||
| -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 |
4 files changed, 91 insertions, 0 deletions
diff --git a/include/dt-bindings/gpio/meson8b-gpio.h b/include/dt-bindings/gpio/meson8b-gpio.h new file mode 100644 index 000000000000..c38cb20d7182 --- /dev/null +++ b/include/dt-bindings/gpio/meson8b-gpio.h | |||
| @@ -0,0 +1,32 @@ | |||
| 1 | /* | ||
| 2 | * GPIO definitions for Amlogic Meson8b SoCs | ||
| 3 | * | ||
| 4 | * Copyright (C) 2015 Endless Mobile, Inc. | ||
| 5 | * Author: Carlo Caione <carlo@endlessm.com> | ||
| 6 | * | ||
| 7 | * This program is free software; you can redistribute it and/or | ||
| 8 | * modify it under the terms of the GNU General Public License | ||
| 9 | * version 2 as published by the Free Software Foundation. | ||
| 10 | * | ||
| 11 | * You should have received a copy of the GNU General Public License | ||
| 12 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
| 13 | */ | ||
| 14 | |||
| 15 | #ifndef _DT_BINDINGS_MESON8B_GPIO_H | ||
| 16 | #define _DT_BINDINGS_MESON8B_GPIO_H | ||
| 17 | |||
| 18 | #include <dt-bindings/gpio/meson8-gpio.h> | ||
| 19 | |||
| 20 | /* GPIO Bank DIF */ | ||
| 21 | #define DIF_0_P 120 | ||
| 22 | #define DIF_0_N 121 | ||
| 23 | #define DIF_1_P 122 | ||
| 24 | #define DIF_1_N 123 | ||
| 25 | #define DIF_2_P 124 | ||
| 26 | #define DIF_2_N 125 | ||
| 27 | #define DIF_3_P 126 | ||
| 28 | #define DIF_3_N 127 | ||
| 29 | #define DIF_4_P 128 | ||
| 30 | #define DIF_4_N 129 | ||
| 31 | |||
| 32 | #endif /* _DT_BINDINGS_MESON8B_GPIO_H */ | ||
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 |
