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

+44
View File
@@ -0,0 +1,44 @@
/* SPDX-License-Identifier: GPL-2.0 */
/*
* This header provides constants specific to AM33XX pinctrl bindings.
*/
#ifndef _DT_BINDINGS_PINCTRL_AM33XX_H
#define _DT_BINDINGS_PINCTRL_AM33XX_H
#include <dt-bindings/pinctrl/omap.h>
/* am33xx specific mux bit defines */
#undef PULL_ENA
#undef INPUT_EN
#define PULL_DISABLE (1 << 3)
#define INPUT_EN (1 << 5)
#define SLEWCTRL_SLOW (1 << 6)
#define SLEWCTRL_FAST 0
/* update macro depending on INPUT_EN and PULL_ENA */
#undef PIN_OUTPUT
#undef PIN_OUTPUT_PULLUP
#undef PIN_OUTPUT_PULLDOWN
#undef PIN_INPUT
#undef PIN_INPUT_PULLUP
#undef PIN_INPUT_PULLDOWN
#define PIN_OUTPUT (PULL_DISABLE)
#define PIN_OUTPUT_PULLUP (PULL_UP)
#define PIN_OUTPUT_PULLDOWN 0
#define PIN_INPUT (INPUT_EN | PULL_DISABLE)
#define PIN_INPUT_PULLUP (INPUT_EN | PULL_UP)
#define PIN_INPUT_PULLDOWN (INPUT_EN)
/* undef non-existing modes */
#undef PIN_OFF_NONE
#undef PIN_OFF_OUTPUT_HIGH
#undef PIN_OFF_OUTPUT_LOW
#undef PIN_OFF_INPUT_PULLUP
#undef PIN_OFF_INPUT_PULLDOWN
#undef PIN_OFF_WAKEUPENABLE
#endif
+55
View File
@@ -0,0 +1,55 @@
/* SPDX-License-Identifier: GPL-2.0 */
/*
* This header provides constants specific to AM43XX pinctrl bindings.
*/
#ifndef _DT_BINDINGS_PINCTRL_AM43XX_H
#define _DT_BINDINGS_PINCTRL_AM43XX_H
#define MUX_MODE0 0
#define MUX_MODE1 1
#define MUX_MODE2 2
#define MUX_MODE3 3
#define MUX_MODE4 4
#define MUX_MODE5 5
#define MUX_MODE6 6
#define MUX_MODE7 7
#define MUX_MODE8 8
#define MUX_MODE9 9
#define PULL_DISABLE (1 << 16)
#define PULL_UP (1 << 17)
#define INPUT_EN (1 << 18)
#define SLEWCTRL_SLOW (1 << 19)
#define SLEWCTRL_FAST 0
#define DS0_FORCE_OFF_MODE (1 << 24)
#define DS0_INPUT (1 << 25)
#define DS0_FORCE_OUT_HIGH (1 << 26)
#define DS0_PULL_UP_DOWN_EN (0 << 27)
#define DS0_PULL_UP_DOWN_DIS (1 << 27)
#define DS0_PULL_UP_SEL (1 << 28)
#define WAKEUP_ENABLE (1 << 29)
#define DS0_PIN_OUTPUT (DS0_FORCE_OFF_MODE)
#define DS0_PIN_OUTPUT_HIGH (DS0_FORCE_OFF_MODE | DS0_FORCE_OUT_HIGH)
#define DS0_PIN_OUTPUT_PULLUP (DS0_FORCE_OFF_MODE | DS0_PULL_UP_DOWN_EN | DS0_PULL_UP_SEL)
#define DS0_PIN_OUTPUT_PULLDOWN (DS0_FORCE_OFF_MODE | DS0_PULL_UP_DOWN_EN)
#define DS0_PIN_INPUT (DS0_FORCE_OFF_MODE | DS0_INPUT)
#define DS0_PIN_INPUT_PULLUP (DS0_FORCE_OFF_MODE | DS0_INPUT | DS0_PULL_UP_DOWN_EN | DS0_PULL_UP_SEL)
#define DS0_PIN_INPUT_PULLDOWN (DS0_FORCE_OFF_MODE | DS0_INPUT | DS0_PULL_UP_DOWN_EN)
#define PIN_OUTPUT (PULL_DISABLE)
#define PIN_OUTPUT_PULLUP (PULL_UP)
#define PIN_OUTPUT_PULLDOWN 0
#define PIN_INPUT (INPUT_EN | PULL_DISABLE)
#define PIN_INPUT_PULLUP (INPUT_EN | PULL_UP)
#define PIN_INPUT_PULLDOWN (INPUT_EN)
/*
* Macro to allow using the absolute physical address instead of the
* padconf registers instead of the offset from padconf base.
*/
#define AM4372_IOPAD(pa, val) (((pa) & 0xffff) - 0x0800) (val)
#endif
+46
View File
@@ -0,0 +1,46 @@
/*
* This header provides constants for most at91 pinctrl bindings.
*
* Copyright (C) 2013 Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
*
* GPLv2 only
*/
#ifndef __DT_BINDINGS_AT91_PINCTRL_H__
#define __DT_BINDINGS_AT91_PINCTRL_H__
#define AT91_PINCTRL_NONE (0 << 0)
#define AT91_PINCTRL_PULL_UP (1 << 0)
#define AT91_PINCTRL_MULTI_DRIVE (1 << 1)
#define AT91_PINCTRL_DEGLITCH (1 << 2)
#define AT91_PINCTRL_PULL_DOWN (1 << 3)
#define AT91_PINCTRL_DIS_SCHMIT (1 << 4)
#define AT91_PINCTRL_OUTPUT (1 << 7)
#define AT91_PINCTRL_OUTPUT_VAL(x) ((x & 0x1) << 8)
#define AT91_PINCTRL_DEBOUNCE (1 << 16)
#define AT91_PINCTRL_DEBOUNCE_VAL(x) (x << 17)
#define AT91_PINCTRL_PULL_UP_DEGLITCH (AT91_PINCTRL_PULL_UP | AT91_PINCTRL_DEGLITCH)
#define AT91_PINCTRL_DRIVE_STRENGTH_DEFAULT (0x0 << 5)
#define AT91_PINCTRL_DRIVE_STRENGTH_LOW (0x1 << 5)
#define AT91_PINCTRL_DRIVE_STRENGTH_MED (0x2 << 5)
#define AT91_PINCTRL_DRIVE_STRENGTH_HI (0x3 << 5)
#define AT91_PIOA 0
#define AT91_PIOB 1
#define AT91_PIOC 2
#define AT91_PIOD 3
#define AT91_PIOE 4
#define AT91_PERIPH_GPIO 0
#define AT91_PERIPH_A 1
#define AT91_PERIPH_B 2
#define AT91_PERIPH_C 3
#define AT91_PERIPH_D 4
#define ATMEL_PIO_DRVSTR_LO 1
#define ATMEL_PIO_DRVSTR_ME 2
#define ATMEL_PIO_DRVSTR_HI 3
#endif /* __DT_BINDINGS_AT91_PINCTRL_H__ */
+32
View File
@@ -0,0 +1,32 @@
/*
* Header providing constants for bcm2835 pinctrl bindings.
*
* Copyright (C) 2015 Stefan Wahren <stefan.wahren@i2se.com>
*
* The code contained herein is licensed under the GNU General Public
* License. You may obtain a copy of the GNU General Public License
* Version 2 at the following locations:
*
* http://www.opensource.org/licenses/gpl-license.html
* http://www.gnu.org/copyleft/gpl.html
*/
#ifndef __DT_BINDINGS_PINCTRL_BCM2835_H__
#define __DT_BINDINGS_PINCTRL_BCM2835_H__
/* brcm,function property */
#define BCM2835_FSEL_GPIO_IN 0
#define BCM2835_FSEL_GPIO_OUT 1
#define BCM2835_FSEL_ALT5 2
#define BCM2835_FSEL_ALT4 3
#define BCM2835_FSEL_ALT0 4
#define BCM2835_FSEL_ALT1 5
#define BCM2835_FSEL_ALT2 6
#define BCM2835_FSEL_ALT3 7
/* brcm,pull property */
#define BCM2835_PUD_OFF 0
#define BCM2835_PUD_DOWN 1
#define BCM2835_PUD_UP 2
#endif /* __DT_BINDINGS_PINCTRL_BCM2835_H__ */
@@ -0,0 +1,68 @@
/*
* BSD LICENSE
*
* Copyright(c) 2017 Broadcom Corporation. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in
* the documentation and/or other materials provided with the
* distribution.
* * Neither the name of Broadcom Corporation nor the names of its
* contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
* A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
* OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#ifndef __DT_BINDINGS_PINCTRL_BRCM_STINGRAY_H__
#define __DT_BINDINGS_PINCTRL_BRCM_STINGRAY_H__
/* Alternate functions available in MUX controller */
#define MODE_NITRO 0
#define MODE_NAND 1
#define MODE_PNOR 2
#define MODE_GPIO 3
/* Pad configuration attribute */
#define PAD_SLEW_RATE_ENA (1 << 0)
#define PAD_SLEW_RATE_ENA_MASK (1 << 0)
#define PAD_DRIVE_STRENGTH_2_MA (0 << 1)
#define PAD_DRIVE_STRENGTH_4_MA (1 << 1)
#define PAD_DRIVE_STRENGTH_6_MA (2 << 1)
#define PAD_DRIVE_STRENGTH_8_MA (3 << 1)
#define PAD_DRIVE_STRENGTH_10_MA (4 << 1)
#define PAD_DRIVE_STRENGTH_12_MA (5 << 1)
#define PAD_DRIVE_STRENGTH_14_MA (6 << 1)
#define PAD_DRIVE_STRENGTH_16_MA (7 << 1)
#define PAD_DRIVE_STRENGTH_MASK (7 << 1)
#define PAD_PULL_UP_ENA (1 << 4)
#define PAD_PULL_UP_ENA_MASK (1 << 4)
#define PAD_PULL_DOWN_ENA (1 << 5)
#define PAD_PULL_DOWN_ENA_MASK (1 << 5)
#define PAD_INPUT_PATH_DIS (1 << 6)
#define PAD_INPUT_PATH_DIS_MASK (1 << 6)
#define PAD_HYSTERESIS_ENA (1 << 7)
#define PAD_HYSTERESIS_ENA_MASK (1 << 7)
#endif
+49
View File
@@ -0,0 +1,49 @@
/* SPDX-License-Identifier: GPL-2.0 */
/*
* This header provides constants specific to DM814X pinctrl bindings.
*/
#ifndef _DT_BINDINGS_PINCTRL_DM814X_H
#define _DT_BINDINGS_PINCTRL_DM814X_H
#include <dt-bindings/pinctrl/omap.h>
#undef INPUT_EN
#undef PULL_UP
#undef PULL_ENA
/*
* Note that dm814x silicon revision 2.1 and older require input enabled
* (bit 18 set) for all 3.3V I/Os to avoid cumulative hardware damage. For
* more info, see errata advisory 2.1.87. We leave bit 18 out of
* function-mask in dm814x.h and rely on the bootloader for it.
*/
#define INPUT_EN (1 << 18)
#define PULL_UP (1 << 17)
#define PULL_DISABLE (1 << 16)
/* update macro depending on INPUT_EN and PULL_ENA */
#undef PIN_OUTPUT
#undef PIN_OUTPUT_PULLUP
#undef PIN_OUTPUT_PULLDOWN
#undef PIN_INPUT
#undef PIN_INPUT_PULLUP
#undef PIN_INPUT_PULLDOWN
#define PIN_OUTPUT (PULL_DISABLE)
#define PIN_OUTPUT_PULLUP (PULL_UP)
#define PIN_OUTPUT_PULLDOWN 0
#define PIN_INPUT (INPUT_EN | PULL_DISABLE)
#define PIN_INPUT_PULLUP (INPUT_EN | PULL_UP)
#define PIN_INPUT_PULLDOWN (INPUT_EN)
/* undef non-existing modes */
#undef PIN_OFF_NONE
#undef PIN_OFF_OUTPUT_HIGH
#undef PIN_OFF_OUTPUT_LOW
#undef PIN_OFF_INPUT_PULLUP
#undef PIN_OFF_INPUT_PULLDOWN
#undef PIN_OFF_WAKEUPENABLE
#endif
+80
View File
@@ -0,0 +1,80 @@
/*
* This header provides constants for DRA pinctrl bindings.
*
* Copyright (C) 2013 Texas Instruments Incorporated - http://www.ti.com/
* Author: Rajendra Nayak <rnayak@ti.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_PINCTRL_DRA_H
#define _DT_BINDINGS_PINCTRL_DRA_H
/* DRA7 mux mode options for each pin. See TRM for options */
#define MUX_MODE0 0x0
#define MUX_MODE1 0x1
#define MUX_MODE2 0x2
#define MUX_MODE3 0x3
#define MUX_MODE4 0x4
#define MUX_MODE5 0x5
#define MUX_MODE6 0x6
#define MUX_MODE7 0x7
#define MUX_MODE8 0x8
#define MUX_MODE9 0x9
#define MUX_MODE10 0xa
#define MUX_MODE11 0xb
#define MUX_MODE12 0xc
#define MUX_MODE13 0xd
#define MUX_MODE14 0xe
#define MUX_MODE15 0xf
/* Certain pins need virtual mode, but note: they may glitch */
#define MUX_VIRTUAL_MODE0 (MODE_SELECT | (0x0 << 4))
#define MUX_VIRTUAL_MODE1 (MODE_SELECT | (0x1 << 4))
#define MUX_VIRTUAL_MODE2 (MODE_SELECT | (0x2 << 4))
#define MUX_VIRTUAL_MODE3 (MODE_SELECT | (0x3 << 4))
#define MUX_VIRTUAL_MODE4 (MODE_SELECT | (0x4 << 4))
#define MUX_VIRTUAL_MODE5 (MODE_SELECT | (0x5 << 4))
#define MUX_VIRTUAL_MODE6 (MODE_SELECT | (0x6 << 4))
#define MUX_VIRTUAL_MODE7 (MODE_SELECT | (0x7 << 4))
#define MUX_VIRTUAL_MODE8 (MODE_SELECT | (0x8 << 4))
#define MUX_VIRTUAL_MODE9 (MODE_SELECT | (0x9 << 4))
#define MUX_VIRTUAL_MODE10 (MODE_SELECT | (0xa << 4))
#define MUX_VIRTUAL_MODE11 (MODE_SELECT | (0xb << 4))
#define MUX_VIRTUAL_MODE12 (MODE_SELECT | (0xc << 4))
#define MUX_VIRTUAL_MODE13 (MODE_SELECT | (0xd << 4))
#define MUX_VIRTUAL_MODE14 (MODE_SELECT | (0xe << 4))
#define MUX_VIRTUAL_MODE15 (MODE_SELECT | (0xf << 4))
#define MODE_SELECT (1 << 8)
#define PULL_ENA (0 << 16)
#define PULL_DIS (1 << 16)
#define PULL_UP (1 << 17)
#define INPUT_EN (1 << 18)
#define SLEWCONTROL (1 << 19)
#define WAKEUP_EN (1 << 24)
#define WAKEUP_EVENT (1 << 25)
/* Active pin states */
#define PIN_OUTPUT (0 | PULL_DIS)
#define PIN_OUTPUT_PULLUP (PULL_UP)
#define PIN_OUTPUT_PULLDOWN (0)
#define PIN_INPUT (INPUT_EN | PULL_DIS)
#define PIN_INPUT_SLEW (INPUT_EN | SLEWCONTROL)
#define PIN_INPUT_PULLUP (PULL_ENA | INPUT_EN | PULL_UP)
#define PIN_INPUT_PULLDOWN (PULL_ENA | INPUT_EN)
/*
* Macro to allow using the absolute physical address instead of the
* padconf registers instead of the offset from padconf base.
*/
#define DRA7XX_CORE_IOPAD(pa, val) (((pa) & 0xffff) - 0x3400) (val)
/* DRA7 IODELAY configuration parameters */
#define A_DELAY_PS(val) ((val) & 0xffff)
#define G_DELAY_PS(val) ((val) & 0xffff)
#endif
+74
View File
@@ -0,0 +1,74 @@
/*
* This header provides constants for hisilicon pinctrl bindings.
*
* Copyright (c) 2015 Hisilicon Limited.
* Copyright (c) 2015 Linaro Limited.
*
* 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 "as is" WITHOUT ANY WARRANTY of any
* kind, whether express or implied; without even the implied warranty
* of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*/
#ifndef _DT_BINDINGS_PINCTRL_HISI_H
#define _DT_BINDINGS_PINCTRL_HISI_H
/* iomg bit definition */
#define MUX_M0 0
#define MUX_M1 1
#define MUX_M2 2
#define MUX_M3 3
#define MUX_M4 4
#define MUX_M5 5
#define MUX_M6 6
#define MUX_M7 7
/* iocg bit definition */
#define PULL_MASK (3)
#define PULL_DIS (0)
#define PULL_UP (1 << 0)
#define PULL_DOWN (1 << 1)
/* drive strength definition */
#define DRIVE_MASK (7 << 4)
#define DRIVE1_02MA (0 << 4)
#define DRIVE1_04MA (1 << 4)
#define DRIVE1_08MA (2 << 4)
#define DRIVE1_10MA (3 << 4)
#define DRIVE2_02MA (0 << 4)
#define DRIVE2_04MA (1 << 4)
#define DRIVE2_08MA (2 << 4)
#define DRIVE2_10MA (3 << 4)
#define DRIVE3_04MA (0 << 4)
#define DRIVE3_08MA (1 << 4)
#define DRIVE3_12MA (2 << 4)
#define DRIVE3_16MA (3 << 4)
#define DRIVE3_20MA (4 << 4)
#define DRIVE3_24MA (5 << 4)
#define DRIVE3_32MA (6 << 4)
#define DRIVE3_40MA (7 << 4)
#define DRIVE4_02MA (0 << 4)
#define DRIVE4_04MA (2 << 4)
#define DRIVE4_08MA (4 << 4)
#define DRIVE4_10MA (6 << 4)
/* drive strength definition for hi3660 */
#define DRIVE6_MASK (15 << 4)
#define DRIVE6_04MA (0 << 4)
#define DRIVE6_12MA (4 << 4)
#define DRIVE6_19MA (8 << 4)
#define DRIVE6_27MA (10 << 4)
#define DRIVE6_32MA (15 << 4)
#define DRIVE7_02MA (0 << 4)
#define DRIVE7_04MA (1 << 4)
#define DRIVE7_06MA (2 << 4)
#define DRIVE7_08MA (3 << 4)
#define DRIVE7_10MA (4 << 4)
#define DRIVE7_12MA (5 << 4)
#define DRIVE7_14MA (6 << 4)
#define DRIVE7_16MA (7 << 4)
#endif
+39
View File
@@ -0,0 +1,39 @@
/*
* This header provides constants for Keystone pinctrl bindings.
*
* Copyright (C) 2016 Texas Instruments Incorporated - http://www.ti.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 "as is" WITHOUT ANY WARRANTY of any
* kind, whether express or implied; without even the implied warranty
* of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*/
#ifndef _DT_BINDINGS_PINCTRL_KEYSTONE_H
#define _DT_BINDINGS_PINCTRL_KEYSTONE_H
#define MUX_MODE0 0
#define MUX_MODE1 1
#define MUX_MODE2 2
#define MUX_MODE3 3
#define MUX_MODE4 4
#define MUX_MODE5 5
#define BUFFER_CLASS_B (0 << 19)
#define BUFFER_CLASS_C (1 << 19)
#define BUFFER_CLASS_D (2 << 19)
#define BUFFER_CLASS_E (3 << 19)
#define PULL_DISABLE (1 << 16)
#define PIN_PULLUP (1 << 17)
#define PIN_PULLDOWN (0 << 17)
#define KEYSTONE_IOPAD_OFFSET(pa, offset) (((pa) & 0xffff) - (offset))
#define K2G_CORE_IOPAD(pa) KEYSTONE_IOPAD_OFFSET((pa), 0x1000)
#endif
@@ -0,0 +1,257 @@
/* SPDX-License-Identifier: GPL-2.0 */
#ifndef __DTS_MT6397_PINFUNC_H
#define __DTS_MT6397_PINFUNC_H
#include <dt-bindings/pinctrl/mt65xx.h>
#define MT6397_PIN_0_INT__FUNC_GPIO0 (MTK_PIN_NO(0) | 0)
#define MT6397_PIN_0_INT__FUNC_INT (MTK_PIN_NO(0) | 1)
#define MT6397_PIN_1_SRCVOLTEN__FUNC_GPIO1 (MTK_PIN_NO(1) | 0)
#define MT6397_PIN_1_SRCVOLTEN__FUNC_SRCVOLTEN (MTK_PIN_NO(1) | 1)
#define MT6397_PIN_1_SRCVOLTEN__FUNC_TEST_CK1 (MTK_PIN_NO(1) | 6)
#define MT6397_PIN_2_SRCLKEN_PERI__FUNC_GPIO2 (MTK_PIN_NO(2) | 0)
#define MT6397_PIN_2_SRCLKEN_PERI__FUNC_SRCLKEN_PERI (MTK_PIN_NO(2) | 1)
#define MT6397_PIN_2_SRCLKEN_PERI__FUNC_TEST_CK2 (MTK_PIN_NO(2) | 6)
#define MT6397_PIN_3_RTC_32K1V8__FUNC_GPIO3 (MTK_PIN_NO(3) | 0)
#define MT6397_PIN_3_RTC_32K1V8__FUNC_RTC_32K1V8 (MTK_PIN_NO(3) | 1)
#define MT6397_PIN_3_RTC_32K1V8__FUNC_TEST_CK3 (MTK_PIN_NO(3) | 6)
#define MT6397_PIN_4_WRAP_EVENT__FUNC_GPIO4 (MTK_PIN_NO(4) | 0)
#define MT6397_PIN_4_WRAP_EVENT__FUNC_WRAP_EVENT (MTK_PIN_NO(4) | 1)
#define MT6397_PIN_5_SPI_CLK__FUNC_GPIO5 (MTK_PIN_NO(5) | 0)
#define MT6397_PIN_5_SPI_CLK__FUNC_SPI_CLK (MTK_PIN_NO(5) | 1)
#define MT6397_PIN_6_SPI_CSN__FUNC_GPIO6 (MTK_PIN_NO(6) | 0)
#define MT6397_PIN_6_SPI_CSN__FUNC_SPI_CSN (MTK_PIN_NO(6) | 1)
#define MT6397_PIN_7_SPI_MOSI__FUNC_GPIO7 (MTK_PIN_NO(7) | 0)
#define MT6397_PIN_7_SPI_MOSI__FUNC_SPI_MOSI (MTK_PIN_NO(7) | 1)
#define MT6397_PIN_8_SPI_MISO__FUNC_GPIO8 (MTK_PIN_NO(8) | 0)
#define MT6397_PIN_8_SPI_MISO__FUNC_SPI_MISO (MTK_PIN_NO(8) | 1)
#define MT6397_PIN_9_AUD_CLK_MOSI__FUNC_GPIO9 (MTK_PIN_NO(9) | 0)
#define MT6397_PIN_9_AUD_CLK_MOSI__FUNC_AUD_CLK (MTK_PIN_NO(9) | 1)
#define MT6397_PIN_9_AUD_CLK_MOSI__FUNC_TEST_IN0 (MTK_PIN_NO(9) | 6)
#define MT6397_PIN_9_AUD_CLK_MOSI__FUNC_TEST_OUT0 (MTK_PIN_NO(9) | 7)
#define MT6397_PIN_10_AUD_DAT_MISO__FUNC_GPIO10 (MTK_PIN_NO(10) | 0)
#define MT6397_PIN_10_AUD_DAT_MISO__FUNC_AUD_MISO (MTK_PIN_NO(10) | 1)
#define MT6397_PIN_10_AUD_DAT_MISO__FUNC_TEST_IN1 (MTK_PIN_NO(10) | 6)
#define MT6397_PIN_10_AUD_DAT_MISO__FUNC_TEST_OUT1 (MTK_PIN_NO(10) | 7)
#define MT6397_PIN_11_AUD_DAT_MOSI__FUNC_GPIO11 (MTK_PIN_NO(11) | 0)
#define MT6397_PIN_11_AUD_DAT_MOSI__FUNC_AUD_MOSI (MTK_PIN_NO(11) | 1)
#define MT6397_PIN_11_AUD_DAT_MOSI__FUNC_TEST_IN2 (MTK_PIN_NO(11) | 6)
#define MT6397_PIN_11_AUD_DAT_MOSI__FUNC_TEST_OUT2 (MTK_PIN_NO(11) | 7)
#define MT6397_PIN_12_COL0__FUNC_GPIO12 (MTK_PIN_NO(12) | 0)
#define MT6397_PIN_12_COL0__FUNC_COL0_USBDL (MTK_PIN_NO(12) | 1)
#define MT6397_PIN_12_COL0__FUNC_EINT10_1X (MTK_PIN_NO(12) | 2)
#define MT6397_PIN_12_COL0__FUNC_PWM1_3X (MTK_PIN_NO(12) | 3)
#define MT6397_PIN_12_COL0__FUNC_TEST_IN3 (MTK_PIN_NO(12) | 6)
#define MT6397_PIN_12_COL0__FUNC_TEST_OUT3 (MTK_PIN_NO(12) | 7)
#define MT6397_PIN_13_COL1__FUNC_GPIO13 (MTK_PIN_NO(13) | 0)
#define MT6397_PIN_13_COL1__FUNC_COL1 (MTK_PIN_NO(13) | 1)
#define MT6397_PIN_13_COL1__FUNC_EINT11_1X (MTK_PIN_NO(13) | 2)
#define MT6397_PIN_13_COL1__FUNC_SCL0_2X (MTK_PIN_NO(13) | 3)
#define MT6397_PIN_13_COL1__FUNC_TEST_IN4 (MTK_PIN_NO(13) | 6)
#define MT6397_PIN_13_COL1__FUNC_TEST_OUT4 (MTK_PIN_NO(13) | 7)
#define MT6397_PIN_14_COL2__FUNC_GPIO14 (MTK_PIN_NO(14) | 0)
#define MT6397_PIN_14_COL2__FUNC_COL2 (MTK_PIN_NO(14) | 1)
#define MT6397_PIN_14_COL2__FUNC_EINT12_1X (MTK_PIN_NO(14) | 2)
#define MT6397_PIN_14_COL2__FUNC_SDA0_2X (MTK_PIN_NO(14) | 3)
#define MT6397_PIN_14_COL2__FUNC_TEST_IN5 (MTK_PIN_NO(14) | 6)
#define MT6397_PIN_14_COL2__FUNC_TEST_OUT5 (MTK_PIN_NO(14) | 7)
#define MT6397_PIN_15_COL3__FUNC_GPIO15 (MTK_PIN_NO(15) | 0)
#define MT6397_PIN_15_COL3__FUNC_COL3 (MTK_PIN_NO(15) | 1)
#define MT6397_PIN_15_COL3__FUNC_EINT13_1X (MTK_PIN_NO(15) | 2)
#define MT6397_PIN_15_COL3__FUNC_SCL1_2X (MTK_PIN_NO(15) | 3)
#define MT6397_PIN_15_COL3__FUNC_TEST_IN6 (MTK_PIN_NO(15) | 6)
#define MT6397_PIN_15_COL3__FUNC_TEST_OUT6 (MTK_PIN_NO(15) | 7)
#define MT6397_PIN_16_COL4__FUNC_GPIO16 (MTK_PIN_NO(16) | 0)
#define MT6397_PIN_16_COL4__FUNC_COL4 (MTK_PIN_NO(16) | 1)
#define MT6397_PIN_16_COL4__FUNC_EINT14_1X (MTK_PIN_NO(16) | 2)
#define MT6397_PIN_16_COL4__FUNC_SDA1_2X (MTK_PIN_NO(16) | 3)
#define MT6397_PIN_16_COL4__FUNC_TEST_IN7 (MTK_PIN_NO(16) | 6)
#define MT6397_PIN_16_COL4__FUNC_TEST_OUT7 (MTK_PIN_NO(16) | 7)
#define MT6397_PIN_17_COL5__FUNC_GPIO17 (MTK_PIN_NO(17) | 0)
#define MT6397_PIN_17_COL5__FUNC_COL5 (MTK_PIN_NO(17) | 1)
#define MT6397_PIN_17_COL5__FUNC_EINT15_1X (MTK_PIN_NO(17) | 2)
#define MT6397_PIN_17_COL5__FUNC_SCL2_2X (MTK_PIN_NO(17) | 3)
#define MT6397_PIN_17_COL5__FUNC_TEST_IN8 (MTK_PIN_NO(17) | 6)
#define MT6397_PIN_17_COL5__FUNC_TEST_OUT8 (MTK_PIN_NO(17) | 7)
#define MT6397_PIN_18_COL6__FUNC_GPIO18 (MTK_PIN_NO(18) | 0)
#define MT6397_PIN_18_COL6__FUNC_COL6 (MTK_PIN_NO(18) | 1)
#define MT6397_PIN_18_COL6__FUNC_EINT16_1X (MTK_PIN_NO(18) | 2)
#define MT6397_PIN_18_COL6__FUNC_SDA2_2X (MTK_PIN_NO(18) | 3)
#define MT6397_PIN_18_COL6__FUNC_GPIO32K_0 (MTK_PIN_NO(18) | 4)
#define MT6397_PIN_18_COL6__FUNC_GPIO26M_0 (MTK_PIN_NO(18) | 5)
#define MT6397_PIN_18_COL6__FUNC_TEST_IN9 (MTK_PIN_NO(18) | 6)
#define MT6397_PIN_18_COL6__FUNC_TEST_OUT9 (MTK_PIN_NO(18) | 7)
#define MT6397_PIN_19_COL7__FUNC_GPIO19 (MTK_PIN_NO(19) | 0)
#define MT6397_PIN_19_COL7__FUNC_COL7 (MTK_PIN_NO(19) | 1)
#define MT6397_PIN_19_COL7__FUNC_EINT17_1X (MTK_PIN_NO(19) | 2)
#define MT6397_PIN_19_COL7__FUNC_PWM2_3X (MTK_PIN_NO(19) | 3)
#define MT6397_PIN_19_COL7__FUNC_GPIO32K_1 (MTK_PIN_NO(19) | 4)
#define MT6397_PIN_19_COL7__FUNC_GPIO26M_1 (MTK_PIN_NO(19) | 5)
#define MT6397_PIN_19_COL7__FUNC_TEST_IN10 (MTK_PIN_NO(19) | 6)
#define MT6397_PIN_19_COL7__FUNC_TEST_OUT10 (MTK_PIN_NO(19) | 7)
#define MT6397_PIN_20_ROW0__FUNC_GPIO20 (MTK_PIN_NO(20) | 0)
#define MT6397_PIN_20_ROW0__FUNC_ROW0 (MTK_PIN_NO(20) | 1)
#define MT6397_PIN_20_ROW0__FUNC_EINT18_1X (MTK_PIN_NO(20) | 2)
#define MT6397_PIN_20_ROW0__FUNC_SCL0_3X (MTK_PIN_NO(20) | 3)
#define MT6397_PIN_20_ROW0__FUNC_TEST_IN11 (MTK_PIN_NO(20) | 6)
#define MT6397_PIN_20_ROW0__FUNC_TEST_OUT11 (MTK_PIN_NO(20) | 7)
#define MT6397_PIN_21_ROW1__FUNC_GPIO21 (MTK_PIN_NO(21) | 0)
#define MT6397_PIN_21_ROW1__FUNC_ROW1 (MTK_PIN_NO(21) | 1)
#define MT6397_PIN_21_ROW1__FUNC_EINT19_1X (MTK_PIN_NO(21) | 2)
#define MT6397_PIN_21_ROW1__FUNC_SDA0_3X (MTK_PIN_NO(21) | 3)
#define MT6397_PIN_21_ROW1__FUNC_AUD_TSTCK (MTK_PIN_NO(21) | 4)
#define MT6397_PIN_21_ROW1__FUNC_TEST_IN12 (MTK_PIN_NO(21) | 6)
#define MT6397_PIN_21_ROW1__FUNC_TEST_OUT12 (MTK_PIN_NO(21) | 7)
#define MT6397_PIN_22_ROW2__FUNC_GPIO22 (MTK_PIN_NO(22) | 0)
#define MT6397_PIN_22_ROW2__FUNC_ROW2 (MTK_PIN_NO(22) | 1)
#define MT6397_PIN_22_ROW2__FUNC_EINT20_1X (MTK_PIN_NO(22) | 2)
#define MT6397_PIN_22_ROW2__FUNC_SCL1_3X (MTK_PIN_NO(22) | 3)
#define MT6397_PIN_22_ROW2__FUNC_TEST_IN13 (MTK_PIN_NO(22) | 6)
#define MT6397_PIN_22_ROW2__FUNC_TEST_OUT13 (MTK_PIN_NO(22) | 7)
#define MT6397_PIN_23_ROW3__FUNC_GPIO23 (MTK_PIN_NO(23) | 0)
#define MT6397_PIN_23_ROW3__FUNC_ROW3 (MTK_PIN_NO(23) | 1)
#define MT6397_PIN_23_ROW3__FUNC_EINT21_1X (MTK_PIN_NO(23) | 2)
#define MT6397_PIN_23_ROW3__FUNC_SDA1_3X (MTK_PIN_NO(23) | 3)
#define MT6397_PIN_23_ROW3__FUNC_TEST_IN14 (MTK_PIN_NO(23) | 6)
#define MT6397_PIN_23_ROW3__FUNC_TEST_OUT14 (MTK_PIN_NO(23) | 7)
#define MT6397_PIN_24_ROW4__FUNC_GPIO24 (MTK_PIN_NO(24) | 0)
#define MT6397_PIN_24_ROW4__FUNC_ROW4 (MTK_PIN_NO(24) | 1)
#define MT6397_PIN_24_ROW4__FUNC_EINT22_1X (MTK_PIN_NO(24) | 2)
#define MT6397_PIN_24_ROW4__FUNC_SCL2_3X (MTK_PIN_NO(24) | 3)
#define MT6397_PIN_24_ROW4__FUNC_TEST_IN15 (MTK_PIN_NO(24) | 6)
#define MT6397_PIN_24_ROW4__FUNC_TEST_OUT15 (MTK_PIN_NO(24) | 7)
#define MT6397_PIN_25_ROW5__FUNC_GPIO25 (MTK_PIN_NO(25) | 0)
#define MT6397_PIN_25_ROW5__FUNC_ROW5 (MTK_PIN_NO(25) | 1)
#define MT6397_PIN_25_ROW5__FUNC_EINT23_1X (MTK_PIN_NO(25) | 2)
#define MT6397_PIN_25_ROW5__FUNC_SDA2_3X (MTK_PIN_NO(25) | 3)
#define MT6397_PIN_25_ROW5__FUNC_TEST_IN16 (MTK_PIN_NO(25) | 6)
#define MT6397_PIN_25_ROW5__FUNC_TEST_OUT16 (MTK_PIN_NO(25) | 7)
#define MT6397_PIN_26_ROW6__FUNC_GPIO26 (MTK_PIN_NO(26) | 0)
#define MT6397_PIN_26_ROW6__FUNC_ROW6 (MTK_PIN_NO(26) | 1)
#define MT6397_PIN_26_ROW6__FUNC_EINT24_1X (MTK_PIN_NO(26) | 2)
#define MT6397_PIN_26_ROW6__FUNC_PWM3_3X (MTK_PIN_NO(26) | 3)
#define MT6397_PIN_26_ROW6__FUNC_GPIO32K_2 (MTK_PIN_NO(26) | 4)
#define MT6397_PIN_26_ROW6__FUNC_GPIO26M_2 (MTK_PIN_NO(26) | 5)
#define MT6397_PIN_26_ROW6__FUNC_TEST_IN17 (MTK_PIN_NO(26) | 6)
#define MT6397_PIN_26_ROW6__FUNC_TEST_OUT17 (MTK_PIN_NO(26) | 7)
#define MT6397_PIN_27_ROW7__FUNC_GPIO27 (MTK_PIN_NO(27) | 0)
#define MT6397_PIN_27_ROW7__FUNC_ROW7 (MTK_PIN_NO(27) | 1)
#define MT6397_PIN_27_ROW7__FUNC_EINT3_1X (MTK_PIN_NO(27) | 2)
#define MT6397_PIN_27_ROW7__FUNC_CBUS (MTK_PIN_NO(27) | 3)
#define MT6397_PIN_27_ROW7__FUNC_GPIO32K_3 (MTK_PIN_NO(27) | 4)
#define MT6397_PIN_27_ROW7__FUNC_GPIO26M_3 (MTK_PIN_NO(27) | 5)
#define MT6397_PIN_27_ROW7__FUNC_TEST_IN18 (MTK_PIN_NO(27) | 6)
#define MT6397_PIN_27_ROW7__FUNC_TEST_OUT18 (MTK_PIN_NO(27) | 7)
#define MT6397_PIN_28_PWM1__FUNC_GPIO28 (MTK_PIN_NO(28) | 0)
#define MT6397_PIN_28_PWM1__FUNC_PWM1 (MTK_PIN_NO(28) | 1)
#define MT6397_PIN_28_PWM1__FUNC_EINT4_1X (MTK_PIN_NO(28) | 2)
#define MT6397_PIN_28_PWM1__FUNC_GPIO32K_4 (MTK_PIN_NO(28) | 4)
#define MT6397_PIN_28_PWM1__FUNC_GPIO26M_4 (MTK_PIN_NO(28) | 5)
#define MT6397_PIN_28_PWM1__FUNC_TEST_IN19 (MTK_PIN_NO(28) | 6)
#define MT6397_PIN_28_PWM1__FUNC_TEST_OUT19 (MTK_PIN_NO(28) | 7)
#define MT6397_PIN_29_PWM2__FUNC_GPIO29 (MTK_PIN_NO(29) | 0)
#define MT6397_PIN_29_PWM2__FUNC_PWM2 (MTK_PIN_NO(29) | 1)
#define MT6397_PIN_29_PWM2__FUNC_EINT5_1X (MTK_PIN_NO(29) | 2)
#define MT6397_PIN_29_PWM2__FUNC_GPIO32K_5 (MTK_PIN_NO(29) | 4)
#define MT6397_PIN_29_PWM2__FUNC_GPIO26M_5 (MTK_PIN_NO(29) | 5)
#define MT6397_PIN_29_PWM2__FUNC_TEST_IN20 (MTK_PIN_NO(29) | 6)
#define MT6397_PIN_29_PWM2__FUNC_TEST_OUT20 (MTK_PIN_NO(29) | 7)
#define MT6397_PIN_30_PWM3__FUNC_GPIO30 (MTK_PIN_NO(30) | 0)
#define MT6397_PIN_30_PWM3__FUNC_PWM3 (MTK_PIN_NO(30) | 1)
#define MT6397_PIN_30_PWM3__FUNC_EINT6_1X (MTK_PIN_NO(30) | 2)
#define MT6397_PIN_30_PWM3__FUNC_COL0 (MTK_PIN_NO(30) | 3)
#define MT6397_PIN_30_PWM3__FUNC_GPIO32K_6 (MTK_PIN_NO(30) | 4)
#define MT6397_PIN_30_PWM3__FUNC_GPIO26M_6 (MTK_PIN_NO(30) | 5)
#define MT6397_PIN_30_PWM3__FUNC_TEST_IN21 (MTK_PIN_NO(30) | 6)
#define MT6397_PIN_30_PWM3__FUNC_TEST_OUT21 (MTK_PIN_NO(30) | 7)
#define MT6397_PIN_31_SCL0__FUNC_GPIO31 (MTK_PIN_NO(31) | 0)
#define MT6397_PIN_31_SCL0__FUNC_SCL0 (MTK_PIN_NO(31) | 1)
#define MT6397_PIN_31_SCL0__FUNC_EINT7_1X (MTK_PIN_NO(31) | 2)
#define MT6397_PIN_31_SCL0__FUNC_PWM1_2X (MTK_PIN_NO(31) | 3)
#define MT6397_PIN_31_SCL0__FUNC_TEST_IN22 (MTK_PIN_NO(31) | 6)
#define MT6397_PIN_31_SCL0__FUNC_TEST_OUT22 (MTK_PIN_NO(31) | 7)
#define MT6397_PIN_32_SDA0__FUNC_GPIO32 (MTK_PIN_NO(32) | 0)
#define MT6397_PIN_32_SDA0__FUNC_SDA0 (MTK_PIN_NO(32) | 1)
#define MT6397_PIN_32_SDA0__FUNC_EINT8_1X (MTK_PIN_NO(32) | 2)
#define MT6397_PIN_32_SDA0__FUNC_TEST_IN23 (MTK_PIN_NO(32) | 6)
#define MT6397_PIN_32_SDA0__FUNC_TEST_OUT23 (MTK_PIN_NO(32) | 7)
#define MT6397_PIN_33_SCL1__FUNC_GPIO33 (MTK_PIN_NO(33) | 0)
#define MT6397_PIN_33_SCL1__FUNC_SCL1 (MTK_PIN_NO(33) | 1)
#define MT6397_PIN_33_SCL1__FUNC_EINT9_1X (MTK_PIN_NO(33) | 2)
#define MT6397_PIN_33_SCL1__FUNC_PWM2_2X (MTK_PIN_NO(33) | 3)
#define MT6397_PIN_33_SCL1__FUNC_TEST_IN24 (MTK_PIN_NO(33) | 6)
#define MT6397_PIN_33_SCL1__FUNC_TEST_OUT24 (MTK_PIN_NO(33) | 7)
#define MT6397_PIN_34_SDA1__FUNC_GPIO34 (MTK_PIN_NO(34) | 0)
#define MT6397_PIN_34_SDA1__FUNC_SDA1 (MTK_PIN_NO(34) | 1)
#define MT6397_PIN_34_SDA1__FUNC_EINT0_1X (MTK_PIN_NO(34) | 2)
#define MT6397_PIN_34_SDA1__FUNC_TEST_IN25 (MTK_PIN_NO(34) | 6)
#define MT6397_PIN_34_SDA1__FUNC_TEST_OUT25 (MTK_PIN_NO(34) | 7)
#define MT6397_PIN_35_SCL2__FUNC_GPIO35 (MTK_PIN_NO(35) | 0)
#define MT6397_PIN_35_SCL2__FUNC_SCL2 (MTK_PIN_NO(35) | 1)
#define MT6397_PIN_35_SCL2__FUNC_EINT1_1X (MTK_PIN_NO(35) | 2)
#define MT6397_PIN_35_SCL2__FUNC_PWM3_2X (MTK_PIN_NO(35) | 3)
#define MT6397_PIN_35_SCL2__FUNC_TEST_IN26 (MTK_PIN_NO(35) | 6)
#define MT6397_PIN_35_SCL2__FUNC_TEST_OUT26 (MTK_PIN_NO(35) | 7)
#define MT6397_PIN_36_SDA2__FUNC_GPIO36 (MTK_PIN_NO(36) | 0)
#define MT6397_PIN_36_SDA2__FUNC_SDA2 (MTK_PIN_NO(36) | 1)
#define MT6397_PIN_36_SDA2__FUNC_EINT2_1X (MTK_PIN_NO(36) | 2)
#define MT6397_PIN_36_SDA2__FUNC_TEST_IN27 (MTK_PIN_NO(36) | 6)
#define MT6397_PIN_36_SDA2__FUNC_TEST_OUT27 (MTK_PIN_NO(36) | 7)
#define MT6397_PIN_37_HDMISD__FUNC_GPIO37 (MTK_PIN_NO(37) | 0)
#define MT6397_PIN_37_HDMISD__FUNC_HDMISD (MTK_PIN_NO(37) | 1)
#define MT6397_PIN_37_HDMISD__FUNC_TEST_IN28 (MTK_PIN_NO(37) | 6)
#define MT6397_PIN_37_HDMISD__FUNC_TEST_OUT28 (MTK_PIN_NO(37) | 7)
#define MT6397_PIN_38_HDMISCK__FUNC_GPIO38 (MTK_PIN_NO(38) | 0)
#define MT6397_PIN_38_HDMISCK__FUNC_HDMISCK (MTK_PIN_NO(38) | 1)
#define MT6397_PIN_38_HDMISCK__FUNC_TEST_IN29 (MTK_PIN_NO(38) | 6)
#define MT6397_PIN_38_HDMISCK__FUNC_TEST_OUT29 (MTK_PIN_NO(38) | 7)
#define MT6397_PIN_39_HTPLG__FUNC_GPIO39 (MTK_PIN_NO(39) | 0)
#define MT6397_PIN_39_HTPLG__FUNC_HTPLG (MTK_PIN_NO(39) | 1)
#define MT6397_PIN_39_HTPLG__FUNC_TEST_IN30 (MTK_PIN_NO(39) | 6)
#define MT6397_PIN_39_HTPLG__FUNC_TEST_OUT30 (MTK_PIN_NO(39) | 7)
#define MT6397_PIN_40_CEC__FUNC_GPIO40 (MTK_PIN_NO(40) | 0)
#define MT6397_PIN_40_CEC__FUNC_CEC (MTK_PIN_NO(40) | 1)
#define MT6397_PIN_40_CEC__FUNC_TEST_IN31 (MTK_PIN_NO(40) | 6)
#define MT6397_PIN_40_CEC__FUNC_TEST_OUT31 (MTK_PIN_NO(40) | 7)
#endif /* __DTS_MT6397_PINFUNC_H */
+40
View File
@@ -0,0 +1,40 @@
/*
* Copyright (c) 2014 MediaTek Inc.
* Author: Hongzhou.Yang <hongzhou.yang@mediatek.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.
*/
#ifndef _DT_BINDINGS_PINCTRL_MT65XX_H
#define _DT_BINDINGS_PINCTRL_MT65XX_H
#define MTK_PIN_NO(x) ((x) << 8)
#define MTK_GET_PIN_NO(x) ((x) >> 8)
#define MTK_GET_PIN_FUNC(x) ((x) & 0xf)
#define MTK_PUPD_SET_R1R0_00 100
#define MTK_PUPD_SET_R1R0_01 101
#define MTK_PUPD_SET_R1R0_10 102
#define MTK_PUPD_SET_R1R0_11 103
#define MTK_DRIVE_2mA 2
#define MTK_DRIVE_4mA 4
#define MTK_DRIVE_6mA 6
#define MTK_DRIVE_8mA 8
#define MTK_DRIVE_10mA 10
#define MTK_DRIVE_12mA 12
#define MTK_DRIVE_14mA 14
#define MTK_DRIVE_16mA 16
#define MTK_DRIVE_20mA 20
#define MTK_DRIVE_24mA 24
#define MTK_DRIVE_28mA 28
#define MTK_DRIVE_32mA 32
#endif /* _DT_BINDINGS_PINCTRL_MT65XX_H */
@@ -0,0 +1,993 @@
/* SPDX-License-Identifier: GPL-2.0 */
/*
* Copyright (c) 2019 MediaTek Inc.
*/
#ifndef __MT6739_PINFUNC_H
#define __MT6739_PINFUNC_H
#include "mt65xx.h"
#define PINMUX_GPIO0__FUNC_GPIO0 (MTK_PIN_NO(0) | 0)
#define PINMUX_GPIO0__FUNC_MD_I2C0_SDA (MTK_PIN_NO(0) | 1)
#define PINMUX_GPIO0__FUNC_NRNB (MTK_PIN_NO(0) | 2)
#define PINMUX_GPIO0__FUNC_NWPB (MTK_PIN_NO(0) | 3)
#define PINMUX_GPIO0__FUNC_CLKM0 (MTK_PIN_NO(0) | 5)
#define PINMUX_GPIO0__FUNC_EXT_FRAME_SYNC (MTK_PIN_NO(0) | 6)
#define PINMUX_GPIO0__FUNC_DBG_MON_A38 (MTK_PIN_NO(0) | 7)
#define PINMUX_GPIO1__FUNC_GPIO1 (MTK_PIN_NO(1) | 0)
#define PINMUX_GPIO1__FUNC_IDDIG (MTK_PIN_NO(1) | 1)
#define PINMUX_GPIO1__FUNC_PTA_RXD (MTK_PIN_NO(1) | 2)
#define PINMUX_GPIO1__FUNC_NLD11 (MTK_PIN_NO(1) | 3)
#define PINMUX_GPIO1__FUNC_PWM3 (MTK_PIN_NO(1) | 5)
#define PINMUX_GPIO1__FUNC_CONN_MCU_TMS (MTK_PIN_NO(1) | 6)
#define PINMUX_GPIO1__FUNC_DBG_MON_A35 (MTK_PIN_NO(1) | 7)
#define PINMUX_GPIO2__FUNC_GPIO2 (MTK_PIN_NO(2) | 0)
#define PINMUX_GPIO2__FUNC_USB_DRVVBUS (MTK_PIN_NO(2) | 1)
#define PINMUX_GPIO2__FUNC_PTA_TXD (MTK_PIN_NO(2) | 2)
#define PINMUX_GPIO2__FUNC_NWEB (MTK_PIN_NO(2) | 3)
#define PINMUX_GPIO2__FUNC_SPI0_B_CSB (MTK_PIN_NO(2) | 4)
#define PINMUX_GPIO2__FUNC_I2S3_MCK (MTK_PIN_NO(2) | 5)
#define PINMUX_GPIO2__FUNC_CONN_MCU_TCK (MTK_PIN_NO(2) | 6)
#define PINMUX_GPIO2__FUNC_DBG_MON_A37 (MTK_PIN_NO(2) | 7)
#define PINMUX_GPIO3__FUNC_GPIO3 (MTK_PIN_NO(3) | 0)
#define PINMUX_GPIO3__FUNC_MD_INT1_C2K_UIM0_HOT_PLUG (MTK_PIN_NO(3) | 1)
#define PINMUX_GPIO3__FUNC_CLKM3 (MTK_PIN_NO(3) | 2)
#define PINMUX_GPIO3__FUNC_NLD9 (MTK_PIN_NO(3) | 3)
#define PINMUX_GPIO3__FUNC_SPI0_B_CLK (MTK_PIN_NO(3) | 4)
#define PINMUX_GPIO3__FUNC_I2S3_BCK (MTK_PIN_NO(3) | 5)
#define PINMUX_GPIO3__FUNC_CONN_MCU_TDI (MTK_PIN_NO(3) | 6)
#define PINMUX_GPIO3__FUNC_DBG_MON_A39 (MTK_PIN_NO(3) | 7)
#define PINMUX_GPIO4__FUNC_GPIO4 (MTK_PIN_NO(4) | 0)
#define PINMUX_GPIO4__FUNC_MD_INT2_C2K_UIM1_HOT_PLUG (MTK_PIN_NO(4) | 1)
#define PINMUX_GPIO4__FUNC_UART1RX (MTK_PIN_NO(4) | 2)
#define PINMUX_GPIO4__FUNC_NLD1 (MTK_PIN_NO(4) | 3)
#define PINMUX_GPIO4__FUNC_SPI0_B_MO (MTK_PIN_NO(4) | 4)
#define PINMUX_GPIO4__FUNC_I2S3_DO (MTK_PIN_NO(4) | 5)
#define PINMUX_GPIO4__FUNC_CONN_MCU_TDO (MTK_PIN_NO(4) | 6)
#define PINMUX_GPIO4__FUNC_DBG_MON_A40 (MTK_PIN_NO(4) | 7)
#define PINMUX_GPIO5__FUNC_GPIO5 (MTK_PIN_NO(5) | 0)
#define PINMUX_GPIO5__FUNC_MD_INT0 (MTK_PIN_NO(5) | 1)
#define PINMUX_GPIO5__FUNC_UART1TX (MTK_PIN_NO(5) | 2)
#define PINMUX_GPIO5__FUNC_NCLE (MTK_PIN_NO(5) | 3)
#define PINMUX_GPIO5__FUNC_SPI0_B_MI (MTK_PIN_NO(5) | 4)
#define PINMUX_GPIO5__FUNC_I2S3_LRCK (MTK_PIN_NO(5) | 5)
#define PINMUX_GPIO5__FUNC_CONN_MCU_TRST_B (MTK_PIN_NO(5) | 6)
#define PINMUX_GPIO5__FUNC_DBG_MON_A36 (MTK_PIN_NO(5) | 7)
#define PINMUX_GPIO6__FUNC_GPIO6 (MTK_PIN_NO(6) | 0)
#define PINMUX_GPIO6__FUNC_SPI2_A_CLK (MTK_PIN_NO(6) | 1)
#define PINMUX_GPIO6__FUNC_LSCE0B (MTK_PIN_NO(6) | 2)
#define PINMUX_GPIO6__FUNC_LPRDB (MTK_PIN_NO(6) | 3)
#define PINMUX_GPIO6__FUNC_SPI1_B_CLK (MTK_PIN_NO(6) | 4)
#define PINMUX_GPIO6__FUNC_I2S2_BCK (MTK_PIN_NO(6) | 5)
#define PINMUX_GPIO6__FUNC_ANT_SEL4 (MTK_PIN_NO(6) | 6)
#define PINMUX_GPIO6__FUNC_DBG_MON_A52 (MTK_PIN_NO(6) | 7)
#define PINMUX_GPIO7__FUNC_GPIO7 (MTK_PIN_NO(7) | 0)
#define PINMUX_GPIO7__FUNC_SPI2_A_CSB (MTK_PIN_NO(7) | 1)
#define PINMUX_GPIO7__FUNC_LSCK (MTK_PIN_NO(7) | 2)
#define PINMUX_GPIO7__FUNC_LPWRB (MTK_PIN_NO(7) | 3)
#define PINMUX_GPIO7__FUNC_SPI1_B_MO (MTK_PIN_NO(7) | 4)
#define PINMUX_GPIO7__FUNC_I2S2_DI (MTK_PIN_NO(7) | 5)
#define PINMUX_GPIO7__FUNC_CONN_MCU_DBGACK_N (MTK_PIN_NO(7) | 6)
#define PINMUX_GPIO7__FUNC_DBG_MON_A51 (MTK_PIN_NO(7) | 7)
#define PINMUX_GPIO8__FUNC_GPIO8 (MTK_PIN_NO(8) | 0)
#define PINMUX_GPIO8__FUNC_ANT_SEL3 (MTK_PIN_NO(8) | 1)
#define PINMUX_GPIO8__FUNC_LSDA (MTK_PIN_NO(8) | 2)
#define PINMUX_GPIO8__FUNC_LPD0 (MTK_PIN_NO(8) | 3)
#define PINMUX_GPIO8__FUNC_SPI1_B_MI (MTK_PIN_NO(8) | 4)
#define PINMUX_GPIO8__FUNC_I2S2_LRCK (MTK_PIN_NO(8) | 5)
#define PINMUX_GPIO8__FUNC_CONN_MCU_DBGI_N (MTK_PIN_NO(8) | 6)
#define PINMUX_GPIO8__FUNC_DBG_MON_A53 (MTK_PIN_NO(8) | 7)
#define PINMUX_GPIO9__FUNC_GPIO9 (MTK_PIN_NO(9) | 0)
#define PINMUX_GPIO9__FUNC_I2S0_MCK (MTK_PIN_NO(9) | 1)
#define PINMUX_GPIO9__FUNC_UART1TX (MTK_PIN_NO(9) | 2)
#define PINMUX_GPIO9__FUNC_LPD6 (MTK_PIN_NO(9) | 3)
#define PINMUX_GPIO9__FUNC_ANT_SEL2 (MTK_PIN_NO(9) | 4)
#define PINMUX_GPIO9__FUNC_I2S3_DO (MTK_PIN_NO(9) | 5)
#define PINMUX_GPIO9__FUNC_DBG_MON_A54 (MTK_PIN_NO(9) | 7)
#define PINMUX_GPIO10__FUNC_GPIO10 (MTK_PIN_NO(10) | 0)
#define PINMUX_GPIO10__FUNC_MD_INT1_C2K_UIM0_HOT_PLUG (MTK_PIN_NO(10) | 1)
#define PINMUX_GPIO10__FUNC_CLKM0 (MTK_PIN_NO(10) | 2)
#define PINMUX_GPIO10__FUNC_PWM0 (MTK_PIN_NO(10) | 3)
#define PINMUX_GPIO10__FUNC_ANT_SEL1 (MTK_PIN_NO(10) | 4)
#define PINMUX_GPIO10__FUNC_CLKM2 (MTK_PIN_NO(10) | 5)
#define PINMUX_GPIO10__FUNC_MD_URXD1 (MTK_PIN_NO(10) | 6)
#define PINMUX_GPIO10__FUNC_DBG_MON_A15 (MTK_PIN_NO(10) | 7)
#define PINMUX_GPIO11__FUNC_GPIO11 (MTK_PIN_NO(11) | 0)
#define PINMUX_GPIO11__FUNC_MD_INT2_C2K_UIM1_HOT_PLUG (MTK_PIN_NO(11) | 1)
#define PINMUX_GPIO11__FUNC_SRCLKENAI1 (MTK_PIN_NO(11) | 2)
#define PINMUX_GPIO11__FUNC_LPTE (MTK_PIN_NO(11) | 3)
#define PINMUX_GPIO11__FUNC_CLKM3 (MTK_PIN_NO(11) | 4)
#define PINMUX_GPIO11__FUNC_PWM2 (MTK_PIN_NO(11) | 5)
#define PINMUX_GPIO11__FUNC_MD_UTXD1 (MTK_PIN_NO(11) | 6)
#define PINMUX_GPIO11__FUNC_DBG_MON_A16 (MTK_PIN_NO(11) | 7)
#define PINMUX_GPIO12__FUNC_GPIO12 (MTK_PIN_NO(12) | 0)
#define PINMUX_GPIO12__FUNC_I2C5_SCL (MTK_PIN_NO(12) | 1)
#define PINMUX_GPIO12__FUNC_MD_I2C0_SCL (MTK_PIN_NO(12) | 2)
#define PINMUX_GPIO12__FUNC_LPRSTB (MTK_PIN_NO(12) | 3)
#define PINMUX_GPIO12__FUNC_AGPS_SYNC (MTK_PIN_NO(12) | 4)
#define PINMUX_GPIO12__FUNC_PWM1 (MTK_PIN_NO(12) | 5)
#define PINMUX_GPIO12__FUNC_DBG_MON_A6 (MTK_PIN_NO(12) | 7)
#define PINMUX_GPIO13__FUNC_GPIO13 (MTK_PIN_NO(13) | 0)
#define PINMUX_GPIO13__FUNC_I2C5_SDA (MTK_PIN_NO(13) | 1)
#define PINMUX_GPIO13__FUNC_MD_I2C0_SDA (MTK_PIN_NO(13) | 2)
#define PINMUX_GPIO13__FUNC_DISP_PWM (MTK_PIN_NO(13) | 3)
#define PINMUX_GPIO13__FUNC_EXT_FRAME_SYNC (MTK_PIN_NO(13) | 4)
#define PINMUX_GPIO13__FUNC_ANT_SEL6 (MTK_PIN_NO(13) | 5)
#define PINMUX_GPIO13__FUNC_DBG_MON_A7 (MTK_PIN_NO(13) | 7)
#define PINMUX_GPIO14__FUNC_GPIO14 (MTK_PIN_NO(14) | 0)
#define PINMUX_GPIO14__FUNC_KP6COL (MTK_PIN_NO(14) | 1)
#define PINMUX_GPIO14__FUNC_LPD7 (MTK_PIN_NO(14) | 3)
#define PINMUX_GPIO14__FUNC_SPI2_A_MI (MTK_PIN_NO(14) | 4)
#define PINMUX_GPIO14__FUNC_ANT_SEL7 (MTK_PIN_NO(14) | 5)
#define PINMUX_GPIO14__FUNC_PWM0 (MTK_PIN_NO(14) | 6)
#define PINMUX_GPIO14__FUNC_DBG_MON_A48 (MTK_PIN_NO(14) | 7)
#define PINMUX_GPIO15__FUNC_GPIO15 (MTK_PIN_NO(15) | 0)
#define PINMUX_GPIO15__FUNC_KP7COL (MTK_PIN_NO(15) | 1)
#define PINMUX_GPIO15__FUNC_LPD8 (MTK_PIN_NO(15) | 3)
#define PINMUX_GPIO15__FUNC_SPI2_A_MO (MTK_PIN_NO(15) | 4)
#define PINMUX_GPIO15__FUNC_PWM1 (MTK_PIN_NO(15) | 5)
#define PINMUX_GPIO15__FUNC_ANT_SEL5 (MTK_PIN_NO(15) | 6)
#define PINMUX_GPIO15__FUNC_DBG_MON_A49 (MTK_PIN_NO(15) | 7)
#define PINMUX_GPIO16__FUNC_GPIO16 (MTK_PIN_NO(16) | 0)
#define PINMUX_GPIO16__FUNC_SPI1_A_CSB (MTK_PIN_NO(16) | 1)
#define PINMUX_GPIO16__FUNC_IDDIG (MTK_PIN_NO(16) | 2)
#define PINMUX_GPIO16__FUNC_KP7ROW (MTK_PIN_NO(16) | 3)
#define PINMUX_GPIO16__FUNC_I2S3_MCK (MTK_PIN_NO(16) | 4)
#define PINMUX_GPIO16__FUNC_PTA_RXD (MTK_PIN_NO(16) | 5)
#define PINMUX_GPIO16__FUNC_UART0CTS (MTK_PIN_NO(16) | 6)
#define PINMUX_GPIO16__FUNC_DBG_MON_A12 (MTK_PIN_NO(16) | 7)
#define PINMUX_GPIO17__FUNC_GPIO17 (MTK_PIN_NO(17) | 0)
#define PINMUX_GPIO17__FUNC_SPI1_A_CLK (MTK_PIN_NO(17) | 1)
#define PINMUX_GPIO17__FUNC_USB_DRVVBUS (MTK_PIN_NO(17) | 2)
#define PINMUX_GPIO17__FUNC_KP3COL (MTK_PIN_NO(17) | 3)
#define PINMUX_GPIO17__FUNC_I2S3_BCK (MTK_PIN_NO(17) | 4)
#define PINMUX_GPIO17__FUNC_PTA_TXD (MTK_PIN_NO(17) | 5)
#define PINMUX_GPIO17__FUNC_UART1CTS (MTK_PIN_NO(17) | 6)
#define PINMUX_GPIO17__FUNC_DBG_MON_A13 (MTK_PIN_NO(17) | 7)
#define PINMUX_GPIO18__FUNC_GPIO18 (MTK_PIN_NO(18) | 0)
#define PINMUX_GPIO18__FUNC_SPI1_A_MI (MTK_PIN_NO(18) | 1)
#define PINMUX_GPIO18__FUNC_MD_INT1_C2K_UIM0_HOT_PLUG (MTK_PIN_NO(18) | 2)
#define PINMUX_GPIO18__FUNC_KP4COL (MTK_PIN_NO(18) | 3)
#define PINMUX_GPIO18__FUNC_I2S3_DO (MTK_PIN_NO(18) | 4)
#define PINMUX_GPIO18__FUNC_CLKM2 (MTK_PIN_NO(18) | 5)
#define PINMUX_GPIO18__FUNC_UART0RTS (MTK_PIN_NO(18) | 6)
#define PINMUX_GPIO18__FUNC_DBG_MON_B31 (MTK_PIN_NO(18) | 7)
#define PINMUX_GPIO19__FUNC_GPIO19 (MTK_PIN_NO(19) | 0)
#define PINMUX_GPIO19__FUNC_SPI1_A_MO (MTK_PIN_NO(19) | 1)
#define PINMUX_GPIO19__FUNC_MD_INT2_C2K_UIM1_HOT_PLUG (MTK_PIN_NO(19) | 2)
#define PINMUX_GPIO19__FUNC_KP5COL (MTK_PIN_NO(19) | 3)
#define PINMUX_GPIO19__FUNC_I2S3_LRCK (MTK_PIN_NO(19) | 4)
#define PINMUX_GPIO19__FUNC_CLKM3 (MTK_PIN_NO(19) | 5)
#define PINMUX_GPIO19__FUNC_UART1RTS (MTK_PIN_NO(19) | 6)
#define PINMUX_GPIO20__FUNC_GPIO20 (MTK_PIN_NO(20) | 0)
#define PINMUX_GPIO20__FUNC_UART0RX (MTK_PIN_NO(20) | 1)
#define PINMUX_GPIO20__FUNC_UART0TX (MTK_PIN_NO(20) | 2)
#define PINMUX_GPIO20__FUNC_MD_URXD0 (MTK_PIN_NO(20) | 3)
#define PINMUX_GPIO20__FUNC_MD_URXD1 (MTK_PIN_NO(20) | 4)
#define PINMUX_GPIO20__FUNC_PTA_RXD (MTK_PIN_NO(20) | 5)
#define PINMUX_GPIO20__FUNC_UART1RX (MTK_PIN_NO(20) | 6)
#define PINMUX_GPIO21__FUNC_GPIO21 (MTK_PIN_NO(21) | 0)
#define PINMUX_GPIO21__FUNC_UART0TX (MTK_PIN_NO(21) | 1)
#define PINMUX_GPIO21__FUNC_UART0RX (MTK_PIN_NO(21) | 2)
#define PINMUX_GPIO21__FUNC_MD_UTXD0 (MTK_PIN_NO(21) | 3)
#define PINMUX_GPIO21__FUNC_MD_UTXD1 (MTK_PIN_NO(21) | 4)
#define PINMUX_GPIO21__FUNC_PTA_TXD (MTK_PIN_NO(21) | 5)
#define PINMUX_GPIO21__FUNC_UART1TX (MTK_PIN_NO(21) | 6)
#define PINMUX_GPIO22__FUNC_GPIO22 (MTK_PIN_NO(22) | 0)
#define PINMUX_GPIO22__FUNC_UART1RX (MTK_PIN_NO(22) | 1)
#define PINMUX_GPIO22__FUNC_LSDI (MTK_PIN_NO(22) | 2)
#define PINMUX_GPIO22__FUNC_LPD1 (MTK_PIN_NO(22) | 3)
#define PINMUX_GPIO22__FUNC_SPI1_B_CSB (MTK_PIN_NO(22) | 4)
#define PINMUX_GPIO22__FUNC_MD_URXD0 (MTK_PIN_NO(22) | 5)
#define PINMUX_GPIO22__FUNC_MD_URXD1 (MTK_PIN_NO(22) | 6)
#define PINMUX_GPIO23__FUNC_GPIO23 (MTK_PIN_NO(23) | 0)
#define PINMUX_GPIO23__FUNC_UART1TX (MTK_PIN_NO(23) | 1)
#define PINMUX_GPIO23__FUNC_LSA0 (MTK_PIN_NO(23) | 2)
#define PINMUX_GPIO23__FUNC_LPD2 (MTK_PIN_NO(23) | 3)
#define PINMUX_GPIO23__FUNC_I2S2_MCK (MTK_PIN_NO(23) | 4)
#define PINMUX_GPIO23__FUNC_MD_UTXD0 (MTK_PIN_NO(23) | 5)
#define PINMUX_GPIO23__FUNC_MD_UTXD1 (MTK_PIN_NO(23) | 6)
#define PINMUX_GPIO24__FUNC_GPIO24 (MTK_PIN_NO(24) | 0)
#define PINMUX_GPIO24__FUNC_I2S0_DI (MTK_PIN_NO(24) | 1)
#define PINMUX_GPIO24__FUNC_PWM0 (MTK_PIN_NO(24) | 2)
#define PINMUX_GPIO24__FUNC_LPD3 (MTK_PIN_NO(24) | 3)
#define PINMUX_GPIO24__FUNC_ANT_SEL3 (MTK_PIN_NO(24) | 4)
#define PINMUX_GPIO24__FUNC_I2S3_MCK (MTK_PIN_NO(24) | 5)
#define PINMUX_GPIO24__FUNC_KP3COL (MTK_PIN_NO(24) | 6)
#define PINMUX_GPIO24__FUNC_DBG_MON_A55 (MTK_PIN_NO(24) | 7)
#define PINMUX_GPIO25__FUNC_GPIO25 (MTK_PIN_NO(25) | 0)
#define PINMUX_GPIO25__FUNC_I2S0_LRCK (MTK_PIN_NO(25) | 1)
#define PINMUX_GPIO25__FUNC_LPD4 (MTK_PIN_NO(25) | 3)
#define PINMUX_GPIO25__FUNC_IDDIG (MTK_PIN_NO(25) | 4)
#define PINMUX_GPIO25__FUNC_I2S3_LRCK (MTK_PIN_NO(25) | 5)
#define PINMUX_GPIO25__FUNC_KP4COL (MTK_PIN_NO(25) | 6)
#define PINMUX_GPIO25__FUNC_DBG_MON_A56 (MTK_PIN_NO(25) | 7)
#define PINMUX_GPIO26__FUNC_GPIO26 (MTK_PIN_NO(26) | 0)
#define PINMUX_GPIO26__FUNC_I2S0_BCK (MTK_PIN_NO(26) | 1)
#define PINMUX_GPIO26__FUNC_UART1RX (MTK_PIN_NO(26) | 2)
#define PINMUX_GPIO26__FUNC_LPD5 (MTK_PIN_NO(26) | 3)
#define PINMUX_GPIO26__FUNC_USB_DRVVBUS (MTK_PIN_NO(26) | 4)
#define PINMUX_GPIO26__FUNC_I2S3_BCK (MTK_PIN_NO(26) | 5)
#define PINMUX_GPIO26__FUNC_KP5COL (MTK_PIN_NO(26) | 6)
#define PINMUX_GPIO26__FUNC_DBG_MON_A57 (MTK_PIN_NO(26) | 7)
#define PINMUX_GPIO27__FUNC_GPIO27 (MTK_PIN_NO(27) | 0)
#define PINMUX_GPIO27__FUNC_I2S1_BCK (MTK_PIN_NO(27) | 1)
#define PINMUX_GPIO27__FUNC_PWM2 (MTK_PIN_NO(27) | 2)
#define PINMUX_GPIO27__FUNC_KP3ROW (MTK_PIN_NO(27) | 3)
#define PINMUX_GPIO27__FUNC_SPI2_C_CSB (MTK_PIN_NO(27) | 4)
#define PINMUX_GPIO27__FUNC_CLKM1 (MTK_PIN_NO(27) | 5)
#define PINMUX_GPIO27__FUNC_MD_URXD0 (MTK_PIN_NO(27) | 6)
#define PINMUX_GPIO27__FUNC_DBG_MON_A8 (MTK_PIN_NO(27) | 7)
#define PINMUX_GPIO28__FUNC_GPIO28 (MTK_PIN_NO(28) | 0)
#define PINMUX_GPIO28__FUNC_I2S1_DO (MTK_PIN_NO(28) | 1)
#define PINMUX_GPIO28__FUNC_PWM3 (MTK_PIN_NO(28) | 2)
#define PINMUX_GPIO28__FUNC_KP4ROW (MTK_PIN_NO(28) | 3)
#define PINMUX_GPIO28__FUNC_SPI2_C_CLK (MTK_PIN_NO(28) | 4)
#define PINMUX_GPIO28__FUNC_ANT_SEL4 (MTK_PIN_NO(28) | 5)
#define PINMUX_GPIO28__FUNC_MD_UTXD0 (MTK_PIN_NO(28) | 6)
#define PINMUX_GPIO28__FUNC_DBG_MON_A9 (MTK_PIN_NO(28) | 7)
#define PINMUX_GPIO29__FUNC_GPIO29 (MTK_PIN_NO(29) | 0)
#define PINMUX_GPIO29__FUNC_I2S1_LRCK (MTK_PIN_NO(29) | 1)
#define PINMUX_GPIO29__FUNC_PWM4 (MTK_PIN_NO(29) | 2)
#define PINMUX_GPIO29__FUNC_KP5ROW (MTK_PIN_NO(29) | 3)
#define PINMUX_GPIO29__FUNC_SPI2_C_MO (MTK_PIN_NO(29) | 4)
#define PINMUX_GPIO29__FUNC_ANT_SEL5 (MTK_PIN_NO(29) | 5)
#define PINMUX_GPIO29__FUNC_MD_URXD1 (MTK_PIN_NO(29) | 6)
#define PINMUX_GPIO29__FUNC_DBG_MON_A10 (MTK_PIN_NO(29) | 7)
#define PINMUX_GPIO30__FUNC_GPIO30 (MTK_PIN_NO(30) | 0)
#define PINMUX_GPIO30__FUNC_I2S1_MCK (MTK_PIN_NO(30) | 1)
#define PINMUX_GPIO30__FUNC_KP6ROW (MTK_PIN_NO(30) | 3)
#define PINMUX_GPIO30__FUNC_SPI2_C_MI (MTK_PIN_NO(30) | 4)
#define PINMUX_GPIO30__FUNC_ANT_SEL6 (MTK_PIN_NO(30) | 5)
#define PINMUX_GPIO30__FUNC_MD_UTXD1 (MTK_PIN_NO(30) | 6)
#define PINMUX_GPIO30__FUNC_DBG_MON_A11 (MTK_PIN_NO(30) | 7)
#define PINMUX_GPIO31__FUNC_GPIO31 (MTK_PIN_NO(31) | 0)
#define PINMUX_GPIO31__FUNC_SPI0_A_CSB (MTK_PIN_NO(31) | 1)
#define PINMUX_GPIO31__FUNC_KP6COL (MTK_PIN_NO(31) | 2)
#define PINMUX_GPIO31__FUNC_IDDIG (MTK_PIN_NO(31) | 3)
#define PINMUX_GPIO31__FUNC_I2S2_BCK (MTK_PIN_NO(31) | 4)
#define PINMUX_GPIO31__FUNC_ANT_SEL3 (MTK_PIN_NO(31) | 5)
#define PINMUX_GPIO32__FUNC_GPIO32 (MTK_PIN_NO(32) | 0)
#define PINMUX_GPIO32__FUNC_SPI0_A_CLK (MTK_PIN_NO(32) | 1)
#define PINMUX_GPIO32__FUNC_KP7COL (MTK_PIN_NO(32) | 2)
#define PINMUX_GPIO32__FUNC_USB_DRVVBUS (MTK_PIN_NO(32) | 3)
#define PINMUX_GPIO32__FUNC_I2S2_DI (MTK_PIN_NO(32) | 4)
#define PINMUX_GPIO32__FUNC_ANT_SEL0 (MTK_PIN_NO(32) | 5)
#define PINMUX_GPIO33__FUNC_GPIO33 (MTK_PIN_NO(33) | 0)
#define PINMUX_GPIO33__FUNC_SPI0_A_MI (MTK_PIN_NO(33) | 1)
#define PINMUX_GPIO33__FUNC_MD_I2C0_SCL (MTK_PIN_NO(33) | 2)
#define PINMUX_GPIO33__FUNC_I2S2_LRCK (MTK_PIN_NO(33) | 4)
#define PINMUX_GPIO33__FUNC_ANT_SEL1 (MTK_PIN_NO(33) | 5)
#define PINMUX_GPIO33__FUNC_KP6COL (MTK_PIN_NO(33) | 6)
#define PINMUX_GPIO34__FUNC_GPIO34 (MTK_PIN_NO(34) | 0)
#define PINMUX_GPIO34__FUNC_SPI0_A_MO (MTK_PIN_NO(34) | 1)
#define PINMUX_GPIO34__FUNC_MD_I2C0_SDA (MTK_PIN_NO(34) | 2)
#define PINMUX_GPIO34__FUNC_I2S2_MCK (MTK_PIN_NO(34) | 4)
#define PINMUX_GPIO34__FUNC_ANT_SEL2 (MTK_PIN_NO(34) | 5)
#define PINMUX_GPIO34__FUNC_KP7COL (MTK_PIN_NO(34) | 6)
#define PINMUX_GPIO35__FUNC_GPIO35 (MTK_PIN_NO(35) | 0)
#define PINMUX_GPIO35__FUNC_ANT_SEL0 (MTK_PIN_NO(35) | 1)
#define PINMUX_GPIO35__FUNC_AGPS_SYNC (MTK_PIN_NO(35) | 2)
#define PINMUX_GPIO35__FUNC_IDDIG (MTK_PIN_NO(35) | 3)
#define PINMUX_GPIO35__FUNC_MD_INT1_C2K_UIM0_HOT_PLUG (MTK_PIN_NO(35) | 4)
#define PINMUX_GPIO35__FUNC_MD_I2C0_SCL (MTK_PIN_NO(35) | 5)
#define PINMUX_GPIO35__FUNC_I2C4_SCL (MTK_PIN_NO(35) | 6)
#define PINMUX_GPIO36__FUNC_GPIO36 (MTK_PIN_NO(36) | 0)
#define PINMUX_GPIO36__FUNC_ANT_SEL1 (MTK_PIN_NO(36) | 1)
#define PINMUX_GPIO36__FUNC_SRCLKENAI1 (MTK_PIN_NO(36) | 2)
#define PINMUX_GPIO36__FUNC_USB_DRVVBUS (MTK_PIN_NO(36) | 3)
#define PINMUX_GPIO36__FUNC_MD_INT2_C2K_UIM1_HOT_PLUG (MTK_PIN_NO(36) | 4)
#define PINMUX_GPIO36__FUNC_MD_I2C0_SDA (MTK_PIN_NO(36) | 5)
#define PINMUX_GPIO36__FUNC_I2C4_SDA (MTK_PIN_NO(36) | 6)
#define PINMUX_GPIO37__FUNC_GPIO37 (MTK_PIN_NO(37) | 0)
#define PINMUX_GPIO37__FUNC_ANT_SEL2 (MTK_PIN_NO(37) | 1)
#define PINMUX_GPIO37__FUNC_CLKM1 (MTK_PIN_NO(37) | 3)
#define PINMUX_GPIO37__FUNC_PWM1 (MTK_PIN_NO(37) | 5)
#define PINMUX_GPIO37__FUNC_DBG_MON_A17 (MTK_PIN_NO(37) | 7)
#define PINMUX_GPIO38__FUNC_GPIO38 (MTK_PIN_NO(38) | 0)
#define PINMUX_GPIO38__FUNC_MSDC0_CMD (MTK_PIN_NO(38) | 1)
#define PINMUX_GPIO38__FUNC_NWEB (MTK_PIN_NO(38) | 2)
#define PINMUX_GPIO38__FUNC_NCEB0 (MTK_PIN_NO(38) | 3)
#define PINMUX_GPIO39__FUNC_GPIO39 (MTK_PIN_NO(39) | 0)
#define PINMUX_GPIO39__FUNC_MSDC0_DSL (MTK_PIN_NO(39) | 1)
#define PINMUX_GPIO39__FUNC_NRNB (MTK_PIN_NO(39) | 3)
#define PINMUX_GPIO40__FUNC_GPIO40 (MTK_PIN_NO(40) | 0)
#define PINMUX_GPIO40__FUNC_MSDC0_CLK (MTK_PIN_NO(40) | 1)
#define PINMUX_GPIO40__FUNC_NDQS (MTK_PIN_NO(40) | 2)
#define PINMUX_GPIO40__FUNC_NLD12 (MTK_PIN_NO(40) | 3)
#define PINMUX_GPIO41__FUNC_GPIO41 (MTK_PIN_NO(41) | 0)
#define PINMUX_GPIO41__FUNC_MSDC0_DAT0 (MTK_PIN_NO(41) | 1)
#define PINMUX_GPIO41__FUNC_NLD0 (MTK_PIN_NO(41) | 2)
#define PINMUX_GPIO41__FUNC_NLD7 (MTK_PIN_NO(41) | 3)
#define PINMUX_GPIO42__FUNC_GPIO42 (MTK_PIN_NO(42) | 0)
#define PINMUX_GPIO42__FUNC_MSDC0_DAT1 (MTK_PIN_NO(42) | 1)
#define PINMUX_GPIO42__FUNC_NLD1 (MTK_PIN_NO(42) | 2)
#define PINMUX_GPIO42__FUNC_NLD15 (MTK_PIN_NO(42) | 3)
#define PINMUX_GPIO43__FUNC_GPIO43 (MTK_PIN_NO(43) | 0)
#define PINMUX_GPIO43__FUNC_MSDC0_DAT2 (MTK_PIN_NO(43) | 1)
#define PINMUX_GPIO43__FUNC_NLD2 (MTK_PIN_NO(43) | 2)
#define PINMUX_GPIO43__FUNC_NLD13 (MTK_PIN_NO(43) | 3)
#define PINMUX_GPIO44__FUNC_GPIO44 (MTK_PIN_NO(44) | 0)
#define PINMUX_GPIO44__FUNC_MSDC0_DAT3 (MTK_PIN_NO(44) | 1)
#define PINMUX_GPIO44__FUNC_NLD3 (MTK_PIN_NO(44) | 2)
#define PINMUX_GPIO44__FUNC_NLD5 (MTK_PIN_NO(44) | 3)
#define PINMUX_GPIO45__FUNC_GPIO45 (MTK_PIN_NO(45) | 0)
#define PINMUX_GPIO45__FUNC_MSDC0_DAT4 (MTK_PIN_NO(45) | 1)
#define PINMUX_GPIO45__FUNC_NLD4 (MTK_PIN_NO(45) | 2)
#define PINMUX_GPIO45__FUNC_NLD6 (MTK_PIN_NO(45) | 3)
#define PINMUX_GPIO46__FUNC_GPIO46 (MTK_PIN_NO(46) | 0)
#define PINMUX_GPIO46__FUNC_MSDC0_DAT5 (MTK_PIN_NO(46) | 1)
#define PINMUX_GPIO46__FUNC_NLD5 (MTK_PIN_NO(46) | 2)
#define PINMUX_GPIO46__FUNC_NLD14 (MTK_PIN_NO(46) | 3)
#define PINMUX_GPIO47__FUNC_GPIO47 (MTK_PIN_NO(47) | 0)
#define PINMUX_GPIO47__FUNC_MSDC0_DAT6 (MTK_PIN_NO(47) | 1)
#define PINMUX_GPIO47__FUNC_NLD6 (MTK_PIN_NO(47) | 2)
#define PINMUX_GPIO47__FUNC_NLD4 (MTK_PIN_NO(47) | 3)
#define PINMUX_GPIO48__FUNC_GPIO48 (MTK_PIN_NO(48) | 0)
#define PINMUX_GPIO48__FUNC_MSDC0_DAT7 (MTK_PIN_NO(48) | 1)
#define PINMUX_GPIO48__FUNC_NLD7 (MTK_PIN_NO(48) | 2)
#define PINMUX_GPIO48__FUNC_NREB (MTK_PIN_NO(48) | 3)
#define PINMUX_GPIO49__FUNC_GPIO49 (MTK_PIN_NO(49) | 0)
#define PINMUX_GPIO49__FUNC_MSDC0_RSTB (MTK_PIN_NO(49) | 1)
#define PINMUX_GPIO49__FUNC_NREB (MTK_PIN_NO(49) | 2)
#define PINMUX_GPIO49__FUNC_NALE (MTK_PIN_NO(49) | 3)
#define PINMUX_GPIO50__FUNC_GPIO50 (MTK_PIN_NO(50) | 0)
#define PINMUX_GPIO50__FUNC_I2S2_BCK (MTK_PIN_NO(50) | 1)
#define PINMUX_GPIO50__FUNC_NCEB1 (MTK_PIN_NO(50) | 2)
#define PINMUX_GPIO50__FUNC_NLD8 (MTK_PIN_NO(50) | 3)
#define PINMUX_GPIO50__FUNC_SPI2_B_CSB (MTK_PIN_NO(50) | 4)
#define PINMUX_GPIO50__FUNC_MD_I2C0_SCL (MTK_PIN_NO(50) | 5)
#define PINMUX_GPIO50__FUNC_IDDIG (MTK_PIN_NO(50) | 6)
#define PINMUX_GPIO50__FUNC_DBG_MON_A33 (MTK_PIN_NO(50) | 7)
#define PINMUX_GPIO51__FUNC_GPIO51 (MTK_PIN_NO(51) | 0)
#define PINMUX_GPIO51__FUNC_I2S2_DI (MTK_PIN_NO(51) | 1)
#define PINMUX_GPIO51__FUNC_NCEB0 (MTK_PIN_NO(51) | 2)
#define PINMUX_GPIO51__FUNC_NLD0 (MTK_PIN_NO(51) | 3)
#define PINMUX_GPIO51__FUNC_SPI2_B_CLK (MTK_PIN_NO(51) | 4)
#define PINMUX_GPIO51__FUNC_MD_I2C0_SDA (MTK_PIN_NO(51) | 5)
#define PINMUX_GPIO51__FUNC_USB_DRVVBUS (MTK_PIN_NO(51) | 6)
#define PINMUX_GPIO51__FUNC_DBG_MON_A31 (MTK_PIN_NO(51) | 7)
#define PINMUX_GPIO52__FUNC_GPIO52 (MTK_PIN_NO(52) | 0)
#define PINMUX_GPIO52__FUNC_I2S2_LRCK (MTK_PIN_NO(52) | 1)
#define PINMUX_GPIO52__FUNC_NWPB (MTK_PIN_NO(52) | 2)
#define PINMUX_GPIO52__FUNC_NLD10 (MTK_PIN_NO(52) | 3)
#define PINMUX_GPIO52__FUNC_SPI2_B_MO (MTK_PIN_NO(52) | 4)
#define PINMUX_GPIO52__FUNC_DAP_MD32_SWCK (MTK_PIN_NO(52) | 5)
#define PINMUX_GPIO52__FUNC_DBG_MON_A30 (MTK_PIN_NO(52) | 7)
#define PINMUX_GPIO53__FUNC_GPIO53 (MTK_PIN_NO(53) | 0)
#define PINMUX_GPIO53__FUNC_I2S2_MCK (MTK_PIN_NO(53) | 1)
#define PINMUX_GPIO53__FUNC_NALE (MTK_PIN_NO(53) | 2)
#define PINMUX_GPIO53__FUNC_NLD2 (MTK_PIN_NO(53) | 3)
#define PINMUX_GPIO53__FUNC_SPI2_B_MI (MTK_PIN_NO(53) | 4)
#define PINMUX_GPIO53__FUNC_DAP_MD32_SWD (MTK_PIN_NO(53) | 5)
#define PINMUX_GPIO53__FUNC_AGPS_SYNC (MTK_PIN_NO(53) | 6)
#define PINMUX_GPIO53__FUNC_DBG_MON_A32 (MTK_PIN_NO(53) | 7)
#define PINMUX_GPIO54__FUNC_GPIO54 (MTK_PIN_NO(54) | 0)
#define PINMUX_GPIO54__FUNC_MD_I2C0_SCL (MTK_PIN_NO(54) | 1)
#define PINMUX_GPIO54__FUNC_NCLE (MTK_PIN_NO(54) | 2)
#define PINMUX_GPIO54__FUNC_NLD3 (MTK_PIN_NO(54) | 3)
#define PINMUX_GPIO54__FUNC_PWM2 (MTK_PIN_NO(54) | 5)
#define PINMUX_GPIO54__FUNC_SRCLKENAI1 (MTK_PIN_NO(54) | 6)
#define PINMUX_GPIO54__FUNC_DBG_MON_A34 (MTK_PIN_NO(54) | 7)
#define PINMUX_GPIO55__FUNC_GPIO55 (MTK_PIN_NO(55) | 0)
#define PINMUX_GPIO55__FUNC_WATCHDOG (MTK_PIN_NO(55) | 1)
#define PINMUX_GPIO56__FUNC_GPIO56 (MTK_PIN_NO(56) | 0)
#define PINMUX_GPIO56__FUNC_SRCLKENA0 (MTK_PIN_NO(56) | 1)
#define PINMUX_GPIO56__FUNC_SRCLKENA1 (MTK_PIN_NO(56) | 2)
#define PINMUX_GPIO57__FUNC_GPIO57 (MTK_PIN_NO(57) | 0)
#define PINMUX_GPIO57__FUNC_SRCLKENA1 (MTK_PIN_NO(57) | 1)
#define PINMUX_GPIO57__FUNC_SRCLKENA0 (MTK_PIN_NO(57) | 2)
#define PINMUX_GPIO58__FUNC_GPIO58 (MTK_PIN_NO(58) | 0)
#define PINMUX_GPIO58__FUNC_PWRAP_SPI0_MI (MTK_PIN_NO(58) | 1)
#define PINMUX_GPIO58__FUNC_PWRAP_SPI0_MO (MTK_PIN_NO(58) | 2)
#define PINMUX_GPIO59__FUNC_GPIO59 (MTK_PIN_NO(59) | 0)
#define PINMUX_GPIO59__FUNC_PWRAP_SPI0_MO (MTK_PIN_NO(59) | 1)
#define PINMUX_GPIO59__FUNC_PWRAP_SPI0_MI (MTK_PIN_NO(59) | 2)
#define PINMUX_GPIO60__FUNC_GPIO60 (MTK_PIN_NO(60) | 0)
#define PINMUX_GPIO60__FUNC_PWRAP_SPI0_CK (MTK_PIN_NO(60) | 1)
#define PINMUX_GPIO61__FUNC_GPIO61 (MTK_PIN_NO(61) | 0)
#define PINMUX_GPIO61__FUNC_PWRAP_SPI0_CSN (MTK_PIN_NO(61) | 1)
#define PINMUX_GPIO62__FUNC_GPIO62 (MTK_PIN_NO(62) | 0)
#define PINMUX_GPIO62__FUNC_AUD_SYNC_MOSI (MTK_PIN_NO(62) | 1)
#define PINMUX_GPIO62__FUNC_AUD_SYNC_MISO (MTK_PIN_NO(62) | 2)
#define PINMUX_GPIO62__FUNC_I2S1_BCK (MTK_PIN_NO(62) | 3)
#define PINMUX_GPIO62__FUNC_I2S3_BCK (MTK_PIN_NO(62) | 4)
#define PINMUX_GPIO63__FUNC_GPIO63 (MTK_PIN_NO(63) | 0)
#define PINMUX_GPIO63__FUNC_AUD_DAT_MOSI0 (MTK_PIN_NO(63) | 1)
#define PINMUX_GPIO63__FUNC_AUD_DAT_MISO0 (MTK_PIN_NO(63) | 2)
#define PINMUX_GPIO63__FUNC_I2S1_LRCK (MTK_PIN_NO(63) | 3)
#define PINMUX_GPIO63__FUNC_I2S3_LRCK (MTK_PIN_NO(63) | 4)
#define PINMUX_GPIO63__FUNC_DBG_MON_A41 (MTK_PIN_NO(63) | 7)
#define PINMUX_GPIO64__FUNC_GPIO64 (MTK_PIN_NO(64) | 0)
#define PINMUX_GPIO64__FUNC_AUD_DAT_MOSI1 (MTK_PIN_NO(64) | 1)
#define PINMUX_GPIO64__FUNC_AUD_DAT_MISO1 (MTK_PIN_NO(64) | 2)
#define PINMUX_GPIO64__FUNC_I2S1_DO (MTK_PIN_NO(64) | 3)
#define PINMUX_GPIO64__FUNC_I2S3_DO (MTK_PIN_NO(64) | 4)
#define PINMUX_GPIO64__FUNC_DBG_MON_A43 (MTK_PIN_NO(64) | 7)
#define PINMUX_GPIO65__FUNC_GPIO65 (MTK_PIN_NO(65) | 0)
#define PINMUX_GPIO65__FUNC_AUD_CLK_MOSI (MTK_PIN_NO(65) | 1)
#define PINMUX_GPIO65__FUNC_AUD_CLK_MISO (MTK_PIN_NO(65) | 2)
#define PINMUX_GPIO65__FUNC_I2S1_MCK (MTK_PIN_NO(65) | 3)
#define PINMUX_GPIO65__FUNC_I2S3_MCK (MTK_PIN_NO(65) | 4)
#define PINMUX_GPIO65__FUNC_DBG_MON_A45 (MTK_PIN_NO(65) | 7)
#define PINMUX_GPIO66__FUNC_GPIO66 (MTK_PIN_NO(66) | 0)
#define PINMUX_GPIO66__FUNC_AUD_SYNC_MISO (MTK_PIN_NO(66) | 1)
#define PINMUX_GPIO66__FUNC_AUD_SYNC_MOSI (MTK_PIN_NO(66) | 2)
#define PINMUX_GPIO66__FUNC_I2S0_BCK (MTK_PIN_NO(66) | 3)
#define PINMUX_GPIO66__FUNC_I2S2_BCK (MTK_PIN_NO(66) | 4)
#define PINMUX_GPIO66__FUNC_DBG_MON_A44 (MTK_PIN_NO(66) | 7)
#define PINMUX_GPIO67__FUNC_GPIO67 (MTK_PIN_NO(67) | 0)
#define PINMUX_GPIO67__FUNC_AUD_DAT_MISO0 (MTK_PIN_NO(67) | 1)
#define PINMUX_GPIO67__FUNC_AUD_DAT_MOSI0 (MTK_PIN_NO(67) | 2)
#define PINMUX_GPIO67__FUNC_I2S0_LRCK (MTK_PIN_NO(67) | 3)
#define PINMUX_GPIO67__FUNC_I2S2_LRCK (MTK_PIN_NO(67) | 4)
#define PINMUX_GPIO67__FUNC_DBG_MON_A42 (MTK_PIN_NO(67) | 7)
#define PINMUX_GPIO68__FUNC_GPIO68 (MTK_PIN_NO(68) | 0)
#define PINMUX_GPIO68__FUNC_AUD_DAT_MISO1 (MTK_PIN_NO(68) | 1)
#define PINMUX_GPIO68__FUNC_AUD_DAT_MOSI1 (MTK_PIN_NO(68) | 2)
#define PINMUX_GPIO68__FUNC_I2S0_DI (MTK_PIN_NO(68) | 3)
#define PINMUX_GPIO68__FUNC_I2S2_DI (MTK_PIN_NO(68) | 4)
#define PINMUX_GPIO68__FUNC_DBG_MON_A46 (MTK_PIN_NO(68) | 7)
#define PINMUX_GPIO69__FUNC_GPIO69 (MTK_PIN_NO(69) | 0)
#define PINMUX_GPIO69__FUNC_AUD_CLK_MISO (MTK_PIN_NO(69) | 1)
#define PINMUX_GPIO69__FUNC_AUD_CLK_MOSI (MTK_PIN_NO(69) | 2)
#define PINMUX_GPIO69__FUNC_I2S0_MCK (MTK_PIN_NO(69) | 3)
#define PINMUX_GPIO69__FUNC_I2S2_MCK (MTK_PIN_NO(69) | 4)
#define PINMUX_GPIO69__FUNC_DBG_MON_A47 (MTK_PIN_NO(69) | 7)
#define PINMUX_GPIO70__FUNC_GPIO70 (MTK_PIN_NO(70) | 0)
#define PINMUX_GPIO70__FUNC_RTC32K_CK (MTK_PIN_NO(70) | 1)
#define PINMUX_GPIO71__FUNC_GPIO71 (MTK_PIN_NO(71) | 0)
#define PINMUX_GPIO71__FUNC_MSDC1_CMD (MTK_PIN_NO(71) | 1)
#define PINMUX_GPIO71__FUNC_CONN_DSP_JDI (MTK_PIN_NO(71) | 2)
#define PINMUX_GPIO71__FUNC_IO_JTAG_TDI (MTK_PIN_NO(71) | 4)
#define PINMUX_GPIO71__FUNC_JTDI (MTK_PIN_NO(71) | 5)
#define PINMUX_GPIO71__FUNC_MCUPM_JTAG_TDI (MTK_PIN_NO(71) | 6)
#define PINMUX_GPIO72__FUNC_GPIO72 (MTK_PIN_NO(72) | 0)
#define PINMUX_GPIO72__FUNC_MSDC1_CLK (MTK_PIN_NO(72) | 1)
#define PINMUX_GPIO72__FUNC_CONN_DSP_JCK (MTK_PIN_NO(72) | 2)
#define PINMUX_GPIO72__FUNC_CONN_MCU_AICE_TCKC (MTK_PIN_NO(72) | 3)
#define PINMUX_GPIO72__FUNC_IO_JTAG_TCK (MTK_PIN_NO(72) | 4)
#define PINMUX_GPIO72__FUNC_JTCK (MTK_PIN_NO(72) | 5)
#define PINMUX_GPIO72__FUNC_MCUPM_JTAG_TCK (MTK_PIN_NO(72) | 6)
#define PINMUX_GPIO73__FUNC_GPIO73 (MTK_PIN_NO(73) | 0)
#define PINMUX_GPIO73__FUNC_MSDC1_DAT0 (MTK_PIN_NO(73) | 1)
#define PINMUX_GPIO73__FUNC_CONN_DSP_JMS (MTK_PIN_NO(73) | 2)
#define PINMUX_GPIO73__FUNC_CONN_MCU_AICE_TMSC (MTK_PIN_NO(73) | 3)
#define PINMUX_GPIO73__FUNC_IO_JTAG_TMS (MTK_PIN_NO(73) | 4)
#define PINMUX_GPIO73__FUNC_JTMS (MTK_PIN_NO(73) | 5)
#define PINMUX_GPIO73__FUNC_MCUPM_JTAG_TMS (MTK_PIN_NO(73) | 6)
#define PINMUX_GPIO74__FUNC_GPIO74 (MTK_PIN_NO(74) | 0)
#define PINMUX_GPIO74__FUNC_MSDC1_DAT1 (MTK_PIN_NO(74) | 1)
#define PINMUX_GPIO74__FUNC_CONN_DSP_JDO (MTK_PIN_NO(74) | 2)
#define PINMUX_GPIO74__FUNC_IO_JTAG_TDO (MTK_PIN_NO(74) | 4)
#define PINMUX_GPIO74__FUNC_JTDO (MTK_PIN_NO(74) | 5)
#define PINMUX_GPIO74__FUNC_MCUPM_JTAG_TDO (MTK_PIN_NO(74) | 6)
#define PINMUX_GPIO75__FUNC_GPIO75 (MTK_PIN_NO(75) | 0)
#define PINMUX_GPIO75__FUNC_MSDC1_DAT2 (MTK_PIN_NO(75) | 1)
#define PINMUX_GPIO75__FUNC_CONN_DSP_JINTP (MTK_PIN_NO(75) | 2)
#define PINMUX_GPIO75__FUNC_IO_JTAG_TRSTN (MTK_PIN_NO(75) | 4)
#define PINMUX_GPIO75__FUNC_JTRST (MTK_PIN_NO(75) | 5)
#define PINMUX_GPIO75__FUNC_MCUPM_JTAG_TRSTN (MTK_PIN_NO(75) | 6)
#define PINMUX_GPIO76__FUNC_GPIO76 (MTK_PIN_NO(76) | 0)
#define PINMUX_GPIO76__FUNC_MSDC1_DAT3 (MTK_PIN_NO(76) | 1)
#define PINMUX_GPIO77__FUNC_GPIO77 (MTK_PIN_NO(77) | 0)
#define PINMUX_GPIO77__FUNC_MD1_SIM1_SCLK (MTK_PIN_NO(77) | 1)
#define PINMUX_GPIO77__FUNC_MD1_SIM2_SCLK (MTK_PIN_NO(77) | 2)
#define PINMUX_GPIO77__FUNC_DBG_MON_A62 (MTK_PIN_NO(77) | 7)
#define PINMUX_GPIO78__FUNC_GPIO78 (MTK_PIN_NO(78) | 0)
#define PINMUX_GPIO78__FUNC_MD1_SIM1_SRST (MTK_PIN_NO(78) | 1)
#define PINMUX_GPIO78__FUNC_MD1_SIM2_SRST (MTK_PIN_NO(78) | 2)
#define PINMUX_GPIO78__FUNC_CONN_DSP_JCK (MTK_PIN_NO(78) | 3)
#define PINMUX_GPIO78__FUNC_DBG_MON_A60 (MTK_PIN_NO(78) | 7)
#define PINMUX_GPIO79__FUNC_GPIO79 (MTK_PIN_NO(79) | 0)
#define PINMUX_GPIO79__FUNC_MD1_SIM1_SIO (MTK_PIN_NO(79) | 1)
#define PINMUX_GPIO79__FUNC_MD1_SIM2_SIO (MTK_PIN_NO(79) | 2)
#define PINMUX_GPIO79__FUNC_CONN_DSP_JDI (MTK_PIN_NO(79) | 3)
#define PINMUX_GPIO79__FUNC_DBG_MON_A61 (MTK_PIN_NO(79) | 7)
#define PINMUX_GPIO80__FUNC_GPIO80 (MTK_PIN_NO(80) | 0)
#define PINMUX_GPIO80__FUNC_MD1_SIM2_SCLK (MTK_PIN_NO(80) | 1)
#define PINMUX_GPIO80__FUNC_MD1_SIM1_SCLK (MTK_PIN_NO(80) | 2)
#define PINMUX_GPIO80__FUNC_CONN_DSP_JDO (MTK_PIN_NO(80) | 3)
#define PINMUX_GPIO80__FUNC_DBG_MON_A63 (MTK_PIN_NO(80) | 7)
#define PINMUX_GPIO81__FUNC_GPIO81 (MTK_PIN_NO(81) | 0)
#define PINMUX_GPIO81__FUNC_MD1_SIM2_SRST (MTK_PIN_NO(81) | 1)
#define PINMUX_GPIO81__FUNC_MD1_SIM1_SRST (MTK_PIN_NO(81) | 2)
#define PINMUX_GPIO81__FUNC_CONN_DSP_JINTP (MTK_PIN_NO(81) | 3)
#define PINMUX_GPIO81__FUNC_CONN_MCU_AICE_TCKC (MTK_PIN_NO(81) | 4)
#define PINMUX_GPIO81__FUNC_DBG_MON_A64 (MTK_PIN_NO(81) | 7)
#define PINMUX_GPIO82__FUNC_GPIO82 (MTK_PIN_NO(82) | 0)
#define PINMUX_GPIO82__FUNC_MD1_SIM2_SIO (MTK_PIN_NO(82) | 1)
#define PINMUX_GPIO82__FUNC_MD1_SIM1_SIO (MTK_PIN_NO(82) | 2)
#define PINMUX_GPIO82__FUNC_CONN_DSP_JMS (MTK_PIN_NO(82) | 3)
#define PINMUX_GPIO82__FUNC_CONN_MCU_AICE_TMSC (MTK_PIN_NO(82) | 4)
#define PINMUX_GPIO83__FUNC_GPIO83 (MTK_PIN_NO(83) | 0)
#define PINMUX_GPIO83__FUNC_LCM_RST (MTK_PIN_NO(83) | 1)
#define PINMUX_GPIO83__FUNC_LPCE0B (MTK_PIN_NO(83) | 3)
#define PINMUX_GPIO83__FUNC_DBG_MON_A58 (MTK_PIN_NO(83) | 7)
#define PINMUX_GPIO84__FUNC_GPIO84 (MTK_PIN_NO(84) | 0)
#define PINMUX_GPIO84__FUNC_DSI_TE (MTK_PIN_NO(84) | 1)
#define PINMUX_GPIO84__FUNC_LPTE (MTK_PIN_NO(84) | 3)
#define PINMUX_GPIO84__FUNC_DBG_MON_A59 (MTK_PIN_NO(84) | 7)
#define PINMUX_GPIO85__FUNC_GPIO85 (MTK_PIN_NO(85) | 0)
#define PINMUX_GPIO85__FUNC_DISP_PWM (MTK_PIN_NO(85) | 1)
#define PINMUX_GPIO85__FUNC_LSA0 (MTK_PIN_NO(85) | 2)
#define PINMUX_GPIO85__FUNC_LPA0 (MTK_PIN_NO(85) | 3)
#define PINMUX_GPIO85__FUNC_PWM5 (MTK_PIN_NO(85) | 4)
#define PINMUX_GPIO85__FUNC_DBG_MON_A50 (MTK_PIN_NO(85) | 7)
#define PINMUX_GPIO86__FUNC_GPIO86 (MTK_PIN_NO(86) | 0)
#define PINMUX_GPIO86__FUNC_MIPI3_SCLK (MTK_PIN_NO(86) | 1)
#define PINMUX_GPIO86__FUNC_DBG_MON_B10 (MTK_PIN_NO(86) | 7)
#define PINMUX_GPIO87__FUNC_GPIO87 (MTK_PIN_NO(87) | 0)
#define PINMUX_GPIO87__FUNC_MIPI3_SDATA (MTK_PIN_NO(87) | 1)
#define PINMUX_GPIO87__FUNC_DBG_MON_B9 (MTK_PIN_NO(87) | 7)
#define PINMUX_GPIO88__FUNC_GPIO88 (MTK_PIN_NO(88) | 0)
#define PINMUX_GPIO88__FUNC_MIPI2_SDATA (MTK_PIN_NO(88) | 1)
#define PINMUX_GPIO88__FUNC_BPI_BUS18 (MTK_PIN_NO(88) | 2)
#define PINMUX_GPIO88__FUNC_DBG_MON_B8 (MTK_PIN_NO(88) | 7)
#define PINMUX_GPIO89__FUNC_GPIO89 (MTK_PIN_NO(89) | 0)
#define PINMUX_GPIO89__FUNC_MIPI2_SCLK (MTK_PIN_NO(89) | 1)
#define PINMUX_GPIO89__FUNC_BPI_BUS19 (MTK_PIN_NO(89) | 2)
#define PINMUX_GPIO89__FUNC_DBG_MON_B7 (MTK_PIN_NO(89) | 7)
#define PINMUX_GPIO90__FUNC_GPIO90 (MTK_PIN_NO(90) | 0)
#define PINMUX_GPIO90__FUNC_BPI_BUS16 (MTK_PIN_NO(90) | 1)
#define PINMUX_GPIO90__FUNC_BPI_PA_VM0 (MTK_PIN_NO(90) | 2)
#define PINMUX_GPIO90__FUNC_ANT_SEL4 (MTK_PIN_NO(90) | 3)
#define PINMUX_GPIO90__FUNC_DBG_MON_B0 (MTK_PIN_NO(90) | 7)
#define PINMUX_GPIO91__FUNC_GPIO91 (MTK_PIN_NO(91) | 0)
#define PINMUX_GPIO91__FUNC_BPI_BUS17 (MTK_PIN_NO(91) | 1)
#define PINMUX_GPIO91__FUNC_BPI_PA_VM1 (MTK_PIN_NO(91) | 2)
#define PINMUX_GPIO91__FUNC_MD_INT1_C2K_UIM0_HOT_PLUG (MTK_PIN_NO(91) | 4)
#define PINMUX_GPIO91__FUNC_DBG_MON_B3 (MTK_PIN_NO(91) | 7)
#define PINMUX_GPIO92__FUNC_GPIO92 (MTK_PIN_NO(92) | 0)
#define PINMUX_GPIO92__FUNC_BPI_BUS10 (MTK_PIN_NO(92) | 1)
#define PINMUX_GPIO92__FUNC_MD_INT2_C2K_UIM1_HOT_PLUG (MTK_PIN_NO(92) | 4)
#define PINMUX_GPIO92__FUNC_DBG_MON_B1 (MTK_PIN_NO(92) | 7)
#define PINMUX_GPIO93__FUNC_GPIO93 (MTK_PIN_NO(93) | 0)
#define PINMUX_GPIO93__FUNC_BPI_BUS11 (MTK_PIN_NO(93) | 1)
#define PINMUX_GPIO93__FUNC_IDDIG (MTK_PIN_NO(93) | 3)
#define PINMUX_GPIO93__FUNC_DBG_MON_B5 (MTK_PIN_NO(93) | 7)
#define PINMUX_GPIO94__FUNC_GPIO94 (MTK_PIN_NO(94) | 0)
#define PINMUX_GPIO94__FUNC_BPI_BUS12 (MTK_PIN_NO(94) | 1)
#define PINMUX_GPIO94__FUNC_USB_DRVVBUS (MTK_PIN_NO(94) | 3)
#define PINMUX_GPIO94__FUNC_DBG_MON_B2 (MTK_PIN_NO(94) | 7)
#define PINMUX_GPIO95__FUNC_GPIO95 (MTK_PIN_NO(95) | 0)
#define PINMUX_GPIO95__FUNC_BPI_BUS13 (MTK_PIN_NO(95) | 1)
#define PINMUX_GPIO95__FUNC_MD_INT0 (MTK_PIN_NO(95) | 4)
#define PINMUX_GPIO95__FUNC_DBG_MON_B6 (MTK_PIN_NO(95) | 7)
#define PINMUX_GPIO96__FUNC_GPIO96 (MTK_PIN_NO(96) | 0)
#define PINMUX_GPIO96__FUNC_BPI_BUS14 (MTK_PIN_NO(96) | 1)
#define PINMUX_GPIO96__FUNC_DBG_MON_B4 (MTK_PIN_NO(96) | 7)
#define PINMUX_GPIO97__FUNC_GPIO97 (MTK_PIN_NO(97) | 0)
#define PINMUX_GPIO97__FUNC_RFIC0_BSI_EN (MTK_PIN_NO(97) | 1)
#define PINMUX_GPIO97__FUNC_DBG_MON_B11 (MTK_PIN_NO(97) | 7)
#define PINMUX_GPIO98__FUNC_GPIO98 (MTK_PIN_NO(98) | 0)
#define PINMUX_GPIO98__FUNC_RFIC0_BSI_CK (MTK_PIN_NO(98) | 1)
#define PINMUX_GPIO98__FUNC_DBG_MON_B13 (MTK_PIN_NO(98) | 7)
#define PINMUX_GPIO99__FUNC_GPIO99 (MTK_PIN_NO(99) | 0)
#define PINMUX_GPIO99__FUNC_RFIC0_BSI_D2 (MTK_PIN_NO(99) | 1)
#define PINMUX_GPIO99__FUNC_BPI_BUS0 (MTK_PIN_NO(99) | 2)
#define PINMUX_GPIO99__FUNC_DBG_MON_B12 (MTK_PIN_NO(99) | 7)
#define PINMUX_GPIO100__FUNC_GPIO100 (MTK_PIN_NO(100) | 0)
#define PINMUX_GPIO100__FUNC_RFIC0_BSI_D1 (MTK_PIN_NO(100) | 1)
#define PINMUX_GPIO100__FUNC_DBG_MON_B15 (MTK_PIN_NO(100) | 7)
#define PINMUX_GPIO101__FUNC_GPIO101 (MTK_PIN_NO(101) | 0)
#define PINMUX_GPIO101__FUNC_RFIC0_BSI_D0 (MTK_PIN_NO(101) | 1)
#define PINMUX_GPIO101__FUNC_DBG_MON_B14 (MTK_PIN_NO(101) | 7)
#define PINMUX_GPIO102__FUNC_GPIO102 (MTK_PIN_NO(102) | 0)
#define PINMUX_GPIO102__FUNC_BPI_BUS2 (MTK_PIN_NO(102) | 1)
#define PINMUX_GPIO102__FUNC_KP3ROW (MTK_PIN_NO(102) | 5)
#define PINMUX_GPIO102__FUNC_LPTE (MTK_PIN_NO(102) | 6)
#define PINMUX_GPIO102__FUNC_DBG_MON_B19 (MTK_PIN_NO(102) | 7)
#define PINMUX_GPIO103__FUNC_GPIO103 (MTK_PIN_NO(103) | 0)
#define PINMUX_GPIO103__FUNC_BPI_BUS3 (MTK_PIN_NO(103) | 1)
#define PINMUX_GPIO103__FUNC_KP4ROW (MTK_PIN_NO(103) | 5)
#define PINMUX_GPIO103__FUNC_LPA0_A (MTK_PIN_NO(103) | 6)
#define PINMUX_GPIO103__FUNC_DBG_MON_B18 (MTK_PIN_NO(103) | 7)
#define PINMUX_GPIO104__FUNC_GPIO104 (MTK_PIN_NO(104) | 0)
#define PINMUX_GPIO104__FUNC_BPI_BUS4 (MTK_PIN_NO(104) | 1)
#define PINMUX_GPIO104__FUNC_KP5ROW (MTK_PIN_NO(104) | 5)
#define PINMUX_GPIO104__FUNC_LPRDB_A (MTK_PIN_NO(104) | 6)
#define PINMUX_GPIO104__FUNC_DBG_MON_B16 (MTK_PIN_NO(104) | 7)
#define PINMUX_GPIO105__FUNC_GPIO105 (MTK_PIN_NO(105) | 0)
#define PINMUX_GPIO105__FUNC_BPI_BUS5 (MTK_PIN_NO(105) | 1)
#define PINMUX_GPIO105__FUNC_KP6ROW (MTK_PIN_NO(105) | 5)
#define PINMUX_GPIO105__FUNC_LPWRB_A (MTK_PIN_NO(105) | 6)
#define PINMUX_GPIO105__FUNC_DBG_MON_B22 (MTK_PIN_NO(105) | 7)
#define PINMUX_GPIO106__FUNC_GPIO106 (MTK_PIN_NO(106) | 0)
#define PINMUX_GPIO106__FUNC_BPI_BUS6 (MTK_PIN_NO(106) | 1)
#define PINMUX_GPIO106__FUNC_KP7ROW (MTK_PIN_NO(106) | 5)
#define PINMUX_GPIO106__FUNC_LPD0_A (MTK_PIN_NO(106) | 6)
#define PINMUX_GPIO106__FUNC_DBG_MON_B25 (MTK_PIN_NO(106) | 7)
#define PINMUX_GPIO107__FUNC_GPIO107 (MTK_PIN_NO(107) | 0)
#define PINMUX_GPIO107__FUNC_BPI_BUS7 (MTK_PIN_NO(107) | 1)
#define PINMUX_GPIO107__FUNC_KP3COL (MTK_PIN_NO(107) | 5)
#define PINMUX_GPIO107__FUNC_LPD1_A (MTK_PIN_NO(107) | 6)
#define PINMUX_GPIO107__FUNC_DBG_MON_B29 (MTK_PIN_NO(107) | 7)
#define PINMUX_GPIO108__FUNC_GPIO108 (MTK_PIN_NO(108) | 0)
#define PINMUX_GPIO108__FUNC_BPI_BUS8 (MTK_PIN_NO(108) | 1)
#define PINMUX_GPIO108__FUNC_KP4COL (MTK_PIN_NO(108) | 5)
#define PINMUX_GPIO108__FUNC_LPD2_A (MTK_PIN_NO(108) | 6)
#define PINMUX_GPIO108__FUNC_DBG_MON_B27 (MTK_PIN_NO(108) | 7)
#define PINMUX_GPIO109__FUNC_GPIO109 (MTK_PIN_NO(109) | 0)
#define PINMUX_GPIO109__FUNC_BPI_BUS9 (MTK_PIN_NO(109) | 1)
#define PINMUX_GPIO109__FUNC_KP5COL (MTK_PIN_NO(109) | 5)
#define PINMUX_GPIO109__FUNC_LPD3_A (MTK_PIN_NO(109) | 6)
#define PINMUX_GPIO109__FUNC_DBG_MON_B24 (MTK_PIN_NO(109) | 7)
#define PINMUX_GPIO110__FUNC_GPIO110 (MTK_PIN_NO(110) | 0)
#define PINMUX_GPIO110__FUNC_BPI_BUS0 (MTK_PIN_NO(110) | 1)
#define PINMUX_GPIO110__FUNC_KP6COL (MTK_PIN_NO(110) | 5)
#define PINMUX_GPIO110__FUNC_LPD4_A (MTK_PIN_NO(110) | 6)
#define PINMUX_GPIO110__FUNC_DBG_MON_B30 (MTK_PIN_NO(110) | 7)
#define PINMUX_GPIO111__FUNC_GPIO111 (MTK_PIN_NO(111) | 0)
#define PINMUX_GPIO111__FUNC_BPI_BUS1 (MTK_PIN_NO(111) | 1)
#define PINMUX_GPIO111__FUNC_KP7COL (MTK_PIN_NO(111) | 5)
#define PINMUX_GPIO111__FUNC_LPD5_A (MTK_PIN_NO(111) | 6)
#define PINMUX_GPIO111__FUNC_DBG_MON_B28 (MTK_PIN_NO(111) | 7)
#define PINMUX_GPIO112__FUNC_GPIO112 (MTK_PIN_NO(112) | 0)
#define PINMUX_GPIO112__FUNC_BPI_BUS15 (MTK_PIN_NO(112) | 1)
#define PINMUX_GPIO112__FUNC_ANT_SEL4 (MTK_PIN_NO(112) | 3)
#define PINMUX_GPIO112__FUNC_LPD6_A (MTK_PIN_NO(112) | 6)
#define PINMUX_GPIO112__FUNC_DBG_MON_B26 (MTK_PIN_NO(112) | 7)
#define PINMUX_GPIO113__FUNC_GPIO113 (MTK_PIN_NO(113) | 0)
#define PINMUX_GPIO113__FUNC_MIPI1_SCLK (MTK_PIN_NO(113) | 1)
#define PINMUX_GPIO113__FUNC_ANT_SEL5 (MTK_PIN_NO(113) | 3)
#define PINMUX_GPIO113__FUNC_LPD7_A (MTK_PIN_NO(113) | 6)
#define PINMUX_GPIO113__FUNC_DBG_MON_B21 (MTK_PIN_NO(113) | 7)
#define PINMUX_GPIO114__FUNC_GPIO114 (MTK_PIN_NO(114) | 0)
#define PINMUX_GPIO114__FUNC_MIPI1_SDATA (MTK_PIN_NO(114) | 1)
#define PINMUX_GPIO114__FUNC_ANT_SEL2 (MTK_PIN_NO(114) | 3)
#define PINMUX_GPIO114__FUNC_LPD8_A (MTK_PIN_NO(114) | 6)
#define PINMUX_GPIO114__FUNC_DBG_MON_B20 (MTK_PIN_NO(114) | 7)
#define PINMUX_GPIO115__FUNC_GPIO115 (MTK_PIN_NO(115) | 0)
#define PINMUX_GPIO115__FUNC_MIPI0_SCLK (MTK_PIN_NO(115) | 1)
#define PINMUX_GPIO115__FUNC_ANT_SEL3 (MTK_PIN_NO(115) | 3)
#define PINMUX_GPIO115__FUNC_LPRSTB (MTK_PIN_NO(115) | 6)
#define PINMUX_GPIO115__FUNC_DBG_MON_B17 (MTK_PIN_NO(115) | 7)
#define PINMUX_GPIO116__FUNC_GPIO116 (MTK_PIN_NO(116) | 0)
#define PINMUX_GPIO116__FUNC_MIPI0_SDATA (MTK_PIN_NO(116) | 1)
#define PINMUX_GPIO116__FUNC_LPCE0B_A (MTK_PIN_NO(116) | 6)
#define PINMUX_GPIO116__FUNC_DBG_MON_B23 (MTK_PIN_NO(116) | 7)
#define PINMUX_GPIO117__FUNC_GPIO117 (MTK_PIN_NO(117) | 0)
#define PINMUX_GPIO117__FUNC_KP0ROW (MTK_PIN_NO(117) | 1)
#define PINMUX_GPIO117__FUNC_DBG_MON_A0 (MTK_PIN_NO(117) | 7)
#define PINMUX_GPIO118__FUNC_GPIO118 (MTK_PIN_NO(118) | 0)
#define PINMUX_GPIO118__FUNC_KP1ROW (MTK_PIN_NO(118) | 1)
#define PINMUX_GPIO118__FUNC_ANT_SEL7 (MTK_PIN_NO(118) | 2)
#define PINMUX_GPIO118__FUNC_DBG_MON_A1 (MTK_PIN_NO(118) | 7)
#define PINMUX_GPIO119__FUNC_GPIO119 (MTK_PIN_NO(119) | 0)
#define PINMUX_GPIO119__FUNC_KP2ROW (MTK_PIN_NO(119) | 1)
#define PINMUX_GPIO119__FUNC_ANT_SEL5 (MTK_PIN_NO(119) | 2)
#define PINMUX_GPIO119__FUNC_UART0RTS (MTK_PIN_NO(119) | 3)
#define PINMUX_GPIO119__FUNC_CONN_MCU_DBGACK_N (MTK_PIN_NO(119) | 4)
#define PINMUX_GPIO119__FUNC_MD_INT0 (MTK_PIN_NO(119) | 5)
#define PINMUX_GPIO119__FUNC_DBG_MON_A2 (MTK_PIN_NO(119) | 7)
#define PINMUX_GPIO120__FUNC_GPIO120 (MTK_PIN_NO(120) | 0)
#define PINMUX_GPIO120__FUNC_KP0COL (MTK_PIN_NO(120) | 1)
#define PINMUX_GPIO120__FUNC_DBG_MON_A3 (MTK_PIN_NO(120) | 7)
#define PINMUX_GPIO121__FUNC_GPIO121 (MTK_PIN_NO(121) | 0)
#define PINMUX_GPIO121__FUNC_KP1COL (MTK_PIN_NO(121) | 1)
#define PINMUX_GPIO121__FUNC_ANT_SEL6 (MTK_PIN_NO(121) | 2)
#define PINMUX_GPIO121__FUNC_DBG_MON_A4 (MTK_PIN_NO(121) | 7)
#define PINMUX_GPIO122__FUNC_GPIO122 (MTK_PIN_NO(122) | 0)
#define PINMUX_GPIO122__FUNC_KP2COL (MTK_PIN_NO(122) | 1)
#define PINMUX_GPIO122__FUNC_ANT_SEL4 (MTK_PIN_NO(122) | 2)
#define PINMUX_GPIO122__FUNC_UART1CTS (MTK_PIN_NO(122) | 3)
#define PINMUX_GPIO122__FUNC_CONN_MCU_DBGI_N (MTK_PIN_NO(122) | 4)
#define PINMUX_GPIO122__FUNC_DBG_MON_A5 (MTK_PIN_NO(122) | 7)
#define PINMUX_GPIO123__FUNC_GPIO123 (MTK_PIN_NO(123) | 0)
#define PINMUX_GPIO123__FUNC_CMDAT0 (MTK_PIN_NO(123) | 1)
#define PINMUX_GPIO123__FUNC_CMCSD0 (MTK_PIN_NO(123) | 2)
#define PINMUX_GPIO123__FUNC_I2C4_SCL (MTK_PIN_NO(123) | 3)
#define PINMUX_GPIO123__FUNC_AUXIF_CLK (MTK_PIN_NO(123) | 4)
#define PINMUX_GPIO123__FUNC_ANT_SEL6 (MTK_PIN_NO(123) | 5)
#define PINMUX_GPIO123__FUNC_UART1RTS (MTK_PIN_NO(123) | 6)
#define PINMUX_GPIO124__FUNC_GPIO124 (MTK_PIN_NO(124) | 0)
#define PINMUX_GPIO124__FUNC_CMDAT1 (MTK_PIN_NO(124) | 1)
#define PINMUX_GPIO124__FUNC_CMCSD1 (MTK_PIN_NO(124) | 2)
#define PINMUX_GPIO124__FUNC_I2C4_SDA (MTK_PIN_NO(124) | 3)
#define PINMUX_GPIO124__FUNC_AUXIF_ST (MTK_PIN_NO(124) | 4)
#define PINMUX_GPIO124__FUNC_ANT_SEL7 (MTK_PIN_NO(124) | 5)
#define PINMUX_GPIO124__FUNC_UART0CTS (MTK_PIN_NO(124) | 6)
#define PINMUX_GPIO125__FUNC_GPIO125 (MTK_PIN_NO(125) | 0)
#define PINMUX_GPIO125__FUNC_CMPCLK (MTK_PIN_NO(125) | 1)
#define PINMUX_GPIO125__FUNC_CMCSK (MTK_PIN_NO(125) | 2)
#define PINMUX_GPIO125__FUNC_CMCSD2 (MTK_PIN_NO(125) | 3)
#define PINMUX_GPIO125__FUNC_CLKM1 (MTK_PIN_NO(125) | 4)
#define PINMUX_GPIO125__FUNC_MD_INT0 (MTK_PIN_NO(125) | 5)
#define PINMUX_GPIO125__FUNC_UART0RTS (MTK_PIN_NO(125) | 6)
#define PINMUX_GPIO126__FUNC_GPIO126 (MTK_PIN_NO(126) | 0)
#define PINMUX_GPIO126__FUNC_CMMCLK0 (MTK_PIN_NO(126) | 1)
#define PINMUX_GPIO126__FUNC_CMMCLK1 (MTK_PIN_NO(126) | 2)
#define PINMUX_GPIO126__FUNC_ANT_SEL1 (MTK_PIN_NO(126) | 3)
#define PINMUX_GPIO127__FUNC_GPIO127 (MTK_PIN_NO(127) | 0)
#define PINMUX_GPIO127__FUNC_CMMCLK1 (MTK_PIN_NO(127) | 1)
#define PINMUX_GPIO127__FUNC_CMMCLK0 (MTK_PIN_NO(127) | 2)
#define PINMUX_GPIO127__FUNC_ANT_SEL0 (MTK_PIN_NO(127) | 3)
#define PINMUX_GPIO127__FUNC_MD_INT0 (MTK_PIN_NO(127) | 4)
#define PINMUX_GPIO128__FUNC_GPIO128 (MTK_PIN_NO(128) | 0)
#define PINMUX_GPIO128__FUNC_I2C0_SDA (MTK_PIN_NO(128) | 1)
#define PINMUX_GPIO129__FUNC_GPIO129 (MTK_PIN_NO(129) | 0)
#define PINMUX_GPIO129__FUNC_I2C0_SCL (MTK_PIN_NO(129) | 1)
#define PINMUX_GPIO130__FUNC_GPIO130 (MTK_PIN_NO(130) | 0)
#define PINMUX_GPIO130__FUNC_I2C1_SDA (MTK_PIN_NO(130) | 1)
#define PINMUX_GPIO131__FUNC_GPIO131 (MTK_PIN_NO(131) | 0)
#define PINMUX_GPIO131__FUNC_I2C1_SCL (MTK_PIN_NO(131) | 1)
#define PINMUX_GPIO132__FUNC_GPIO132 (MTK_PIN_NO(132) | 0)
#define PINMUX_GPIO132__FUNC_I2C2_SDA (MTK_PIN_NO(132) | 1)
#define PINMUX_GPIO133__FUNC_GPIO133 (MTK_PIN_NO(133) | 0)
#define PINMUX_GPIO133__FUNC_I2C2_SCL (MTK_PIN_NO(133) | 1)
#define PINMUX_GPIO134__FUNC_GPIO134 (MTK_PIN_NO(134) | 0)
#define PINMUX_GPIO134__FUNC_I2C3_SDA (MTK_PIN_NO(134) | 1)
#define PINMUX_GPIO135__FUNC_GPIO135 (MTK_PIN_NO(135) | 0)
#define PINMUX_GPIO135__FUNC_I2C3_SCL (MTK_PIN_NO(135) | 1)
#define PINMUX_GPIO136__FUNC_GPIO136 (MTK_PIN_NO(136) | 0)
#define PINMUX_GPIO136__FUNC_SRCLKENAI0 (MTK_PIN_NO(136) | 1)
#define PINMUX_GPIO136__FUNC_DBG_MON_A14 (MTK_PIN_NO(136) | 7)
#define PINMUX_GPIO137__FUNC_GPIO137 (MTK_PIN_NO(137) | 0)
#define PINMUX_GPIO137__FUNC_JTMS (MTK_PIN_NO(137) | 1)
#define PINMUX_GPIO137__FUNC_DFD_TMS (MTK_PIN_NO(137) | 2)
#define PINMUX_GPIO137__FUNC_MFG_JTAG_TMS (MTK_PIN_NO(137) | 3)
#define PINMUX_GPIO137__FUNC_CONN_MCU_TMS (MTK_PIN_NO(137) | 4)
#define PINMUX_GPIO137__FUNC_ANT_SEL1 (MTK_PIN_NO(137) | 5)
#define PINMUX_GPIO138__FUNC_GPIO138 (MTK_PIN_NO(138) | 0)
#define PINMUX_GPIO138__FUNC_JTCK (MTK_PIN_NO(138) | 1)
#define PINMUX_GPIO138__FUNC_DFD_TCK_XI (MTK_PIN_NO(138) | 2)
#define PINMUX_GPIO138__FUNC_MFG_JTAG_TCK (MTK_PIN_NO(138) | 3)
#define PINMUX_GPIO138__FUNC_CONN_MCU_TCK (MTK_PIN_NO(138) | 4)
#define PINMUX_GPIO138__FUNC_ANT_SEL2 (MTK_PIN_NO(138) | 5)
#define PINMUX_GPIO139__FUNC_GPIO139 (MTK_PIN_NO(139) | 0)
#define PINMUX_GPIO139__FUNC_JTDI (MTK_PIN_NO(139) | 1)
#define PINMUX_GPIO139__FUNC_DFD_TDI (MTK_PIN_NO(139) | 2)
#define PINMUX_GPIO139__FUNC_MFG_JTAG_TDI (MTK_PIN_NO(139) | 3)
#define PINMUX_GPIO139__FUNC_CONN_MCU_TDI (MTK_PIN_NO(139) | 4)
#define PINMUX_GPIO139__FUNC_ANT_SEL3 (MTK_PIN_NO(139) | 5)
#define PINMUX_GPIO140__FUNC_GPIO140 (MTK_PIN_NO(140) | 0)
#define PINMUX_GPIO140__FUNC_JTDO (MTK_PIN_NO(140) | 1)
#define PINMUX_GPIO140__FUNC_DFD_TDO (MTK_PIN_NO(140) | 2)
#define PINMUX_GPIO140__FUNC_MFG_JTAG_TDO (MTK_PIN_NO(140) | 3)
#define PINMUX_GPIO140__FUNC_CONN_MCU_TDO (MTK_PIN_NO(140) | 4)
#define PINMUX_GPIO140__FUNC_ANT_SEL4 (MTK_PIN_NO(140) | 5)
#define PINMUX_GPIO141__FUNC_GPIO141 (MTK_PIN_NO(141) | 0)
#define PINMUX_GPIO141__FUNC_JTRST (MTK_PIN_NO(141) | 1)
#define PINMUX_GPIO141__FUNC_MFG_JTAG_TRSTN (MTK_PIN_NO(141) | 3)
#define PINMUX_GPIO141__FUNC_CONN_MCU_TRST_B (MTK_PIN_NO(141) | 4)
#define PINMUX_GPIO141__FUNC_ANT_SEL5 (MTK_PIN_NO(141) | 5)
#define PINMUX_GPIO142__FUNC_GPIO142 (MTK_PIN_NO(142) | 0)
#define PINMUX_GPIO142__FUNC_F2W_DATA (MTK_PIN_NO(142) | 1)
#define PINMUX_GPIO142__FUNC_DBG_MON_A21 (MTK_PIN_NO(142) | 7)
#define PINMUX_GPIO143__FUNC_GPIO143 (MTK_PIN_NO(143) | 0)
#define PINMUX_GPIO143__FUNC_F2W_CK (MTK_PIN_NO(143) | 1)
#define PINMUX_GPIO143__FUNC_DBG_MON_A20 (MTK_PIN_NO(143) | 7)
#define PINMUX_GPIO144__FUNC_GPIO144 (MTK_PIN_NO(144) | 0)
#define PINMUX_GPIO144__FUNC_WB_RSTB (MTK_PIN_NO(144) | 1)
#define PINMUX_GPIO144__FUNC_DBG_MON_A23 (MTK_PIN_NO(144) | 7)
#define PINMUX_GPIO145__FUNC_GPIO145 (MTK_PIN_NO(145) | 0)
#define PINMUX_GPIO145__FUNC_WB_SCLK (MTK_PIN_NO(145) | 1)
#define PINMUX_GPIO145__FUNC_DBG_MON_A19 (MTK_PIN_NO(145) | 7)
#define PINMUX_GPIO146__FUNC_GPIO146 (MTK_PIN_NO(146) | 0)
#define PINMUX_GPIO146__FUNC_WB_SDATA (MTK_PIN_NO(146) | 1)
#define PINMUX_GPIO146__FUNC_DBG_MON_A18 (MTK_PIN_NO(146) | 7)
#define PINMUX_GPIO147__FUNC_GPIO147 (MTK_PIN_NO(147) | 0)
#define PINMUX_GPIO147__FUNC_WB_SEN (MTK_PIN_NO(147) | 1)
#define PINMUX_GPIO147__FUNC_DBG_MON_A22 (MTK_PIN_NO(147) | 7)
#define PINMUX_GPIO148__FUNC_GPIO148 (MTK_PIN_NO(148) | 0)
#define PINMUX_GPIO148__FUNC_WB_CTRL0 (MTK_PIN_NO(148) | 1)
#define PINMUX_GPIO148__FUNC_DBG_MON_A25 (MTK_PIN_NO(148) | 7)
#define PINMUX_GPIO149__FUNC_GPIO149 (MTK_PIN_NO(149) | 0)
#define PINMUX_GPIO149__FUNC_WB_CTRL1 (MTK_PIN_NO(149) | 1)
#define PINMUX_GPIO149__FUNC_DBG_MON_A24 (MTK_PIN_NO(149) | 7)
#define PINMUX_GPIO150__FUNC_GPIO150 (MTK_PIN_NO(150) | 0)
#define PINMUX_GPIO150__FUNC_WB_CTRL2 (MTK_PIN_NO(150) | 1)
#define PINMUX_GPIO150__FUNC_DBG_MON_A26 (MTK_PIN_NO(150) | 7)
#define PINMUX_GPIO151__FUNC_GPIO151 (MTK_PIN_NO(151) | 0)
#define PINMUX_GPIO151__FUNC_WB_CTRL3 (MTK_PIN_NO(151) | 1)
#define PINMUX_GPIO151__FUNC_DBG_MON_A27 (MTK_PIN_NO(151) | 7)
#define PINMUX_GPIO152__FUNC_GPIO152 (MTK_PIN_NO(152) | 0)
#define PINMUX_GPIO152__FUNC_WB_CTRL4 (MTK_PIN_NO(152) | 1)
#define PINMUX_GPIO152__FUNC_DBG_MON_A28 (MTK_PIN_NO(152) | 7)
#define PINMUX_GPIO153__FUNC_GPIO153 (MTK_PIN_NO(153) | 0)
#define PINMUX_GPIO153__FUNC_WB_CTRL5 (MTK_PIN_NO(153) | 1)
#define PINMUX_GPIO153__FUNC_DBG_MON_A29 (MTK_PIN_NO(153) | 7)
#define PINMUX_GPIO154__FUNC_GPIO154 (MTK_PIN_NO(154) | 0)
#define PINMUX_GPIO154__FUNC_RDN0_A (MTK_PIN_NO(154) | 1)
#define PINMUX_GPIO154__FUNC_CMHSYNC (MTK_PIN_NO(154) | 2)
#define PINMUX_GPIO154__FUNC_CMCSD0 (MTK_PIN_NO(154) | 3)
#define PINMUX_GPIO155__FUNC_GPIO155 (MTK_PIN_NO(155) | 0)
#define PINMUX_GPIO155__FUNC_RDP0_A (MTK_PIN_NO(155) | 1)
#define PINMUX_GPIO155__FUNC_CMVSYNC (MTK_PIN_NO(155) | 2)
#define PINMUX_GPIO155__FUNC_CMCSD1 (MTK_PIN_NO(155) | 3)
#define PINMUX_GPIO156__FUNC_GPIO156 (MTK_PIN_NO(156) | 0)
#define PINMUX_GPIO156__FUNC_RDN1_A (MTK_PIN_NO(156) | 1)
#define PINMUX_GPIO156__FUNC_CMDAT9 (MTK_PIN_NO(156) | 2)
#define PINMUX_GPIO156__FUNC_CMCSD2 (MTK_PIN_NO(156) | 3)
#define PINMUX_GPIO157__FUNC_GPIO157 (MTK_PIN_NO(157) | 0)
#define PINMUX_GPIO157__FUNC_RDP1_A (MTK_PIN_NO(157) | 1)
#define PINMUX_GPIO157__FUNC_CMDAT8 (MTK_PIN_NO(157) | 2)
#define PINMUX_GPIO157__FUNC_CMCSD3 (MTK_PIN_NO(157) | 3)
#define PINMUX_GPIO158__FUNC_GPIO158 (MTK_PIN_NO(158) | 0)
#define PINMUX_GPIO158__FUNC_RCN_A (MTK_PIN_NO(158) | 1)
#define PINMUX_GPIO158__FUNC_CMDAT7 (MTK_PIN_NO(158) | 2)
#define PINMUX_GPIO159__FUNC_GPIO159 (MTK_PIN_NO(159) | 0)
#define PINMUX_GPIO159__FUNC_RCP_A (MTK_PIN_NO(159) | 1)
#define PINMUX_GPIO159__FUNC_CMDAT6 (MTK_PIN_NO(159) | 2)
#define PINMUX_GPIO160__FUNC_GPIO160 (MTK_PIN_NO(160) | 0)
#define PINMUX_GPIO160__FUNC_RDN2_A (MTK_PIN_NO(160) | 1)
#define PINMUX_GPIO160__FUNC_CMDAT5 (MTK_PIN_NO(160) | 2)
#define PINMUX_GPIO161__FUNC_GPIO161 (MTK_PIN_NO(161) | 0)
#define PINMUX_GPIO161__FUNC_RDP2_A (MTK_PIN_NO(161) | 1)
#define PINMUX_GPIO161__FUNC_CMDAT4 (MTK_PIN_NO(161) | 2)
#define PINMUX_GPIO162__FUNC_GPIO162 (MTK_PIN_NO(162) | 0)
#define PINMUX_GPIO162__FUNC_RDN3_A (MTK_PIN_NO(162) | 1)
#define PINMUX_GPIO162__FUNC_CMDAT3 (MTK_PIN_NO(162) | 2)
#define PINMUX_GPIO163__FUNC_GPIO163 (MTK_PIN_NO(163) | 0)
#define PINMUX_GPIO163__FUNC_RDP3_A (MTK_PIN_NO(163) | 1)
#define PINMUX_GPIO163__FUNC_CMDAT2 (MTK_PIN_NO(163) | 2)
#endif /* __MT6739-PINFUNC_H */
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
@@ -0,0 +1,986 @@
/* SPDX-License-Identifier: GPL-2.0 */
/*
* Copyright (c) 2019 MediaTek Inc.
*/
#ifndef __MT6768_PINFUNC_H
#define __MT6768_PINFUNC_H
#include "mt65xx.h"
#define PINMUX_GPIO0__FUNC_GPIO0 (MTK_PIN_NO(0) | 0)
#define PINMUX_GPIO0__FUNC_I2S0_MCK (MTK_PIN_NO(0) | 3)
#define PINMUX_GPIO0__FUNC_I2S2_MCK (MTK_PIN_NO(0) | 4)
#define PINMUX_GPIO0__FUNC_TP_GPIO0_AO (MTK_PIN_NO(0) | 6)
#define PINMUX_GPIO1__FUNC_GPIO1 (MTK_PIN_NO(1) | 0)
#define PINMUX_GPIO1__FUNC_I2S0_BCK (MTK_PIN_NO(1) | 3)
#define PINMUX_GPIO1__FUNC_I2S2_BCK (MTK_PIN_NO(1) | 4)
#define PINMUX_GPIO1__FUNC_TP_GPIO1_AO (MTK_PIN_NO(1) | 6)
#define PINMUX_GPIO2__FUNC_GPIO2 (MTK_PIN_NO(2) | 0)
#define PINMUX_GPIO2__FUNC_I2S0_LRCK (MTK_PIN_NO(2) | 3)
#define PINMUX_GPIO2__FUNC_I2S2_LRCK (MTK_PIN_NO(2) | 4)
#define PINMUX_GPIO2__FUNC_TP_GPIO2_AO (MTK_PIN_NO(2) | 6)
#define PINMUX_GPIO2__FUNC_DBG_MON_A18 (MTK_PIN_NO(2) | 7)
#define PINMUX_GPIO3__FUNC_GPIO3 (MTK_PIN_NO(3) | 0)
#define PINMUX_GPIO3__FUNC_I2S0_DI (MTK_PIN_NO(3) | 3)
#define PINMUX_GPIO3__FUNC_I2S2_DI (MTK_PIN_NO(3) | 4)
#define PINMUX_GPIO3__FUNC_TP_GPIO3_AO (MTK_PIN_NO(3) | 6)
#define PINMUX_GPIO3__FUNC_DBG_MON_A19 (MTK_PIN_NO(3) | 7)
#define PINMUX_GPIO4__FUNC_GPIO4 (MTK_PIN_NO(4) | 0)
#define PINMUX_GPIO4__FUNC_I2S3_MCK (MTK_PIN_NO(4) | 3)
#define PINMUX_GPIO4__FUNC_I2S1_MCK (MTK_PIN_NO(4) | 4)
#define PINMUX_GPIO4__FUNC_SCL8 (MTK_PIN_NO(4) | 5)
#define PINMUX_GPIO4__FUNC_TP_GPIO4_AO (MTK_PIN_NO(4) | 6)
#define PINMUX_GPIO5__FUNC_GPIO5 (MTK_PIN_NO(5) | 0)
#define PINMUX_GPIO5__FUNC_I2S3_BCK (MTK_PIN_NO(5) | 3)
#define PINMUX_GPIO5__FUNC_I2S1_BCK (MTK_PIN_NO(5) | 4)
#define PINMUX_GPIO5__FUNC_SDA8 (MTK_PIN_NO(5) | 5)
#define PINMUX_GPIO5__FUNC_TP_GPIO5_AO (MTK_PIN_NO(5) | 6)
#define PINMUX_GPIO6__FUNC_GPIO6 (MTK_PIN_NO(6) | 0)
#define PINMUX_GPIO6__FUNC_I2S3_LRCK (MTK_PIN_NO(6) | 3)
#define PINMUX_GPIO6__FUNC_I2S1_LRCK (MTK_PIN_NO(6) | 4)
#define PINMUX_GPIO6__FUNC_IDDIG (MTK_PIN_NO(6) | 5)
#define PINMUX_GPIO6__FUNC_TP_GPIO6_AO (MTK_PIN_NO(6) | 6)
#define PINMUX_GPIO7__FUNC_GPIO7 (MTK_PIN_NO(7) | 0)
#define PINMUX_GPIO7__FUNC_I2S3_DO (MTK_PIN_NO(7) | 3)
#define PINMUX_GPIO7__FUNC_I2S1_DO (MTK_PIN_NO(7) | 4)
#define PINMUX_GPIO7__FUNC_USB_DRVVBUS (MTK_PIN_NO(7) | 5)
#define PINMUX_GPIO7__FUNC_TP_GPIO7_AO (MTK_PIN_NO(7) | 6)
#define PINMUX_GPIO8__FUNC_GPIO8 (MTK_PIN_NO(8) | 0)
#define PINMUX_GPIO8__FUNC_PWM0 (MTK_PIN_NO(8) | 2)
#define PINMUX_GPIO8__FUNC_MD_INT0 (MTK_PIN_NO(8) | 6)
#define PINMUX_GPIO8__FUNC_JTRSTN_SEL1 (MTK_PIN_NO(8) | 7)
#define PINMUX_GPIO9__FUNC_GPIO9 (MTK_PIN_NO(9) | 0)
#define PINMUX_GPIO9__FUNC_PWM1 (MTK_PIN_NO(9) | 2)
#define PINMUX_GPIO9__FUNC_CONN_MCU_DBGACK_N (MTK_PIN_NO(9) | 4)
#define PINMUX_GPIO9__FUNC_AGPS_SYNC (MTK_PIN_NO(9) | 6)
#define PINMUX_GPIO9__FUNC_DBG_MON_A28 (MTK_PIN_NO(9) | 7)
#define PINMUX_GPIO10__FUNC_GPIO10 (MTK_PIN_NO(10) | 0)
#define PINMUX_GPIO10__FUNC_PWM2 (MTK_PIN_NO(10) | 2)
#define PINMUX_GPIO10__FUNC_CONN_MCU_DBGI_N (MTK_PIN_NO(10) | 4)
#define PINMUX_GPIO10__FUNC_SCP_VREQ_VAO (MTK_PIN_NO(10) | 5)
#define PINMUX_GPIO10__FUNC_EXT_FRAME_SYNC (MTK_PIN_NO(10) | 6)
#define PINMUX_GPIO10__FUNC_DBG_MON_A29 (MTK_PIN_NO(10) | 7)
#define PINMUX_GPIO11__FUNC_GPIO11 (MTK_PIN_NO(11) | 0)
#define PINMUX_GPIO11__FUNC_SRCLKENAI0 (MTK_PIN_NO(11) | 1)
#define PINMUX_GPIO11__FUNC_SDA_6306 (MTK_PIN_NO(11) | 3)
#define PINMUX_GPIO11__FUNC_SPI1_B_MI (MTK_PIN_NO(11) | 4)
#define PINMUX_GPIO11__FUNC_MD_INT0 (MTK_PIN_NO(11) | 5)
#define PINMUX_GPIO11__FUNC_CMVREF0 (MTK_PIN_NO(11) | 6)
#define PINMUX_GPIO11__FUNC_DBG_MON_A27 (MTK_PIN_NO(11) | 7)
#define PINMUX_GPIO12__FUNC_GPIO12 (MTK_PIN_NO(12) | 0)
#define PINMUX_GPIO12__FUNC_PWM0 (MTK_PIN_NO(12) | 1)
#define PINMUX_GPIO12__FUNC_CMVREF1 (MTK_PIN_NO(12) | 2)
#define PINMUX_GPIO12__FUNC_SCL_6306 (MTK_PIN_NO(12) | 3)
#define PINMUX_GPIO12__FUNC_SPI1_B_MO (MTK_PIN_NO(12) | 4)
#define PINMUX_GPIO12__FUNC_MD_INT0 (MTK_PIN_NO(12) | 5)
#define PINMUX_GPIO12__FUNC_EXT_FRAME_SYNC (MTK_PIN_NO(12) | 6)
#define PINMUX_GPIO12__FUNC_DBG_MON_A12 (MTK_PIN_NO(12) | 7)
#define PINMUX_GPIO13__FUNC_GPIO13 (MTK_PIN_NO(13) | 0)
#define PINMUX_GPIO13__FUNC_SPI5_MI (MTK_PIN_NO(13) | 2)
#define PINMUX_GPIO13__FUNC_SCP_SPI0_MI (MTK_PIN_NO(13) | 3)
#define PINMUX_GPIO13__FUNC_I2S0_MCK (MTK_PIN_NO(13) | 6)
#define PINMUX_GPIO13__FUNC_DBG_MON_B15 (MTK_PIN_NO(13) | 7)
#define PINMUX_GPIO14__FUNC_GPIO14 (MTK_PIN_NO(14) | 0)
#define PINMUX_GPIO14__FUNC_SPI5_CSB (MTK_PIN_NO(14) | 2)
#define PINMUX_GPIO14__FUNC_SCP_SPI0_CS (MTK_PIN_NO(14) | 3)
#define PINMUX_GPIO14__FUNC_I2S0_BCK (MTK_PIN_NO(14) | 6)
#define PINMUX_GPIO14__FUNC_DBG_MON_B20 (MTK_PIN_NO(14) | 7)
#define PINMUX_GPIO15__FUNC_GPIO15 (MTK_PIN_NO(15) | 0)
#define PINMUX_GPIO15__FUNC_SPI5_MO (MTK_PIN_NO(15) | 2)
#define PINMUX_GPIO15__FUNC_SCP_SPI0_MO (MTK_PIN_NO(15) | 3)
#define PINMUX_GPIO15__FUNC_SCP_SDA0 (MTK_PIN_NO(15) | 4)
#define PINMUX_GPIO15__FUNC_I2S0_LRCK (MTK_PIN_NO(15) | 6)
#define PINMUX_GPIO15__FUNC_DBG_MON_B13 (MTK_PIN_NO(15) | 7)
#define PINMUX_GPIO16__FUNC_GPIO16 (MTK_PIN_NO(16) | 0)
#define PINMUX_GPIO16__FUNC_SPI5_CLK (MTK_PIN_NO(16) | 2)
#define PINMUX_GPIO16__FUNC_SCP_SPI0_CK (MTK_PIN_NO(16) | 3)
#define PINMUX_GPIO16__FUNC_SCP_SCL0 (MTK_PIN_NO(16) | 4)
#define PINMUX_GPIO16__FUNC_I2S3_MCK (MTK_PIN_NO(16) | 6)
#define PINMUX_GPIO16__FUNC_DBG_MON_B11 (MTK_PIN_NO(16) | 7)
#define PINMUX_GPIO17__FUNC_GPIO17 (MTK_PIN_NO(17) | 0)
#define PINMUX_GPIO17__FUNC_SPI4_MI (MTK_PIN_NO(17) | 2)
#define PINMUX_GPIO17__FUNC_I2S0_DI (MTK_PIN_NO(17) | 6)
#define PINMUX_GPIO17__FUNC_DBG_MON_B27 (MTK_PIN_NO(17) | 7)
#define PINMUX_GPIO18__FUNC_GPIO18 (MTK_PIN_NO(18) | 0)
#define PINMUX_GPIO18__FUNC_SPI4_CSB (MTK_PIN_NO(18) | 2)
#define PINMUX_GPIO18__FUNC_MD_INT2_C2K_UIM1_HOT_PLUG (MTK_PIN_NO(18) | 5)
#define PINMUX_GPIO18__FUNC_I2S3_BCK (MTK_PIN_NO(18) | 6)
#define PINMUX_GPIO18__FUNC_DBG_MON_B31 (MTK_PIN_NO(18) | 7)
#define PINMUX_GPIO19__FUNC_GPIO19 (MTK_PIN_NO(19) | 0)
#define PINMUX_GPIO19__FUNC_SPI4_MO (MTK_PIN_NO(19) | 2)
#define PINMUX_GPIO19__FUNC_MD_INT1_C2K_UIM0_HOT_PLUG (MTK_PIN_NO(19) | 5)
#define PINMUX_GPIO19__FUNC_I2S3_LRCK (MTK_PIN_NO(19) | 6)
#define PINMUX_GPIO19__FUNC_DBG_MON_B14 (MTK_PIN_NO(19) | 7)
#define PINMUX_GPIO20__FUNC_GPIO20 (MTK_PIN_NO(20) | 0)
#define PINMUX_GPIO20__FUNC_SPI4_CLK (MTK_PIN_NO(20) | 2)
#define PINMUX_GPIO20__FUNC_MD_INT0 (MTK_PIN_NO(20) | 5)
#define PINMUX_GPIO20__FUNC_I2S3_DO (MTK_PIN_NO(20) | 6)
#define PINMUX_GPIO20__FUNC_DBG_MON_B19 (MTK_PIN_NO(20) | 7)
#define PINMUX_GPIO21__FUNC_GPIO21 (MTK_PIN_NO(21) | 0)
#define PINMUX_GPIO21__FUNC_SPI3_MI (MTK_PIN_NO(21) | 2)
#define PINMUX_GPIO21__FUNC_URXD1 (MTK_PIN_NO(21) | 4)
#define PINMUX_GPIO21__FUNC_DAP_MD32_SWD (MTK_PIN_NO(21) | 5)
#define PINMUX_GPIO21__FUNC_I2S2_MCK (MTK_PIN_NO(21) | 6)
#define PINMUX_GPIO21__FUNC_DBG_MON_B25 (MTK_PIN_NO(21) | 7)
#define PINMUX_GPIO22__FUNC_GPIO22 (MTK_PIN_NO(22) | 0)
#define PINMUX_GPIO22__FUNC_SPI3_CSB (MTK_PIN_NO(22) | 2)
#define PINMUX_GPIO22__FUNC_SDA8 (MTK_PIN_NO(22) | 3)
#define PINMUX_GPIO22__FUNC_UCTS1 (MTK_PIN_NO(22) | 4)
#define PINMUX_GPIO22__FUNC_DAP_MD32_SWCK (MTK_PIN_NO(22) | 5)
#define PINMUX_GPIO22__FUNC_I2S2_BCK (MTK_PIN_NO(22) | 6)
#define PINMUX_GPIO22__FUNC_DBG_MON_B17 (MTK_PIN_NO(22) | 7)
#define PINMUX_GPIO23__FUNC_GPIO23 (MTK_PIN_NO(23) | 0)
#define PINMUX_GPIO23__FUNC_SPI3_MO (MTK_PIN_NO(23) | 2)
#define PINMUX_GPIO23__FUNC_UTXD1 (MTK_PIN_NO(23) | 4)
#define PINMUX_GPIO23__FUNC_EXT_FRAME_SYNC (MTK_PIN_NO(23) | 5)
#define PINMUX_GPIO23__FUNC_I2S2_LRCK (MTK_PIN_NO(23) | 6)
#define PINMUX_GPIO23__FUNC_DBG_MON_B21 (MTK_PIN_NO(23) | 7)
#define PINMUX_GPIO24__FUNC_GPIO24 (MTK_PIN_NO(24) | 0)
#define PINMUX_GPIO24__FUNC_UDI_TCK (MTK_PIN_NO(24) | 1)
#define PINMUX_GPIO24__FUNC_SPI3_CLK (MTK_PIN_NO(24) | 2)
#define PINMUX_GPIO24__FUNC_SCL8 (MTK_PIN_NO(24) | 3)
#define PINMUX_GPIO24__FUNC_URTS1 (MTK_PIN_NO(24) | 4)
#define PINMUX_GPIO24__FUNC_IO_JTAG_TCK (MTK_PIN_NO(24) | 5)
#define PINMUX_GPIO24__FUNC_I2S1_MCK (MTK_PIN_NO(24) | 6)
#define PINMUX_GPIO24__FUNC_DBG_MON_B28 (MTK_PIN_NO(24) | 7)
#define PINMUX_GPIO25__FUNC_GPIO25 (MTK_PIN_NO(25) | 0)
#define PINMUX_GPIO25__FUNC_UDI_TMS (MTK_PIN_NO(25) | 1)
#define PINMUX_GPIO25__FUNC_SPI2_CSB (MTK_PIN_NO(25) | 2)
#define PINMUX_GPIO25__FUNC_KPCOL6 (MTK_PIN_NO(25) | 4)
#define PINMUX_GPIO25__FUNC_IO_JTAG_TMS (MTK_PIN_NO(25) | 5)
#define PINMUX_GPIO25__FUNC_I2S2_DI (MTK_PIN_NO(25) | 6)
#define PINMUX_GPIO25__FUNC_DBG_MON_B22 (MTK_PIN_NO(25) | 7)
#define PINMUX_GPIO26__FUNC_GPIO26 (MTK_PIN_NO(26) | 0)
#define PINMUX_GPIO26__FUNC_UDI_TDI (MTK_PIN_NO(26) | 1)
#define PINMUX_GPIO26__FUNC_SPI2_MO (MTK_PIN_NO(26) | 2)
#define PINMUX_GPIO26__FUNC_KPCOL7 (MTK_PIN_NO(26) | 4)
#define PINMUX_GPIO26__FUNC_IO_JTAG_TDI (MTK_PIN_NO(26) | 5)
#define PINMUX_GPIO26__FUNC_I2S1_BCK (MTK_PIN_NO(26) | 6)
#define PINMUX_GPIO26__FUNC_DBG_MON_B23 (MTK_PIN_NO(26) | 7)
#define PINMUX_GPIO27__FUNC_GPIO27 (MTK_PIN_NO(27) | 0)
#define PINMUX_GPIO27__FUNC_UDI_TDO (MTK_PIN_NO(27) | 1)
#define PINMUX_GPIO27__FUNC_SPI2_CLK (MTK_PIN_NO(27) | 2)
#define PINMUX_GPIO27__FUNC_KPROW6 (MTK_PIN_NO(27) | 4)
#define PINMUX_GPIO27__FUNC_IO_JTAG_TDO (MTK_PIN_NO(27) | 5)
#define PINMUX_GPIO27__FUNC_I2S1_LRCK (MTK_PIN_NO(27) | 6)
#define PINMUX_GPIO27__FUNC_DBG_MON_B30 (MTK_PIN_NO(27) | 7)
#define PINMUX_GPIO28__FUNC_GPIO28 (MTK_PIN_NO(28) | 0)
#define PINMUX_GPIO28__FUNC_UDI_NTRST (MTK_PIN_NO(28) | 1)
#define PINMUX_GPIO28__FUNC_SPI2_MI (MTK_PIN_NO(28) | 2)
#define PINMUX_GPIO28__FUNC_KPROW7 (MTK_PIN_NO(28) | 4)
#define PINMUX_GPIO28__FUNC_IO_JTAG_TRSTN (MTK_PIN_NO(28) | 5)
#define PINMUX_GPIO28__FUNC_I2S1_DO (MTK_PIN_NO(28) | 6)
#define PINMUX_GPIO28__FUNC_DBG_MON_B24 (MTK_PIN_NO(28) | 7)
#define PINMUX_GPIO29__FUNC_GPIO29 (MTK_PIN_NO(29) | 0)
#define PINMUX_GPIO29__FUNC_ANT_SEL0 (MTK_PIN_NO(29) | 1)
#define PINMUX_GPIO29__FUNC_DVFSRC_EXT_REQ (MTK_PIN_NO(29) | 2)
#define PINMUX_GPIO29__FUNC_CMFLASH (MTK_PIN_NO(29) | 3)
#define PINMUX_GPIO29__FUNC_DBG_MON_B8 (MTK_PIN_NO(29) | 7)
#define PINMUX_GPIO30__FUNC_GPIO30 (MTK_PIN_NO(30) | 0)
#define PINMUX_GPIO30__FUNC_ANT_SEL1 (MTK_PIN_NO(30) | 1)
#define PINMUX_GPIO30__FUNC_SRCLKENAI0 (MTK_PIN_NO(30) | 2)
#define PINMUX_GPIO30__FUNC_CMVREF0 (MTK_PIN_NO(30) | 3)
#define PINMUX_GPIO30__FUNC_IDDIG (MTK_PIN_NO(30) | 5)
#define PINMUX_GPIO30__FUNC_MD_URXD0 (MTK_PIN_NO(30) | 6)
#define PINMUX_GPIO30__FUNC_DBG_MON_B10 (MTK_PIN_NO(30) | 7)
#define PINMUX_GPIO31__FUNC_GPIO31 (MTK_PIN_NO(31) | 0)
#define PINMUX_GPIO31__FUNC_ANT_SEL2 (MTK_PIN_NO(31) | 1)
#define PINMUX_GPIO31__FUNC_SRCLKENAI1 (MTK_PIN_NO(31) | 2)
#define PINMUX_GPIO31__FUNC_CMVREF1 (MTK_PIN_NO(31) | 3)
#define PINMUX_GPIO31__FUNC_USB_DRVVBUS (MTK_PIN_NO(31) | 5)
#define PINMUX_GPIO31__FUNC_MD_UTXD0 (MTK_PIN_NO(31) | 6)
#define PINMUX_GPIO32__FUNC_GPIO32 (MTK_PIN_NO(32) | 0)
#define PINMUX_GPIO32__FUNC_SPI0_MI (MTK_PIN_NO(32) | 1)
#define PINMUX_GPIO32__FUNC_I2S3_BCK (MTK_PIN_NO(32) | 3)
#define PINMUX_GPIO32__FUNC_I2S1_BCK (MTK_PIN_NO(32) | 4)
#define PINMUX_GPIO32__FUNC_DFD_TDO (MTK_PIN_NO(32) | 6)
#define PINMUX_GPIO32__FUNC_JTDO_SEL1 (MTK_PIN_NO(32) | 7)
#define PINMUX_GPIO33__FUNC_GPIO33 (MTK_PIN_NO(33) | 0)
#define PINMUX_GPIO33__FUNC_SPI0_CSB (MTK_PIN_NO(33) | 1)
#define PINMUX_GPIO33__FUNC_SDA8 (MTK_PIN_NO(33) | 2)
#define PINMUX_GPIO33__FUNC_I2S3_LRCK (MTK_PIN_NO(33) | 3)
#define PINMUX_GPIO33__FUNC_I2S1_LRCK (MTK_PIN_NO(33) | 4)
#define PINMUX_GPIO33__FUNC_DFD_TMS (MTK_PIN_NO(33) | 6)
#define PINMUX_GPIO33__FUNC_JTMS_SEL1 (MTK_PIN_NO(33) | 7)
#define PINMUX_GPIO34__FUNC_GPIO34 (MTK_PIN_NO(34) | 0)
#define PINMUX_GPIO34__FUNC_SPI0_MO (MTK_PIN_NO(34) | 1)
#define PINMUX_GPIO34__FUNC_I2S3_DO (MTK_PIN_NO(34) | 3)
#define PINMUX_GPIO34__FUNC_I2S1_DO (MTK_PIN_NO(34) | 4)
#define PINMUX_GPIO34__FUNC_DFD_TDI (MTK_PIN_NO(34) | 6)
#define PINMUX_GPIO34__FUNC_JTDI_SEL1 (MTK_PIN_NO(34) | 7)
#define PINMUX_GPIO35__FUNC_GPIO35 (MTK_PIN_NO(35) | 0)
#define PINMUX_GPIO35__FUNC_SPI0_CLK (MTK_PIN_NO(35) | 1)
#define PINMUX_GPIO35__FUNC_SCL8 (MTK_PIN_NO(35) | 2)
#define PINMUX_GPIO35__FUNC_I2S3_MCK (MTK_PIN_NO(35) | 3)
#define PINMUX_GPIO35__FUNC_I2S1_MCK (MTK_PIN_NO(35) | 4)
#define PINMUX_GPIO35__FUNC_DFD_TCK_XI (MTK_PIN_NO(35) | 6)
#define PINMUX_GPIO35__FUNC_JTCK_SEL1 (MTK_PIN_NO(35) | 7)
#define PINMUX_GPIO36__FUNC_GPIO36 (MTK_PIN_NO(36) | 0)
#define PINMUX_GPIO36__FUNC_I2S1_BCK (MTK_PIN_NO(36) | 1)
#define PINMUX_GPIO36__FUNC_I2S3_BCK (MTK_PIN_NO(36) | 2)
#define PINMUX_GPIO36__FUNC_ANT_SEL3 (MTK_PIN_NO(36) | 6)
#define PINMUX_GPIO37__FUNC_GPIO37 (MTK_PIN_NO(37) | 0)
#define PINMUX_GPIO37__FUNC_I2S1_LRCK (MTK_PIN_NO(37) | 1)
#define PINMUX_GPIO37__FUNC_I2S3_LRCK (MTK_PIN_NO(37) | 2)
#define PINMUX_GPIO37__FUNC_ANT_SEL4 (MTK_PIN_NO(37) | 6)
#define PINMUX_GPIO38__FUNC_GPIO38 (MTK_PIN_NO(38) | 0)
#define PINMUX_GPIO38__FUNC_I2S1_DO (MTK_PIN_NO(38) | 1)
#define PINMUX_GPIO38__FUNC_I2S3_DO (MTK_PIN_NO(38) | 2)
#define PINMUX_GPIO38__FUNC_SCL8 (MTK_PIN_NO(38) | 3)
#define PINMUX_GPIO38__FUNC_ANT_SEL5 (MTK_PIN_NO(38) | 6)
#define PINMUX_GPIO39__FUNC_GPIO39 (MTK_PIN_NO(39) | 0)
#define PINMUX_GPIO39__FUNC_I2S1_MCK (MTK_PIN_NO(39) | 1)
#define PINMUX_GPIO39__FUNC_I2S3_MCK (MTK_PIN_NO(39) | 2)
#define PINMUX_GPIO39__FUNC_SDA8 (MTK_PIN_NO(39) | 3)
#define PINMUX_GPIO39__FUNC_ANT_SEL6 (MTK_PIN_NO(39) | 6)
#define PINMUX_GPIO40__FUNC_GPIO40 (MTK_PIN_NO(40) | 0)
#define PINMUX_GPIO40__FUNC_I2S2_DI (MTK_PIN_NO(40) | 1)
#define PINMUX_GPIO40__FUNC_I2S0_DI (MTK_PIN_NO(40) | 2)
#define PINMUX_GPIO40__FUNC_ANT_SEL7 (MTK_PIN_NO(40) | 6)
#define PINMUX_GPIO41__FUNC_GPIO41 (MTK_PIN_NO(41) | 0)
#define PINMUX_GPIO41__FUNC_IDDIG (MTK_PIN_NO(41) | 1)
#define PINMUX_GPIO41__FUNC_UCTS0 (MTK_PIN_NO(41) | 3)
#define PINMUX_GPIO42__FUNC_GPIO42 (MTK_PIN_NO(42) | 0)
#define PINMUX_GPIO42__FUNC_USB_DRVVBUS (MTK_PIN_NO(42) | 1)
#define PINMUX_GPIO42__FUNC_URTS0 (MTK_PIN_NO(42) | 3)
#define PINMUX_GPIO43__FUNC_GPIO43 (MTK_PIN_NO(43) | 0)
#define PINMUX_GPIO43__FUNC_DISP_PWM (MTK_PIN_NO(43) | 1)
#define PINMUX_GPIO44__FUNC_GPIO44 (MTK_PIN_NO(44) | 0)
#define PINMUX_GPIO44__FUNC_DSI_TE (MTK_PIN_NO(44) | 1)
#define PINMUX_GPIO45__FUNC_GPIO45 (MTK_PIN_NO(45) | 0)
#define PINMUX_GPIO45__FUNC_LCM_RST (MTK_PIN_NO(45) | 1)
#define PINMUX_GPIO46__FUNC_GPIO46 (MTK_PIN_NO(46) | 0)
#define PINMUX_GPIO46__FUNC_MD_INT2_C2K_UIM1_HOT_PLUG (MTK_PIN_NO(46) | 1)
#define PINMUX_GPIO46__FUNC_SDA_6306 (MTK_PIN_NO(46) | 3)
#define PINMUX_GPIO46__FUNC_TP_UCTS1_AO (MTK_PIN_NO(46) | 5)
#define PINMUX_GPIO46__FUNC_IDDIG (MTK_PIN_NO(46) | 6)
#define PINMUX_GPIO47__FUNC_GPIO47 (MTK_PIN_NO(47) | 0)
#define PINMUX_GPIO47__FUNC_MD_INT1_C2K_UIM0_HOT_PLUG (MTK_PIN_NO(47) | 1)
#define PINMUX_GPIO47__FUNC_SCL_6306 (MTK_PIN_NO(47) | 3)
#define PINMUX_GPIO47__FUNC_TP_URTS1_AO (MTK_PIN_NO(47) | 5)
#define PINMUX_GPIO47__FUNC_USB_DRVVBUS (MTK_PIN_NO(47) | 6)
#define PINMUX_GPIO48__FUNC_GPIO48 (MTK_PIN_NO(48) | 0)
#define PINMUX_GPIO48__FUNC_SCL5 (MTK_PIN_NO(48) | 1)
#define PINMUX_GPIO49__FUNC_GPIO49 (MTK_PIN_NO(49) | 0)
#define PINMUX_GPIO49__FUNC_SDA5 (MTK_PIN_NO(49) | 1)
#define PINMUX_GPIO50__FUNC_GPIO50 (MTK_PIN_NO(50) | 0)
#define PINMUX_GPIO50__FUNC_SCL3 (MTK_PIN_NO(50) | 1)
#define PINMUX_GPIO50__FUNC_SCP_SCL0 (MTK_PIN_NO(50) | 2)
#define PINMUX_GPIO50__FUNC_SCP_SCL1 (MTK_PIN_NO(50) | 3)
#define PINMUX_GPIO50__FUNC_SCL_6306 (MTK_PIN_NO(50) | 4)
#define PINMUX_GPIO50__FUNC_PTA_TXD (MTK_PIN_NO(50) | 6)
#define PINMUX_GPIO51__FUNC_GPIO51 (MTK_PIN_NO(51) | 0)
#define PINMUX_GPIO51__FUNC_SDA3 (MTK_PIN_NO(51) | 1)
#define PINMUX_GPIO51__FUNC_SCP_SDA0 (MTK_PIN_NO(51) | 2)
#define PINMUX_GPIO51__FUNC_SCP_SDA1 (MTK_PIN_NO(51) | 3)
#define PINMUX_GPIO51__FUNC_SDA_6306 (MTK_PIN_NO(51) | 4)
#define PINMUX_GPIO51__FUNC_PTA_RXD (MTK_PIN_NO(51) | 6)
#define PINMUX_GPIO52__FUNC_GPIO52 (MTK_PIN_NO(52) | 0)
#define PINMUX_GPIO52__FUNC_BPI_BUS15 (MTK_PIN_NO(52) | 1)
#define PINMUX_GPIO53__FUNC_GPIO53 (MTK_PIN_NO(53) | 0)
#define PINMUX_GPIO53__FUNC_BPI_BUS13 (MTK_PIN_NO(53) | 1)
#define PINMUX_GPIO54__FUNC_GPIO54 (MTK_PIN_NO(54) | 0)
#define PINMUX_GPIO54__FUNC_BPI_BUS12 (MTK_PIN_NO(54) | 1)
#define PINMUX_GPIO55__FUNC_GPIO55 (MTK_PIN_NO(55) | 0)
#define PINMUX_GPIO55__FUNC_BPI_BUS8 (MTK_PIN_NO(55) | 1)
#define PINMUX_GPIO56__FUNC_GPIO56 (MTK_PIN_NO(56) | 0)
#define PINMUX_GPIO56__FUNC_BPI_BUS9 (MTK_PIN_NO(56) | 1)
#define PINMUX_GPIO56__FUNC_SCL_6306 (MTK_PIN_NO(56) | 2)
#define PINMUX_GPIO57__FUNC_GPIO57 (MTK_PIN_NO(57) | 0)
#define PINMUX_GPIO57__FUNC_BPI_BUS10 (MTK_PIN_NO(57) | 1)
#define PINMUX_GPIO57__FUNC_SDA_6306 (MTK_PIN_NO(57) | 2)
#define PINMUX_GPIO58__FUNC_GPIO58 (MTK_PIN_NO(58) | 0)
#define PINMUX_GPIO58__FUNC_RFIC0_BSI_D2 (MTK_PIN_NO(58) | 1)
#define PINMUX_GPIO58__FUNC_PWM1 (MTK_PIN_NO(58) | 3)
#define PINMUX_GPIO58__FUNC_CONN_MCU_TRST_B (MTK_PIN_NO(58) | 4)
#define PINMUX_GPIO58__FUNC_UCTS0 (MTK_PIN_NO(58) | 5)
#define PINMUX_GPIO59__FUNC_GPIO59 (MTK_PIN_NO(59) | 0)
#define PINMUX_GPIO59__FUNC_RFIC0_BSI_D1 (MTK_PIN_NO(59) | 1)
#define PINMUX_GPIO60__FUNC_GPIO60 (MTK_PIN_NO(60) | 0)
#define PINMUX_GPIO60__FUNC_RFIC0_BSI_D0 (MTK_PIN_NO(60) | 1)
#define PINMUX_GPIO61__FUNC_GPIO61 (MTK_PIN_NO(61) | 0)
#define PINMUX_GPIO61__FUNC_MIPI1_SDATA (MTK_PIN_NO(61) | 1)
#define PINMUX_GPIO61__FUNC_DBG_MON_A7 (MTK_PIN_NO(61) | 7)
#define PINMUX_GPIO62__FUNC_GPIO62 (MTK_PIN_NO(62) | 0)
#define PINMUX_GPIO62__FUNC_MIPI1_SCLK (MTK_PIN_NO(62) | 1)
#define PINMUX_GPIO62__FUNC_DBG_MON_A8 (MTK_PIN_NO(62) | 7)
#define PINMUX_GPIO63__FUNC_GPIO63 (MTK_PIN_NO(63) | 0)
#define PINMUX_GPIO63__FUNC_MIPI0_SDATA (MTK_PIN_NO(63) | 1)
#define PINMUX_GPIO63__FUNC_DBG_MON_A9 (MTK_PIN_NO(63) | 7)
#define PINMUX_GPIO64__FUNC_GPIO64 (MTK_PIN_NO(64) | 0)
#define PINMUX_GPIO64__FUNC_MIPI0_SCLK (MTK_PIN_NO(64) | 1)
#define PINMUX_GPIO64__FUNC_DBG_MON_A10 (MTK_PIN_NO(64) | 7)
#define PINMUX_GPIO65__FUNC_GPIO65 (MTK_PIN_NO(65) | 0)
#define PINMUX_GPIO65__FUNC_MIPI3_SDATA (MTK_PIN_NO(65) | 1)
#define PINMUX_GPIO65__FUNC_BPI_BUS16 (MTK_PIN_NO(65) | 2)
#define PINMUX_GPIO65__FUNC_DBG_MON_A11 (MTK_PIN_NO(65) | 7)
#define PINMUX_GPIO66__FUNC_GPIO66 (MTK_PIN_NO(66) | 0)
#define PINMUX_GPIO66__FUNC_MIPI3_SCLK (MTK_PIN_NO(66) | 1)
#define PINMUX_GPIO66__FUNC_BPI_BUS17 (MTK_PIN_NO(66) | 2)
#define PINMUX_GPIO67__FUNC_GPIO67 (MTK_PIN_NO(67) | 0)
#define PINMUX_GPIO67__FUNC_MIPI2_SDATA (MTK_PIN_NO(67) | 1)
#define PINMUX_GPIO68__FUNC_GPIO68 (MTK_PIN_NO(68) | 0)
#define PINMUX_GPIO68__FUNC_MIPI2_SCLK (MTK_PIN_NO(68) | 1)
#define PINMUX_GPIO69__FUNC_GPIO69 (MTK_PIN_NO(69) | 0)
#define PINMUX_GPIO69__FUNC_BPI_BUS7 (MTK_PIN_NO(69) | 1)
#define PINMUX_GPIO70__FUNC_GPIO70 (MTK_PIN_NO(70) | 0)
#define PINMUX_GPIO70__FUNC_BPI_BUS6 (MTK_PIN_NO(70) | 1)
#define PINMUX_GPIO71__FUNC_GPIO71 (MTK_PIN_NO(71) | 0)
#define PINMUX_GPIO71__FUNC_BPI_BUS5 (MTK_PIN_NO(71) | 1)
#define PINMUX_GPIO72__FUNC_GPIO72 (MTK_PIN_NO(72) | 0)
#define PINMUX_GPIO72__FUNC_BPI_BUS4 (MTK_PIN_NO(72) | 1)
#define PINMUX_GPIO73__FUNC_GPIO73 (MTK_PIN_NO(73) | 0)
#define PINMUX_GPIO73__FUNC_BPI_BUS3 (MTK_PIN_NO(73) | 1)
#define PINMUX_GPIO74__FUNC_GPIO74 (MTK_PIN_NO(74) | 0)
#define PINMUX_GPIO74__FUNC_BPI_BUS2 (MTK_PIN_NO(74) | 1)
#define PINMUX_GPIO75__FUNC_GPIO75 (MTK_PIN_NO(75) | 0)
#define PINMUX_GPIO75__FUNC_BPI_BUS1 (MTK_PIN_NO(75) | 1)
#define PINMUX_GPIO76__FUNC_GPIO76 (MTK_PIN_NO(76) | 0)
#define PINMUX_GPIO76__FUNC_BPI_BUS0 (MTK_PIN_NO(76) | 1)
#define PINMUX_GPIO77__FUNC_GPIO77 (MTK_PIN_NO(77) | 0)
#define PINMUX_GPIO77__FUNC_BPI_BUS14 (MTK_PIN_NO(77) | 1)
#define PINMUX_GPIO78__FUNC_GPIO78 (MTK_PIN_NO(78) | 0)
#define PINMUX_GPIO78__FUNC_BPI_BUS11 (MTK_PIN_NO(78) | 1)
#define PINMUX_GPIO79__FUNC_GPIO79 (MTK_PIN_NO(79) | 0)
#define PINMUX_GPIO79__FUNC_BPI_PA_VM1 (MTK_PIN_NO(79) | 1)
#define PINMUX_GPIO79__FUNC_MIPI4_SDATA (MTK_PIN_NO(79) | 2)
#define PINMUX_GPIO80__FUNC_GPIO80 (MTK_PIN_NO(80) | 0)
#define PINMUX_GPIO80__FUNC_BPI_PA_VM0 (MTK_PIN_NO(80) | 1)
#define PINMUX_GPIO80__FUNC_MIPI4_SCLK (MTK_PIN_NO(80) | 2)
#define PINMUX_GPIO81__FUNC_GPIO81 (MTK_PIN_NO(81) | 0)
#define PINMUX_GPIO81__FUNC_SDA1 (MTK_PIN_NO(81) | 1)
#define PINMUX_GPIO81__FUNC_SCP_SDA0 (MTK_PIN_NO(81) | 2)
#define PINMUX_GPIO81__FUNC_SCP_SDA1 (MTK_PIN_NO(81) | 3)
#define PINMUX_GPIO82__FUNC_GPIO82 (MTK_PIN_NO(82) | 0)
#define PINMUX_GPIO82__FUNC_SDA0 (MTK_PIN_NO(82) | 1)
#define PINMUX_GPIO82__FUNC_SPI1_B_CSB (MTK_PIN_NO(82) | 4)
#define PINMUX_GPIO83__FUNC_GPIO83 (MTK_PIN_NO(83) | 0)
#define PINMUX_GPIO83__FUNC_SCL0 (MTK_PIN_NO(83) | 1)
#define PINMUX_GPIO83__FUNC_SPI1_B_CLK (MTK_PIN_NO(83) | 4)
#define PINMUX_GPIO84__FUNC_GPIO84 (MTK_PIN_NO(84) | 0)
#define PINMUX_GPIO84__FUNC_SCL1 (MTK_PIN_NO(84) | 1)
#define PINMUX_GPIO84__FUNC_SCP_SCL0 (MTK_PIN_NO(84) | 2)
#define PINMUX_GPIO84__FUNC_SCP_SCL1 (MTK_PIN_NO(84) | 3)
#define PINMUX_GPIO85__FUNC_GPIO85 (MTK_PIN_NO(85) | 0)
#define PINMUX_GPIO85__FUNC_SPI1_A_MI (MTK_PIN_NO(85) | 1)
#define PINMUX_GPIO85__FUNC_SCP_SPI1_MI (MTK_PIN_NO(85) | 2)
#define PINMUX_GPIO85__FUNC_IDDIG (MTK_PIN_NO(85) | 3)
#define PINMUX_GPIO85__FUNC_DBG_MON_B18 (MTK_PIN_NO(85) | 7)
#define PINMUX_GPIO86__FUNC_GPIO86 (MTK_PIN_NO(86) | 0)
#define PINMUX_GPIO86__FUNC_SPI1_A_CSB (MTK_PIN_NO(86) | 1)
#define PINMUX_GPIO86__FUNC_SCP_SPI1_CS (MTK_PIN_NO(86) | 2)
#define PINMUX_GPIO86__FUNC_USB_DRVVBUS (MTK_PIN_NO(86) | 3)
#define PINMUX_GPIO86__FUNC_PTA_TXD (MTK_PIN_NO(86) | 6)
#define PINMUX_GPIO86__FUNC_DBG_MON_B26 (MTK_PIN_NO(86) | 7)
#define PINMUX_GPIO87__FUNC_GPIO87 (MTK_PIN_NO(87) | 0)
#define PINMUX_GPIO87__FUNC_SPI1_A_MO (MTK_PIN_NO(87) | 1)
#define PINMUX_GPIO87__FUNC_SCP_SPI1_MO (MTK_PIN_NO(87) | 2)
#define PINMUX_GPIO87__FUNC_SCP_SDA0 (MTK_PIN_NO(87) | 3)
#define PINMUX_GPIO87__FUNC_DBG_MON_B29 (MTK_PIN_NO(87) | 7)
#define PINMUX_GPIO88__FUNC_GPIO88 (MTK_PIN_NO(88) | 0)
#define PINMUX_GPIO88__FUNC_SPI1_A_CLK (MTK_PIN_NO(88) | 1)
#define PINMUX_GPIO88__FUNC_SCP_SPI1_CK (MTK_PIN_NO(88) | 2)
#define PINMUX_GPIO88__FUNC_SCP_SCL0 (MTK_PIN_NO(88) | 3)
#define PINMUX_GPIO88__FUNC_PTA_RXD (MTK_PIN_NO(88) | 6)
#define PINMUX_GPIO88__FUNC_DBG_MON_A0 (MTK_PIN_NO(88) | 7)
#define PINMUX_GPIO89__FUNC_GPIO89 (MTK_PIN_NO(89) | 0)
#define PINMUX_GPIO89__FUNC_SCL6 (MTK_PIN_NO(89) | 1)
#define PINMUX_GPIO89__FUNC_SCL_6306 (MTK_PIN_NO(89) | 4)
#define PINMUX_GPIO89__FUNC_TP_UTXD1_AO (MTK_PIN_NO(89) | 6)
#define PINMUX_GPIO90__FUNC_GPIO90 (MTK_PIN_NO(90) | 0)
#define PINMUX_GPIO90__FUNC_SDA6 (MTK_PIN_NO(90) | 1)
#define PINMUX_GPIO90__FUNC_SDA_6306 (MTK_PIN_NO(90) | 4)
#define PINMUX_GPIO90__FUNC_TP_URXD1_AO (MTK_PIN_NO(90) | 6)
#define PINMUX_GPIO91__FUNC_GPIO91 (MTK_PIN_NO(91) | 0)
#define PINMUX_GPIO91__FUNC_KPROW1 (MTK_PIN_NO(91) | 1)
#define PINMUX_GPIO91__FUNC_PWM1 (MTK_PIN_NO(91) | 2)
#define PINMUX_GPIO91__FUNC_DBG_MON_A13 (MTK_PIN_NO(91) | 7)
#define PINMUX_GPIO92__FUNC_GPIO92 (MTK_PIN_NO(92) | 0)
#define PINMUX_GPIO92__FUNC_KPROW0 (MTK_PIN_NO(92) | 1)
#define PINMUX_GPIO92__FUNC_DBG_MON_A14 (MTK_PIN_NO(92) | 7)
#define PINMUX_GPIO93__FUNC_GPIO93 (MTK_PIN_NO(93) | 0)
#define PINMUX_GPIO93__FUNC_KPCOL0 (MTK_PIN_NO(93) | 1)
#define PINMUX_GPIO93__FUNC_DBG_MON_A15 (MTK_PIN_NO(93) | 7)
#define PINMUX_GPIO94__FUNC_GPIO94 (MTK_PIN_NO(94) | 0)
#define PINMUX_GPIO94__FUNC_KPCOL1 (MTK_PIN_NO(94) | 1)
#define PINMUX_GPIO94__FUNC_DBG_MON_A16 (MTK_PIN_NO(94) | 7)
#define PINMUX_GPIO95__FUNC_GPIO95 (MTK_PIN_NO(95) | 0)
#define PINMUX_GPIO95__FUNC_URXD0 (MTK_PIN_NO(95) | 1)
#define PINMUX_GPIO95__FUNC_UTXD0 (MTK_PIN_NO(95) | 2)
#define PINMUX_GPIO96__FUNC_GPIO96 (MTK_PIN_NO(96) | 0)
#define PINMUX_GPIO96__FUNC_UTXD0 (MTK_PIN_NO(96) | 1)
#define PINMUX_GPIO96__FUNC_URXD0 (MTK_PIN_NO(96) | 2)
#define PINMUX_GPIO97__FUNC_GPIO97 (MTK_PIN_NO(97) | 0)
#define PINMUX_GPIO97__FUNC_UCTS0 (MTK_PIN_NO(97) | 1)
#define PINMUX_GPIO97__FUNC_I2S2_MCK (MTK_PIN_NO(97) | 2)
#define PINMUX_GPIO97__FUNC_IDDIG (MTK_PIN_NO(97) | 3)
#define PINMUX_GPIO97__FUNC_CONN_MCU_TDO (MTK_PIN_NO(97) | 4)
#define PINMUX_GPIO97__FUNC_KPCOL5 (MTK_PIN_NO(97) | 5)
#define PINMUX_GPIO97__FUNC_I2S0_MCK (MTK_PIN_NO(97) | 6)
#define PINMUX_GPIO97__FUNC_DBG_MON_A21 (MTK_PIN_NO(97) | 7)
#define PINMUX_GPIO98__FUNC_GPIO98 (MTK_PIN_NO(98) | 0)
#define PINMUX_GPIO98__FUNC_URTS0 (MTK_PIN_NO(98) | 1)
#define PINMUX_GPIO98__FUNC_I2S2_BCK (MTK_PIN_NO(98) | 2)
#define PINMUX_GPIO98__FUNC_USB_DRVVBUS (MTK_PIN_NO(98) | 3)
#define PINMUX_GPIO98__FUNC_CONN_MCU_TMS (MTK_PIN_NO(98) | 4)
#define PINMUX_GPIO98__FUNC_KPCOL4 (MTK_PIN_NO(98) | 5)
#define PINMUX_GPIO98__FUNC_I2S0_BCK (MTK_PIN_NO(98) | 6)
#define PINMUX_GPIO98__FUNC_DBG_MON_A22 (MTK_PIN_NO(98) | 7)
#define PINMUX_GPIO99__FUNC_GPIO99 (MTK_PIN_NO(99) | 0)
#define PINMUX_GPIO99__FUNC_CMMCLK0 (MTK_PIN_NO(99) | 1)
#define PINMUX_GPIO99__FUNC_DBG_MON_A23 (MTK_PIN_NO(99) | 7)
#define PINMUX_GPIO100__FUNC_GPIO100 (MTK_PIN_NO(100) | 0)
#define PINMUX_GPIO100__FUNC_CMMCLK1 (MTK_PIN_NO(100) | 1)
#define PINMUX_GPIO100__FUNC_DBG_MON_A24 (MTK_PIN_NO(100) | 7)
#define PINMUX_GPIO101__FUNC_GPIO101 (MTK_PIN_NO(101) | 0)
#define PINMUX_GPIO101__FUNC_CLKM2 (MTK_PIN_NO(101) | 1)
#define PINMUX_GPIO101__FUNC_I2S2_LRCK (MTK_PIN_NO(101) | 2)
#define PINMUX_GPIO101__FUNC_CMVREF1 (MTK_PIN_NO(101) | 3)
#define PINMUX_GPIO101__FUNC_CONN_MCU_TCK (MTK_PIN_NO(101) | 4)
#define PINMUX_GPIO101__FUNC_KPROW5 (MTK_PIN_NO(101) | 5)
#define PINMUX_GPIO101__FUNC_I2S0_LRCK (MTK_PIN_NO(101) | 6)
#define PINMUX_GPIO101__FUNC_DBG_MON_A25 (MTK_PIN_NO(101) | 7)
#define PINMUX_GPIO102__FUNC_GPIO102 (MTK_PIN_NO(102) | 0)
#define PINMUX_GPIO102__FUNC_CLKM1 (MTK_PIN_NO(102) | 1)
#define PINMUX_GPIO102__FUNC_I2S2_DI (MTK_PIN_NO(102) | 2)
#define PINMUX_GPIO102__FUNC_DVFSRC_EXT_REQ (MTK_PIN_NO(102) | 3)
#define PINMUX_GPIO102__FUNC_CONN_MCU_TDI (MTK_PIN_NO(102) | 4)
#define PINMUX_GPIO102__FUNC_KPROW4 (MTK_PIN_NO(102) | 5)
#define PINMUX_GPIO102__FUNC_I2S0_DI (MTK_PIN_NO(102) | 6)
#define PINMUX_GPIO102__FUNC_DBG_MON_A26 (MTK_PIN_NO(102) | 7)
#define PINMUX_GPIO103__FUNC_GPIO103 (MTK_PIN_NO(103) | 0)
#define PINMUX_GPIO103__FUNC_SCL2 (MTK_PIN_NO(103) | 1)
#define PINMUX_GPIO103__FUNC_TP_UTXD2_AO (MTK_PIN_NO(103) | 2)
#define PINMUX_GPIO103__FUNC_UTXD1 (MTK_PIN_NO(103) | 3)
#define PINMUX_GPIO103__FUNC_MD_UTXD0 (MTK_PIN_NO(103) | 4)
#define PINMUX_GPIO103__FUNC_AUXIF_CLK (MTK_PIN_NO(103) | 5)
#define PINMUX_GPIO103__FUNC_WIFI_TXD (MTK_PIN_NO(103) | 6)
#define PINMUX_GPIO104__FUNC_GPIO104 (MTK_PIN_NO(104) | 0)
#define PINMUX_GPIO104__FUNC_SDA2 (MTK_PIN_NO(104) | 1)
#define PINMUX_GPIO104__FUNC_TP_URXD2_AO (MTK_PIN_NO(104) | 2)
#define PINMUX_GPIO104__FUNC_URXD1 (MTK_PIN_NO(104) | 3)
#define PINMUX_GPIO104__FUNC_MD_URXD0 (MTK_PIN_NO(104) | 4)
#define PINMUX_GPIO104__FUNC_AUXIF_ST (MTK_PIN_NO(104) | 5)
#define PINMUX_GPIO104__FUNC_WIFI_RXD (MTK_PIN_NO(104) | 6)
#define PINMUX_GPIO105__FUNC_GPIO105 (MTK_PIN_NO(105) | 0)
#define PINMUX_GPIO105__FUNC_SCL4 (MTK_PIN_NO(105) | 1)
#define PINMUX_GPIO105__FUNC_TP_UTXD1_AO (MTK_PIN_NO(105) | 2)
#define PINMUX_GPIO105__FUNC_SSPM_UTXD_AO (MTK_PIN_NO(105) | 3)
#define PINMUX_GPIO105__FUNC_MD_UTXD1 (MTK_PIN_NO(105) | 4)
#define PINMUX_GPIO105__FUNC_PTA_TXD (MTK_PIN_NO(105) | 5)
#define PINMUX_GPIO105__FUNC_CONN_UART0_TXD (MTK_PIN_NO(105) | 6)
#define PINMUX_GPIO106__FUNC_GPIO106 (MTK_PIN_NO(106) | 0)
#define PINMUX_GPIO106__FUNC_SDA4 (MTK_PIN_NO(106) | 1)
#define PINMUX_GPIO106__FUNC_TP_URXD1_AO (MTK_PIN_NO(106) | 2)
#define PINMUX_GPIO106__FUNC_SSPM_URXD_AO (MTK_PIN_NO(106) | 3)
#define PINMUX_GPIO106__FUNC_MD_URXD1 (MTK_PIN_NO(106) | 4)
#define PINMUX_GPIO106__FUNC_PTA_RXD (MTK_PIN_NO(106) | 5)
#define PINMUX_GPIO106__FUNC_CONN_UART0_RXD (MTK_PIN_NO(106) | 6)
#define PINMUX_GPIO107__FUNC_GPIO107 (MTK_PIN_NO(107) | 0)
#define PINMUX_GPIO107__FUNC_UCTS1 (MTK_PIN_NO(107) | 2)
#define PINMUX_GPIO107__FUNC_CLKM0 (MTK_PIN_NO(107) | 3)
#define PINMUX_GPIO107__FUNC_SRCLKENAI1 (MTK_PIN_NO(107) | 4)
#define PINMUX_GPIO107__FUNC_KPCOL3 (MTK_PIN_NO(107) | 5)
#define PINMUX_GPIO107__FUNC_PWM0 (MTK_PIN_NO(107) | 6)
#define PINMUX_GPIO107__FUNC_DBG_MON_A30 (MTK_PIN_NO(107) | 7)
#define PINMUX_GPIO108__FUNC_GPIO108 (MTK_PIN_NO(108) | 0)
#define PINMUX_GPIO108__FUNC_CMMCLK2 (MTK_PIN_NO(108) | 1)
#define PINMUX_GPIO108__FUNC_CLKM1 (MTK_PIN_NO(108) | 3)
#define PINMUX_GPIO108__FUNC_PWM1 (MTK_PIN_NO(108) | 6)
#define PINMUX_GPIO108__FUNC_DBG_MON_A31 (MTK_PIN_NO(108) | 7)
#define PINMUX_GPIO109__FUNC_GPIO109 (MTK_PIN_NO(109) | 0)
#define PINMUX_GPIO109__FUNC_URTS1 (MTK_PIN_NO(109) | 2)
#define PINMUX_GPIO109__FUNC_CLKM2 (MTK_PIN_NO(109) | 3)
#define PINMUX_GPIO109__FUNC_MD_INT0 (MTK_PIN_NO(109) | 4)
#define PINMUX_GPIO109__FUNC_KPROW3 (MTK_PIN_NO(109) | 5)
#define PINMUX_GPIO109__FUNC_PWM2 (MTK_PIN_NO(109) | 6)
#define PINMUX_GPIO109__FUNC_DBG_MON_A32 (MTK_PIN_NO(109) | 7)
#define PINMUX_GPIO110__FUNC_GPIO110 (MTK_PIN_NO(110) | 0)
#define PINMUX_GPIO110__FUNC_URXD1 (MTK_PIN_NO(110) | 2)
#define PINMUX_GPIO110__FUNC_USB_DRVVBUS (MTK_PIN_NO(110) | 4)
#define PINMUX_GPIO110__FUNC_KPCOL2 (MTK_PIN_NO(110) | 5)
#define PINMUX_GPIO110__FUNC_SCL8 (MTK_PIN_NO(110) | 6)
#define PINMUX_GPIO111__FUNC_GPIO111 (MTK_PIN_NO(111) | 0)
#define PINMUX_GPIO111__FUNC_CMMCLK3 (MTK_PIN_NO(111) | 1)
#define PINMUX_GPIO111__FUNC_MD_INT2_C2K_UIM1_HOT_PLUG (MTK_PIN_NO(111) | 5)
#define PINMUX_GPIO111__FUNC_SCP_VREQ_VAO (MTK_PIN_NO(111) | 6)
#define PINMUX_GPIO112__FUNC_GPIO112 (MTK_PIN_NO(112) | 0)
#define PINMUX_GPIO112__FUNC_UTXD1 (MTK_PIN_NO(112) | 2)
#define PINMUX_GPIO112__FUNC_IDDIG (MTK_PIN_NO(112) | 4)
#define PINMUX_GPIO112__FUNC_KPROW2 (MTK_PIN_NO(112) | 5)
#define PINMUX_GPIO112__FUNC_SDA8 (MTK_PIN_NO(112) | 6)
#define PINMUX_GPIO113__FUNC_GPIO113 (MTK_PIN_NO(113) | 0)
#define PINMUX_GPIO113__FUNC_CONN_TOP_CLK (MTK_PIN_NO(113) | 1)
#define PINMUX_GPIO114__FUNC_GPIO114 (MTK_PIN_NO(114) | 0)
#define PINMUX_GPIO114__FUNC_CONN_TOP_DATA (MTK_PIN_NO(114) | 1)
#define PINMUX_GPIO115__FUNC_GPIO115 (MTK_PIN_NO(115) | 0)
#define PINMUX_GPIO115__FUNC_CONN_BT_CLK (MTK_PIN_NO(115) | 1)
#define PINMUX_GPIO116__FUNC_GPIO116 (MTK_PIN_NO(116) | 0)
#define PINMUX_GPIO116__FUNC_CONN_BT_DATA (MTK_PIN_NO(116) | 1)
#define PINMUX_GPIO117__FUNC_GPIO117 (MTK_PIN_NO(117) | 0)
#define PINMUX_GPIO117__FUNC_CONN_WF_CTRL0 (MTK_PIN_NO(117) | 1)
#define PINMUX_GPIO118__FUNC_GPIO118 (MTK_PIN_NO(118) | 0)
#define PINMUX_GPIO118__FUNC_CONN_WF_CTRL1 (MTK_PIN_NO(118) | 1)
#define PINMUX_GPIO119__FUNC_GPIO119 (MTK_PIN_NO(119) | 0)
#define PINMUX_GPIO119__FUNC_CONN_WF_CTRL2 (MTK_PIN_NO(119) | 1)
#define PINMUX_GPIO120__FUNC_GPIO120 (MTK_PIN_NO(120) | 0)
#define PINMUX_GPIO120__FUNC_CONN_WB_PTA (MTK_PIN_NO(120) | 1)
#define PINMUX_GPIO121__FUNC_GPIO121 (MTK_PIN_NO(121) | 0)
#define PINMUX_GPIO121__FUNC_CONN_HRST_B (MTK_PIN_NO(121) | 1)
#define PINMUX_GPIO122__FUNC_GPIO122 (MTK_PIN_NO(122) | 0)
#define PINMUX_GPIO122__FUNC_MSDC0_CMD (MTK_PIN_NO(122) | 1)
#define PINMUX_GPIO123__FUNC_GPIO123 (MTK_PIN_NO(123) | 0)
#define PINMUX_GPIO123__FUNC_MSDC0_DAT0 (MTK_PIN_NO(123) | 1)
#define PINMUX_GPIO124__FUNC_GPIO124 (MTK_PIN_NO(124) | 0)
#define PINMUX_GPIO124__FUNC_MSDC0_CLK (MTK_PIN_NO(124) | 1)
#define PINMUX_GPIO125__FUNC_GPIO125 (MTK_PIN_NO(125) | 0)
#define PINMUX_GPIO125__FUNC_MSDC0_DAT2 (MTK_PIN_NO(125) | 1)
#define PINMUX_GPIO126__FUNC_GPIO126 (MTK_PIN_NO(126) | 0)
#define PINMUX_GPIO126__FUNC_MSDC0_DAT4 (MTK_PIN_NO(126) | 1)
#define PINMUX_GPIO127__FUNC_GPIO127 (MTK_PIN_NO(127) | 0)
#define PINMUX_GPIO127__FUNC_MSDC0_DAT6 (MTK_PIN_NO(127) | 1)
#define PINMUX_GPIO128__FUNC_GPIO128 (MTK_PIN_NO(128) | 0)
#define PINMUX_GPIO128__FUNC_MSDC0_DAT1 (MTK_PIN_NO(128) | 1)
#define PINMUX_GPIO129__FUNC_GPIO129 (MTK_PIN_NO(129) | 0)
#define PINMUX_GPIO129__FUNC_MSDC0_DAT5 (MTK_PIN_NO(129) | 1)
#define PINMUX_GPIO130__FUNC_GPIO130 (MTK_PIN_NO(130) | 0)
#define PINMUX_GPIO130__FUNC_MSDC0_DAT7 (MTK_PIN_NO(130) | 1)
#define PINMUX_GPIO131__FUNC_GPIO131 (MTK_PIN_NO(131) | 0)
#define PINMUX_GPIO131__FUNC_MSDC0_DSL (MTK_PIN_NO(131) | 1)
#define PINMUX_GPIO132__FUNC_GPIO132 (MTK_PIN_NO(132) | 0)
#define PINMUX_GPIO132__FUNC_MSDC0_DAT3 (MTK_PIN_NO(132) | 1)
#define PINMUX_GPIO133__FUNC_GPIO133 (MTK_PIN_NO(133) | 0)
#define PINMUX_GPIO133__FUNC_MSDC0_RSTB (MTK_PIN_NO(133) | 1)
#define PINMUX_GPIO134__FUNC_GPIO134 (MTK_PIN_NO(134) | 0)
#define PINMUX_GPIO134__FUNC_RTC32K_CK (MTK_PIN_NO(134) | 1)
#define PINMUX_GPIO135__FUNC_GPIO135 (MTK_PIN_NO(135) | 0)
#define PINMUX_GPIO135__FUNC_WATCHDOG (MTK_PIN_NO(135) | 1)
#define PINMUX_GPIO136__FUNC_GPIO136 (MTK_PIN_NO(136) | 0)
#define PINMUX_GPIO136__FUNC_AUD_CLK_MOSI (MTK_PIN_NO(136) | 1)
#define PINMUX_GPIO136__FUNC_AUD_CLK_MISO (MTK_PIN_NO(136) | 2)
#define PINMUX_GPIO136__FUNC_I2S1_MCK (MTK_PIN_NO(136) | 3)
#define PINMUX_GPIO137__FUNC_GPIO137 (MTK_PIN_NO(137) | 0)
#define PINMUX_GPIO137__FUNC_AUD_SYNC_MOSI (MTK_PIN_NO(137) | 1)
#define PINMUX_GPIO137__FUNC_AUD_SYNC_MISO (MTK_PIN_NO(137) | 2)
#define PINMUX_GPIO137__FUNC_I2S1_BCK (MTK_PIN_NO(137) | 3)
#define PINMUX_GPIO137__FUNC_DBG_MON_B5 (MTK_PIN_NO(137) | 7)
#define PINMUX_GPIO138__FUNC_GPIO138 (MTK_PIN_NO(138) | 0)
#define PINMUX_GPIO138__FUNC_AUD_DAT_MOSI0 (MTK_PIN_NO(138) | 1)
#define PINMUX_GPIO138__FUNC_AUD_DAT_MISO0 (MTK_PIN_NO(138) | 2)
#define PINMUX_GPIO138__FUNC_I2S1_LRCK (MTK_PIN_NO(138) | 3)
#define PINMUX_GPIO139__FUNC_GPIO139 (MTK_PIN_NO(139) | 0)
#define PINMUX_GPIO139__FUNC_AUD_DAT_MOSI1 (MTK_PIN_NO(139) | 1)
#define PINMUX_GPIO139__FUNC_AUD_DAT_MISO1 (MTK_PIN_NO(139) | 2)
#define PINMUX_GPIO139__FUNC_I2S1_DO (MTK_PIN_NO(139) | 3)
#define PINMUX_GPIO139__FUNC_DBG_MON_B6 (MTK_PIN_NO(139) | 7)
#define PINMUX_GPIO140__FUNC_GPIO140 (MTK_PIN_NO(140) | 0)
#define PINMUX_GPIO140__FUNC_AUD_CLK_MISO (MTK_PIN_NO(140) | 1)
#define PINMUX_GPIO140__FUNC_AUD_CLK_MOSI (MTK_PIN_NO(140) | 2)
#define PINMUX_GPIO140__FUNC_I2S2_MCK (MTK_PIN_NO(140) | 3)
#define PINMUX_GPIO141__FUNC_GPIO141 (MTK_PIN_NO(141) | 0)
#define PINMUX_GPIO141__FUNC_AUD_SYNC_MISO (MTK_PIN_NO(141) | 1)
#define PINMUX_GPIO141__FUNC_AUD_SYNC_MOSI (MTK_PIN_NO(141) | 2)
#define PINMUX_GPIO141__FUNC_I2S2_BCK (MTK_PIN_NO(141) | 3)
#define PINMUX_GPIO142__FUNC_GPIO142 (MTK_PIN_NO(142) | 0)
#define PINMUX_GPIO142__FUNC_AUD_DAT_MISO0 (MTK_PIN_NO(142) | 1)
#define PINMUX_GPIO142__FUNC_AUD_DAT_MOSI0 (MTK_PIN_NO(142) | 2)
#define PINMUX_GPIO142__FUNC_I2S2_LRCK (MTK_PIN_NO(142) | 3)
#define PINMUX_GPIO142__FUNC_VOW_DAT_MISO (MTK_PIN_NO(142) | 4)
#define PINMUX_GPIO143__FUNC_GPIO143 (MTK_PIN_NO(143) | 0)
#define PINMUX_GPIO143__FUNC_AUD_DAT_MISO1 (MTK_PIN_NO(143) | 1)
#define PINMUX_GPIO143__FUNC_AUD_DAT_MOSI1 (MTK_PIN_NO(143) | 2)
#define PINMUX_GPIO143__FUNC_I2S2_DI (MTK_PIN_NO(143) | 3)
#define PINMUX_GPIO143__FUNC_VOW_CLK_MISO (MTK_PIN_NO(143) | 4)
#define PINMUX_GPIO143__FUNC_DBG_MON_B2 (MTK_PIN_NO(143) | 7)
#define PINMUX_GPIO144__FUNC_GPIO144 (MTK_PIN_NO(144) | 0)
#define PINMUX_GPIO144__FUNC_PWRAP_SPI0_MI (MTK_PIN_NO(144) | 1)
#define PINMUX_GPIO144__FUNC_PWRAP_SPI0_MO (MTK_PIN_NO(144) | 2)
#define PINMUX_GPIO145__FUNC_GPIO145 (MTK_PIN_NO(145) | 0)
#define PINMUX_GPIO145__FUNC_PWRAP_SPI0_CSN (MTK_PIN_NO(145) | 1)
#define PINMUX_GPIO146__FUNC_GPIO146 (MTK_PIN_NO(146) | 0)
#define PINMUX_GPIO146__FUNC_PWRAP_SPI0_MO (MTK_PIN_NO(146) | 1)
#define PINMUX_GPIO146__FUNC_PWRAP_SPI0_MI (MTK_PIN_NO(146) | 2)
#define PINMUX_GPIO147__FUNC_GPIO147 (MTK_PIN_NO(147) | 0)
#define PINMUX_GPIO147__FUNC_PWRAP_SPI0_CK (MTK_PIN_NO(147) | 1)
#define PINMUX_GPIO148__FUNC_GPIO148 (MTK_PIN_NO(148) | 0)
#define PINMUX_GPIO148__FUNC_SRCLKENA0 (MTK_PIN_NO(148) | 1)
#define PINMUX_GPIO149__FUNC_GPIO149 (MTK_PIN_NO(149) | 0)
#define PINMUX_GPIO149__FUNC_SRCLKENA1 (MTK_PIN_NO(149) | 1)
#define PINMUX_GPIO150__FUNC_GPIO150 (MTK_PIN_NO(150) | 0)
#define PINMUX_GPIO150__FUNC_PWM0 (MTK_PIN_NO(150) | 1)
#define PINMUX_GPIO150__FUNC_CMFLASH (MTK_PIN_NO(150) | 2)
#define PINMUX_GPIO150__FUNC_CLKM0 (MTK_PIN_NO(150) | 3)
#define PINMUX_GPIO150__FUNC_URXD1 (MTK_PIN_NO(150) | 4)
#define PINMUX_GPIO150__FUNC_MD_URXD1 (MTK_PIN_NO(150) | 5)
#define PINMUX_GPIO150__FUNC_TP_URXD2_AO (MTK_PIN_NO(150) | 6)
#define PINMUX_GPIO150__FUNC_DBG_MON_B9 (MTK_PIN_NO(150) | 7)
#define PINMUX_GPIO151__FUNC_GPIO151 (MTK_PIN_NO(151) | 0)
#define PINMUX_GPIO151__FUNC_PWM1 (MTK_PIN_NO(151) | 1)
#define PINMUX_GPIO151__FUNC_CMVREF0 (MTK_PIN_NO(151) | 2)
#define PINMUX_GPIO151__FUNC_CLKM1 (MTK_PIN_NO(151) | 3)
#define PINMUX_GPIO151__FUNC_UTXD1 (MTK_PIN_NO(151) | 4)
#define PINMUX_GPIO151__FUNC_MD_UTXD1 (MTK_PIN_NO(151) | 5)
#define PINMUX_GPIO151__FUNC_TP_UTXD2_AO (MTK_PIN_NO(151) | 6)
#define PINMUX_GPIO151__FUNC_DBG_MON_B4 (MTK_PIN_NO(151) | 7)
#define PINMUX_GPIO152__FUNC_GPIO152 (MTK_PIN_NO(152) | 0)
#define PINMUX_GPIO152__FUNC_PWM2 (MTK_PIN_NO(152) | 1)
#define PINMUX_GPIO152__FUNC_CMVREF1 (MTK_PIN_NO(152) | 2)
#define PINMUX_GPIO152__FUNC_CLKM2 (MTK_PIN_NO(152) | 3)
#define PINMUX_GPIO152__FUNC_SSPM_URXD_AO (MTK_PIN_NO(152) | 4)
#define PINMUX_GPIO152__FUNC_MD_URXD0 (MTK_PIN_NO(152) | 5)
#define PINMUX_GPIO152__FUNC_TP_URXD1_AO (MTK_PIN_NO(152) | 6)
#define PINMUX_GPIO152__FUNC_DBG_MON_B3 (MTK_PIN_NO(152) | 7)
#define PINMUX_GPIO153__FUNC_GPIO153 (MTK_PIN_NO(153) | 0)
#define PINMUX_GPIO153__FUNC_PWM0 (MTK_PIN_NO(153) | 1)
#define PINMUX_GPIO153__FUNC_CMVREF0 (MTK_PIN_NO(153) | 2)
#define PINMUX_GPIO153__FUNC_CLKM3 (MTK_PIN_NO(153) | 3)
#define PINMUX_GPIO153__FUNC_SSPM_UTXD_AO (MTK_PIN_NO(153) | 4)
#define PINMUX_GPIO153__FUNC_MD_UTXD0 (MTK_PIN_NO(153) | 5)
#define PINMUX_GPIO153__FUNC_TP_UTXD1_AO (MTK_PIN_NO(153) | 6)
#define PINMUX_GPIO153__FUNC_DBG_MON_B0 (MTK_PIN_NO(153) | 7)
#define PINMUX_GPIO154__FUNC_GPIO154 (MTK_PIN_NO(154) | 0)
#define PINMUX_GPIO154__FUNC_SCP_VREQ_VAO (MTK_PIN_NO(154) | 1)
#define PINMUX_GPIO154__FUNC_DVFSRC_EXT_REQ (MTK_PIN_NO(154) | 2)
#define PINMUX_GPIO155__FUNC_GPIO155 (MTK_PIN_NO(155) | 0)
#define PINMUX_GPIO155__FUNC_MD1_SIM2_SIO (MTK_PIN_NO(155) | 1)
#define PINMUX_GPIO155__FUNC_CCU_JTAG_TDO (MTK_PIN_NO(155) | 2)
#define PINMUX_GPIO155__FUNC_MD1_SIM1_SIO (MTK_PIN_NO(155) | 3)
#define PINMUX_GPIO155__FUNC_SCP_JTAG_TDO (MTK_PIN_NO(155) | 5)
#define PINMUX_GPIO155__FUNC_CONN_DSP_JDO (MTK_PIN_NO(155) | 6)
#define PINMUX_GPIO155__FUNC_DBG_MON_A1 (MTK_PIN_NO(155) | 7)
#define PINMUX_GPIO156__FUNC_GPIO156 (MTK_PIN_NO(156) | 0)
#define PINMUX_GPIO156__FUNC_MD1_SIM2_SRST (MTK_PIN_NO(156) | 1)
#define PINMUX_GPIO156__FUNC_CCU_JTAG_TMS (MTK_PIN_NO(156) | 2)
#define PINMUX_GPIO156__FUNC_MD1_SIM1_SRST (MTK_PIN_NO(156) | 3)
#define PINMUX_GPIO156__FUNC_CONN_MCU_AICE_TMSC (MTK_PIN_NO(156) | 4)
#define PINMUX_GPIO156__FUNC_SCP_JTAG_TMS (MTK_PIN_NO(156) | 5)
#define PINMUX_GPIO156__FUNC_CONN_DSP_JMS (MTK_PIN_NO(156) | 6)
#define PINMUX_GPIO156__FUNC_DBG_MON_A2 (MTK_PIN_NO(156) | 7)
#define PINMUX_GPIO157__FUNC_GPIO157 (MTK_PIN_NO(157) | 0)
#define PINMUX_GPIO157__FUNC_MD1_SIM2_SCLK (MTK_PIN_NO(157) | 1)
#define PINMUX_GPIO157__FUNC_CCU_JTAG_TDI (MTK_PIN_NO(157) | 2)
#define PINMUX_GPIO157__FUNC_MD1_SIM1_SCLK (MTK_PIN_NO(157) | 3)
#define PINMUX_GPIO157__FUNC_SCP_JTAG_TDI (MTK_PIN_NO(157) | 5)
#define PINMUX_GPIO157__FUNC_CONN_DSP_JDI (MTK_PIN_NO(157) | 6)
#define PINMUX_GPIO157__FUNC_DBG_MON_A3 (MTK_PIN_NO(157) | 7)
#define PINMUX_GPIO158__FUNC_GPIO158 (MTK_PIN_NO(158) | 0)
#define PINMUX_GPIO158__FUNC_ANT_SEL3 (MTK_PIN_NO(158) | 1)
#define PINMUX_GPIO158__FUNC_CLKM0 (MTK_PIN_NO(158) | 3)
#define PINMUX_GPIO158__FUNC_DBG_MON_B7 (MTK_PIN_NO(158) | 7)
#define PINMUX_GPIO159__FUNC_GPIO159 (MTK_PIN_NO(159) | 0)
#define PINMUX_GPIO159__FUNC_ANT_SEL4 (MTK_PIN_NO(159) | 1)
#define PINMUX_GPIO159__FUNC_CLKM1 (MTK_PIN_NO(159) | 3)
#define PINMUX_GPIO160__FUNC_GPIO160 (MTK_PIN_NO(160) | 0)
#define PINMUX_GPIO160__FUNC_ANT_SEL5 (MTK_PIN_NO(160) | 1)
#define PINMUX_GPIO160__FUNC_CLKM2 (MTK_PIN_NO(160) | 3)
#define PINMUX_GPIO160__FUNC_WIFI_RXD (MTK_PIN_NO(160) | 5)
#define PINMUX_GPIO160__FUNC_DBG_MON_B1 (MTK_PIN_NO(160) | 7)
#define PINMUX_GPIO161__FUNC_GPIO161 (MTK_PIN_NO(161) | 0)
#define PINMUX_GPIO161__FUNC_MSDC1_DAT3 (MTK_PIN_NO(161) | 1)
#define PINMUX_GPIO161__FUNC_CONN_MCU_AICE_TMSC (MTK_PIN_NO(161) | 3)
#define PINMUX_GPIO161__FUNC_CONN_DSP_JINTP (MTK_PIN_NO(161) | 4)
#define PINMUX_GPIO161__FUNC_SSPM_JTAG_TRSTN (MTK_PIN_NO(161) | 5)
#define PINMUX_GPIO162__FUNC_GPIO162 (MTK_PIN_NO(162) | 0)
#define PINMUX_GPIO162__FUNC_MSDC1_DAT2 (MTK_PIN_NO(162) | 1)
#define PINMUX_GPIO162__FUNC_IO_JTAG_TRSTN (MTK_PIN_NO(162) | 2)
#define PINMUX_GPIO162__FUNC_UDI_NTRST (MTK_PIN_NO(162) | 3)
#define PINMUX_GPIO162__FUNC_CONN_MCU_AICE_TCKC (MTK_PIN_NO(162) | 5)
#define PINMUX_GPIO163__FUNC_GPIO163 (MTK_PIN_NO(163) | 0)
#define PINMUX_GPIO163__FUNC_MSDC1_DAT1 (MTK_PIN_NO(163) | 1)
#define PINMUX_GPIO163__FUNC_IO_JTAG_TDO (MTK_PIN_NO(163) | 2)
#define PINMUX_GPIO163__FUNC_UDI_TDO (MTK_PIN_NO(163) | 3)
#define PINMUX_GPIO163__FUNC_CONN_DSP_JDO (MTK_PIN_NO(163) | 4)
#define PINMUX_GPIO163__FUNC_SSPM_JTAG_TDO (MTK_PIN_NO(163) | 5)
#define PINMUX_GPIO164__FUNC_GPIO164 (MTK_PIN_NO(164) | 0)
#define PINMUX_GPIO164__FUNC_MSDC1_DAT0 (MTK_PIN_NO(164) | 1)
#define PINMUX_GPIO164__FUNC_IO_JTAG_TDI (MTK_PIN_NO(164) | 2)
#define PINMUX_GPIO164__FUNC_UDI_TDI (MTK_PIN_NO(164) | 3)
#define PINMUX_GPIO164__FUNC_CONN_DSP_JDI (MTK_PIN_NO(164) | 4)
#define PINMUX_GPIO164__FUNC_SSPM_JTAG_TDI (MTK_PIN_NO(164) | 5)
#define PINMUX_GPIO165__FUNC_GPIO165 (MTK_PIN_NO(165) | 0)
#define PINMUX_GPIO165__FUNC_PWM1 (MTK_PIN_NO(165) | 1)
#define PINMUX_GPIO165__FUNC_SSPM_URXD_AO (MTK_PIN_NO(165) | 4)
#define PINMUX_GPIO165__FUNC_MD_URXD1 (MTK_PIN_NO(165) | 5)
#define PINMUX_GPIO165__FUNC_TP_URXD1_AO (MTK_PIN_NO(165) | 6)
#define PINMUX_GPIO165__FUNC_DBG_MON_B16 (MTK_PIN_NO(165) | 7)
#define PINMUX_GPIO166__FUNC_GPIO166 (MTK_PIN_NO(166) | 0)
#define PINMUX_GPIO166__FUNC_ANT_SEL6 (MTK_PIN_NO(166) | 1)
#define PINMUX_GPIO166__FUNC_CLKM3 (MTK_PIN_NO(166) | 3)
#define PINMUX_GPIO166__FUNC_WIFI_TXD (MTK_PIN_NO(166) | 5)
#define PINMUX_GPIO166__FUNC_DBG_MON_B12 (MTK_PIN_NO(166) | 7)
#define PINMUX_GPIO167__FUNC_GPIO167 (MTK_PIN_NO(167) | 0)
#define PINMUX_GPIO167__FUNC_RFIC0_BSI_EN (MTK_PIN_NO(167) | 1)
#define PINMUX_GPIO168__FUNC_GPIO168 (MTK_PIN_NO(168) | 0)
#define PINMUX_GPIO168__FUNC_RFIC0_BSI_CK (MTK_PIN_NO(168) | 1)
#define PINMUX_GPIO169__FUNC_GPIO169 (MTK_PIN_NO(169) | 0)
#define PINMUX_GPIO169__FUNC_PWM2 (MTK_PIN_NO(169) | 1)
#define PINMUX_GPIO169__FUNC_SSPM_UTXD_AO (MTK_PIN_NO(169) | 4)
#define PINMUX_GPIO169__FUNC_MD_UTXD1 (MTK_PIN_NO(169) | 5)
#define PINMUX_GPIO169__FUNC_TP_UTXD1_AO (MTK_PIN_NO(169) | 6)
#define PINMUX_GPIO170__FUNC_GPIO170 (MTK_PIN_NO(170) | 0)
#define PINMUX_GPIO170__FUNC_MSDC1_CMD (MTK_PIN_NO(170) | 1)
#define PINMUX_GPIO170__FUNC_IO_JTAG_TMS (MTK_PIN_NO(170) | 2)
#define PINMUX_GPIO170__FUNC_UDI_TMS (MTK_PIN_NO(170) | 3)
#define PINMUX_GPIO170__FUNC_CONN_DSP_JMS (MTK_PIN_NO(170) | 4)
#define PINMUX_GPIO170__FUNC_SSPM_JTAG_TMS (MTK_PIN_NO(170) | 5)
#define PINMUX_GPIO171__FUNC_GPIO171 (MTK_PIN_NO(171) | 0)
#define PINMUX_GPIO171__FUNC_MSDC1_CLK (MTK_PIN_NO(171) | 1)
#define PINMUX_GPIO171__FUNC_IO_JTAG_TCK (MTK_PIN_NO(171) | 2)
#define PINMUX_GPIO171__FUNC_UDI_TCK (MTK_PIN_NO(171) | 3)
#define PINMUX_GPIO171__FUNC_CONN_DSP_JCK (MTK_PIN_NO(171) | 4)
#define PINMUX_GPIO171__FUNC_SSPM_JTAG_TCK (MTK_PIN_NO(171) | 5)
#define PINMUX_GPIO172__FUNC_GPIO172 (MTK_PIN_NO(172) | 0)
#define PINMUX_GPIO172__FUNC_MD1_SIM1_SCLK (MTK_PIN_NO(172) | 1)
#define PINMUX_GPIO172__FUNC_MD1_SIM2_SCLK (MTK_PIN_NO(172) | 3)
#define PINMUX_GPIO172__FUNC_DBG_MON_A4 (MTK_PIN_NO(172) | 7)
#define PINMUX_GPIO173__FUNC_GPIO173 (MTK_PIN_NO(173) | 0)
#define PINMUX_GPIO173__FUNC_MD1_SIM1_SRST (MTK_PIN_NO(173) | 1)
#define PINMUX_GPIO173__FUNC_CCU_JTAG_TCK (MTK_PIN_NO(173) | 2)
#define PINMUX_GPIO173__FUNC_MD1_SIM2_SRST (MTK_PIN_NO(173) | 3)
#define PINMUX_GPIO173__FUNC_CONN_MCU_AICE_TCKC (MTK_PIN_NO(173) | 4)
#define PINMUX_GPIO173__FUNC_SCP_JTAG_TCK (MTK_PIN_NO(173) | 5)
#define PINMUX_GPIO173__FUNC_CONN_DSP_JCK (MTK_PIN_NO(173) | 6)
#define PINMUX_GPIO173__FUNC_DBG_MON_A5 (MTK_PIN_NO(173) | 7)
#define PINMUX_GPIO174__FUNC_GPIO174 (MTK_PIN_NO(174) | 0)
#define PINMUX_GPIO174__FUNC_MD1_SIM1_SIO (MTK_PIN_NO(174) | 1)
#define PINMUX_GPIO174__FUNC_CCU_JTAG_TRST (MTK_PIN_NO(174) | 2)
#define PINMUX_GPIO174__FUNC_MD1_SIM2_SIO (MTK_PIN_NO(174) | 3)
#define PINMUX_GPIO174__FUNC_SCP_JTAG_TRSTN (MTK_PIN_NO(174) | 5)
#define PINMUX_GPIO174__FUNC_CONN_DSP_JINTP (MTK_PIN_NO(174) | 6)
#define PINMUX_GPIO174__FUNC_DBG_MON_A6 (MTK_PIN_NO(174) | 7)
#define PINMUX_GPIO175__FUNC_GPIO175 (MTK_PIN_NO(175) | 0)
#define PINMUX_GPIO175__FUNC_SCL7 (MTK_PIN_NO(175) | 1)
#define PINMUX_GPIO175__FUNC_SCP_SCL0 (MTK_PIN_NO(175) | 2)
#define PINMUX_GPIO175__FUNC_SCP_SCL1 (MTK_PIN_NO(175) | 3)
#define PINMUX_GPIO175__FUNC_SCL_6306 (MTK_PIN_NO(175) | 4)
#define PINMUX_GPIO176__FUNC_GPIO176 (MTK_PIN_NO(176) | 0)
#define PINMUX_GPIO176__FUNC_SDA7 (MTK_PIN_NO(176) | 1)
#define PINMUX_GPIO176__FUNC_SCP_SDA0 (MTK_PIN_NO(176) | 2)
#define PINMUX_GPIO176__FUNC_SCP_SDA1 (MTK_PIN_NO(176) | 3)
#define PINMUX_GPIO176__FUNC_SDA_6306 (MTK_PIN_NO(176) | 4)
#define PINMUX_GPIO177__FUNC_GPIO177 (MTK_PIN_NO(177) | 0)
#define PINMUX_GPIO177__FUNC_AP_GOOD (MTK_PIN_NO(177) | 1)
#define PINMUX_GPIO177__FUNC_URTS0 (MTK_PIN_NO(177) | 5)
#define PINMUX_GPIO178__FUNC_GPIO178 (MTK_PIN_NO(178) | 0)
#define PINMUX_GPIO178__FUNC_ANT_SEL7 (MTK_PIN_NO(178) | 1)
#define PINMUX_GPIO178__FUNC_CMVREF0 (MTK_PIN_NO(178) | 3)
#define PINMUX_GPIO178__FUNC_CONN_UART0_RXD (MTK_PIN_NO(178) | 5)
#define PINMUX_GPIO178__FUNC_TP_UCTS2_AO (MTK_PIN_NO(178) | 6)
#define PINMUX_GPIO178__FUNC_DBG_MON_A17 (MTK_PIN_NO(178) | 7)
#define PINMUX_GPIO179__FUNC_GPIO179 (MTK_PIN_NO(179) | 0)
#define PINMUX_GPIO179__FUNC_AGPS_SYNC (MTK_PIN_NO(179) | 2)
#define PINMUX_GPIO179__FUNC_CMVREF1 (MTK_PIN_NO(179) | 3)
#define PINMUX_GPIO179__FUNC_CONN_UART0_TXD (MTK_PIN_NO(179) | 5)
#define PINMUX_GPIO179__FUNC_TP_URTS2_AO (MTK_PIN_NO(179) | 6)
#define PINMUX_GPIO179__FUNC_DBG_MON_A20 (MTK_PIN_NO(179) | 7)
#define PINMUX_GPIO180__FUNC_GPIO180 (MTK_PIN_NO(180) | 0)
#define PINMUX_GPIO181__FUNC_GPIO181 (MTK_PIN_NO(181) | 0)
#define PINMUX_GPIO182__FUNC_GPIO182 (MTK_PIN_NO(182) | 0)
#define PINMUX_GPIO183__FUNC_GPIO183 (MTK_PIN_NO(183) | 0)
#define PINMUX_GPIO184__FUNC_GPIO184 (MTK_PIN_NO(184) | 0)
#define PINMUX_GPIO185__FUNC_GPIO185 (MTK_PIN_NO(185) | 0)
#define PINMUX_GPIO186__FUNC_GPIO186 (MTK_PIN_NO(186) | 0)
// add for 6768 ref device
#define PINMUX_GPIO51__FUNC_SCL0 (MTK_PIN_NO(51) | 1)
#define PINMUX_GPIO51__FUNC_SPI5_B_CLK (MTK_PIN_NO(51) | 2)
#define PINMUX_GPIO52__FUNC_SDA0 (MTK_PIN_NO(52) | 1)
#define PINMUX_GPIO52__FUNC_SPI5_B_CSB (MTK_PIN_NO(52) | 2)
#define PINMUX_GPIO198__FUNC_GPIO198 (MTK_PIN_NO(198) | 0)
#define PINMUX_GPIO198__FUNC_SCL7 (MTK_PIN_NO(198) | 1)
#define PINMUX_GPIO198__FUNC_SPI5_B_MI (MTK_PIN_NO(198) | 2)
#define PINMUX_GPIO199__FUNC_GPIO199 (MTK_PIN_NO(199) | 0)
#define PINMUX_GPIO199__FUNC_SDA7 (MTK_PIN_NO(199) | 1)
#define PINMUX_GPIO199__FUNC_SPI5_B_MO (MTK_PIN_NO(199) | 2)
#endif /* __MT6768-PINFUNC_H */
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
@@ -0,0 +1,651 @@
/* SPDX-License-Identifier: GPL-2.0 */
#ifndef __DTS_MT7623_PINFUNC_H
#define __DTS_MT7623_PINFUNC_H
#include <dt-bindings/pinctrl/mt65xx.h>
#define MT7623_PIN_0_PWRAP_SPI0_MI_FUNC_GPIO0 (MTK_PIN_NO(0) | 0)
#define MT7623_PIN_0_PWRAP_SPI0_MI_FUNC_PWRAP_SPIDO (MTK_PIN_NO(0) | 1)
#define MT7623_PIN_0_PWRAP_SPI0_MI_FUNC_PWRAP_SPIDI (MTK_PIN_NO(0) | 2)
#define MT7623_PIN_1_PWRAP_SPI0_MO_FUNC_GPIO1 (MTK_PIN_NO(1) | 0)
#define MT7623_PIN_1_PWRAP_SPI0_MO_FUNC_PWRAP_SPIDI (MTK_PIN_NO(1) | 1)
#define MT7623_PIN_1_PWRAP_SPI0_MO_FUNC_PWRAP_SPIDO (MTK_PIN_NO(1) | 2)
#define MT7623_PIN_2_PWRAP_INT_FUNC_GPIO2 (MTK_PIN_NO(2) | 0)
#define MT7623_PIN_2_PWRAP_INT_FUNC_PWRAP_INT (MTK_PIN_NO(2) | 1)
#define MT7623_PIN_3_PWRAP_SPI0_CK_FUNC_GPIO3 (MTK_PIN_NO(3) | 0)
#define MT7623_PIN_3_PWRAP_SPI0_CK_FUNC_PWRAP_SPICK_I (MTK_PIN_NO(3) | 1)
#define MT7623_PIN_4_PWRAP_SPI0_CSN_FUNC_GPIO4 (MTK_PIN_NO(4) | 0)
#define MT7623_PIN_4_PWRAP_SPI0_CSN_FUNC_PWRAP_SPICS_B_I (MTK_PIN_NO(4) | 1)
#define MT7623_PIN_5_PWRAP_SPI0_CK2_FUNC_GPIO5 (MTK_PIN_NO(5) | 0)
#define MT7623_PIN_5_PWRAP_SPI0_CK2_FUNC_PWRAP_SPICK2_I (MTK_PIN_NO(5) | 1)
#define MT7623_PIN_5_PWRAP_SPI0_CK2_FUNC_ANT_SEL1 (MTK_PIN_NO(5) | 5)
#define MT7623_PIN_6_PWRAP_SPI0_CSN2_FUNC_GPIO6 (MTK_PIN_NO(6) | 0)
#define MT7623_PIN_6_PWRAP_SPI0_CSN2_FUNC_PWRAP_SPICS2_B_I (MTK_PIN_NO(6) | 1)
#define MT7623_PIN_6_PWRAP_SPI0_CSN2_FUNC_ANT_SEL0 (MTK_PIN_NO(6) | 5)
#define MT7623_PIN_7_SPI1_CSN_FUNC_GPIO7 (MTK_PIN_NO(7) | 0)
#define MT7623_PIN_7_SPI1_CSN_FUNC_SPI1_CS (MTK_PIN_NO(7) | 1)
#define MT7623_PIN_7_SPI1_CSN_FUNC_KCOL0 (MTK_PIN_NO(7) | 4)
#define MT7623_PIN_8_SPI1_MI_FUNC_GPIO8 (MTK_PIN_NO(8) | 0)
#define MT7623_PIN_8_SPI1_MI_FUNC_SPI1_MI (MTK_PIN_NO(8) | 1)
#define MT7623_PIN_8_SPI1_MI_FUNC_SPI1_MO (MTK_PIN_NO(8) | 2)
#define MT7623_PIN_8_SPI1_MI_FUNC_KCOL1 (MTK_PIN_NO(8) | 4)
#define MT7623_PIN_9_SPI1_MO_FUNC_GPIO9 (MTK_PIN_NO(9) | 0)
#define MT7623_PIN_9_SPI1_MO_FUNC_SPI1_MO (MTK_PIN_NO(9) | 1)
#define MT7623_PIN_9_SPI1_MO_FUNC_SPI1_MI (MTK_PIN_NO(9) | 2)
#define MT7623_PIN_9_SPI1_MO_FUNC_EXT_FRAME_SYNC (MTK_PIN_NO(9) | 3)
#define MT7623_PIN_9_SPI1_MO_FUNC_KCOL2 (MTK_PIN_NO(9) | 4)
#define MT7623_PIN_10_RTC32K_CK_FUNC_GPIO10 (MTK_PIN_NO(10) | 0)
#define MT7623_PIN_10_RTC32K_CK_FUNC_RTC32K_CK (MTK_PIN_NO(10) | 1)
#define MT7623_PIN_11_WATCHDOG_FUNC_GPIO11 (MTK_PIN_NO(11) | 0)
#define MT7623_PIN_11_WATCHDOG_FUNC_WATCHDOG (MTK_PIN_NO(11) | 1)
#define MT7623_PIN_12_SRCLKENA_FUNC_GPIO12 (MTK_PIN_NO(12) | 0)
#define MT7623_PIN_12_SRCLKENA_FUNC_SRCLKENA (MTK_PIN_NO(12) | 1)
#define MT7623_PIN_13_SRCLKENAI_FUNC_GPIO13 (MTK_PIN_NO(13) | 0)
#define MT7623_PIN_13_SRCLKENAI_FUNC_SRCLKENAI (MTK_PIN_NO(13) | 1)
#define MT7623_PIN_14_GPIO14_FUNC_GPIO14 (MTK_PIN_NO(14) | 0)
#define MT7623_PIN_14_GPIO14_FUNC_URXD2 (MTK_PIN_NO(14) | 1)
#define MT7623_PIN_14_GPIO14_FUNC_UTXD2 (MTK_PIN_NO(14) | 2)
#define MT7623_PIN_14_GPIO14_FUNC_SRCCLKENAI2 (MTK_PIN_NO(14) | 5)
#define MT7623_PIN_15_GPIO15_FUNC_GPIO15 (MTK_PIN_NO(15) | 0)
#define MT7623_PIN_15_GPIO15_FUNC_UTXD2 (MTK_PIN_NO(15) | 1)
#define MT7623_PIN_15_GPIO15_FUNC_URXD2 (MTK_PIN_NO(15) | 2)
#define MT7623_PIN_18_PCM_CLK_FUNC_GPIO18 (MTK_PIN_NO(18) | 0)
#define MT7623_PIN_18_PCM_CLK_FUNC_PCM_CLK0 (MTK_PIN_NO(18) | 1)
#define MT7623_PIN_18_PCM_CLK_FUNC_MRG_CLK (MTK_PIN_NO(18) | 2)
#define MT7623_PIN_18_PCM_CLK_FUNC_MM_TEST_CK (MTK_PIN_NO(18) | 4)
#define MT7623_PIN_18_PCM_CLK_FUNC_CONN_DSP_JCK (MTK_PIN_NO(18) | 5)
#define MT7623_PIN_18_PCM_CLK_FUNC_AP_PCM_CLKO (MTK_PIN_NO(18) | 6)
#define MT7623_PIN_19_PCM_SYNC_FUNC_GPIO19 (MTK_PIN_NO(19) | 0)
#define MT7623_PIN_19_PCM_SYNC_FUNC_PCM_SYNC (MTK_PIN_NO(19) | 1)
#define MT7623_PIN_19_PCM_SYNC_FUNC_MRG_SYNC (MTK_PIN_NO(19) | 2)
#define MT7623_PIN_19_PCM_SYNC_FUNC_CONN_DSP_JINTP (MTK_PIN_NO(19) | 5)
#define MT7623_PIN_19_PCM_SYNC_FUNC_AP_PCM_SYNC (MTK_PIN_NO(19) | 6)
#define MT7623_PIN_20_PCM_RX_FUNC_GPIO20 (MTK_PIN_NO(20) | 0)
#define MT7623_PIN_20_PCM_RX_FUNC_PCM_RX (MTK_PIN_NO(20) | 1)
#define MT7623_PIN_20_PCM_RX_FUNC_MRG_RX (MTK_PIN_NO(20) | 2)
#define MT7623_PIN_20_PCM_RX_FUNC_MRG_TX (MTK_PIN_NO(20) | 3)
#define MT7623_PIN_20_PCM_RX_FUNC_PCM_TX (MTK_PIN_NO(20) | 4)
#define MT7623_PIN_20_PCM_RX_FUNC_CONN_DSP_JDI (MTK_PIN_NO(20) | 5)
#define MT7623_PIN_20_PCM_RX_FUNC_AP_PCM_RX (MTK_PIN_NO(20) | 6)
#define MT7623_PIN_21_PCM_TX_FUNC_GPIO21 (MTK_PIN_NO(21) | 0)
#define MT7623_PIN_21_PCM_TX_FUNC_PCM_TX (MTK_PIN_NO(21) | 1)
#define MT7623_PIN_21_PCM_TX_FUNC_MRG_TX (MTK_PIN_NO(21) | 2)
#define MT7623_PIN_21_PCM_TX_FUNC_MRG_RX (MTK_PIN_NO(21) | 3)
#define MT7623_PIN_21_PCM_TX_FUNC_PCM_RX (MTK_PIN_NO(21) | 4)
#define MT7623_PIN_21_PCM_TX_FUNC_CONN_DSP_JMS (MTK_PIN_NO(21) | 5)
#define MT7623_PIN_21_PCM_TX_FUNC_AP_PCM_TX (MTK_PIN_NO(21) | 6)
#define MT7623_PIN_22_EINT0_FUNC_GPIO22 (MTK_PIN_NO(22) | 0)
#define MT7623_PIN_22_EINT0_FUNC_UCTS0 (MTK_PIN_NO(22) | 1)
#define MT7623_PIN_22_EINT0_FUNC_PCIE0_PERST_N (MTK_PIN_NO(22) | 2)
#define MT7623_PIN_22_EINT0_FUNC_KCOL3 (MTK_PIN_NO(22) | 3)
#define MT7623_PIN_22_EINT0_FUNC_CONN_DSP_JDO (MTK_PIN_NO(22) | 4)
#define MT7623_PIN_22_EINT0_FUNC_EXT_FRAME_SYNC (MTK_PIN_NO(22) | 5)
#define MT7623_PIN_23_EINT1_FUNC_GPIO23 (MTK_PIN_NO(23) | 0)
#define MT7623_PIN_23_EINT1_FUNC_URTS0 (MTK_PIN_NO(23) | 1)
#define MT7623_PIN_23_EINT1_FUNC_PCIE1_PERST_N (MTK_PIN_NO(23) | 2)
#define MT7623_PIN_23_EINT1_FUNC_KCOL2 (MTK_PIN_NO(23) | 3)
#define MT7623_PIN_23_EINT1_FUNC_CONN_MCU_TDO (MTK_PIN_NO(23) | 4)
#define MT7623_PIN_23_EINT1_FUNC_EXT_FRAME_SYNC (MTK_PIN_NO(23) | 5)
#define MT7623_PIN_24_EINT2_FUNC_GPIO24 (MTK_PIN_NO(24) | 0)
#define MT7623_PIN_24_EINT2_FUNC_UCTS1 (MTK_PIN_NO(24) | 1)
#define MT7623_PIN_24_EINT2_FUNC_PCIE2_PERST_N (MTK_PIN_NO(24) | 2)
#define MT7623_PIN_24_EINT2_FUNC_KCOL1 (MTK_PIN_NO(24) | 3)
#define MT7623_PIN_24_EINT2_FUNC_CONN_MCU_DBGACK_N (MTK_PIN_NO(24) | 4)
#define MT7623_PIN_25_EINT3_FUNC_GPIO25 (MTK_PIN_NO(25) | 0)
#define MT7623_PIN_25_EINT3_FUNC_URTS1 (MTK_PIN_NO(25) | 1)
#define MT7623_PIN_25_EINT3_FUNC_KCOL0 (MTK_PIN_NO(25) | 3)
#define MT7623_PIN_25_EINT3_FUNC_CONN_MCU_DBGI_N (MTK_PIN_NO(25) | 4)
#define MT7623_PIN_26_EINT4_FUNC_GPIO26 (MTK_PIN_NO(26) | 0)
#define MT7623_PIN_26_EINT4_FUNC_UCTS3 (MTK_PIN_NO(26) | 1)
#define MT7623_PIN_26_EINT4_FUNC_DRV_VBUS_P1 (MTK_PIN_NO(26) | 2)
#define MT7623_PIN_26_EINT4_FUNC_KROW3 (MTK_PIN_NO(26) | 3)
#define MT7623_PIN_26_EINT4_FUNC_CONN_MCU_TCK0 (MTK_PIN_NO(26) | 4)
#define MT7623_PIN_26_EINT4_FUNC_CONN_MCU_AICE_JCKC (MTK_PIN_NO(26) | 5)
#define MT7623_PIN_26_EINT4_FUNC_PCIE2_WAKE_N (MTK_PIN_NO(26) | 6)
#define MT7623_PIN_27_EINT5_FUNC_GPIO27 (MTK_PIN_NO(27) | 0)
#define MT7623_PIN_27_EINT5_FUNC_URTS3 (MTK_PIN_NO(27) | 1)
#define MT7623_PIN_27_EINT5_FUNC_IDDIG_P1 (MTK_PIN_NO(27) | 2)
#define MT7623_PIN_27_EINT5_FUNC_KROW2 (MTK_PIN_NO(27) | 3)
#define MT7623_PIN_27_EINT5_FUNC_CONN_MCU_TDI (MTK_PIN_NO(27) | 4)
#define MT7623_PIN_27_EINT5_FUNC_PCIE1_WAKE_N (MTK_PIN_NO(27) | 6)
#define MT7623_PIN_28_EINT6_FUNC_GPIO28 (MTK_PIN_NO(28) | 0)
#define MT7623_PIN_28_EINT6_FUNC_DRV_VBUS (MTK_PIN_NO(28) | 1)
#define MT7623_PIN_28_EINT6_FUNC_KROW1 (MTK_PIN_NO(28) | 3)
#define MT7623_PIN_28_EINT6_FUNC_CONN_MCU_TRST_B (MTK_PIN_NO(28) | 4)
#define MT7623_PIN_28_EINT6_FUNC_PCIE0_WAKE_N (MTK_PIN_NO(28) | 6)
#define MT7623_PIN_29_EINT7_FUNC_GPIO29 (MTK_PIN_NO(29) | 0)
#define MT7623_PIN_29_EINT7_FUNC_IDDIG (MTK_PIN_NO(29) | 1)
#define MT7623_PIN_29_EINT7_FUNC_MSDC1_WP (MTK_PIN_NO(29) | 2)
#define MT7623_PIN_29_EINT7_FUNC_KROW0 (MTK_PIN_NO(29) | 3)
#define MT7623_PIN_29_EINT7_FUNC_CONN_MCU_TMS (MTK_PIN_NO(29) | 4)
#define MT7623_PIN_29_EINT7_FUNC_CONN_MCU_AICE_JMSC (MTK_PIN_NO(29) | 5)
#define MT7623_PIN_29_EINT7_FUNC_PCIE2_PERST_N (MTK_PIN_NO(29) | 6)
#define MT7623_PIN_33_I2S1_DATA_FUNC_GPIO33 (MTK_PIN_NO(33) | 0)
#define MT7623_PIN_33_I2S1_DATA_FUNC_I2S1_DATA (MTK_PIN_NO(33) | 1)
#define MT7623_PIN_33_I2S1_DATA_FUNC_I2S1_DATA_BYPS (MTK_PIN_NO(33) | 2)
#define MT7623_PIN_33_I2S1_DATA_FUNC_PCM_TX (MTK_PIN_NO(33) | 3)
#define MT7623_PIN_33_I2S1_DATA_FUNC_IMG_TEST_CK (MTK_PIN_NO(33) | 4)
#define MT7623_PIN_33_I2S1_DATA_FUNC_G1_RXD0 (MTK_PIN_NO(33) | 5)
#define MT7623_PIN_33_I2S1_DATA_FUNC_AP_PCM_TX (MTK_PIN_NO(33) | 6)
#define MT7623_PIN_34_I2S1_DATA_IN_FUNC_GPIO34 (MTK_PIN_NO(34) | 0)
#define MT7623_PIN_34_I2S1_DATA_IN_FUNC_I2S1_DATA_IN (MTK_PIN_NO(34) | 1)
#define MT7623_PIN_34_I2S1_DATA_IN_FUNC_PCM_RX (MTK_PIN_NO(34) | 3)
#define MT7623_PIN_34_I2S1_DATA_IN_FUNC_VDEC_TEST_CK (MTK_PIN_NO(34) | 4)
#define MT7623_PIN_34_I2S1_DATA_IN_FUNC_G1_RXD1 (MTK_PIN_NO(34) | 5)
#define MT7623_PIN_34_I2S1_DATA_IN_FUNC_AP_PCM_RX (MTK_PIN_NO(34) | 6)
#define MT7623_PIN_35_I2S1_BCK_FUNC_GPIO35 (MTK_PIN_NO(35) | 0)
#define MT7623_PIN_35_I2S1_BCK_FUNC_I2S1_BCK (MTK_PIN_NO(35) | 1)
#define MT7623_PIN_35_I2S1_BCK_FUNC_PCM_CLK0 (MTK_PIN_NO(35) | 3)
#define MT7623_PIN_35_I2S1_BCK_FUNC_G1_RXD2 (MTK_PIN_NO(35) | 5)
#define MT7623_PIN_35_I2S1_BCK_FUNC_AP_PCM_CLKO (MTK_PIN_NO(35) | 6)
#define MT7623_PIN_36_I2S1_LRCK_FUNC_GPIO36 (MTK_PIN_NO(36) | 0)
#define MT7623_PIN_36_I2S1_LRCK_FUNC_I2S1_LRCK (MTK_PIN_NO(36) | 1)
#define MT7623_PIN_36_I2S1_LRCK_FUNC_PCM_SYNC (MTK_PIN_NO(36) | 3)
#define MT7623_PIN_36_I2S1_LRCK_FUNC_G1_RXD3 (MTK_PIN_NO(36) | 5)
#define MT7623_PIN_36_I2S1_LRCK_FUNC_AP_PCM_SYNC (MTK_PIN_NO(36) | 6)
#define MT7623_PIN_37_I2S1_MCLK_FUNC_GPIO37 (MTK_PIN_NO(37) | 0)
#define MT7623_PIN_37_I2S1_MCLK_FUNC_I2S1_MCLK (MTK_PIN_NO(37) | 1)
#define MT7623_PIN_37_I2S1_MCLK_FUNC_G1_RXDV (MTK_PIN_NO(37) | 5)
#define MT7623_PIN_39_JTMS_FUNC_GPIO39 (MTK_PIN_NO(39) | 0)
#define MT7623_PIN_39_JTMS_FUNC_JTMS (MTK_PIN_NO(39) | 1)
#define MT7623_PIN_39_JTMS_FUNC_CONN_MCU_TMS (MTK_PIN_NO(39) | 2)
#define MT7623_PIN_39_JTMS_FUNC_CONN_MCU_AICE_JMSC (MTK_PIN_NO(39) | 3)
#define MT7623_PIN_39_JTMS_FUNC_DFD_TMS_XI (MTK_PIN_NO(39) | 4)
#define MT7623_PIN_40_JTCK_FUNC_GPIO40 (MTK_PIN_NO(40) | 0)
#define MT7623_PIN_40_JTCK_FUNC_JTCK (MTK_PIN_NO(40) | 1)
#define MT7623_PIN_40_JTCK_FUNC_CONN_MCU_TCK1 (MTK_PIN_NO(40) | 2)
#define MT7623_PIN_40_JTCK_FUNC_CONN_MCU_AICE_JCKC (MTK_PIN_NO(40) | 3)
#define MT7623_PIN_40_JTCK_FUNC_DFD_TCK_XI (MTK_PIN_NO(40) | 4)
#define MT7623_PIN_41_JTDI_FUNC_GPIO41 (MTK_PIN_NO(41) | 0)
#define MT7623_PIN_41_JTDI_FUNC_JTDI (MTK_PIN_NO(41) | 1)
#define MT7623_PIN_41_JTDI_FUNC_CONN_MCU_TDI (MTK_PIN_NO(41) | 2)
#define MT7623_PIN_41_JTDI_FUNC_DFD_TDI_XI (MTK_PIN_NO(41) | 4)
#define MT7623_PIN_42_JTDO_FUNC_GPIO42 (MTK_PIN_NO(42) | 0)
#define MT7623_PIN_42_JTDO_FUNC_JTDO (MTK_PIN_NO(42) | 1)
#define MT7623_PIN_42_JTDO_FUNC_CONN_MCU_TDO (MTK_PIN_NO(42) | 2)
#define MT7623_PIN_42_JTDO_FUNC_DFD_TDO (MTK_PIN_NO(42) | 4)
#define MT7623_PIN_43_NCLE_FUNC_GPIO43 (MTK_PIN_NO(43) | 0)
#define MT7623_PIN_43_NCLE_FUNC_NCLE (MTK_PIN_NO(43) | 1)
#define MT7623_PIN_43_NCLE_FUNC_EXT_XCS2 (MTK_PIN_NO(43) | 2)
#define MT7623_PIN_44_NCEB1_FUNC_GPIO44 (MTK_PIN_NO(44) | 0)
#define MT7623_PIN_44_NCEB1_FUNC_NCEB1 (MTK_PIN_NO(44) | 1)
#define MT7623_PIN_44_NCEB1_FUNC_IDDIG (MTK_PIN_NO(44) | 2)
#define MT7623_PIN_45_NCEB0_FUNC_GPIO45 (MTK_PIN_NO(45) | 0)
#define MT7623_PIN_45_NCEB0_FUNC_NCEB0 (MTK_PIN_NO(45) | 1)
#define MT7623_PIN_45_NCEB0_FUNC_DRV_VBUS (MTK_PIN_NO(45) | 2)
#define MT7623_PIN_46_IR_FUNC_GPIO46 (MTK_PIN_NO(46) | 0)
#define MT7623_PIN_46_IR_FUNC_IR (MTK_PIN_NO(46) | 1)
#define MT7623_PIN_47_NREB_FUNC_GPIO47 (MTK_PIN_NO(47) | 0)
#define MT7623_PIN_47_NREB_FUNC_NREB (MTK_PIN_NO(47) | 1)
#define MT7623_PIN_47_NREB_FUNC_IDDIG_P1 (MTK_PIN_NO(47) | 2)
#define MT7623_PIN_48_NRNB_FUNC_GPIO48 (MTK_PIN_NO(48) | 0)
#define MT7623_PIN_48_NRNB_FUNC_NRNB (MTK_PIN_NO(48) | 1)
#define MT7623_PIN_48_NRNB_FUNC_DRV_VBUS_P1 (MTK_PIN_NO(48) | 2)
#define MT7623_PIN_49_I2S0_DATA_FUNC_GPIO49 (MTK_PIN_NO(49) | 0)
#define MT7623_PIN_49_I2S0_DATA_FUNC_I2S0_DATA (MTK_PIN_NO(49) | 1)
#define MT7623_PIN_49_I2S0_DATA_FUNC_I2S0_DATA_BYPS (MTK_PIN_NO(49) | 2)
#define MT7623_PIN_49_I2S0_DATA_FUNC_PCM_TX (MTK_PIN_NO(49) | 3)
#define MT7623_PIN_49_I2S0_DATA_FUNC_AP_I2S_DO (MTK_PIN_NO(49) | 6)
#define MT7623_PIN_53_SPI0_CSN_FUNC_GPIO53 (MTK_PIN_NO(53) | 0)
#define MT7623_PIN_53_SPI0_CSN_FUNC_SPI0_CS (MTK_PIN_NO(53) | 1)
#define MT7623_PIN_53_SPI0_CSN_FUNC_SPDIF (MTK_PIN_NO(53) | 3)
#define MT7623_PIN_53_SPI0_CSN_FUNC_ADC_CK (MTK_PIN_NO(53) | 4)
#define MT7623_PIN_53_SPI0_CSN_FUNC_PWM1 (MTK_PIN_NO(53) | 5)
#define MT7623_PIN_54_SPI0_CK_FUNC_GPIO54 (MTK_PIN_NO(54) | 0)
#define MT7623_PIN_54_SPI0_CK_FUNC_SPI0_CK (MTK_PIN_NO(54) | 1)
#define MT7623_PIN_54_SPI0_CK_FUNC_SPDIF_IN1 (MTK_PIN_NO(54) | 3)
#define MT7623_PIN_54_SPI0_CK_FUNC_ADC_DAT_IN (MTK_PIN_NO(54) | 4)
#define MT7623_PIN_55_SPI0_MI_FUNC_GPIO55 (MTK_PIN_NO(55) | 0)
#define MT7623_PIN_55_SPI0_MI_FUNC_SPI0_MI (MTK_PIN_NO(55) | 1)
#define MT7623_PIN_55_SPI0_MI_FUNC_SPI0_MO (MTK_PIN_NO(55) | 2)
#define MT7623_PIN_55_SPI0_MI_FUNC_MSDC1_WP (MTK_PIN_NO(55) | 3)
#define MT7623_PIN_55_SPI0_MI_FUNC_ADC_WS (MTK_PIN_NO(55) | 4)
#define MT7623_PIN_55_SPI0_MI_FUNC_PWM2 (MTK_PIN_NO(55) | 5)
#define MT7623_PIN_56_SPI0_MO_FUNC_GPIO56 (MTK_PIN_NO(56) | 0)
#define MT7623_PIN_56_SPI0_MO_FUNC_SPI0_MO (MTK_PIN_NO(56) | 1)
#define MT7623_PIN_56_SPI0_MO_FUNC_SPI0_MI (MTK_PIN_NO(56) | 2)
#define MT7623_PIN_56_SPI0_MO_FUNC_SPDIF_IN0 (MTK_PIN_NO(56) | 3)
#define MT7623_PIN_57_SDA1_FUNC_GPIO57 (MTK_PIN_NO(57) | 0)
#define MT7623_PIN_57_SDA1_FUNC_SDA1 (MTK_PIN_NO(57) | 1)
#define MT7623_PIN_58_SCL1_FUNC_GPIO58 (MTK_PIN_NO(58) | 0)
#define MT7623_PIN_58_SCL1_FUNC_SCL1 (MTK_PIN_NO(58) | 1)
#define MT7623_PIN_60_WB_RSTB_FUNC_GPIO60 (MTK_PIN_NO(60) | 0)
#define MT7623_PIN_60_WB_RSTB_FUNC_WB_RSTB (MTK_PIN_NO(60) | 1)
#define MT7623_PIN_61_GPIO61_FUNC_GPIO61 (MTK_PIN_NO(61) | 0)
#define MT7623_PIN_61_GPIO61_FUNC_TEST_FD (MTK_PIN_NO(61) | 1)
#define MT7623_PIN_62_GPIO62_FUNC_GPIO62 (MTK_PIN_NO(62) | 0)
#define MT7623_PIN_62_GPIO62_FUNC_TEST_FC (MTK_PIN_NO(62) | 1)
#define MT7623_PIN_63_WB_SCLK_FUNC_GPIO63 (MTK_PIN_NO(63) | 0)
#define MT7623_PIN_63_WB_SCLK_FUNC_WB_SCLK (MTK_PIN_NO(63) | 1)
#define MT7623_PIN_64_WB_SDATA_FUNC_GPIO64 (MTK_PIN_NO(64) | 0)
#define MT7623_PIN_64_WB_SDATA_FUNC_WB_SDATA (MTK_PIN_NO(64) | 1)
#define MT7623_PIN_65_WB_SEN_FUNC_GPIO65 (MTK_PIN_NO(65) | 0)
#define MT7623_PIN_65_WB_SEN_FUNC_WB_SEN (MTK_PIN_NO(65) | 1)
#define MT7623_PIN_66_WB_CRTL0_FUNC_GPIO66 (MTK_PIN_NO(66) | 0)
#define MT7623_PIN_66_WB_CRTL0_FUNC_WB_CRTL0 (MTK_PIN_NO(66) | 1)
#define MT7623_PIN_67_WB_CRTL1_FUNC_GPIO67 (MTK_PIN_NO(67) | 0)
#define MT7623_PIN_67_WB_CRTL1_FUNC_WB_CRTL1 (MTK_PIN_NO(67) | 1)
#define MT7623_PIN_68_WB_CRTL2_FUNC_GPIO68 (MTK_PIN_NO(68) | 0)
#define MT7623_PIN_68_WB_CRTL2_FUNC_WB_CRTL2 (MTK_PIN_NO(68) | 1)
#define MT7623_PIN_69_WB_CRTL3_FUNC_GPIO69 (MTK_PIN_NO(69) | 0)
#define MT7623_PIN_69_WB_CRTL3_FUNC_WB_CRTL3 (MTK_PIN_NO(69) | 1)
#define MT7623_PIN_70_WB_CRTL4_FUNC_GPIO70 (MTK_PIN_NO(70) | 0)
#define MT7623_PIN_70_WB_CRTL4_FUNC_WB_CRTL4 (MTK_PIN_NO(70) | 1)
#define MT7623_PIN_71_WB_CRTL5_FUNC_GPIO71 (MTK_PIN_NO(71) | 0)
#define MT7623_PIN_71_WB_CRTL5_FUNC_WB_CRTL5 (MTK_PIN_NO(71) | 1)
#define MT7623_PIN_72_I2S0_DATA_IN_FUNC_GPIO72 (MTK_PIN_NO(72) | 0)
#define MT7623_PIN_72_I2S0_DATA_IN_FUNC_I2S0_DATA_IN (MTK_PIN_NO(72) | 1)
#define MT7623_PIN_72_I2S0_DATA_IN_FUNC_PCM_RX (MTK_PIN_NO(72) | 3)
#define MT7623_PIN_72_I2S0_DATA_IN_FUNC_PWM0 (MTK_PIN_NO(72) | 4)
#define MT7623_PIN_72_I2S0_DATA_IN_FUNC_DISP_PWM (MTK_PIN_NO(72) | 5)
#define MT7623_PIN_72_I2S0_DATA_IN_FUNC_AP_I2S_DI (MTK_PIN_NO(72) | 6)
#define MT7623_PIN_73_I2S0_LRCK_FUNC_GPIO73 (MTK_PIN_NO(73) | 0)
#define MT7623_PIN_73_I2S0_LRCK_FUNC_I2S0_LRCK (MTK_PIN_NO(73) | 1)
#define MT7623_PIN_73_I2S0_LRCK_FUNC_PCM_SYNC (MTK_PIN_NO(73) | 3)
#define MT7623_PIN_73_I2S0_LRCK_FUNC_AP_I2S_LRCK (MTK_PIN_NO(73) | 6)
#define MT7623_PIN_74_I2S0_BCK_FUNC_GPIO74 (MTK_PIN_NO(74) | 0)
#define MT7623_PIN_74_I2S0_BCK_FUNC_I2S0_BCK (MTK_PIN_NO(74) | 1)
#define MT7623_PIN_74_I2S0_BCK_FUNC_PCM_CLK0 (MTK_PIN_NO(74) | 3)
#define MT7623_PIN_74_I2S0_BCK_FUNC_AP_I2S_BCK (MTK_PIN_NO(74) | 6)
#define MT7623_PIN_75_SDA0_FUNC_GPIO75 (MTK_PIN_NO(75) | 0)
#define MT7623_PIN_75_SDA0_FUNC_SDA0 (MTK_PIN_NO(75) | 1)
#define MT7623_PIN_76_SCL0_FUNC_GPIO76 (MTK_PIN_NO(76) | 0)
#define MT7623_PIN_76_SCL0_FUNC_SCL0 (MTK_PIN_NO(76) | 1)
#define MT7623_PIN_77_SDA2_FUNC_GPIO77 (MTK_PIN_NO(77) | 0)
#define MT7623_PIN_77_SDA2_FUNC_SDA2 (MTK_PIN_NO(77) | 1)
#define MT7623_PIN_78_SCL2_FUNC_GPIO78 (MTK_PIN_NO(78) | 0)
#define MT7623_PIN_78_SCL2_FUNC_SCL2 (MTK_PIN_NO(78) | 1)
#define MT7623_PIN_79_URXD0_FUNC_GPIO79 (MTK_PIN_NO(79) | 0)
#define MT7623_PIN_79_URXD0_FUNC_URXD0 (MTK_PIN_NO(79) | 1)
#define MT7623_PIN_79_URXD0_FUNC_UTXD0 (MTK_PIN_NO(79) | 2)
#define MT7623_PIN_80_UTXD0_FUNC_GPIO80 (MTK_PIN_NO(80) | 0)
#define MT7623_PIN_80_UTXD0_FUNC_UTXD0 (MTK_PIN_NO(80) | 1)
#define MT7623_PIN_80_UTXD0_FUNC_URXD0 (MTK_PIN_NO(80) | 2)
#define MT7623_PIN_81_URXD1_FUNC_GPIO81 (MTK_PIN_NO(81) | 0)
#define MT7623_PIN_81_URXD1_FUNC_URXD1 (MTK_PIN_NO(81) | 1)
#define MT7623_PIN_81_URXD1_FUNC_UTXD1 (MTK_PIN_NO(81) | 2)
#define MT7623_PIN_82_UTXD1_FUNC_GPIO82 (MTK_PIN_NO(82) | 0)
#define MT7623_PIN_82_UTXD1_FUNC_UTXD1 (MTK_PIN_NO(82) | 1)
#define MT7623_PIN_82_UTXD1_FUNC_URXD1 (MTK_PIN_NO(82) | 2)
#define MT7623_PIN_83_LCM_RST_FUNC_GPIO83 (MTK_PIN_NO(83) | 0)
#define MT7623_PIN_83_LCM_RST_FUNC_LCM_RST (MTK_PIN_NO(83) | 1)
#define MT7623_PIN_83_LCM_RST_FUNC_VDAC_CK_XI (MTK_PIN_NO(83) | 2)
#define MT7623_PIN_84_DSI_TE_FUNC_GPIO84 (MTK_PIN_NO(84) | 0)
#define MT7623_PIN_84_DSI_TE_FUNC_DSI_TE (MTK_PIN_NO(84) | 1)
#define MT7623_PIN_91_MIPI_TDN3_FUNC_GPIO91 (MTK_PIN_NO(91) | 0)
#define MT7623_PIN_91_MIPI_TDN3_FUNC_TDN3 (MTK_PIN_NO(91) | 1)
#define MT7623_PIN_92_MIPI_TDP3_FUNC_GPIO92 (MTK_PIN_NO(92) | 0)
#define MT7623_PIN_92_MIPI_TDP3_FUNC_TDP3 (MTK_PIN_NO(92) | 1)
#define MT7623_PIN_93_MIPI_TDN2_FUNC_GPIO93 (MTK_PIN_NO(93) | 0)
#define MT7623_PIN_93_MIPI_TDN2_FUNC_TDN2 (MTK_PIN_NO(93) | 1)
#define MT7623_PIN_94_MIPI_TDP2_FUNC_GPIO94 (MTK_PIN_NO(94) | 0)
#define MT7623_PIN_94_MIPI_TDP2_FUNC_TDP2 (MTK_PIN_NO(94) | 1)
#define MT7623_PIN_95_MIPI_TCN_FUNC_GPIO95 (MTK_PIN_NO(95) | 0)
#define MT7623_PIN_95_MIPI_TCN_FUNC_TCN (MTK_PIN_NO(95) | 1)
#define MT7623_PIN_96_MIPI_TCP_FUNC_GPIO96 (MTK_PIN_NO(96) | 0)
#define MT7623_PIN_96_MIPI_TCP_FUNC_TCP (MTK_PIN_NO(96) | 1)
#define MT7623_PIN_97_MIPI_TDN1_FUNC_GPIO97 (MTK_PIN_NO(97) | 0)
#define MT7623_PIN_97_MIPI_TDN1_FUNC_TDN1 (MTK_PIN_NO(97) | 1)
#define MT7623_PIN_98_MIPI_TDP1_FUNC_GPIO98 (MTK_PIN_NO(98) | 0)
#define MT7623_PIN_98_MIPI_TDP1_FUNC_TDP1 (MTK_PIN_NO(98) | 1)
#define MT7623_PIN_99_MIPI_TDN0_FUNC_GPIO99 (MTK_PIN_NO(99) | 0)
#define MT7623_PIN_99_MIPI_TDN0_FUNC_TDN0 (MTK_PIN_NO(99) | 1)
#define MT7623_PIN_100_MIPI_TDP0_FUNC_GPIO100 (MTK_PIN_NO(100) | 0)
#define MT7623_PIN_100_MIPI_TDP0_FUNC_TDP0 (MTK_PIN_NO(100) | 1)
#define MT7623_PIN_101_SPI2_CSN_FUNC_GPIO101 (MTK_PIN_NO(101) | 0)
#define MT7623_PIN_101_SPI2_CSN_FUNC_SPI2_CS (MTK_PIN_NO(101) | 1)
#define MT7623_PIN_101_SPI2_CSN_FUNC_SCL3 (MTK_PIN_NO(101) | 3)
#define MT7623_PIN_101_SPI2_CSN_FUNC_KROW0 (MTK_PIN_NO(101) | 4)
#define MT7623_PIN_102_SPI2_MI_FUNC_GPIO102 (MTK_PIN_NO(102) | 0)
#define MT7623_PIN_102_SPI2_MI_FUNC_SPI2_MI (MTK_PIN_NO(102) | 1)
#define MT7623_PIN_102_SPI2_MI_FUNC_SPI2_MO (MTK_PIN_NO(102) | 2)
#define MT7623_PIN_102_SPI2_MI_FUNC_SDA3 (MTK_PIN_NO(102) | 3)
#define MT7623_PIN_102_SPI2_MI_FUNC_KROW1 (MTK_PIN_NO(102) | 4)
#define MT7623_PIN_103_SPI2_MO_FUNC_GPIO103 (MTK_PIN_NO(103) | 0)
#define MT7623_PIN_103_SPI2_MO_FUNC_SPI2_MO (MTK_PIN_NO(103) | 1)
#define MT7623_PIN_103_SPI2_MO_FUNC_SPI2_MI (MTK_PIN_NO(103) | 2)
#define MT7623_PIN_103_SPI2_MO_FUNC_SCL3 (MTK_PIN_NO(103) | 3)
#define MT7623_PIN_103_SPI2_MO_FUNC_KROW2 (MTK_PIN_NO(103) | 4)
#define MT7623_PIN_104_SPI2_CK_FUNC_GPIO104 (MTK_PIN_NO(104) | 0)
#define MT7623_PIN_104_SPI2_CK_FUNC_SPI2_CK (MTK_PIN_NO(104) | 1)
#define MT7623_PIN_104_SPI2_CK_FUNC_SDA3 (MTK_PIN_NO(104) | 3)
#define MT7623_PIN_104_SPI2_CK_FUNC_KROW3 (MTK_PIN_NO(104) | 4)
#define MT7623_PIN_105_MSDC1_CMD_FUNC_GPIO105 (MTK_PIN_NO(105) | 0)
#define MT7623_PIN_105_MSDC1_CMD_FUNC_MSDC1_CMD (MTK_PIN_NO(105) | 1)
#define MT7623_PIN_105_MSDC1_CMD_FUNC_SDA1 (MTK_PIN_NO(105) | 3)
#define MT7623_PIN_105_MSDC1_CMD_FUNC_I2SOUT_BCK (MTK_PIN_NO(105) | 6)
#define MT7623_PIN_106_MSDC1_CLK_FUNC_GPIO106 (MTK_PIN_NO(106) | 0)
#define MT7623_PIN_106_MSDC1_CLK_FUNC_MSDC1_CLK (MTK_PIN_NO(106) | 1)
#define MT7623_PIN_106_MSDC1_CLK_FUNC_SCL1 (MTK_PIN_NO(106) | 3)
#define MT7623_PIN_106_MSDC1_CLK_FUNC_I2SOUT_LRCK (MTK_PIN_NO(106) | 6)
#define MT7623_PIN_107_MSDC1_DAT0_FUNC_GPIO107 (MTK_PIN_NO(107) | 0)
#define MT7623_PIN_107_MSDC1_DAT0_FUNC_MSDC1_DAT0 (MTK_PIN_NO(107) | 1)
#define MT7623_PIN_107_MSDC1_DAT0_FUNC_UTXD0 (MTK_PIN_NO(107) | 5)
#define MT7623_PIN_107_MSDC1_DAT0_FUNC_I2SOUT_DATA_OUT (MTK_PIN_NO(107) | 6)
#define MT7623_PIN_108_MSDC1_DAT1_FUNC_GPIO108 (MTK_PIN_NO(108) | 0)
#define MT7623_PIN_108_MSDC1_DAT1_FUNC_MSDC1_DAT1 (MTK_PIN_NO(108) | 1)
#define MT7623_PIN_108_MSDC1_DAT1_FUNC_PWM0 (MTK_PIN_NO(108) | 3)
#define MT7623_PIN_108_MSDC1_DAT1_FUNC_URXD0 (MTK_PIN_NO(108) | 5)
#define MT7623_PIN_108_MSDC1_DAT1_FUNC_PWM1 (MTK_PIN_NO(108) | 6)
#define MT7623_PIN_109_MSDC1_DAT2_FUNC_GPIO109 (MTK_PIN_NO(109) | 0)
#define MT7623_PIN_109_MSDC1_DAT2_FUNC_MSDC1_DAT2 (MTK_PIN_NO(109) | 1)
#define MT7623_PIN_109_MSDC1_DAT2_FUNC_SDA2 (MTK_PIN_NO(109) | 3)
#define MT7623_PIN_109_MSDC1_DAT2_FUNC_UTXD1 (MTK_PIN_NO(109) | 5)
#define MT7623_PIN_109_MSDC1_DAT2_FUNC_PWM2 (MTK_PIN_NO(109) | 6)
#define MT7623_PIN_110_MSDC1_DAT3_FUNC_GPIO110 (MTK_PIN_NO(110) | 0)
#define MT7623_PIN_110_MSDC1_DAT3_FUNC_MSDC1_DAT3 (MTK_PIN_NO(110) | 1)
#define MT7623_PIN_110_MSDC1_DAT3_FUNC_SCL2 (MTK_PIN_NO(110) | 3)
#define MT7623_PIN_110_MSDC1_DAT3_FUNC_URXD1 (MTK_PIN_NO(110) | 5)
#define MT7623_PIN_110_MSDC1_DAT3_FUNC_PWM3 (MTK_PIN_NO(110) | 6)
#define MT7623_PIN_111_MSDC0_DAT7_FUNC_GPIO111 (MTK_PIN_NO(111) | 0)
#define MT7623_PIN_111_MSDC0_DAT7_FUNC_MSDC0_DAT7 (MTK_PIN_NO(111) | 1)
#define MT7623_PIN_111_MSDC0_DAT7_FUNC_NLD7 (MTK_PIN_NO(111) | 4)
#define MT7623_PIN_112_MSDC0_DAT6_FUNC_GPIO112 (MTK_PIN_NO(112) | 0)
#define MT7623_PIN_112_MSDC0_DAT6_FUNC_MSDC0_DAT6 (MTK_PIN_NO(112) | 1)
#define MT7623_PIN_112_MSDC0_DAT6_FUNC_NLD6 (MTK_PIN_NO(112) | 4)
#define MT7623_PIN_113_MSDC0_DAT5_FUNC_GPIO113 (MTK_PIN_NO(113) | 0)
#define MT7623_PIN_113_MSDC0_DAT5_FUNC_MSDC0_DAT5 (MTK_PIN_NO(113) | 1)
#define MT7623_PIN_113_MSDC0_DAT5_FUNC_NLD5 (MTK_PIN_NO(113) | 4)
#define MT7623_PIN_114_MSDC0_DAT4_FUNC_GPIO114 (MTK_PIN_NO(114) | 0)
#define MT7623_PIN_114_MSDC0_DAT4_FUNC_MSDC0_DAT4 (MTK_PIN_NO(114) | 1)
#define MT7623_PIN_114_MSDC0_DAT4_FUNC_NLD4 (MTK_PIN_NO(114) | 4)
#define MT7623_PIN_115_MSDC0_RSTB_FUNC_GPIO115 (MTK_PIN_NO(115) | 0)
#define MT7623_PIN_115_MSDC0_RSTB_FUNC_MSDC0_RSTB (MTK_PIN_NO(115) | 1)
#define MT7623_PIN_115_MSDC0_RSTB_FUNC_NLD8 (MTK_PIN_NO(115) | 4)
#define MT7623_PIN_116_MSDC0_CMD_FUNC_GPIO116 (MTK_PIN_NO(116) | 0)
#define MT7623_PIN_116_MSDC0_CMD_FUNC_MSDC0_CMD (MTK_PIN_NO(116) | 1)
#define MT7623_PIN_116_MSDC0_CMD_FUNC_NALE (MTK_PIN_NO(116) | 4)
#define MT7623_PIN_117_MSDC0_CLK_FUNC_GPIO117 (MTK_PIN_NO(117) | 0)
#define MT7623_PIN_117_MSDC0_CLK_FUNC_MSDC0_CLK (MTK_PIN_NO(117) | 1)
#define MT7623_PIN_117_MSDC0_CLK_FUNC_NWEB (MTK_PIN_NO(117) | 4)
#define MT7623_PIN_118_MSDC0_DAT3_FUNC_GPIO118 (MTK_PIN_NO(118) | 0)
#define MT7623_PIN_118_MSDC0_DAT3_FUNC_MSDC0_DAT3 (MTK_PIN_NO(118) | 1)
#define MT7623_PIN_118_MSDC0_DAT3_FUNC_NLD3 (MTK_PIN_NO(118) | 4)
#define MT7623_PIN_119_MSDC0_DAT2_FUNC_GPIO119 (MTK_PIN_NO(119) | 0)
#define MT7623_PIN_119_MSDC0_DAT2_FUNC_MSDC0_DAT2 (MTK_PIN_NO(119) | 1)
#define MT7623_PIN_119_MSDC0_DAT2_FUNC_NLD2 (MTK_PIN_NO(119) | 4)
#define MT7623_PIN_120_MSDC0_DAT1_FUNC_GPIO120 (MTK_PIN_NO(120) | 0)
#define MT7623_PIN_120_MSDC0_DAT1_FUNC_MSDC0_DAT1 (MTK_PIN_NO(120) | 1)
#define MT7623_PIN_120_MSDC0_DAT1_FUNC_NLD1 (MTK_PIN_NO(120) | 4)
#define MT7623_PIN_121_MSDC0_DAT0_FUNC_GPIO121 (MTK_PIN_NO(121) | 0)
#define MT7623_PIN_121_MSDC0_DAT0_FUNC_MSDC0_DAT0 (MTK_PIN_NO(121) | 1)
#define MT7623_PIN_121_MSDC0_DAT0_FUNC_NLD0 (MTK_PIN_NO(121) | 4)
#define MT7623_PIN_121_MSDC0_DAT0_FUNC_WATCHDOG (MTK_PIN_NO(121) | 5)
#define MT7623_PIN_122_GPIO122_FUNC_GPIO122 (MTK_PIN_NO(122) | 0)
#define MT7623_PIN_122_GPIO122_FUNC_CEC (MTK_PIN_NO(122) | 1)
#define MT7623_PIN_122_GPIO122_FUNC_SDA2 (MTK_PIN_NO(122) | 4)
#define MT7623_PIN_122_GPIO122_FUNC_URXD0 (MTK_PIN_NO(122) | 5)
#define MT7623_PIN_123_HTPLG_FUNC_GPIO123 (MTK_PIN_NO(123) | 0)
#define MT7623_PIN_123_HTPLG_FUNC_HTPLG (MTK_PIN_NO(123) | 1)
#define MT7623_PIN_123_HTPLG_FUNC_SCL2 (MTK_PIN_NO(123) | 4)
#define MT7623_PIN_123_HTPLG_FUNC_UTXD0 (MTK_PIN_NO(123) | 5)
#define MT7623_PIN_124_GPIO124_FUNC_GPIO124 (MTK_PIN_NO(124) | 0)
#define MT7623_PIN_124_GPIO124_FUNC_HDMISCK (MTK_PIN_NO(124) | 1)
#define MT7623_PIN_124_GPIO124_FUNC_SDA1 (MTK_PIN_NO(124) | 4)
#define MT7623_PIN_124_GPIO124_FUNC_PWM3 (MTK_PIN_NO(124) | 5)
#define MT7623_PIN_125_GPIO125_FUNC_GPIO125 (MTK_PIN_NO(125) | 0)
#define MT7623_PIN_125_GPIO125_FUNC_HDMISD (MTK_PIN_NO(125) | 1)
#define MT7623_PIN_125_GPIO125_FUNC_SCL1 (MTK_PIN_NO(125) | 4)
#define MT7623_PIN_125_GPIO125_FUNC_PWM4 (MTK_PIN_NO(125) | 5)
#define MT7623_PIN_126_I2S0_MCLK_FUNC_GPIO126 (MTK_PIN_NO(126) | 0)
#define MT7623_PIN_126_I2S0_MCLK_FUNC_I2S0_MCLK (MTK_PIN_NO(126) | 1)
#define MT7623_PIN_126_I2S0_MCLK_FUNC_AP_I2S_MCLK (MTK_PIN_NO(126) | 6)
#define MT7623_PIN_199_SPI1_CK_FUNC_GPIO199 (MTK_PIN_NO(199) | 0)
#define MT7623_PIN_199_SPI1_CK_FUNC_SPI1_CK (MTK_PIN_NO(199) | 1)
#define MT7623_PIN_200_URXD2_FUNC_GPIO200 (MTK_PIN_NO(200) | 0)
#define MT7623_PIN_200_URXD2_FUNC_URXD2 (MTK_PIN_NO(200) | 6)
#define MT7623_PIN_201_UTXD2_FUNC_GPIO201 (MTK_PIN_NO(201) | 0)
#define MT7623_PIN_201_UTXD2_FUNC_UTXD2 (MTK_PIN_NO(201) | 6)
#define MT7623_PIN_203_PWM0_FUNC_GPIO203 (MTK_PIN_NO(203) | 0)
#define MT7623_PIN_203_PWM0_FUNC_PWM0 (MTK_PIN_NO(203) | 1)
#define MT7623_PIN_203_PWM0_FUNC_DISP_PWM (MTK_PIN_NO(203) | 2)
#define MT7623_PIN_204_PWM1_FUNC_GPIO204 (MTK_PIN_NO(204) | 0)
#define MT7623_PIN_204_PWM1_FUNC_PWM1 (MTK_PIN_NO(204) | 1)
#define MT7623_PIN_205_PWM2_FUNC_GPIO205 (MTK_PIN_NO(205) | 0)
#define MT7623_PIN_205_PWM2_FUNC_PWM2 (MTK_PIN_NO(205) | 1)
#define MT7623_PIN_206_PWM3_FUNC_GPIO206 (MTK_PIN_NO(206) | 0)
#define MT7623_PIN_206_PWM3_FUNC_PWM3 (MTK_PIN_NO(206) | 1)
#define MT7623_PIN_207_PWM4_FUNC_GPIO207 (MTK_PIN_NO(207) | 0)
#define MT7623_PIN_207_PWM4_FUNC_PWM4 (MTK_PIN_NO(207) | 1)
#define MT7623_PIN_208_AUD_EXT_CK1_FUNC_GPIO208 (MTK_PIN_NO(208) | 0)
#define MT7623_PIN_208_AUD_EXT_CK1_FUNC_AUD_EXT_CK1 (MTK_PIN_NO(208) | 1)
#define MT7623_PIN_208_AUD_EXT_CK1_FUNC_PWM0 (MTK_PIN_NO(208) | 2)
#define MT7623_PIN_208_AUD_EXT_CK1_FUNC_PCIE0_PERST_N (MTK_PIN_NO(208) | 3)
#define MT7623_PIN_208_AUD_EXT_CK1_FUNC_DISP_PWM (MTK_PIN_NO(208) | 5)
#define MT7623_PIN_209_AUD_EXT_CK2_FUNC_GPIO209 (MTK_PIN_NO(209) | 0)
#define MT7623_PIN_209_AUD_EXT_CK2_FUNC_AUD_EXT_CK2 (MTK_PIN_NO(209) | 1)
#define MT7623_PIN_209_AUD_EXT_CK2_FUNC_MSDC1_WP (MTK_PIN_NO(209) | 2)
#define MT7623_PIN_209_AUD_EXT_CK2_FUNC_PCIE1_PERST_N (MTK_PIN_NO(209) | 3)
#define MT7623_PIN_209_AUD_EXT_CK2_FUNC_PWM1 (MTK_PIN_NO(209) | 5)
#define MT7623_PIN_236_EXT_SDIO3_FUNC_GPIO236 (MTK_PIN_NO(236) | 0)
#define MT7623_PIN_236_EXT_SDIO3_FUNC_EXT_SDIO3 (MTK_PIN_NO(236) | 1)
#define MT7623_PIN_236_EXT_SDIO3_FUNC_IDDIG (MTK_PIN_NO(236) | 2)
#define MT7623_PIN_237_EXT_SDIO2_FUNC_GPIO237 (MTK_PIN_NO(237) | 0)
#define MT7623_PIN_237_EXT_SDIO2_FUNC_EXT_SDIO2 (MTK_PIN_NO(237) | 1)
#define MT7623_PIN_237_EXT_SDIO2_FUNC_DRV_VBUS (MTK_PIN_NO(237) | 2)
#define MT7623_PIN_238_EXT_SDIO1_FUNC_GPIO238 (MTK_PIN_NO(238) | 0)
#define MT7623_PIN_238_EXT_SDIO1_FUNC_EXT_SDIO1 (MTK_PIN_NO(238) | 1)
#define MT7623_PIN_239_EXT_SDIO0_FUNC_GPIO239 (MTK_PIN_NO(239) | 0)
#define MT7623_PIN_239_EXT_SDIO0_FUNC_EXT_SDIO0 (MTK_PIN_NO(239) | 1)
#define MT7623_PIN_240_EXT_XCS_FUNC_GPIO240 (MTK_PIN_NO(240) | 0)
#define MT7623_PIN_240_EXT_XCS_FUNC_EXT_XCS (MTK_PIN_NO(240) | 1)
#define MT7623_PIN_241_EXT_SCK_FUNC_GPIO241 (MTK_PIN_NO(241) | 0)
#define MT7623_PIN_241_EXT_SCK_FUNC_EXT_SCK (MTK_PIN_NO(241) | 1)
#define MT7623_PIN_242_URTS2_FUNC_GPIO242 (MTK_PIN_NO(242) | 0)
#define MT7623_PIN_242_URTS2_FUNC_URTS2 (MTK_PIN_NO(242) | 1)
#define MT7623_PIN_242_URTS2_FUNC_UTXD3 (MTK_PIN_NO(242) | 2)
#define MT7623_PIN_242_URTS2_FUNC_URXD3 (MTK_PIN_NO(242) | 3)
#define MT7623_PIN_242_URTS2_FUNC_SCL1 (MTK_PIN_NO(242) | 4)
#define MT7623_PIN_243_UCTS2_FUNC_GPIO243 (MTK_PIN_NO(243) | 0)
#define MT7623_PIN_243_UCTS2_FUNC_UCTS2 (MTK_PIN_NO(243) | 1)
#define MT7623_PIN_243_UCTS2_FUNC_URXD3 (MTK_PIN_NO(243) | 2)
#define MT7623_PIN_243_UCTS2_FUNC_UTXD3 (MTK_PIN_NO(243) | 3)
#define MT7623_PIN_243_UCTS2_FUNC_SDA1 (MTK_PIN_NO(243) | 4)
#define MT7623_PIN_250_GPIO250_FUNC_GPIO250 (MTK_PIN_NO(250) | 0)
#define MT7623_PIN_250_GPIO250_FUNC_TEST_MD7 (MTK_PIN_NO(250) | 1)
#define MT7623_PIN_250_GPIO250_FUNC_PCIE0_CLKREQ_N (MTK_PIN_NO(250) | 6)
#define MT7623_PIN_251_GPIO251_FUNC_GPIO251 (MTK_PIN_NO(251) | 0)
#define MT7623_PIN_251_GPIO251_FUNC_TEST_MD6 (MTK_PIN_NO(251) | 1)
#define MT7623_PIN_251_GPIO251_FUNC_PCIE0_WAKE_N (MTK_PIN_NO(251) | 6)
#define MT7623_PIN_252_GPIO252_FUNC_GPIO252 (MTK_PIN_NO(252) | 0)
#define MT7623_PIN_252_GPIO252_FUNC_TEST_MD5 (MTK_PIN_NO(252) | 1)
#define MT7623_PIN_252_GPIO252_FUNC_PCIE1_CLKREQ_N (MTK_PIN_NO(252) | 6)
#define MT7623_PIN_253_GPIO253_FUNC_GPIO253 (MTK_PIN_NO(253) | 0)
#define MT7623_PIN_253_GPIO253_FUNC_TEST_MD4 (MTK_PIN_NO(253) | 1)
#define MT7623_PIN_253_GPIO253_FUNC_PCIE1_WAKE_N (MTK_PIN_NO(253) | 6)
#define MT7623_PIN_254_GPIO254_FUNC_GPIO254 (MTK_PIN_NO(254) | 0)
#define MT7623_PIN_254_GPIO254_FUNC_TEST_MD3 (MTK_PIN_NO(254) | 1)
#define MT7623_PIN_254_GPIO254_FUNC_PCIE2_CLKREQ_N (MTK_PIN_NO(254) | 6)
#define MT7623_PIN_255_GPIO255_FUNC_GPIO255 (MTK_PIN_NO(255) | 0)
#define MT7623_PIN_255_GPIO255_FUNC_TEST_MD2 (MTK_PIN_NO(255) | 1)
#define MT7623_PIN_255_GPIO255_FUNC_PCIE2_WAKE_N (MTK_PIN_NO(255) | 6)
#define MT7623_PIN_256_GPIO256_FUNC_GPIO256 (MTK_PIN_NO(256) | 0)
#define MT7623_PIN_256_GPIO256_FUNC_TEST_MD1 (MTK_PIN_NO(256) | 1)
#define MT7623_PIN_257_GPIO257_FUNC_GPIO257 (MTK_PIN_NO(257) | 0)
#define MT7623_PIN_257_GPIO257_FUNC_TEST_MD0 (MTK_PIN_NO(257) | 1)
#define MT7623_PIN_261_MSDC1_INS_FUNC_GPIO261 (MTK_PIN_NO(261) | 0)
#define MT7623_PIN_261_MSDC1_INS_FUNC_MSDC1_INS (MTK_PIN_NO(261) | 1)
#define MT7623_PIN_262_G2_TXEN_FUNC_GPIO262 (MTK_PIN_NO(262) | 0)
#define MT7623_PIN_262_G2_TXEN_FUNC_G2_TXEN (MTK_PIN_NO(262) | 1)
#define MT7623_PIN_263_G2_TXD3_FUNC_GPIO263 (MTK_PIN_NO(263) | 0)
#define MT7623_PIN_263_G2_TXD3_FUNC_G2_TXD3 (MTK_PIN_NO(263) | 1)
#define MT7623_PIN_264_G2_TXD2_FUNC_GPIO264 (MTK_PIN_NO(264) | 0)
#define MT7623_PIN_264_G2_TXD2_FUNC_G2_TXD2 (MTK_PIN_NO(264) | 1)
#define MT7623_PIN_265_G2_TXD1_FUNC_GPIO265 (MTK_PIN_NO(265) | 0)
#define MT7623_PIN_265_G2_TXD1_FUNC_G2_TXD1 (MTK_PIN_NO(265) | 1)
#define MT7623_PIN_266_G2_TXD0_FUNC_GPIO266 (MTK_PIN_NO(266) | 0)
#define MT7623_PIN_266_G2_TXD0_FUNC_G2_TXD0 (MTK_PIN_NO(266) | 1)
#define MT7623_PIN_267_G2_TXCLK_FUNC_GPIO267 (MTK_PIN_NO(267) | 0)
#define MT7623_PIN_267_G2_TXCLK_FUNC_G2_TXC (MTK_PIN_NO(267) | 1)
#define MT7623_PIN_268_G2_RXCLK_FUNC_GPIO268 (MTK_PIN_NO(268) | 0)
#define MT7623_PIN_268_G2_RXCLK_FUNC_G2_RXC (MTK_PIN_NO(268) | 1)
#define MT7623_PIN_269_G2_RXD0_FUNC_GPIO269 (MTK_PIN_NO(269) | 0)
#define MT7623_PIN_269_G2_RXD0_FUNC_G2_RXD0 (MTK_PIN_NO(269) | 1)
#define MT7623_PIN_270_G2_RXD1_FUNC_GPIO270 (MTK_PIN_NO(270) | 0)
#define MT7623_PIN_270_G2_RXD1_FUNC_G2_RXD1 (MTK_PIN_NO(270) | 1)
#define MT7623_PIN_271_G2_RXD2_FUNC_GPIO271 (MTK_PIN_NO(271) | 0)
#define MT7623_PIN_271_G2_RXD2_FUNC_G2_RXD2 (MTK_PIN_NO(271) | 1)
#define MT7623_PIN_272_G2_RXD3_FUNC_GPIO272 (MTK_PIN_NO(272) | 0)
#define MT7623_PIN_272_G2_RXD3_FUNC_G2_RXD3 (MTK_PIN_NO(272) | 1)
#define MT7623_PIN_274_G2_RXDV_FUNC_GPIO274 (MTK_PIN_NO(274) | 0)
#define MT7623_PIN_274_G2_RXDV_FUNC_G2_RXDV (MTK_PIN_NO(274) | 1)
#define MT7623_PIN_275_G2_MDC_FUNC_GPIO275 (MTK_PIN_NO(275) | 0)
#define MT7623_PIN_275_G2_MDC_FUNC_MDC (MTK_PIN_NO(275) | 1)
#define MT7623_PIN_276_G2_MDIO_FUNC_GPIO276 (MTK_PIN_NO(276) | 0)
#define MT7623_PIN_276_G2_MDIO_FUNC_MDIO (MTK_PIN_NO(276) | 1)
#define MT7623_PIN_278_JTAG_RESET_FUNC_GPIO278 (MTK_PIN_NO(278) | 0)
#define MT7623_PIN_278_JTAG_RESET_FUNC_JTAG_RESET (MTK_PIN_NO(278) | 1)
#endif /* __DTS_MT7623_PINFUNC_H */
+36
View File
@@ -0,0 +1,36 @@
/*
* nomadik.h
*
* Copyright (C) ST-Ericsson SA 2013
* Author: Gabriel Fernandez <gabriel.fernandez@st.com> for ST-Ericsson.
* License terms: GNU General Public License (GPL), version 2
*/
#define INPUT_NOPULL 0
#define INPUT_PULLUP 1
#define INPUT_PULLDOWN 2
#define OUTPUT_LOW 0
#define OUTPUT_HIGH 1
#define DIR_OUTPUT 2
#define SLPM_DISABLED 0
#define SLPM_ENABLED 1
#define SLPM_INPUT_NOPULL 0
#define SLPM_INPUT_PULLUP 1
#define SLPM_INPUT_PULLDOWN 2
#define SLPM_DIR_INPUT 3
#define SLPM_OUTPUT_LOW 0
#define SLPM_OUTPUT_HIGH 1
#define SLPM_DIR_OUTPUT 2
#define SLPM_WAKEUP_DISABLE 0
#define SLPM_WAKEUP_ENABLE 1
#define GPIOMODE_DISABLED 0
#define GPIOMODE_ENABLED 1
#define SLPM_PDIS_DISABLED 0
#define SLPM_PDIS_ENABLED 1
+91
View File
@@ -0,0 +1,91 @@
/* SPDX-License-Identifier: GPL-2.0 */
/*
* This header provides constants for OMAP pinctrl bindings.
*
* Copyright (C) 2009 Nokia
* Copyright (C) 2009-2010 Texas Instruments
*/
#ifndef _DT_BINDINGS_PINCTRL_OMAP_H
#define _DT_BINDINGS_PINCTRL_OMAP_H
/* 34xx mux mode options for each pin. See TRM for options */
#define MUX_MODE0 0
#define MUX_MODE1 1
#define MUX_MODE2 2
#define MUX_MODE3 3
#define MUX_MODE4 4
#define MUX_MODE5 5
#define MUX_MODE6 6
#define MUX_MODE7 7
/* 24xx/34xx mux bit defines */
#define PULL_ENA (1 << 3)
#define PULL_UP (1 << 4)
#define ALTELECTRICALSEL (1 << 5)
/* omap3/4/5 specific mux bit defines */
#define INPUT_EN (1 << 8)
#define OFF_EN (1 << 9)
#define OFFOUT_EN (1 << 10)
#define OFFOUT_VAL (1 << 11)
#define OFF_PULL_EN (1 << 12)
#define OFF_PULL_UP (1 << 13)
#define WAKEUP_EN (1 << 14)
#define WAKEUP_EVENT (1 << 15)
/* Active pin states */
#define PIN_OUTPUT 0
#define PIN_OUTPUT_PULLUP (PIN_OUTPUT | PULL_ENA | PULL_UP)
#define PIN_OUTPUT_PULLDOWN (PIN_OUTPUT | PULL_ENA)
#define PIN_INPUT INPUT_EN
#define PIN_INPUT_PULLUP (PULL_ENA | INPUT_EN | PULL_UP)
#define PIN_INPUT_PULLDOWN (PULL_ENA | INPUT_EN)
/* Off mode states */
#define PIN_OFF_NONE 0
#define PIN_OFF_OUTPUT_HIGH (OFF_EN | OFFOUT_EN | OFFOUT_VAL)
#define PIN_OFF_OUTPUT_LOW (OFF_EN | OFFOUT_EN)
#define PIN_OFF_INPUT_PULLUP (OFF_EN | OFFOUT_EN | OFF_PULL_EN | OFF_PULL_UP)
#define PIN_OFF_INPUT_PULLDOWN (OFF_EN | OFFOUT_EN | OFF_PULL_EN)
#define PIN_OFF_WAKEUPENABLE WAKEUP_EN
/*
* Macros to allow using the absolute physical address instead of the
* padconf registers instead of the offset from padconf base.
*/
#define OMAP_IOPAD_OFFSET(pa, offset) (((pa) & 0xffff) - (offset))
#define OMAP2420_CORE_IOPAD(pa, val) OMAP_IOPAD_OFFSET((pa), 0x0030) (val)
#define OMAP2430_CORE_IOPAD(pa, val) OMAP_IOPAD_OFFSET((pa), 0x2030) (val)
#define OMAP3_CORE1_IOPAD(pa, val) OMAP_IOPAD_OFFSET((pa), 0x2030) (val)
#define OMAP3430_CORE2_IOPAD(pa, val) OMAP_IOPAD_OFFSET((pa), 0x25d8) (val)
#define OMAP3630_CORE2_IOPAD(pa, val) OMAP_IOPAD_OFFSET((pa), 0x25a0) (val)
#define OMAP3_WKUP_IOPAD(pa, val) OMAP_IOPAD_OFFSET((pa), 0x2a00) (val)
#define DM814X_IOPAD(pa, val) OMAP_IOPAD_OFFSET((pa), 0x0800) (val)
#define DM816X_IOPAD(pa, val) OMAP_IOPAD_OFFSET((pa), 0x0800) (val)
#define AM33XX_IOPAD(pa, val) OMAP_IOPAD_OFFSET((pa), 0x0800) (val)
/*
* Macros to allow using the offset from the padconf physical address
* instead of the offset from padconf base.
*/
#define OMAP_PADCONF_OFFSET(offset, base_offset) ((offset) - (base_offset))
#define OMAP4_IOPAD(offset, val) OMAP_PADCONF_OFFSET((offset), 0x0040) (val)
#define OMAP5_IOPAD(offset, val) OMAP_PADCONF_OFFSET((offset), 0x0040) (val)
/*
* Define some commonly used pins configured by the boards.
* Note that some boards use alternative pins, so check
* the schematics before using these.
*/
#define OMAP3_UART1_RX 0x152
#define OMAP3_UART2_RX 0x14a
#define OMAP3_UART3_RX 0x16e
#define OMAP4_UART2_RX 0xdc
#define OMAP4_UART3_RX 0x104
#define OMAP4_UART4_RX 0x11c
#endif
@@ -0,0 +1,8 @@
/* SPDX-License-Identifier: GPL-2.0 */
#ifndef _DT_BINDINGS_PINCTRL_TEGRA_XUSB_H
#define _DT_BINDINGS_PINCTRL_TEGRA_XUSB_H 1
#define TEGRA_XUSB_PADCTL_PCIE 0
#define TEGRA_XUSB_PADCTL_SATA 1
#endif /* _DT_BINDINGS_PINCTRL_TEGRA_XUSB_H */
@@ -0,0 +1,45 @@
/*
* This header provides constants for Tegra pinctrl bindings.
*
* Copyright (c) 2013, NVIDIA CORPORATION. All rights reserved.
*
* Author: Laxman Dewangan <ldewangan@nvidia.com>
*
* This program is free software; you can redistribute it and/or modify it
* under the terms and conditions of the GNU General Public License,
* version 2, as published by the Free Software Foundation.
*
* This program is distributed in the hope 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.
*/
#ifndef _DT_BINDINGS_PINCTRL_TEGRA_H
#define _DT_BINDINGS_PINCTRL_TEGRA_H
/*
* Enable/disable for diffeent dt properties. This is applicable for
* properties nvidia,enable-input, nvidia,tristate, nvidia,open-drain,
* nvidia,lock, nvidia,rcv-sel, nvidia,high-speed-mode, nvidia,schmitt.
*/
#define TEGRA_PIN_DISABLE 0
#define TEGRA_PIN_ENABLE 1
#define TEGRA_PIN_PULL_NONE 0
#define TEGRA_PIN_PULL_DOWN 1
#define TEGRA_PIN_PULL_UP 2
/* Low power mode driver */
#define TEGRA_PIN_LP_DRIVE_DIV_8 0
#define TEGRA_PIN_LP_DRIVE_DIV_4 1
#define TEGRA_PIN_LP_DRIVE_DIV_2 2
#define TEGRA_PIN_LP_DRIVE_DIV_1 3
/* Rising/Falling slew rate */
#define TEGRA_PIN_SLEW_RATE_FASTEST 0
#define TEGRA_PIN_SLEW_RATE_FAST 1
#define TEGRA_PIN_SLEW_RATE_SLOW 2
#define TEGRA_PIN_SLEW_RATE_SLOWEST 3
#endif
@@ -0,0 +1,164 @@
/* SPDX-License-Identifier: GPL-2.0 */
/*
* This header provides constants for the Qualcomm PMIC GPIO binding.
*/
#ifndef _DT_BINDINGS_PINCTRL_QCOM_PMIC_GPIO_H
#define _DT_BINDINGS_PINCTRL_QCOM_PMIC_GPIO_H
#define PMIC_GPIO_PULL_UP_30 0
#define PMIC_GPIO_PULL_UP_1P5 1
#define PMIC_GPIO_PULL_UP_31P5 2
#define PMIC_GPIO_PULL_UP_1P5_30 3
#define PMIC_GPIO_STRENGTH_NO 0
#define PMIC_GPIO_STRENGTH_HIGH 1
#define PMIC_GPIO_STRENGTH_MED 2
#define PMIC_GPIO_STRENGTH_LOW 3
/*
* Note: PM8018 GPIO3 and GPIO4 are supporting
* only S3 and L2 options (1.8V)
*/
#define PM8018_GPIO_L6 0
#define PM8018_GPIO_L5 1
#define PM8018_GPIO_S3 2
#define PM8018_GPIO_L14 3
#define PM8018_GPIO_L2 4
#define PM8018_GPIO_L4 5
#define PM8018_GPIO_VDD 6
/*
* Note: PM8038 GPIO7 and GPIO8 are supporting
* only L11 and L4 options (1.8V)
*/
#define PM8038_GPIO_VPH 0
#define PM8038_GPIO_BB 1
#define PM8038_GPIO_L11 2
#define PM8038_GPIO_L15 3
#define PM8038_GPIO_L4 4
#define PM8038_GPIO_L3 5
#define PM8038_GPIO_L17 6
#define PM8058_GPIO_VPH 0
#define PM8058_GPIO_BB 1
#define PM8058_GPIO_S3 2
#define PM8058_GPIO_L3 3
#define PM8058_GPIO_L7 4
#define PM8058_GPIO_L6 5
#define PM8058_GPIO_L5 6
#define PM8058_GPIO_L2 7
/*
* Note: PM8916 GPIO1 and GPIO2 are supporting
* only L2(1.15V) and L5(1.8V) options
*/
#define PM8916_GPIO_VPH 0
#define PM8916_GPIO_L2 2
#define PM8916_GPIO_L5 3
#define PM8917_GPIO_VPH 0
#define PM8917_GPIO_S4 2
#define PM8917_GPIO_L15 3
#define PM8917_GPIO_L4 4
#define PM8917_GPIO_L3 5
#define PM8917_GPIO_L17 6
#define PM8921_GPIO_VPH 0
#define PM8921_GPIO_BB 1
#define PM8921_GPIO_S4 2
#define PM8921_GPIO_L15 3
#define PM8921_GPIO_L4 4
#define PM8921_GPIO_L3 5
#define PM8921_GPIO_L17 6
/*
* Note: PM8941 gpios from 15 to 18 are supporting
* only S3 and L6 options (1.8V)
*/
#define PM8941_GPIO_VPH 0
#define PM8941_GPIO_L1 1
#define PM8941_GPIO_S3 2
#define PM8941_GPIO_L6 3
/*
* Note: PMA8084 gpios from 15 to 18 are supporting
* only S4 and L6 options (1.8V)
*/
#define PMA8084_GPIO_VPH 0
#define PMA8084_GPIO_L1 1
#define PMA8084_GPIO_S4 2
#define PMA8084_GPIO_L6 3
#define PM8994_GPIO_VPH 0
#define PM8994_GPIO_S4 2
#define PM8994_GPIO_L12 3
/* To be used with "function" */
#define PMIC_GPIO_FUNC_NORMAL "normal"
#define PMIC_GPIO_FUNC_PAIRED "paired"
#define PMIC_GPIO_FUNC_FUNC1 "func1"
#define PMIC_GPIO_FUNC_FUNC2 "func2"
#define PMIC_GPIO_FUNC_FUNC3 "func3"
#define PMIC_GPIO_FUNC_FUNC4 "func4"
#define PMIC_GPIO_FUNC_DTEST1 "dtest1"
#define PMIC_GPIO_FUNC_DTEST2 "dtest2"
#define PMIC_GPIO_FUNC_DTEST3 "dtest3"
#define PMIC_GPIO_FUNC_DTEST4 "dtest4"
#define PM8038_GPIO1_2_LPG_DRV PMIC_GPIO_FUNC_FUNC1
#define PM8038_GPIO3_5V_BOOST_EN PMIC_GPIO_FUNC_FUNC1
#define PM8038_GPIO4_SSBI_ALT_CLK PMIC_GPIO_FUNC_FUNC1
#define PM8038_GPIO5_6_EXT_REG_EN PMIC_GPIO_FUNC_FUNC1
#define PM8038_GPIO10_11_EXT_REG_EN PMIC_GPIO_FUNC_FUNC1
#define PM8038_GPIO6_7_CLK PMIC_GPIO_FUNC_FUNC1
#define PM8038_GPIO9_BAT_ALRM_OUT PMIC_GPIO_FUNC_FUNC1
#define PM8038_GPIO6_12_KYPD_DRV PMIC_GPIO_FUNC_FUNC2
#define PM8058_GPIO7_8_MP3_CLK PMIC_GPIO_FUNC_FUNC1
#define PM8058_GPIO7_8_BCLK_19P2MHZ PMIC_GPIO_FUNC_FUNC2
#define PM8058_GPIO9_26_KYPD_DRV PMIC_GPIO_FUNC_FUNC1
#define PM8058_GPIO21_23_UART_TX PMIC_GPIO_FUNC_FUNC2
#define PM8058_GPIO24_26_LPG_DRV PMIC_GPIO_FUNC_FUNC2
#define PM8058_GPIO33_BCLK_19P2MHZ PMIC_GPIO_FUNC_FUNC1
#define PM8058_GPIO34_35_MP3_CLK PMIC_GPIO_FUNC_FUNC1
#define PM8058_GPIO36_BCLK_19P2MHZ PMIC_GPIO_FUNC_FUNC1
#define PM8058_GPIO37_UPL_OUT PMIC_GPIO_FUNC_FUNC1
#define PM8058_GPIO37_UART_M_RX PMIC_GPIO_FUNC_FUNC2
#define PM8058_GPIO38_XO_SLEEP_CLK PMIC_GPIO_FUNC_FUNC1
#define PM8058_GPIO38_39_CLK_32KHZ PMIC_GPIO_FUNC_FUNC2
#define PM8058_GPIO39_MP3_CLK PMIC_GPIO_FUNC_FUNC1
#define PM8058_GPIO40_EXT_BB_EN PMIC_GPIO_FUNC_FUNC1
#define PM8916_GPIO1_BAT_ALRM_OUT PMIC_GPIO_FUNC_FUNC1
#define PM8916_GPIO1_KEYP_DRV PMIC_GPIO_FUNC_FUNC2
#define PM8916_GPIO2_DIV_CLK PMIC_GPIO_FUNC_FUNC1
#define PM8916_GPIO2_SLEEP_CLK PMIC_GPIO_FUNC_FUNC2
#define PM8916_GPIO3_KEYP_DRV PMIC_GPIO_FUNC_FUNC1
#define PM8916_GPIO4_KEYP_DRV PMIC_GPIO_FUNC_FUNC2
#define PM8917_GPIO9_18_KEYP_DRV PMIC_GPIO_FUNC_FUNC1
#define PM8917_GPIO20_BAT_ALRM_OUT PMIC_GPIO_FUNC_FUNC1
#define PM8917_GPIO21_23_UART_TX PMIC_GPIO_FUNC_FUNC2
#define PM8917_GPIO25_26_EXT_REG_EN PMIC_GPIO_FUNC_FUNC1
#define PM8917_GPIO37_38_XO_SLEEP_CLK PMIC_GPIO_FUNC_FUNC1
#define PM8917_GPIO37_38_MP3_CLK PMIC_GPIO_FUNC_FUNC2
#define PM8941_GPIO9_14_KYPD_DRV PMIC_GPIO_FUNC_FUNC1
#define PM8941_GPIO15_18_DIV_CLK PMIC_GPIO_FUNC_FUNC1
#define PM8941_GPIO15_18_SLEEP_CLK PMIC_GPIO_FUNC_FUNC2
#define PM8941_GPIO23_26_KYPD_DRV PMIC_GPIO_FUNC_FUNC1
#define PM8941_GPIO23_26_LPG_DRV_HI PMIC_GPIO_FUNC_FUNC2
#define PM8941_GPIO31_BAT_ALRM_OUT PMIC_GPIO_FUNC_FUNC1
#define PM8941_GPIO33_36_LPG_DRV_3D PMIC_GPIO_FUNC_FUNC1
#define PM8941_GPIO33_36_LPG_DRV_HI PMIC_GPIO_FUNC_FUNC2
#define PMA8084_GPIO4_5_LPG_DRV PMIC_GPIO_FUNC_FUNC1
#define PMA8084_GPIO7_10_LPG_DRV PMIC_GPIO_FUNC_FUNC1
#define PMA8084_GPIO5_14_KEYP_DRV PMIC_GPIO_FUNC_FUNC2
#define PMA8084_GPIO19_21_KEYP_DRV PMIC_GPIO_FUNC_FUNC2
#define PMA8084_GPIO15_18_DIV_CLK PMIC_GPIO_FUNC_FUNC1
#define PMA8084_GPIO15_18_SLEEP_CLK PMIC_GPIO_FUNC_FUNC2
#define PMA8084_GPIO22_BAT_ALRM_OUT PMIC_GPIO_FUNC_FUNC1
#endif
+106
View File
@@ -0,0 +1,106 @@
/* SPDX-License-Identifier: GPL-2.0 */
/*
* This header provides constants for the Qualcomm PMIC's
* Multi-Purpose Pin binding.
*/
#ifndef _DT_BINDINGS_PINCTRL_QCOM_PMIC_MPP_H
#define _DT_BINDINGS_PINCTRL_QCOM_PMIC_MPP_H
/* power-source */
/* Digital Input/Output: level [PM8058] */
#define PM8058_MPP_VPH 0
#define PM8058_MPP_S3 1
#define PM8058_MPP_L2 2
#define PM8058_MPP_L3 3
/* Digital Input/Output: level [PM8901] */
#define PM8901_MPP_MSMIO 0
#define PM8901_MPP_DIG 1
#define PM8901_MPP_L5 2
#define PM8901_MPP_S4 3
#define PM8901_MPP_VPH 4
/* Digital Input/Output: level [PM8921] */
#define PM8921_MPP_S4 1
#define PM8921_MPP_L15 3
#define PM8921_MPP_L17 4
#define PM8921_MPP_VPH 7
/* Digital Input/Output: level [PM8821] */
#define PM8821_MPP_1P8 0
#define PM8821_MPP_VPH 7
/* Digital Input/Output: level [PM8018] */
#define PM8018_MPP_L4 0
#define PM8018_MPP_L14 1
#define PM8018_MPP_S3 2
#define PM8018_MPP_L6 3
#define PM8018_MPP_L2 4
#define PM8018_MPP_L5 5
#define PM8018_MPP_VPH 7
/* Digital Input/Output: level [PM8038] */
#define PM8038_MPP_L20 0
#define PM8038_MPP_L11 1
#define PM8038_MPP_L5 2
#define PM8038_MPP_L15 3
#define PM8038_MPP_L17 4
#define PM8038_MPP_VPH 7
#define PM8841_MPP_VPH 0
#define PM8841_MPP_S3 2
#define PM8916_MPP_VPH 0
#define PM8916_MPP_L2 2
#define PM8916_MPP_L5 3
#define PM8941_MPP_VPH 0
#define PM8941_MPP_L1 1
#define PM8941_MPP_S3 2
#define PM8941_MPP_L6 3
#define PMA8084_MPP_VPH 0
#define PMA8084_MPP_L1 1
#define PMA8084_MPP_S4 2
#define PMA8084_MPP_L6 3
#define PM8994_MPP_VPH 0
/* Only supported for MPP_05-MPP_08 */
#define PM8994_MPP_L19 1
#define PM8994_MPP_S4 2
#define PM8994_MPP_L12 3
/*
* Analog Input - Set the source for analog input.
* To be used with "qcom,amux-route" property
*/
#define PMIC_MPP_AMUX_ROUTE_CH5 0
#define PMIC_MPP_AMUX_ROUTE_CH6 1
#define PMIC_MPP_AMUX_ROUTE_CH7 2
#define PMIC_MPP_AMUX_ROUTE_CH8 3
#define PMIC_MPP_AMUX_ROUTE_ABUS1 4
#define PMIC_MPP_AMUX_ROUTE_ABUS2 5
#define PMIC_MPP_AMUX_ROUTE_ABUS3 6
#define PMIC_MPP_AMUX_ROUTE_ABUS4 7
/* Analog Output: level */
#define PMIC_MPP_AOUT_LVL_1V25 0
#define PMIC_MPP_AOUT_LVL_1V25_2 1
#define PMIC_MPP_AOUT_LVL_0V625 2
#define PMIC_MPP_AOUT_LVL_0V3125 3
#define PMIC_MPP_AOUT_LVL_MPP 4
#define PMIC_MPP_AOUT_LVL_ABUS1 5
#define PMIC_MPP_AOUT_LVL_ABUS2 6
#define PMIC_MPP_AOUT_LVL_ABUS3 7
/* To be used with "function" */
#define PMIC_MPP_FUNC_NORMAL "normal"
#define PMIC_MPP_FUNC_PAIRED "paired"
#define PMIC_MPP_FUNC_DTEST1 "dtest1"
#define PMIC_MPP_FUNC_DTEST2 "dtest2"
#define PMIC_MPP_FUNC_DTEST3 "dtest3"
#define PMIC_MPP_FUNC_DTEST4 "dtest4"
#endif
@@ -0,0 +1,17 @@
/* SPDX-License-Identifier: GPL-2.0 */
/*
* Defines macros and constants for Renesas RZ/A1 pin controller pin
* muxing functions.
*/
#ifndef __DT_BINDINGS_PINCTRL_RENESAS_RZA1_H
#define __DT_BINDINGS_PINCTRL_RENESAS_RZA1_H
#define RZA1_PINS_PER_PORT 16
/*
* Create the pin index from its bank and position numbers and store in
* the upper 16 bits the alternate function identifier
*/
#define RZA1_PINMUX(b, p, f) ((b) * RZA1_PINS_PER_PORT + (p) | (f << 16))
#endif /* __DT_BINDINGS_PINCTRL_RENESAS_RZA1_H */
+67
View File
@@ -0,0 +1,67 @@
/*
* Header providing constants for Rockchip pinctrl bindings.
*
* Copyright (c) 2013 MundoReader S.L.
* Author: Heiko Stuebner <heiko@sntech.de>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* 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.
*/
#ifndef __DT_BINDINGS_ROCKCHIP_PINCTRL_H__
#define __DT_BINDINGS_ROCKCHIP_PINCTRL_H__
#define RK_GPIO0 0
#define RK_GPIO1 1
#define RK_GPIO2 2
#define RK_GPIO3 3
#define RK_GPIO4 4
#define RK_GPIO6 6
#define RK_PA0 0
#define RK_PA1 1
#define RK_PA2 2
#define RK_PA3 3
#define RK_PA4 4
#define RK_PA5 5
#define RK_PA6 6
#define RK_PA7 7
#define RK_PB0 8
#define RK_PB1 9
#define RK_PB2 10
#define RK_PB3 11
#define RK_PB4 12
#define RK_PB5 13
#define RK_PB6 14
#define RK_PB7 15
#define RK_PC0 16
#define RK_PC1 17
#define RK_PC2 18
#define RK_PC3 19
#define RK_PC4 20
#define RK_PC5 21
#define RK_PC6 22
#define RK_PC7 23
#define RK_PD0 24
#define RK_PD1 25
#define RK_PD2 26
#define RK_PD3 27
#define RK_PD4 28
#define RK_PD5 29
#define RK_PD6 30
#define RK_PD7 31
#define RK_FUNC_GPIO 0
#define RK_FUNC_1 1
#define RK_FUNC_2 2
#define RK_FUNC_3 3
#define RK_FUNC_4 4
#endif
+77
View File
@@ -0,0 +1,77 @@
/* SPDX-License-Identifier: GPL-2.0 */
/*
* Samsung's Exynos pinctrl bindings
*
* Copyright (c) 2016 Samsung Electronics Co., Ltd.
* http://www.samsung.com
* Author: Krzysztof Kozlowski <krzk@kernel.org>
*/
#ifndef __DT_BINDINGS_PINCTRL_SAMSUNG_H__
#define __DT_BINDINGS_PINCTRL_SAMSUNG_H__
#define EXYNOS_PIN_PULL_NONE 0
#define EXYNOS_PIN_PULL_DOWN 1
#define EXYNOS_PIN_PULL_UP 3
#define S3C64XX_PIN_PULL_NONE 0
#define S3C64XX_PIN_PULL_DOWN 1
#define S3C64XX_PIN_PULL_UP 2
/* Pin function in power down mode */
#define EXYNOS_PIN_PDN_OUT0 0
#define EXYNOS_PIN_PDN_OUT1 1
#define EXYNOS_PIN_PDN_INPUT 2
#define EXYNOS_PIN_PDN_PREV 3
/* Drive strengths for Exynos3250, Exynos4 (all) and Exynos5250 */
#define EXYNOS4_PIN_DRV_LV1 0
#define EXYNOS4_PIN_DRV_LV2 2
#define EXYNOS4_PIN_DRV_LV3 1
#define EXYNOS4_PIN_DRV_LV4 3
/* Drive strengths for Exynos5260 */
#define EXYNOS5260_PIN_DRV_LV1 0
#define EXYNOS5260_PIN_DRV_LV2 1
#define EXYNOS5260_PIN_DRV_LV4 2
#define EXYNOS5260_PIN_DRV_LV6 3
/* Drive strengths for Exynos5410, Exynos542x and Exynos5800 */
#define EXYNOS5420_PIN_DRV_LV1 0
#define EXYNOS5420_PIN_DRV_LV2 1
#define EXYNOS5420_PIN_DRV_LV3 2
#define EXYNOS5420_PIN_DRV_LV4 3
/* Drive strengths for Exynos5433 */
#define EXYNOS5433_PIN_DRV_FAST_SR1 0
#define EXYNOS5433_PIN_DRV_FAST_SR2 1
#define EXYNOS5433_PIN_DRV_FAST_SR3 2
#define EXYNOS5433_PIN_DRV_FAST_SR4 3
#define EXYNOS5433_PIN_DRV_FAST_SR5 4
#define EXYNOS5433_PIN_DRV_FAST_SR6 5
#define EXYNOS5433_PIN_DRV_SLOW_SR1 8
#define EXYNOS5433_PIN_DRV_SLOW_SR2 9
#define EXYNOS5433_PIN_DRV_SLOW_SR3 0xa
#define EXYNOS5433_PIN_DRV_SLOW_SR4 0xb
#define EXYNOS5433_PIN_DRV_SLOW_SR5 0xc
#define EXYNOS5433_PIN_DRV_SLOW_SR6 0xf
#define EXYNOS_PIN_FUNC_INPUT 0
#define EXYNOS_PIN_FUNC_OUTPUT 1
#define EXYNOS_PIN_FUNC_2 2
#define EXYNOS_PIN_FUNC_3 3
#define EXYNOS_PIN_FUNC_4 4
#define EXYNOS_PIN_FUNC_5 5
#define EXYNOS_PIN_FUNC_6 6
#define EXYNOS_PIN_FUNC_EINT 0xf
#define EXYNOS_PIN_FUNC_F EXYNOS_PIN_FUNC_EINT
/* Drive strengths for Exynos7 FSYS1 block */
#define EXYNOS7_FSYS1_PIN_DRV_LV1 0
#define EXYNOS7_FSYS1_PIN_DRV_LV2 4
#define EXYNOS7_FSYS1_PIN_DRV_LV3 2
#define EXYNOS7_FSYS1_PIN_DRV_LV4 6
#define EXYNOS7_FSYS1_PIN_DRV_LV5 1
#define EXYNOS7_FSYS1_PIN_DRV_LV6 5
#endif /* __DT_BINDINGS_PINCTRL_SAMSUNG_H__ */
@@ -0,0 +1,36 @@
/* SPDX-License-Identifier: (GPL-2.0+ OR BSD-3-Clause) */
/*
* Copyright (C) STMicroelectronics 2017 - All Rights Reserved
* Author: Torgue Alexandre <alexandre.torgue@st.com> for STMicroelectronics.
*/
#ifndef _DT_BINDINGS_STM32_PINFUNC_H
#define _DT_BINDINGS_STM32_PINFUNC_H
/* define PIN modes */
#define GPIO 0x0
#define AF0 0x1
#define AF1 0x2
#define AF2 0x3
#define AF3 0x4
#define AF4 0x5
#define AF5 0x6
#define AF6 0x7
#define AF7 0x8
#define AF8 0x9
#define AF9 0xa
#define AF10 0xb
#define AF11 0xc
#define AF12 0xd
#define AF13 0xe
#define AF14 0xf
#define AF15 0x10
#define ANALOG 0x11
/* define Pins number*/
#define PIN_NO(port, line) (((port) - 'A') * 0x10 + (line))
#define STM32_PINMUX(port, line, mode) (((PIN_NO(port, line)) << 8) | (mode))
#endif /* _DT_BINDINGS_STM32_PINFUNC_H */
+62
View File
@@ -0,0 +1,62 @@
/*
* Copyright 2014 Maxime Ripard
*
* Maxime Ripard <maxime.ripard@free-electrons.com>
*
* This file is dual-licensed: you can use it either under the terms
* of the GPL or the X11 license, at your option. Note that this dual
* licensing only applies to this file, and not this project as a
* whole.
*
* a) This file is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License as
* published by the Free Software Foundation; either version 2 of the
* License, or (at your option) any later version.
*
* This file 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 file; if not, write to the Free
* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,
* MA 02110-1301 USA
*
* Or, alternatively,
*
* b) Permission is hereby granted, free of charge, to any person
* obtaining a copy of this software and associated documentation
* files (the "Software"), to deal in the Software without
* restriction, including without limitation the rights to use,
* copy, modify, merge, publish, distribute, sublicense, and/or
* sell copies of the Software, and to permit persons to whom the
* Software is furnished to do so, subject to the following
* conditions:
*
* The above copyright notice and this permission notice shall be
* included in all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
* OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
* HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
* WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
* OTHER DEALINGS IN THE SOFTWARE.
*/
#ifndef __DT_BINDINGS_PINCTRL_SUN4I_A10_H_
#define __DT_BINDINGS_PINCTRL_SUN4I_A10_H_
#define SUN4I_PINCTRL_10_MA 0
#define SUN4I_PINCTRL_20_MA 1
#define SUN4I_PINCTRL_30_MA 2
#define SUN4I_PINCTRL_40_MA 3
#define SUN4I_PINCTRL_NO_PULL 0
#define SUN4I_PINCTRL_PULL_UP 1
#define SUN4I_PINCTRL_PULL_DOWN 2
#endif /* __DT_BINDINGS_PINCTRL_SUN4I_A10_H_ */