Initial commit: Linux kernel 4.19 for Unplugged OS

This commit is contained in:
ziv committed 2025-10-06 13:52:42 +00:00
commit d30235b04c
80519 files changed
+35800681

No files matched your search

+118
View File
@@ -0,0 +1,118 @@
/*
* Device Tree defines for Arizona devices
*
* Copyright 2015 Cirrus Logic Inc.
*
* Author: Charles Keepax <ckeepax@opensource.wolfsonmicro.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*/
#ifndef _DT_BINDINGS_MFD_ARIZONA_H
#define _DT_BINDINGS_MFD_ARIZONA_H
/* GPIO Function Definitions */
#define ARIZONA_GP_FN_TXLRCLK 0x00
#define ARIZONA_GP_FN_GPIO 0x01
#define ARIZONA_GP_FN_IRQ1 0x02
#define ARIZONA_GP_FN_IRQ2 0x03
#define ARIZONA_GP_FN_OPCLK 0x04
#define ARIZONA_GP_FN_FLL1_OUT 0x05
#define ARIZONA_GP_FN_FLL2_OUT 0x06
#define ARIZONA_GP_FN_PWM1 0x08
#define ARIZONA_GP_FN_PWM2 0x09
#define ARIZONA_GP_FN_SYSCLK_UNDERCLOCKED 0x0A
#define ARIZONA_GP_FN_ASYNCCLK_UNDERCLOCKED 0x0B
#define ARIZONA_GP_FN_FLL1_LOCK 0x0C
#define ARIZONA_GP_FN_FLL2_LOCK 0x0D
#define ARIZONA_GP_FN_FLL1_CLOCK_OK 0x0F
#define ARIZONA_GP_FN_FLL2_CLOCK_OK 0x10
#define ARIZONA_GP_FN_HEADPHONE_DET 0x12
#define ARIZONA_GP_FN_MIC_DET 0x13
#define ARIZONA_GP_FN_WSEQ_STATUS 0x15
#define ARIZONA_GP_FN_CIF_ADDRESS_ERROR 0x16
#define ARIZONA_GP_FN_ASRC1_LOCK 0x1A
#define ARIZONA_GP_FN_ASRC2_LOCK 0x1B
#define ARIZONA_GP_FN_ASRC_CONFIG_ERROR 0x1C
#define ARIZONA_GP_FN_DRC1_SIGNAL_DETECT 0x1D
#define ARIZONA_GP_FN_DRC1_ANTICLIP 0x1E
#define ARIZONA_GP_FN_DRC1_DECAY 0x1F
#define ARIZONA_GP_FN_DRC1_NOISE 0x20
#define ARIZONA_GP_FN_DRC1_QUICK_RELEASE 0x21
#define ARIZONA_GP_FN_DRC2_SIGNAL_DETECT 0x22
#define ARIZONA_GP_FN_DRC2_ANTICLIP 0x23
#define ARIZONA_GP_FN_DRC2_DECAY 0x24
#define ARIZONA_GP_FN_DRC2_NOISE 0x25
#define ARIZONA_GP_FN_DRC2_QUICK_RELEASE 0x26
#define ARIZONA_GP_FN_MIXER_DROPPED_SAMPLE 0x27
#define ARIZONA_GP_FN_AIF1_CONFIG_ERROR 0x28
#define ARIZONA_GP_FN_AIF2_CONFIG_ERROR 0x29
#define ARIZONA_GP_FN_AIF3_CONFIG_ERROR 0x2A
#define ARIZONA_GP_FN_SPK_TEMP_SHUTDOWN 0x2B
#define ARIZONA_GP_FN_SPK_TEMP_WARNING 0x2C
#define ARIZONA_GP_FN_UNDERCLOCKED 0x2D
#define ARIZONA_GP_FN_OVERCLOCKED 0x2E
#define ARIZONA_GP_FN_DSP_IRQ1 0x35
#define ARIZONA_GP_FN_DSP_IRQ2 0x36
#define ARIZONA_GP_FN_ASYNC_OPCLK 0x3D
#define ARIZONA_GP_FN_BOOT_DONE 0x44
#define ARIZONA_GP_FN_DSP1_RAM_READY 0x45
#define ARIZONA_GP_FN_SYSCLK_ENA_STATUS 0x4B
#define ARIZONA_GP_FN_ASYNCCLK_ENA_STATUS 0x4C
/* GPIO Configuration Bits */
#define ARIZONA_GPN_DIR 0x8000
#define ARIZONA_GPN_PU 0x4000
#define ARIZONA_GPN_PD 0x2000
#define ARIZONA_GPN_LVL 0x0800
#define ARIZONA_GPN_POL 0x0400
#define ARIZONA_GPN_OP_CFG 0x0200
#define ARIZONA_GPN_DB 0x0100
/* Provide some defines for the most common configs */
#define ARIZONA_GP_DEFAULT 0xffffffff
#define ARIZONA_GP_OUTPUT (ARIZONA_GP_FN_GPIO)
#define ARIZONA_GP_INPUT (ARIZONA_GP_FN_GPIO | \
ARIZONA_GPN_DIR)
#define ARIZONA_32KZ_MCLK1 1
#define ARIZONA_32KZ_MCLK2 2
#define ARIZONA_32KZ_NONE 3
#define ARIZONA_DMIC_MICVDD 0
#define ARIZONA_DMIC_MICBIAS1 1
#define ARIZONA_DMIC_MICBIAS2 2
#define ARIZONA_DMIC_MICBIAS3 3
#define ARIZONA_INMODE_DIFF 0
#define ARIZONA_INMODE_SE 1
#define ARIZONA_INMODE_DMIC 2
#define ARIZONA_MICD_TIME_CONTINUOUS 0
#define ARIZONA_MICD_TIME_250US 1
#define ARIZONA_MICD_TIME_500US 2
#define ARIZONA_MICD_TIME_1MS 3
#define ARIZONA_MICD_TIME_2MS 4
#define ARIZONA_MICD_TIME_4MS 5
#define ARIZONA_MICD_TIME_8MS 6
#define ARIZONA_MICD_TIME_16MS 7
#define ARIZONA_MICD_TIME_32MS 8
#define ARIZONA_MICD_TIME_64MS 9
#define ARIZONA_MICD_TIME_128MS 10
#define ARIZONA_MICD_TIME_256MS 11
#define ARIZONA_MICD_TIME_512MS 12
#define ARIZONA_ACCDET_MODE_MIC 0
#define ARIZONA_ACCDET_MODE_HPL 1
#define ARIZONA_ACCDET_MODE_HPR 2
#define ARIZONA_ACCDET_MODE_HPM 4
#define ARIZONA_ACCDET_MODE_ADC 7
#define ARIZONA_GPSW_OPEN 0
#define ARIZONA_GPSW_CLOSED 1
#define ARIZONA_GPSW_CLAMP_ENABLED 2
#define ARIZONA_GPSW_CLAMP_DISABLED 3
#endif
+53
View File
@@ -0,0 +1,53 @@
/* SPDX-License-Identifier: GPL-2.0 */
/*
* This header provides macros for ams AS3722 device bindings.
*
* Copyright (c) 2013, NVIDIA Corporation.
*
* Author: Laxman Dewangan <ldewangan@nvidia.com>
*
*/
#ifndef __DT_BINDINGS_AS3722_H__
#define __DT_BINDINGS_AS3722_H__
/* External control pins */
#define AS3722_EXT_CONTROL_PIN_ENABLE1 1
#define AS3722_EXT_CONTROL_PIN_ENABLE2 2
#define AS3722_EXT_CONTROL_PIN_ENABLE3 3
/* Interrupt numbers for AS3722 */
#define AS3722_IRQ_LID 0
#define AS3722_IRQ_ACOK 1
#define AS3722_IRQ_ENABLE1 2
#define AS3722_IRQ_OCCUR_ALARM_SD0 3
#define AS3722_IRQ_ONKEY_LONG_PRESS 4
#define AS3722_IRQ_ONKEY 5
#define AS3722_IRQ_OVTMP 6
#define AS3722_IRQ_LOWBAT 7
#define AS3722_IRQ_SD0_LV 8
#define AS3722_IRQ_SD1_LV 9
#define AS3722_IRQ_SD2_LV 10
#define AS3722_IRQ_PWM1_OV_PROT 11
#define AS3722_IRQ_PWM2_OV_PROT 12
#define AS3722_IRQ_ENABLE2 13
#define AS3722_IRQ_SD6_LV 14
#define AS3722_IRQ_RTC_REP 15
#define AS3722_IRQ_RTC_ALARM 16
#define AS3722_IRQ_GPIO1 17
#define AS3722_IRQ_GPIO2 18
#define AS3722_IRQ_GPIO3 19
#define AS3722_IRQ_GPIO4 20
#define AS3722_IRQ_GPIO5 21
#define AS3722_IRQ_WATCHDOG 22
#define AS3722_IRQ_ENABLE3 23
#define AS3722_IRQ_TEMP_SD0_SHUTDOWN 24
#define AS3722_IRQ_TEMP_SD1_SHUTDOWN 25
#define AS3722_IRQ_TEMP_SD2_SHUTDOWN 26
#define AS3722_IRQ_TEMP_SD0_ALARM 27
#define AS3722_IRQ_TEMP_SD1_ALARM 28
#define AS3722_IRQ_TEMP_SD6_ALARM 29
#define AS3722_IRQ_OCCUR_ALARM_SD6 30
#define AS3722_IRQ_ADC 31
#endif /* __DT_BINDINGS_AS3722_H__ */
+26
View File
@@ -0,0 +1,26 @@
/*
* This header provides macros for Atmel Flexcom DT bindings.
*
* Copyright (C) 2015 Cyrille Pitchen <cyrille.pitchen@atmel.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License along with
* this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef __DT_BINDINGS_ATMEL_FLEXCOM_H__
#define __DT_BINDINGS_ATMEL_FLEXCOM_H__
#define ATMEL_FLEXCOM_MODE_USART 1
#define ATMEL_FLEXCOM_MODE_SPI 2
#define ATMEL_FLEXCOM_MODE_TWI 3
#endif /* __DT_BINDINGS_ATMEL_FLEXCOM_H__ */
+84
View File
@@ -0,0 +1,84 @@
/* SPDX-License-Identifier: GPL-2.0 */
/*
* This header provides constants for the PRCMU bindings.
*
*/
#ifndef _DT_BINDINGS_MFD_PRCMU_H
#define _DT_BINDINGS_MFD_PRCMU_H
/*
* Clock identifiers.
*/
#define ARMCLK 0
#define PRCMU_ACLK 1
#define PRCMU_SVAMMCSPCLK 2
#define PRCMU_SDMMCHCLK 2 /* DBx540 only. */
#define PRCMU_SIACLK 3
#define PRCMU_SIAMMDSPCLK 3 /* DBx540 only. */
#define PRCMU_SGACLK 4
#define PRCMU_UARTCLK 5
#define PRCMU_MSP02CLK 6
#define PRCMU_MSP1CLK 7
#define PRCMU_I2CCLK 8
#define PRCMU_SDMMCCLK 9
#define PRCMU_SLIMCLK 10
#define PRCMU_CAMCLK 10 /* DBx540 only. */
#define PRCMU_PER1CLK 11
#define PRCMU_PER2CLK 12
#define PRCMU_PER3CLK 13
#define PRCMU_PER5CLK 14
#define PRCMU_PER6CLK 15
#define PRCMU_PER7CLK 16
#define PRCMU_LCDCLK 17
#define PRCMU_BMLCLK 18
#define PRCMU_HSITXCLK 19
#define PRCMU_HSIRXCLK 20
#define PRCMU_HDMICLK 21
#define PRCMU_APEATCLK 22
#define PRCMU_APETRACECLK 23
#define PRCMU_MCDECLK 24
#define PRCMU_IPI2CCLK 25
#define PRCMU_DSIALTCLK 26
#define PRCMU_DMACLK 27
#define PRCMU_B2R2CLK 28
#define PRCMU_TVCLK 29
#define SPARE_UNIPROCLK 30
#define PRCMU_SSPCLK 31
#define PRCMU_RNGCLK 32
#define PRCMU_UICCCLK 33
#define PRCMU_G1CLK 34 /* DBx540 only. */
#define PRCMU_HVACLK 35 /* DBx540 only. */
#define PRCMU_SPARE1CLK 36
#define PRCMU_SPARE2CLK 37
#define PRCMU_NUM_REG_CLOCKS 38
#define PRCMU_RTCCLK PRCMU_NUM_REG_CLOCKS
#define PRCMU_SYSCLK 39
#define PRCMU_CDCLK 40
#define PRCMU_TIMCLK 41
#define PRCMU_PLLSOC0 42
#define PRCMU_PLLSOC1 43
#define PRCMU_ARMSS 44
#define PRCMU_PLLDDR 45
/* DSI Clocks */
#define PRCMU_PLLDSI 46
#define PRCMU_DSI0CLK 47
#define PRCMU_DSI1CLK 48
#define PRCMU_DSI0ESCCLK 49
#define PRCMU_DSI1ESCCLK 50
#define PRCMU_DSI2ESCCLK 51
/* LCD DSI PLL - Ux540 only */
#define PRCMU_PLLDSI_LCD 52
#define PRCMU_DSI0CLK_LCD 53
#define PRCMU_DSI1CLK_LCD 54
#define PRCMU_DSI0ESCCLK_LCD 55
#define PRCMU_DSI1ESCCLK_LCD 56
#define PRCMU_DSI2ESCCLK_LCD 57
#define PRCMU_NUM_CLKS 58
#endif
+40
View File
@@ -0,0 +1,40 @@
/* SPDX-License-Identifier: GPL-2.0 */
/*
* This header provides macros for MAXIM MAX77620 device bindings.
*
* Copyright (c) 2016, NVIDIA Corporation.
* Author: Laxman Dewangan <ldewangan@nvidia.com>
*/
#ifndef _DT_BINDINGS_MFD_MAX77620_H
#define _DT_BINDINGS_MFD_MAX77620_H
/* MAX77620 interrupts */
#define MAX77620_IRQ_TOP_GLBL 0 /* Low-Battery */
#define MAX77620_IRQ_TOP_SD 1 /* SD power fail */
#define MAX77620_IRQ_TOP_LDO 2 /* LDO power fail */
#define MAX77620_IRQ_TOP_GPIO 3 /* GPIO internal int to MAX77620 */
#define MAX77620_IRQ_TOP_RTC 4 /* RTC */
#define MAX77620_IRQ_TOP_32K 5 /* 32kHz oscillator */
#define MAX77620_IRQ_TOP_ONOFF 6 /* ON/OFF oscillator */
#define MAX77620_IRQ_LBT_MBATLOW 7 /* Thermal alarm status, > 120C */
#define MAX77620_IRQ_LBT_TJALRM1 8 /* Thermal alarm status, > 120C */
#define MAX77620_IRQ_LBT_TJALRM2 9 /* Thermal alarm status, > 140C */
/* FPS event source */
#define MAX77620_FPS_EVENT_SRC_EN0 0
#define MAX77620_FPS_EVENT_SRC_EN1 1
#define MAX77620_FPS_EVENT_SRC_SW 2
/* Device state when FPS event LOW */
#define MAX77620_FPS_INACTIVE_STATE_SLEEP 0
#define MAX77620_FPS_INACTIVE_STATE_LOW_POWER 1
/* FPS source */
#define MAX77620_FPS_SRC_0 0
#define MAX77620_FPS_SRC_1 1
#define MAX77620_FPS_SRC_2 2
#define MAX77620_FPS_SRC_NONE 3
#define MAX77620_FPS_SRC_DEF 4
#endif
+18
View File
@@ -0,0 +1,18 @@
/* SPDX-License-Identifier: GPL-2.0 */
/*
* Copyright (c) 2019 MediaTek Inc.
*/
#ifndef _DT_BINDINGS_MT6315_IRQ_H
#define _DT_BINDINGS_MT6315_IRQ_H
#define INT_VBUCK1_OC 0
#define INT_VBUCK2_OC 1
#define INT_VBUCK3_OC 2
#define INT_VBUCK4_OC 3
#define INT_TEMP_L 4
#define INT_TEMP_H 5
#define INT_RCS0 6
#define INT_RCS1 7
#endif /* _DT_BINDINGS_MT6315_IRQ_H */
+81
View File
@@ -0,0 +1,81 @@
/* SPDX-License-Identifier: GPL-2.0 */
/*
* Copyright (c) 2019 MediaTek Inc.
*/
#ifndef _DT_BINDINGS_MT6357_IRQ_H
#define _DT_BINDINGS_MT6357_IRQ_H
#define SP_BUCK 0
#define SP_LDO 1
#define SP_PSC 2
#define SP_SCK 3
#define SP_BM 4
#define SP_HK 5
#define SP_AUD 6
#define SP_MISC 7
#define INT_VPROC_OC 0
#define INT_VCORE_OC 1
#define INT_VMODEM_OC 2
#define INT_VS1_OC 3
#define INT_VPA_OC 4
#define INT_VCORE_PREOC 5
#define INT_VFE28_OC 16
#define INT_VXO22_OC 17
#define INT_VRF18_OC 18
#define INT_VRF12_OC 19
#define INT_VEFUSE_OC 20
#define INT_VCN33_OC 21
#define INT_VCN28_OC 22
#define INT_VCN18_OC 23
#define INT_VCAMA_OC 24
#define INT_VCAMD_OC 25
#define INT_VCAMIO_OC 26
#define INT_VLDO28_OC 27
#define INT_VUSB33_OC 28
#define INT_VAUX18_OC 29
#define INT_VAUD28_OC 30
#define INT_VIO28_OC 31
#define INT_VIO18_OC 32
#define INT_VSRAM_PROC_OC 33
#define INT_VSRAM_OTHERS_OC 34
#define INT_VIBR_OC 35
#define INT_VDRAM_OC 36
#define INT_VMC_OC 37
#define INT_VMCH_OC 38
#define INT_VEMC_OC 39
#define INT_VSIM1_OC 40
#define INT_VSIM2_OC 41
#define INT_PWRKEY 48
#define INT_HOMEKEY 49
#define INT_PWRKEY_R 50
#define INT_HOMEKEY_R 51
#define INT_NI_LBAT_INT 52
#define INT_CHRDET 53
#define INT_CHRDET_EDGE 54
#define INT_VCDT_HV_DET 55
#define INT_WATCHDOG 58
#define INT_VBATON_UNDET 59
#define INT_BVALID_DET 60
#define INT_OV 61
#define INT_RTC 64
#define INT_FG_BAT0_H 80
#define INT_FG_BAT0_L 81
#define INT_FG_CUR_H 82
#define INT_FG_CUR_L 83
#define INT_FG_ZCV 84
#define INT_BATON_LV 96
#define INT_BATON_HT 97
#define INT_BAT_H 114
#define INT_BAT_L 115
#define INT_AUXADC_IMP 120
#define INT_NAG_C_DLTV 121
#define INT_AUDIO 128
#define INT_ACCDET 133
#define INT_ACCDET_EINT0 134
#define INT_ACCDET_EINT1 135
#define INT_SPI_CMD_ALERT 144
#endif /* _DT_BINDINGS_MT6357_IRQ_H */
+101
View File
@@ -0,0 +1,101 @@
/* SPDX-License-Identifier: GPL-2.0 */
/*
* Copyright (c) 2021 MediaTek Inc.
*/
#ifndef _DT_BINDINGS_MT6358_IRQ_H
#define _DT_BINDINGS_MT6358_IRQ_H
#define SP_BUCK 0
#define SP_LDO 1
#define SP_PSC 2
#define SP_SCK 3
#define SP_BM 4
#define SP_HK 5
#define SP_AUD 6
#define SP_MISC 7
#define INT_VPROC11_OC 0
#define INT_VPROC12_OC 1
#define INT_VCORE_OC 2
#define INT_VGPU_OC 3
#define INT_VMODEM_OC 4
#define INT_VDRAM1_OC 5
#define INT_VS1_OC 6
#define INT_VS2_OC 7
#define INT_VPA_OC 8
#define INT_VCORE_PREOC 9
#define INT_VFE28_OC 16
#define INT_VXO22_OC 17
#define INT_VRF18_OC 18
#define INT_VRF12_OC 19
#define INT_VEFUSE_OC 20
#define INT_VCN33_OC 21
#define INT_VCN28_OC 22
#define INT_VCN18_OC 23
#define INT_VCAMA1_OC 24
#define INT_VCAMA2_OC 25
#define INT_VCAMD_OC 26
#define INT_VCAMIO_OC 27
#define INT_VLDO28_OC 28
#define INT_VA12_OC 29
#define INT_VAUX18_OC 30
#define INT_VAUD28_OC 31
#define INT_VIO28_OC 32
#define INT_VIO18_OC 33
#define INT_VSRAM_PROC11_OC 34
#define INT_VSRAM_PROC12_OC 35
#define INT_VSRAM_OTHERS_OC 36
#define INT_VSRAM_GPU_OC 37
#define INT_VDRAM2_OC 38
#define INT_VMC_OC 39
#define INT_VMCH_OC 40
#define INT_VEMC_OC 41
#define INT_VSIM1_OC 42
#define INT_VSIM2_OC 43
#define INT_VIBR_OC 44
#define INT_VUSB_OC 45
#define INT_VBIF28_OC 46
#define INT_PWRKEY 48
#define INT_HOMEKEY 49
#define INT_PWRKEY_R 50
#define INT_HOMEKEY_R 51
#define INT_NI_LBAT_INT 52
#define INT_CHRDET 53
#define INT_CHRDET_EDGE 54
#define INT_VCDT_HV_DET 55
#define INT_RTC 64
#define INT_FG_BAT0_H 80
#define INT_FG_BAT0_L 81
#define INT_FG_CUR_H 82
#define INT_FG_CUR_L 83
#define INT_FG_ZCV 84
#define INT_FG_BAT1_H 85
#define INT_FG_BAT1_L 86
#define INT_FG_N_CHARGE_L 87
#define INT_FG_IAVG_H 88
#define INT_FG_IAVG_L 89
#define INT_FG_TIME_H 90
#define INT_FG_DISCHARGE 91
#define INT_FG_CHARGE 92
#define INT_BATON_LV 96
#define INT_BATON_HT 97
#define INT_BATON_BAT_IN 98
#define INT_BATON_BAT_OUT 99
#define INT_BIF 100
#define INT_BAT_H 112
#define INT_BAT_L 113
#define INT_BAT2_H 114
#define INT_BAT2_L 115
#define INT_BAT_TEMP_H 116
#define INT_BAT_TEMP_L 117
#define INT_AUXADC_IMP 118
#define INT_NAG_C_DLTV 119
#define INT_AUDIO 128
#define INT_ACCDET 133
#define INT_ACCDET_EINT0 134
#define INT_ACCDET_EINT1 135
#define INT_SPI_CMD_ALERT 144
#endif /* _DT_BINDINGS_MT6358_IRQ_H */
+96
View File
@@ -0,0 +1,96 @@
/* SPDX-License-Identifier: GPL-2.0 */
/*
* Copyright (c) 2019 MediaTek Inc.
*/
#ifndef _DT_BINDINGS_MT6359_IRQ_H
#define _DT_BINDINGS_MT6359_IRQ_H
#define SP_BUCK 0
#define SP_LDO 1
#define SP_PSC 2
#define SP_SCK 3
#define SP_BM 4
#define SP_HK 5
#define SP_AUD 6
#define SP_MISC 7
#define INT_VPU_OC 0
#define INT_VCORE_OC 1
#define INT_VGPU11_OC 2
#define INT_VGPU12_OC 3
#define INT_VMODEM_OC 4
#define INT_VPROC1_OC 5
#define INT_VPROC2_OC 6
#define INT_VS1_OC 7
#define INT_VS2_OC 8
#define INT_VPA_OC 9
#define INT_VFE28_OC 16
#define INT_VXO22_OC 17
#define INT_VRF18_OC 18
#define INT_VRF12_OC 19
#define INT_VEFUSE_OC 20
#define INT_VCN33_1_OC 21
#define INT_VCN33_2_OC 22
#define INT_VCN13_OC 23
#define INT_VCN18_OC 24
#define INT_VA09_OC 25
#define INT_VCAMIO_OC 26
#define INT_VA12_OC 27
#define INT_VAUX18_OC 28
#define INT_VAUD18_OC 29
#define INT_VIO18_OC 30
#define INT_VSRAM_PROC1_OC 31
#define INT_VSRAM_PROC2_OC 32
#define INT_VSRAM_OTHERS_OC 33
#define INT_VSRAM_MD_OC 34
#define INT_VEMC_OC 35
#define INT_VSIM1_OC 36
#define INT_VSIM2_OC 37
#define INT_VUSB_OC 38
#define INT_VRFCK_OC 39
#define INT_VBBCK_OC 40
#define INT_VBIF28_OC 41
#define INT_VIBR_OC 42
#define INT_VIO28_OC 43
#define INT_VM18_OC 44
#define INT_VUFS_OC 45
#define INT_PWRKEY 48
#define INT_HOMEKEY 49
#define INT_PWRKEY_R 50
#define INT_HOMEKEY_R 51
#define INT_NI_LBAT_INT 52
#define INT_CHRDET_EDGE 53
#define INT_RTC 64
#define INT_FG_BAT_H 80
#define INT_FG_BAT_L 81
#define INT_FG_CUR_H 82
#define INT_FG_CUR_L 83
#define INT_FG_ZCV 84
#define INT_FG_N_CHARGE_L 87
#define INT_FG_IAVG_H 88
#define INT_FG_IAVG_L 89
#define INT_FG_DISCHARGE 91
#define INT_FG_CHARGE 92
#define INT_BATON_LV 96
#define INT_BATON_BAT_IN 98
#define INT_BATON_BAT_OUT 99
#define INT_BIF 100
#define INT_BAT_H 112
#define INT_BAT_L 113
#define INT_BAT2_H 114
#define INT_BAT2_L 115
#define INT_BAT_TEMP_H 116
#define INT_BAT_TEMP_L 117
#define INT_THR_H 118
#define INT_THR_L 119
#define INT_AUXADC_IMP 120
#define INT_NAG_C_DLTV 121
#define INT_AUDIO 128
#define INT_ACCDET 133
#define INT_ACCDET_EINT0 134
#define INT_ACCDET_EINT1 135
#define INT_SPI_CMD_ALERT 144
#endif /* _DT_BINDINGS_MT6359_IRQ_H */
+135
View File
@@ -0,0 +1,135 @@
/* SPDX-License-Identifier: GPL-2.0 */
/*
* Copyright (c) 2019 MediaTek Inc.
*/
#ifndef __DT_BINDINGS_MT6362_H__
#define __DT_BINDINGS_MT6362_H__
/* ADC Channel definition */
#define MT6362_ADCCH_CHGVINDIV5 (0)
#define MT6362_ADCCH_VSYS (1)
#define MT6362_ADCCH_VBAT (2)
#define MT6362_ADCCH_IBUS (3)
#define MT6362_ADCCH_IBAT (4)
#define MT6362_ADCCH_RESV5 (5)
#define MT6362_ADCCH_TEMPJC (6)
#define MT6362_ADCCH_VREFTS (7)
#define MT6362_ADCCH_TS (8)
#define MT6362_ADCCH_PDVBUSDIV10 (9)
#define MT6362_ADCCH_PDCC1DIV4 (10)
#define MT6362_ADCCH_PDCC2DIV4 (11)
#define MT6362_ADCCH_PDSBU1DIV4 (12)
#define MT6362_ADCCH_PDSBU2DIV4 (13)
#define MT6362_ADCCH_ZCV (14)
/* Regulator MODE definitions */
#define MT6362_REGULATOR_MODE_LP (0)
#define MT6362_REGULATOR_MODE_NORMAL (1)
/* IRQ definitions */
/* 0 ~ 7 */
#define MT6362_FL_PWR_RDY (0)
#define MT6362_FL_DETACH (1)
#define MT6362_FL_RECHG (2)
#define MT6362_FL_CHG_DONE (3)
#define MT6362_FL_FL_BK_CHG (4)
#define MT6362_FL_IEOC (5)
#define MT6362_FL_CHG_RDY (6)
#define MT6362_FL_VBUS_GD (7)
/* 8 ~ 15 */
#define MT6362_FL_VBUS_OV (8)
#define MT6362_FL_CHG_BATOV (9)
#define MT6362_FL_CHG_SYSOV (10)
#define MT6362_FL_CHG_TOUT (11)
#define MT6362_FL_CHG_BUSUV (12)
#define MT6362_FL_CHG_THREG (13)
#define MT6362_FL_CHG_AICR (14)
#define MT6362_FL_CHG_MIVR (15)
/* 16 ~ 23 */
#define MT6362_FL_SYS_SHORT (16)
#define MT6362_FL_SYS_MIN (17)
#define MT6362_FL_AICC_DONE (18)
#define MT6362_FL_PE_DONE (19)
#define MT6362_PP_PGB_EVT (21)
#define MT6362_FT_DIG_THR (22)
#define MT6362_FL_WDT (23)
/* 24 ~ 31 */
#define MT6362_FL_OTG_FAULT (24)
#define MT6362_FL_OTG_BAT_LBP (25)
#define MT6362_FL_OTG_CC (26)
#define MT6362_FL_BC12_HVDCP (30)
#define MT6362_FL_BC12_DN (31)
/* 32 ~ 39 */
#define MT6362_INT_CHRDET_UV (32)
#define MT6362_INT_CHRDET_OV (33)
#define MT6362_INT_CHRDET_EXT (34)
/* 40 ~ 47 */
#define MT6362_ADC_DONEI (44)
/* 48 ~ 55 */
#define MT6362_FLED_STRBPIN_EVT (48)
#define MT6362_FLED_TORPIN_EVT (49)
#define MT6362_FLED_TX_EVT (50)
#define MT6362_FLED_LVF_EVT (51)
#define MT6362_FLED_LBP_EVT (52)
#define MT6362_FLED_CHGVINOVP_EVT (53)
#define MT6362_FLED2_SHORT_EVT (54)
#define MT6362_FLED1_SHORT_EVT (55)
/* 56 ~ 63 */
#define MT6362_FLED2_STRB_EVT (56)
#define MT6362_FLED1_STRB_EVT (57)
#define MT6362_FLED2_STRB_TO_EVT (58)
#define MT6362_FLED1_STRB_TO_EVT (59)
#define MT6362_FLED2_TOR_EVT (60)
#define MT6362_FLED1_TOR_EVT (61)
/* 64 ~ 71 */
#define MT6362_APWDTRST_EVT (65)
#define MT6362_EN_EVT (66)
#define MT6362_QONB_RST_EVT (67)
#define MT6362_MRSTB_EVT (68)
#define MT6362_VDDAOV_EVT (70)
#define MT6362_SYSUV_EVT (71)
/* 72 ~ 79 */
#define MT6362_OTP0_EVT (72)
#define MT6362_OTP1_EVT (73)
#define MT6362_OTP2_EVT (74)
#define MT6362_OTP3_EVT (75)
#define MT6362_OTP4_EVT (76)
#define MT6362_OTP5_EVT (77)
/* 80 ~ 87 */
#define MT6362_BUCK1_OC_SDN_EVT (81)
#define MT6362_BUCK2_OC_SDN_EVT (82)
#define MT6362_BUCK3_OC_SDN_EVT (83)
#define MT6362_BUCK4_OC_SDN_EVT (84)
#define MT6362_BUCK5_OC_SDN_EVT (85)
#define MT6362_BUCK6_OC_SDN_EVT (86)
/* 88 ~ 95 */
#define MT6362_BUCK1_PGB_EVT (89)
#define MT6362_BUCK2_PGB_EVT (90)
#define MT6362_BUCK3_PGB_EVT (91)
#define MT6362_BUCK4_PGB_EVT (92)
#define MT6362_BUCK5_PGB_EVT (93)
#define MT6362_BUCK6_PGB_EVT (94)
/* 96 ~ 103 */
#define MT6362_LDO1_OC_EVT (97)
#define MT6362_LDO2_OC_EVT (98)
#define MT6362_LDO3_OC_EVT (99)
#define MT6362_LDO4_OC_EVT (100)
#define MT6362_LDO5_OC_EVT (101)
#define MT6362_LDO6_OC_EVT (102)
#define MT6362_LDO7_OC_EVT (103)
/* 104 ~ 111 */
#define MT6362_VDIG18_PGB_EVT (104)
#define MT6362_LDO1_PGB_EVT (105)
#define MT6362_LDO2_PGB_EVT (106)
#define MT6362_LDO3_PGB_EVT (107)
#define MT6362_LDO4_PGB_EVT (108)
#define MT6362_LDO5_PGB_EVT (109)
#define MT6362_LDO6_PGB_EVT (110)
#define MT6362_LDO7_PGB_EVT (111)
/* 112 ~ 119 */
#define MT6362_USBID_EVT (112)
/* 120 ~ 127 */
#define MT6362_PD_EVT (120)
#endif /* __DT_BINDINGS_MT6362_H__ */
+100
View File
@@ -0,0 +1,100 @@
/* SPDX-License-Identifier: GPL-2.0 */
/*
* Copyright (c) 2021 MediaTek Inc.
*/
#ifndef _DT_BINDINGS_MT6366_IRQ_H
#define _DT_BINDINGS_MT6366_IRQ_H
#define SP_BUCK 0
#define SP_LDO 1
#define SP_PSC 2
#define SP_SCK 3
#define SP_BM 4
#define SP_HK 5
#define SP_AUD 6
#define SP_MISC 7
#define INT_VPROC11_OC 0
#define INT_VPROC12_OC 1
#define INT_VCORE_OC 2
#define INT_VGPU_OC 3
#define INT_VMODEM_OC 4
#define INT_VDRAM1_OC 5
#define INT_VS1_OC 6
#define INT_VS2_OC 7
#define INT_VPA_OC 8
#define INT_VCORE_PREOC 9
#define INT_VFE28_OC 16
#define INT_VXO22_OC 17
#define INT_VRF18_OC 18
#define INT_VRF12_OC 19
#define INT_VEFUSE_OC 20
#define INT_VCN33_OC 21
#define INT_VCN28_OC 22
#define INT_VCN18_OC 23
#define INT_VM18_OC 24
#define INT_VMDDR_OC 25
#define INT_VSRAM_CORE_OC 26
#define INT_VA12_OC 29
#define INT_VAUX18_OC 30
#define INT_VAUD28_OC 31
#define INT_VIO28_OC 32
#define INT_VIO18_OC 33
#define INT_VSRAM_PROC11_OC 34
#define INT_VSRAM_PROC12_OC 35
#define INT_VSRAM_OTHERS_OC 36
#define INT_VSRAM_GPU_OC 37
#define INT_VDRAM2_OC 38
#define INT_VMC_OC 39
#define INT_VMCH_OC 40
#define INT_VEMC_OC 41
#define INT_VSIM1_OC 42
#define INT_VSIM2_OC 43
#define INT_VIBR_OC 44
#define INT_VUSB_OC 45
#define INT_VBIF28_OC 46
#define INT_PWRKEY 48
#define INT_HOMEKEY 49
#define INT_PWRKEY_R 50
#define INT_HOMEKEY_R 51
#define INT_NI_LBAT_INT 52
#define INT_CHRDET 53
#define INT_CHRDET_EDGE 54
#define INT_VCDT_HV_DET 55
#define INT_RTC 64
#define INT_FG_BAT0_H 80
#define INT_FG_BAT0_L 81
#define INT_FG_CUR_H 82
#define INT_FG_CUR_L 83
#define INT_FG_ZCV 84
#define INT_FG_BAT1_H 85
#define INT_FG_BAT1_L 86
#define INT_FG_N_CHARGE_L 87
#define INT_FG_IAVG_H 88
#define INT_FG_IAVG_L 89
#define INT_FG_TIME_H 90
#define INT_FG_DISCHARGE 91
#define INT_FG_CHARGE 92
#define INT_BATON_LV 96
#define INT_BATON_HT 97
#define INT_BATON_BAT_IN 98
#define INT_BATON_BAT_OUT 99
#define INT_BIF 100
#define INT_BAT_H 112
#define INT_BAT_L 113
#define INT_BAT2_H 114
#define INT_BAT2_L 115
#define INT_BAT_TEMP_H 116
#define INT_BAT_TEMP_L 117
#define INT_AUXADC_IMP 118
#define INT_NAG_C_DLTV 119
#define INT_AUDIO 128
#define INT_ACCDET 133
#define INT_ACCDET_EINT0 134
#define INT_ACCDET_EINT1 135
#define INT_SPI_CMD_ALERT 144
#endif /* _DT_BINDINGS_MT6366_IRQ_H */
+19
View File
@@ -0,0 +1,19 @@
/* SPDX-License-Identifier: GPL-2.0 */
/*
* This header provides macros for Palmas device bindings.
*
* Copyright (c) 2013, NVIDIA Corporation.
*
* Author: Laxman Dewangan <ldewangan@nvidia.com>
*
*/
#ifndef __DT_BINDINGS_PALMAS_H
#define __DT_BINDINGS_PALMAS_H
/* External control pins */
#define PALMAS_EXT_CONTROL_PIN_ENABLE1 1
#define PALMAS_EXT_CONTROL_PIN_ENABLE2 2
#define PALMAS_EXT_CONTROL_PIN_NSLEEP 3
#endif /* __DT_BINDINGS_PALMAS_H */
+183
View File
@@ -0,0 +1,183 @@
/* SPDX-License-Identifier: GPL-2.0 */
/*
* This header provides constants for the Qualcomm RPM bindings.
*/
#ifndef _DT_BINDINGS_MFD_QCOM_RPM_H
#define _DT_BINDINGS_MFD_QCOM_RPM_H
/*
* Constants use to identify individual resources in the RPM.
*/
#define QCOM_RPM_APPS_FABRIC_ARB 1
#define QCOM_RPM_APPS_FABRIC_CLK 2
#define QCOM_RPM_APPS_FABRIC_HALT 3
#define QCOM_RPM_APPS_FABRIC_IOCTL 4
#define QCOM_RPM_APPS_FABRIC_MODE 5
#define QCOM_RPM_APPS_L2_CACHE_CTL 6
#define QCOM_RPM_CFPB_CLK 7
#define QCOM_RPM_CXO_BUFFERS 8
#define QCOM_RPM_CXO_CLK 9
#define QCOM_RPM_DAYTONA_FABRIC_CLK 10
#define QCOM_RPM_DDR_DMM 11
#define QCOM_RPM_EBI1_CLK 12
#define QCOM_RPM_HDMI_SWITCH 13
#define QCOM_RPM_MMFPB_CLK 14
#define QCOM_RPM_MM_FABRIC_ARB 15
#define QCOM_RPM_MM_FABRIC_CLK 16
#define QCOM_RPM_MM_FABRIC_HALT 17
#define QCOM_RPM_MM_FABRIC_IOCTL 18
#define QCOM_RPM_MM_FABRIC_MODE 19
#define QCOM_RPM_PLL_4 20
#define QCOM_RPM_PM8058_LDO0 21
#define QCOM_RPM_PM8058_LDO1 22
#define QCOM_RPM_PM8058_LDO2 23
#define QCOM_RPM_PM8058_LDO3 24
#define QCOM_RPM_PM8058_LDO4 25
#define QCOM_RPM_PM8058_LDO5 26
#define QCOM_RPM_PM8058_LDO6 27
#define QCOM_RPM_PM8058_LDO7 28
#define QCOM_RPM_PM8058_LDO8 29
#define QCOM_RPM_PM8058_LDO9 30
#define QCOM_RPM_PM8058_LDO10 31
#define QCOM_RPM_PM8058_LDO11 32
#define QCOM_RPM_PM8058_LDO12 33
#define QCOM_RPM_PM8058_LDO13 34
#define QCOM_RPM_PM8058_LDO14 35
#define QCOM_RPM_PM8058_LDO15 36
#define QCOM_RPM_PM8058_LDO16 37
#define QCOM_RPM_PM8058_LDO17 38
#define QCOM_RPM_PM8058_LDO18 39
#define QCOM_RPM_PM8058_LDO19 40
#define QCOM_RPM_PM8058_LDO20 41
#define QCOM_RPM_PM8058_LDO21 42
#define QCOM_RPM_PM8058_LDO22 43
#define QCOM_RPM_PM8058_LDO23 44
#define QCOM_RPM_PM8058_LDO24 45
#define QCOM_RPM_PM8058_LDO25 46
#define QCOM_RPM_PM8058_LVS0 47
#define QCOM_RPM_PM8058_LVS1 48
#define QCOM_RPM_PM8058_NCP 49
#define QCOM_RPM_PM8058_SMPS0 50
#define QCOM_RPM_PM8058_SMPS1 51
#define QCOM_RPM_PM8058_SMPS2 52
#define QCOM_RPM_PM8058_SMPS3 53
#define QCOM_RPM_PM8058_SMPS4 54
#define QCOM_RPM_PM8821_LDO1 55
#define QCOM_RPM_PM8821_SMPS1 56
#define QCOM_RPM_PM8821_SMPS2 57
#define QCOM_RPM_PM8901_LDO0 58
#define QCOM_RPM_PM8901_LDO1 59
#define QCOM_RPM_PM8901_LDO2 60
#define QCOM_RPM_PM8901_LDO3 61
#define QCOM_RPM_PM8901_LDO4 62
#define QCOM_RPM_PM8901_LDO5 63
#define QCOM_RPM_PM8901_LDO6 64
#define QCOM_RPM_PM8901_LVS0 65
#define QCOM_RPM_PM8901_LVS1 66
#define QCOM_RPM_PM8901_LVS2 67
#define QCOM_RPM_PM8901_LVS3 68
#define QCOM_RPM_PM8901_MVS 69
#define QCOM_RPM_PM8901_SMPS0 70
#define QCOM_RPM_PM8901_SMPS1 71
#define QCOM_RPM_PM8901_SMPS2 72
#define QCOM_RPM_PM8901_SMPS3 73
#define QCOM_RPM_PM8901_SMPS4 74
#define QCOM_RPM_PM8921_CLK1 75
#define QCOM_RPM_PM8921_CLK2 76
#define QCOM_RPM_PM8921_LDO1 77
#define QCOM_RPM_PM8921_LDO2 78
#define QCOM_RPM_PM8921_LDO3 79
#define QCOM_RPM_PM8921_LDO4 80
#define QCOM_RPM_PM8921_LDO5 81
#define QCOM_RPM_PM8921_LDO6 82
#define QCOM_RPM_PM8921_LDO7 83
#define QCOM_RPM_PM8921_LDO8 84
#define QCOM_RPM_PM8921_LDO9 85
#define QCOM_RPM_PM8921_LDO10 86
#define QCOM_RPM_PM8921_LDO11 87
#define QCOM_RPM_PM8921_LDO12 88
#define QCOM_RPM_PM8921_LDO13 89
#define QCOM_RPM_PM8921_LDO14 90
#define QCOM_RPM_PM8921_LDO15 91
#define QCOM_RPM_PM8921_LDO16 92
#define QCOM_RPM_PM8921_LDO17 93
#define QCOM_RPM_PM8921_LDO18 94
#define QCOM_RPM_PM8921_LDO19 95
#define QCOM_RPM_PM8921_LDO20 96
#define QCOM_RPM_PM8921_LDO21 97
#define QCOM_RPM_PM8921_LDO22 98
#define QCOM_RPM_PM8921_LDO23 99
#define QCOM_RPM_PM8921_LDO24 100
#define QCOM_RPM_PM8921_LDO25 101
#define QCOM_RPM_PM8921_LDO26 102
#define QCOM_RPM_PM8921_LDO27 103
#define QCOM_RPM_PM8921_LDO28 104
#define QCOM_RPM_PM8921_LDO29 105
#define QCOM_RPM_PM8921_LVS1 106
#define QCOM_RPM_PM8921_LVS2 107
#define QCOM_RPM_PM8921_LVS3 108
#define QCOM_RPM_PM8921_LVS4 109
#define QCOM_RPM_PM8921_LVS5 110
#define QCOM_RPM_PM8921_LVS6 111
#define QCOM_RPM_PM8921_LVS7 112
#define QCOM_RPM_PM8921_MVS 113
#define QCOM_RPM_PM8921_NCP 114
#define QCOM_RPM_PM8921_SMPS1 115
#define QCOM_RPM_PM8921_SMPS2 116
#define QCOM_RPM_PM8921_SMPS3 117
#define QCOM_RPM_PM8921_SMPS4 118
#define QCOM_RPM_PM8921_SMPS5 119
#define QCOM_RPM_PM8921_SMPS6 120
#define QCOM_RPM_PM8921_SMPS7 121
#define QCOM_RPM_PM8921_SMPS8 122
#define QCOM_RPM_PXO_CLK 123
#define QCOM_RPM_QDSS_CLK 124
#define QCOM_RPM_SFPB_CLK 125
#define QCOM_RPM_SMI_CLK 126
#define QCOM_RPM_SYS_FABRIC_ARB 127
#define QCOM_RPM_SYS_FABRIC_CLK 128
#define QCOM_RPM_SYS_FABRIC_HALT 129
#define QCOM_RPM_SYS_FABRIC_IOCTL 130
#define QCOM_RPM_SYS_FABRIC_MODE 131
#define QCOM_RPM_USB_OTG_SWITCH 132
#define QCOM_RPM_VDDMIN_GPIO 133
#define QCOM_RPM_NSS_FABRIC_0_CLK 134
#define QCOM_RPM_NSS_FABRIC_1_CLK 135
#define QCOM_RPM_SMB208_S1a 136
#define QCOM_RPM_SMB208_S1b 137
#define QCOM_RPM_SMB208_S2a 138
#define QCOM_RPM_SMB208_S2b 139
#define QCOM_RPM_PM8018_SMPS1 140
#define QCOM_RPM_PM8018_SMPS2 141
#define QCOM_RPM_PM8018_SMPS3 142
#define QCOM_RPM_PM8018_SMPS4 143
#define QCOM_RPM_PM8018_SMPS5 144
#define QCOM_RPM_PM8018_LDO1 145
#define QCOM_RPM_PM8018_LDO2 146
#define QCOM_RPM_PM8018_LDO3 147
#define QCOM_RPM_PM8018_LDO4 148
#define QCOM_RPM_PM8018_LDO5 149
#define QCOM_RPM_PM8018_LDO6 150
#define QCOM_RPM_PM8018_LDO7 151
#define QCOM_RPM_PM8018_LDO8 152
#define QCOM_RPM_PM8018_LDO9 153
#define QCOM_RPM_PM8018_LDO10 154
#define QCOM_RPM_PM8018_LDO11 155
#define QCOM_RPM_PM8018_LDO12 156
#define QCOM_RPM_PM8018_LDO13 157
#define QCOM_RPM_PM8018_LDO14 158
#define QCOM_RPM_PM8018_LVS1 159
#define QCOM_RPM_PM8018_NCP 160
#define QCOM_RPM_VOLTAGE_CORNER 161
/*
* Constants used to select force mode for regulators.
*/
#define QCOM_RPM_FORCE_MODE_NONE 0
#define QCOM_RPM_FORCE_MODE_LPM 1
#define QCOM_RPM_FORCE_MODE_HPM 2
#define QCOM_RPM_FORCE_MODE_AUTO 3
#define QCOM_RPM_FORCE_MODE_BYPASS 4
#endif
+17
View File
@@ -0,0 +1,17 @@
/* SPDX-License-Identifier: GPL-2.0 */
/*
* This header provides shared DT/Driver defines for ST's LPC device
*
* Copyright (C) 2014 STMicroelectronics -- All Rights Reserved
*
* Author: Lee Jones <lee.jones@linaro.org> for STMicroelectronics
*/
#ifndef __DT_BINDINGS_ST_LPC_H__
#define __DT_BINDINGS_ST_LPC_H__
#define ST_LPC_MODE_RTC 0
#define ST_LPC_MODE_WDT 1
#define ST_LPC_MODE_CLKSRC 2
#endif /* __DT_BINDINGS_ST_LPC_H__ */
+109
View File
@@ -0,0 +1,109 @@
/* SPDX-License-Identifier: GPL-2.0 */
/*
* This header provides constants for the STM32F4 RCC IP
*/
#ifndef _DT_BINDINGS_MFD_STM32F4_RCC_H
#define _DT_BINDINGS_MFD_STM32F4_RCC_H
/* AHB1 */
#define STM32F4_RCC_AHB1_GPIOA 0
#define STM32F4_RCC_AHB1_GPIOB 1
#define STM32F4_RCC_AHB1_GPIOC 2
#define STM32F4_RCC_AHB1_GPIOD 3
#define STM32F4_RCC_AHB1_GPIOE 4
#define STM32F4_RCC_AHB1_GPIOF 5
#define STM32F4_RCC_AHB1_GPIOG 6
#define STM32F4_RCC_AHB1_GPIOH 7
#define STM32F4_RCC_AHB1_GPIOI 8
#define STM32F4_RCC_AHB1_GPIOJ 9
#define STM32F4_RCC_AHB1_GPIOK 10
#define STM32F4_RCC_AHB1_CRC 12
#define STM32F4_RCC_AHB1_BKPSRAM 18
#define STM32F4_RCC_AHB1_CCMDATARAM 20
#define STM32F4_RCC_AHB1_DMA1 21
#define STM32F4_RCC_AHB1_DMA2 22
#define STM32F4_RCC_AHB1_DMA2D 23
#define STM32F4_RCC_AHB1_ETHMAC 25
#define STM32F4_RCC_AHB1_ETHMACTX 26
#define STM32F4_RCC_AHB1_ETHMACRX 27
#define STM32F4_RCC_AHB1_ETHMACPTP 28
#define STM32F4_RCC_AHB1_OTGHS 29
#define STM32F4_RCC_AHB1_OTGHSULPI 30
#define STM32F4_AHB1_RESET(bit) (STM32F4_RCC_AHB1_##bit + (0x10 * 8))
#define STM32F4_AHB1_CLOCK(bit) (STM32F4_RCC_AHB1_##bit)
/* AHB2 */
#define STM32F4_RCC_AHB2_DCMI 0
#define STM32F4_RCC_AHB2_CRYP 4
#define STM32F4_RCC_AHB2_HASH 5
#define STM32F4_RCC_AHB2_RNG 6
#define STM32F4_RCC_AHB2_OTGFS 7
#define STM32F4_AHB2_RESET(bit) (STM32F4_RCC_AHB2_##bit + (0x14 * 8))
#define STM32F4_AHB2_CLOCK(bit) (STM32F4_RCC_AHB2_##bit + 0x20)
/* AHB3 */
#define STM32F4_RCC_AHB3_FMC 0
#define STM32F4_RCC_AHB3_QSPI 1
#define STM32F4_AHB3_RESET(bit) (STM32F4_RCC_AHB3_##bit + (0x18 * 8))
#define STM32F4_AHB3_CLOCK(bit) (STM32F4_RCC_AHB3_##bit + 0x40)
/* APB1 */
#define STM32F4_RCC_APB1_TIM2 0
#define STM32F4_RCC_APB1_TIM3 1
#define STM32F4_RCC_APB1_TIM4 2
#define STM32F4_RCC_APB1_TIM5 3
#define STM32F4_RCC_APB1_TIM6 4
#define STM32F4_RCC_APB1_TIM7 5
#define STM32F4_RCC_APB1_TIM12 6
#define STM32F4_RCC_APB1_TIM13 7
#define STM32F4_RCC_APB1_TIM14 8
#define STM32F4_RCC_APB1_WWDG 11
#define STM32F4_RCC_APB1_SPI2 14
#define STM32F4_RCC_APB1_SPI3 15
#define STM32F4_RCC_APB1_UART2 17
#define STM32F4_RCC_APB1_UART3 18
#define STM32F4_RCC_APB1_UART4 19
#define STM32F4_RCC_APB1_UART5 20
#define STM32F4_RCC_APB1_I2C1 21
#define STM32F4_RCC_APB1_I2C2 22
#define STM32F4_RCC_APB1_I2C3 23
#define STM32F4_RCC_APB1_CAN1 25
#define STM32F4_RCC_APB1_CAN2 26
#define STM32F4_RCC_APB1_PWR 28
#define STM32F4_RCC_APB1_DAC 29
#define STM32F4_RCC_APB1_UART7 30
#define STM32F4_RCC_APB1_UART8 31
#define STM32F4_APB1_RESET(bit) (STM32F4_RCC_APB1_##bit + (0x20 * 8))
#define STM32F4_APB1_CLOCK(bit) (STM32F4_RCC_APB1_##bit + 0x80)
/* APB2 */
#define STM32F4_RCC_APB2_TIM1 0
#define STM32F4_RCC_APB2_TIM8 1
#define STM32F4_RCC_APB2_USART1 4
#define STM32F4_RCC_APB2_USART6 5
#define STM32F4_RCC_APB2_ADC1 8
#define STM32F4_RCC_APB2_ADC2 9
#define STM32F4_RCC_APB2_ADC3 10
#define STM32F4_RCC_APB2_SDIO 11
#define STM32F4_RCC_APB2_SPI1 12
#define STM32F4_RCC_APB2_SPI4 13
#define STM32F4_RCC_APB2_SYSCFG 14
#define STM32F4_RCC_APB2_TIM9 16
#define STM32F4_RCC_APB2_TIM10 17
#define STM32F4_RCC_APB2_TIM11 18
#define STM32F4_RCC_APB2_SPI5 20
#define STM32F4_RCC_APB2_SPI6 21
#define STM32F4_RCC_APB2_SAI1 22
#define STM32F4_RCC_APB2_LTDC 26
#define STM32F4_RCC_APB2_DSI 27
#define STM32F4_APB2_RESET(bit) (STM32F4_RCC_APB2_##bit + (0x24 * 8))
#define STM32F4_APB2_CLOCK(bit) (STM32F4_RCC_APB2_##bit + 0xA0)
#endif /* _DT_BINDINGS_MFD_STM32F4_RCC_H */
+114
View File
@@ -0,0 +1,114 @@
/* SPDX-License-Identifier: GPL-2.0 */
/*
* This header provides constants for the STM32F7 RCC IP
*/
#ifndef _DT_BINDINGS_MFD_STM32F7_RCC_H
#define _DT_BINDINGS_MFD_STM32F7_RCC_H
/* AHB1 */
#define STM32F7_RCC_AHB1_GPIOA 0
#define STM32F7_RCC_AHB1_GPIOB 1
#define STM32F7_RCC_AHB1_GPIOC 2
#define STM32F7_RCC_AHB1_GPIOD 3
#define STM32F7_RCC_AHB1_GPIOE 4
#define STM32F7_RCC_AHB1_GPIOF 5
#define STM32F7_RCC_AHB1_GPIOG 6
#define STM32F7_RCC_AHB1_GPIOH 7
#define STM32F7_RCC_AHB1_GPIOI 8
#define STM32F7_RCC_AHB1_GPIOJ 9
#define STM32F7_RCC_AHB1_GPIOK 10
#define STM32F7_RCC_AHB1_CRC 12
#define STM32F7_RCC_AHB1_BKPSRAM 18
#define STM32F7_RCC_AHB1_DTCMRAM 20
#define STM32F7_RCC_AHB1_DMA1 21
#define STM32F7_RCC_AHB1_DMA2 22
#define STM32F7_RCC_AHB1_DMA2D 23
#define STM32F7_RCC_AHB1_ETHMAC 25
#define STM32F7_RCC_AHB1_ETHMACTX 26
#define STM32F7_RCC_AHB1_ETHMACRX 27
#define STM32FF_RCC_AHB1_ETHMACPTP 28
#define STM32F7_RCC_AHB1_OTGHS 29
#define STM32F7_RCC_AHB1_OTGHSULPI 30
#define STM32F7_AHB1_RESET(bit) (STM32F7_RCC_AHB1_##bit + (0x10 * 8))
#define STM32F7_AHB1_CLOCK(bit) (STM32F7_RCC_AHB1_##bit)
/* AHB2 */
#define STM32F7_RCC_AHB2_DCMI 0
#define STM32F7_RCC_AHB2_CRYP 4
#define STM32F7_RCC_AHB2_HASH 5
#define STM32F7_RCC_AHB2_RNG 6
#define STM32F7_RCC_AHB2_OTGFS 7
#define STM32F7_AHB2_RESET(bit) (STM32F7_RCC_AHB2_##bit + (0x14 * 8))
#define STM32F7_AHB2_CLOCK(bit) (STM32F7_RCC_AHB2_##bit + 0x20)
/* AHB3 */
#define STM32F7_RCC_AHB3_FMC 0
#define STM32F7_RCC_AHB3_QSPI 1
#define STM32F7_AHB3_RESET(bit) (STM32F7_RCC_AHB3_##bit + (0x18 * 8))
#define STM32F7_AHB3_CLOCK(bit) (STM32F7_RCC_AHB3_##bit + 0x40)
/* APB1 */
#define STM32F7_RCC_APB1_TIM2 0
#define STM32F7_RCC_APB1_TIM3 1
#define STM32F7_RCC_APB1_TIM4 2
#define STM32F7_RCC_APB1_TIM5 3
#define STM32F7_RCC_APB1_TIM6 4
#define STM32F7_RCC_APB1_TIM7 5
#define STM32F7_RCC_APB1_TIM12 6
#define STM32F7_RCC_APB1_TIM13 7
#define STM32F7_RCC_APB1_TIM14 8
#define STM32F7_RCC_APB1_LPTIM1 9
#define STM32F7_RCC_APB1_WWDG 11
#define STM32F7_RCC_APB1_SPI2 14
#define STM32F7_RCC_APB1_SPI3 15
#define STM32F7_RCC_APB1_SPDIFRX 16
#define STM32F7_RCC_APB1_UART2 17
#define STM32F7_RCC_APB1_UART3 18
#define STM32F7_RCC_APB1_UART4 19
#define STM32F7_RCC_APB1_UART5 20
#define STM32F7_RCC_APB1_I2C1 21
#define STM32F7_RCC_APB1_I2C2 22
#define STM32F7_RCC_APB1_I2C3 23
#define STM32F7_RCC_APB1_I2C4 24
#define STM32F7_RCC_APB1_CAN1 25
#define STM32F7_RCC_APB1_CAN2 26
#define STM32F7_RCC_APB1_CEC 27
#define STM32F7_RCC_APB1_PWR 28
#define STM32F7_RCC_APB1_DAC 29
#define STM32F7_RCC_APB1_UART7 30
#define STM32F7_RCC_APB1_UART8 31
#define STM32F7_APB1_RESET(bit) (STM32F7_RCC_APB1_##bit + (0x20 * 8))
#define STM32F7_APB1_CLOCK(bit) (STM32F7_RCC_APB1_##bit + 0x80)
/* APB2 */
#define STM32F7_RCC_APB2_TIM1 0
#define STM32F7_RCC_APB2_TIM8 1
#define STM32F7_RCC_APB2_USART1 4
#define STM32F7_RCC_APB2_USART6 5
#define STM32F7_RCC_APB2_SDMMC2 7
#define STM32F7_RCC_APB2_ADC1 8
#define STM32F7_RCC_APB2_ADC2 9
#define STM32F7_RCC_APB2_ADC3 10
#define STM32F7_RCC_APB2_SDMMC1 11
#define STM32F7_RCC_APB2_SPI1 12
#define STM32F7_RCC_APB2_SPI4 13
#define STM32F7_RCC_APB2_SYSCFG 14
#define STM32F7_RCC_APB2_TIM9 16
#define STM32F7_RCC_APB2_TIM10 17
#define STM32F7_RCC_APB2_TIM11 18
#define STM32F7_RCC_APB2_SPI5 20
#define STM32F7_RCC_APB2_SPI6 21
#define STM32F7_RCC_APB2_SAI1 22
#define STM32F7_RCC_APB2_SAI2 23
#define STM32F7_RCC_APB2_LTDC 26
#define STM32F7_APB2_RESET(bit) (STM32F7_RCC_APB2_##bit + (0x24 * 8))
#define STM32F7_APB2_CLOCK(bit) (STM32F7_RCC_APB2_##bit + 0xA0)
#endif /* _DT_BINDINGS_MFD_STM32F7_RCC_H */
+136
View File
@@ -0,0 +1,136 @@
/*
* This header provides constants for the STM32H7 RCC IP
*/
#ifndef _DT_BINDINGS_MFD_STM32H7_RCC_H
#define _DT_BINDINGS_MFD_STM32H7_RCC_H
/* AHB3 */
#define STM32H7_RCC_AHB3_MDMA 0
#define STM32H7_RCC_AHB3_DMA2D 4
#define STM32H7_RCC_AHB3_JPGDEC 5
#define STM32H7_RCC_AHB3_FMC 12
#define STM32H7_RCC_AHB3_QUADSPI 14
#define STM32H7_RCC_AHB3_SDMMC1 16
#define STM32H7_RCC_AHB3_CPU 31
#define STM32H7_AHB3_RESET(bit) (STM32H7_RCC_AHB3_##bit + (0x7C * 8))
/* AHB1 */
#define STM32H7_RCC_AHB1_DMA1 0
#define STM32H7_RCC_AHB1_DMA2 1
#define STM32H7_RCC_AHB1_ADC12 5
#define STM32H7_RCC_AHB1_ART 14
#define STM32H7_RCC_AHB1_ETH1MAC 15
#define STM32H7_RCC_AHB1_USB1OTG 25
#define STM32H7_RCC_AHB1_USB2OTG 27
#define STM32H7_AHB1_RESET(bit) (STM32H7_RCC_AHB1_##bit + (0x80 * 8))
/* AHB2 */
#define STM32H7_RCC_AHB2_CAMITF 0
#define STM32H7_RCC_AHB2_CRYPT 4
#define STM32H7_RCC_AHB2_HASH 5
#define STM32H7_RCC_AHB2_RNG 6
#define STM32H7_RCC_AHB2_SDMMC2 9
#define STM32H7_AHB2_RESET(bit) (STM32H7_RCC_AHB2_##bit + (0x84 * 8))
/* AHB4 */
#define STM32H7_RCC_AHB4_GPIOA 0
#define STM32H7_RCC_AHB4_GPIOB 1
#define STM32H7_RCC_AHB4_GPIOC 2
#define STM32H7_RCC_AHB4_GPIOD 3
#define STM32H7_RCC_AHB4_GPIOE 4
#define STM32H7_RCC_AHB4_GPIOF 5
#define STM32H7_RCC_AHB4_GPIOG 6
#define STM32H7_RCC_AHB4_GPIOH 7
#define STM32H7_RCC_AHB4_GPIOI 8
#define STM32H7_RCC_AHB4_GPIOJ 9
#define STM32H7_RCC_AHB4_GPIOK 10
#define STM32H7_RCC_AHB4_CRC 19
#define STM32H7_RCC_AHB4_BDMA 21
#define STM32H7_RCC_AHB4_ADC3 24
#define STM32H7_RCC_AHB4_HSEM 25
#define STM32H7_AHB4_RESET(bit) (STM32H7_RCC_AHB4_##bit + (0x88 * 8))
/* APB3 */
#define STM32H7_RCC_APB3_LTDC 3
#define STM32H7_RCC_APB3_DSI 4
#define STM32H7_APB3_RESET(bit) (STM32H7_RCC_APB3_##bit + (0x8C * 8))
/* APB1L */
#define STM32H7_RCC_APB1L_TIM2 0
#define STM32H7_RCC_APB1L_TIM3 1
#define STM32H7_RCC_APB1L_TIM4 2
#define STM32H7_RCC_APB1L_TIM5 3
#define STM32H7_RCC_APB1L_TIM6 4
#define STM32H7_RCC_APB1L_TIM7 5
#define STM32H7_RCC_APB1L_TIM12 6
#define STM32H7_RCC_APB1L_TIM13 7
#define STM32H7_RCC_APB1L_TIM14 8
#define STM32H7_RCC_APB1L_LPTIM1 9
#define STM32H7_RCC_APB1L_SPI2 14
#define STM32H7_RCC_APB1L_SPI3 15
#define STM32H7_RCC_APB1L_SPDIF_RX 16
#define STM32H7_RCC_APB1L_USART2 17
#define STM32H7_RCC_APB1L_USART3 18
#define STM32H7_RCC_APB1L_UART4 19
#define STM32H7_RCC_APB1L_UART5 20
#define STM32H7_RCC_APB1L_I2C1 21
#define STM32H7_RCC_APB1L_I2C2 22
#define STM32H7_RCC_APB1L_I2C3 23
#define STM32H7_RCC_APB1L_HDMICEC 27
#define STM32H7_RCC_APB1L_DAC12 29
#define STM32H7_RCC_APB1L_USART7 30
#define STM32H7_RCC_APB1L_USART8 31
#define STM32H7_APB1L_RESET(bit) (STM32H7_RCC_APB1L_##bit + (0x90 * 8))
/* APB1H */
#define STM32H7_RCC_APB1H_CRS 1
#define STM32H7_RCC_APB1H_SWP 2
#define STM32H7_RCC_APB1H_OPAMP 4
#define STM32H7_RCC_APB1H_MDIOS 5
#define STM32H7_RCC_APB1H_FDCAN 8
#define STM32H7_APB1H_RESET(bit) (STM32H7_RCC_APB1H_##bit + (0x94 * 8))
/* APB2 */
#define STM32H7_RCC_APB2_TIM1 0
#define STM32H7_RCC_APB2_TIM8 1
#define STM32H7_RCC_APB2_USART1 4
#define STM32H7_RCC_APB2_USART6 5
#define STM32H7_RCC_APB2_SPI1 12
#define STM32H7_RCC_APB2_SPI4 13
#define STM32H7_RCC_APB2_TIM15 16
#define STM32H7_RCC_APB2_TIM16 17
#define STM32H7_RCC_APB2_TIM17 18
#define STM32H7_RCC_APB2_SPI5 20
#define STM32H7_RCC_APB2_SAI1 22
#define STM32H7_RCC_APB2_SAI2 23
#define STM32H7_RCC_APB2_SAI3 24
#define STM32H7_RCC_APB2_DFSDM1 28
#define STM32H7_RCC_APB2_HRTIM 29
#define STM32H7_APB2_RESET(bit) (STM32H7_RCC_APB2_##bit + (0x98 * 8))
/* APB4 */
#define STM32H7_RCC_APB4_SYSCFG 1
#define STM32H7_RCC_APB4_LPUART1 3
#define STM32H7_RCC_APB4_SPI6 5
#define STM32H7_RCC_APB4_I2C4 7
#define STM32H7_RCC_APB4_LPTIM2 9
#define STM32H7_RCC_APB4_LPTIM3 10
#define STM32H7_RCC_APB4_LPTIM4 11
#define STM32H7_RCC_APB4_LPTIM5 12
#define STM32H7_RCC_APB4_COMP12 14
#define STM32H7_RCC_APB4_VREF 15
#define STM32H7_RCC_APB4_SAI4 21
#define STM32H7_RCC_APB4_TMPSENS 26
#define STM32H7_APB4_RESET(bit) (STM32H7_RCC_APB4_##bit + (0x9C * 8))
#endif /* _DT_BINDINGS_MFD_STM32H7_RCC_H */