From patchwork Fri Sep 30 07:33:28 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hal Feng X-Patchwork-Id: 611620 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 047FDC433F5 for ; Fri, 30 Sep 2022 07:35:51 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230360AbiI3Hfu (ORCPT ); Fri, 30 Sep 2022 03:35:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49018 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230250AbiI3Hft (ORCPT ); Fri, 30 Sep 2022 03:35:49 -0400 Received: from bg4.exmail.qq.com (bg4.exmail.qq.com [43.154.221.58]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B378210F719; Fri, 30 Sep 2022 00:35:45 -0700 (PDT) X-QQ-mid: bizesmtp82t1664523211t84a3mb1 Received: from ubuntu.localdomain ( [113.72.146.201]) by bizesmtp.qq.com (ESMTP) with id ; Fri, 30 Sep 2022 15:33:29 +0800 (CST) X-QQ-SSF: 01000000000000305000000A0000000 X-QQ-FEAT: 1c0FlmCJYTe9L4VwpR5QJP8ykXYxKgZZKBwmOnHNdYV/dTbg7nCTTk5pfbjnc 7P7GSBPFa2Hbpxn4vkZeeuVFj3pLGFvw8Mbq+IAZYntImYeps4hzn0dxNjTEkO3liEptczz IJhIMmtigWGnxmn5aCEG7FTINZoALqpYGFJeqldwj4qK7rQpvd9NK48O7KAQiAxXBkdTbS3 mpdCchbfRg52Mi+ILogYGHil/qKUA654KHqVXFB+7pnL1HLcgd45KOdmx/Z35q+d44qeJ2/ akV+e7JDgrKOaGX5HT8pfCNSVHKwLS10y3MJ3ZdIfphOMviceNPWJfzF8hVF0h6zakvAXMB HC1c1g3/iaLYviHff5/9hHx+1j+0VM8wF3DQ2x5HrRhWlROB9QjeEw+t7mkHu0GikbXkJqM X-QQ-GoodBg: 0 From: Hal Feng To: linux-riscv@lists.infradead.org, devicetree@vger.kernel.org, linux-clk@vger.kernel.org, linux-gpio@vger.kernel.org Cc: Rob Herring , Krzysztof Kozlowski , Paul Walmsley , Palmer Dabbelt , Albert Ou , Daniel Lezcano , Thomas Gleixner , Marc Zyngier , Philipp Zabel , Stephen Boyd , Michael Turquette , Linus Walleij , Emil Renner Berthing , Hal Feng , linux-kernel@vger.kernel.org Subject: [PATCH v1 24/30] dt-bindings: pinctrl: Add StarFive JH7110 pinctrl definitions Date: Fri, 30 Sep 2022 15:33:28 +0800 Message-Id: <20220930073328.6204-1-hal.feng@linux.starfivetech.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20220929143225.17907-1-hal.feng@linux.starfivetech.com> References: <20220929143225.17907-1-hal.feng@linux.starfivetech.com> X-QQ-SENDSIZE: 520 Feedback-ID: bizesmtp:linux.starfivetech.com:qybglogicsvr:qybglogicsvr2 Precedence: bulk List-ID: X-Mailing-List: linux-gpio@vger.kernel.org From: Jianlong Huang Add pinctrl definitions for StarFive JH7110 SoC. Signed-off-by: Jianlong Huang Signed-off-by: Hal Feng --- .../pinctrl/pinctrl-starfive-jh7110.h | 931 ++++++++++++++++++ 1 file changed, 931 insertions(+) create mode 100644 include/dt-bindings/pinctrl/pinctrl-starfive-jh7110.h diff --git a/include/dt-bindings/pinctrl/pinctrl-starfive-jh7110.h b/include/dt-bindings/pinctrl/pinctrl-starfive-jh7110.h new file mode 100644 index 000000000000..159cfcf6b915 --- /dev/null +++ b/include/dt-bindings/pinctrl/pinctrl-starfive-jh7110.h @@ -0,0 +1,931 @@ +/* SPDX-License-Identifier: GPL-2.0 OR MIT */ +/* + * Copyright (C) 2022 StarFive Technology Co., Ltd. + */ + +#ifndef __DT_BINDINGS_PINCTRL_STARFIVE_JH7110_H__ +#define __DT_BINDINGS_PINCTRL_STARFIVE_JH7110_H__ + +/* aon_iomux pin */ +#define PAD_TESTEN 0 +#define PAD_RGPIO0 1 +#define PAD_RGPIO1 2 +#define PAD_RGPIO2 3 +#define PAD_RGPIO3 4 +#define PAD_RSTN 5 +#define PAD_GMAC0_MDC 6 +#define PAD_GMAC0_MDIO 7 +#define PAD_GMAC0_RXD0 8 +#define PAD_GMAC0_RXD1 9 +#define PAD_GMAC0_RXD2 10 +#define PAD_GMAC0_RXD3 11 +#define PAD_GMAC0_RXDV 12 +#define PAD_GMAC0_RXC 13 +#define PAD_GMAC0_TXD0 14 +#define PAD_GMAC0_TXD1 15 +#define PAD_GMAC0_TXD2 16 +#define PAD_GMAC0_TXD3 17 +#define PAD_GMAC0_TXEN 18 +#define PAD_GMAC0_TXC 19 + +/* aon_iomux dout */ +#define GPO_AON_CLK_32K_OUT 2 +#define GPO_AON_PTC0_PWM4 3 +#define GPO_AON_PTC0_PWM5 4 +#define GPO_AON_PTC0_PWM6 5 +#define GPO_AON_PTC0_PWM7 6 +#define GPO_AON_CLK_GCLK0 7 +#define GPO_AON_CLK_GCLK1 8 +#define GPO_AON_CLK_GCLK2 9 + +/* aon_iomux doen */ +#define OEN_AON_PTC0_OE_N_4 2 +#define OEN_AON_PTC0_OE_N_5 3 +#define OEN_AON_PTC0_OE_N_6 4 +#define OEN_AON_PTC0_OE_N_7 5 + +/* aon_iomux gin */ +#define GPI_AON_PMU_GPIO_WAKEUP_0 0 +#define GPI_AON_PMU_GPIO_WAKEUP_1 1 +#define GPI_AON_PMU_GPIO_WAKEUP_2 2 +#define GPI_AON_PMU_GPIO_WAKEUP_3 3 + +/* aon_iomux gmac0 syscon */ +#define PADCFG_PAD_GMAC0_MDC_SYSCON 0x58 +#define PADCFG_PAD_GMAC0_MDIO_SYSCON 0x5c +#define PADCFG_PAD_GMAC0_RXD0_SYSCON 0x60 +#define PADCFG_PAD_GMAC0_RXD1_SYSCON 0x64 +#define PADCFG_PAD_GMAC0_RXD2_SYSCON 0x68 +#define PADCFG_PAD_GMAC0_RXD3_SYSCON 0x6c +#define PADCFG_PAD_GMAC0_RXDV_SYSCON 0x70 +#define PADCFG_PAD_GMAC0_RXC_SYSCON 0x74 +#define PADCFG_PAD_GMAC0_TXD0_SYSCON 0x78 +#define PADCFG_PAD_GMAC0_TXD1_SYSCON 0x7c +#define PADCFG_PAD_GMAC0_TXD2_SYSCON 0x80 +#define PADCFG_PAD_GMAC0_TXD3_SYSCON 0x84 +#define PADCFG_PAD_GMAC0_TXEN_SYSCON 0x88 +#define PADCFG_PAD_GMAC0_TXC_SYSCON 0x8c + +/* aon_iomux func sel */ +#define AON_IOMUX_CFGSAIF_144_ADDR 0x90 +#define PAD_GMAC0_RXC_FUNC_SEL_SHIFT 0x0 +#define PAD_GMAC0_RXC_FUNC_SEL_MASK 0x3 + +#define PAD_GMAC0_RXC_FUNC_SEL \ + AON_IOMUX_CFGSAIF_144_ADDR \ + PAD_GMAC0_RXC_FUNC_SEL_SHIFT \ + PAD_GMAC0_RXC_FUNC_SEL_MASK + +/* sys_iomux pin */ +#define PAD_GPIO0 0 +#define PAD_GPIO1 1 +#define PAD_GPIO2 2 +#define PAD_GPIO3 3 +#define PAD_GPIO4 4 +#define PAD_GPIO5 5 +#define PAD_GPIO6 6 +#define PAD_GPIO7 7 +#define PAD_GPIO8 8 +#define PAD_GPIO9 9 +#define PAD_GPIO10 10 +#define PAD_GPIO11 11 +#define PAD_GPIO12 12 +#define PAD_GPIO13 13 +#define PAD_GPIO14 14 +#define PAD_GPIO15 15 +#define PAD_GPIO16 16 +#define PAD_GPIO17 17 +#define PAD_GPIO18 18 +#define PAD_GPIO19 19 +#define PAD_GPIO20 20 +#define PAD_GPIO21 21 +#define PAD_GPIO22 22 +#define PAD_GPIO23 23 +#define PAD_GPIO24 24 +#define PAD_GPIO25 25 +#define PAD_GPIO26 26 +#define PAD_GPIO27 27 +#define PAD_GPIO28 28 +#define PAD_GPIO29 29 +#define PAD_GPIO30 30 +#define PAD_GPIO31 31 +#define PAD_GPIO32 32 +#define PAD_GPIO33 33 +#define PAD_GPIO34 34 +#define PAD_GPIO35 35 +#define PAD_GPIO36 36 +#define PAD_GPIO37 37 +#define PAD_GPIO38 38 +#define PAD_GPIO39 39 +#define PAD_GPIO40 40 +#define PAD_GPIO41 41 +#define PAD_GPIO42 42 +#define PAD_GPIO43 43 +#define PAD_GPIO44 44 +#define PAD_GPIO45 45 +#define PAD_GPIO46 46 +#define PAD_GPIO47 47 +#define PAD_GPIO48 48 +#define PAD_GPIO49 49 +#define PAD_GPIO50 50 +#define PAD_GPIO51 51 +#define PAD_GPIO52 52 +#define PAD_GPIO53 53 +#define PAD_GPIO54 54 +#define PAD_GPIO55 55 +#define PAD_GPIO56 56 +#define PAD_GPIO57 57 +#define PAD_GPIO58 58 +#define PAD_GPIO59 59 +#define PAD_GPIO60 60 +#define PAD_GPIO61 61 +#define PAD_GPIO62 62 +#define PAD_GPIO63 63 +#define PAD_SD0_CLK 64 +#define PAD_SD0_CMD 65 +#define PAD_SD0_DATA0 66 +#define PAD_SD0_DATA1 67 +#define PAD_SD0_DATA2 68 +#define PAD_SD0_DATA3 69 +#define PAD_SD0_DATA4 70 +#define PAD_SD0_DATA5 71 +#define PAD_SD0_DATA6 72 +#define PAD_SD0_DATA7 73 +#define PAD_SD0_STRB 74 +#define PAD_GMAC1_MDC 75 +#define PAD_GMAC1_MDIO 76 +#define PAD_GMAC1_RXD0 77 +#define PAD_GMAC1_RXD1 78 +#define PAD_GMAC1_RXD2 79 +#define PAD_GMAC1_RXD3 80 +#define PAD_GMAC1_RXDV 81 +#define PAD_GMAC1_RXC 82 +#define PAD_GMAC1_TXD0 83 +#define PAD_GMAC1_TXD1 84 +#define PAD_GMAC1_TXD2 85 +#define PAD_GMAC1_TXD3 86 +#define PAD_GMAC1_TXEN 87 +#define PAD_GMAC1_TXC 88 +#define PAD_QSPI_SCLK 89 +#define PAD_QSPI_CSn0 90 +#define PAD_QSPI_DATA0 91 +#define PAD_QSPI_DATA1 92 +#define PAD_QSPI_DATA2 93 +#define PAD_QSPI_DATA3 94 + +#define GPO_LOW 0 +#define GPO_HIGH 1 +#define GPO_WAVE511_0_O_UART_TXSOUT 2 +#define GPO_CAN0_CTRL_STBY 3 +#define GPO_CAN0_CTRL_TST_NEXT_BIT 4 +#define GPO_CAN0_CTRL_TST_SAMPLE_POINT 5 +#define GPO_CAN0_CTRL_TXD 6 +#define GPO_USB0_DRIVE_VBUS_IO 7 +#define GPO_QSPI0_CSN1 8 +#define GPO_SPDIF0_SPDIFO 9 +#define GPO_HDMI0_CEC_SDA_OUT 10 +#define GPO_HDMI0_DDC_SCL_OUT 11 +#define GPO_HDMI0_DDC_SDA_OUT 12 +#define GPO_WDT0_WDOGRES 13 +#define GPO_I2C0_IC_CLK_OUT_A 14 +#define GPO_I2C0_IC_DATA_OUT_A 15 +#define GPO_SDIO0_BACK_END_POWER 16 +#define GPO_SDIO0_CARD_POWER_EN 17 +#define GPO_SDIO0_CCMD_OD_PULLUP_EN_N 18 +#define GPO_SDIO0_RST_N 19 +#define GPO_UART0_SOUT 20 +#define GPO_JTAG_DSP_TDO 21 +#define GPO_JTAG_CPU_CERTIFICATION_TDO 22 +#define GPO_PDM_4MIC0_DMIC_MCLK 23 +#define GPO_PTC0_PWM_0 24 +#define GPO_PTC0_PWM_1 25 +#define GPO_PTC0_PWM_2 26 +#define GPO_PTC0_PWM_3 27 +#define GPO_PWMDAC0_LEFT_OUTPUT 28 +#define GPO_PWMDAC0_RIGHT_OUTPUT 29 +#define GPO_SPI0_SSPCLKOUT 30 +#define GPO_SPI0_SSPFSSOUT 31 +#define GPO_SPI0_SSPTXD 32 +#define GPO_GMAC0_CLK_PHY 33 +#define GPO_I2SRX0_BCLK_MST 34 +#define GPO_I2SRX0_LRCK_MST 35 +#define GPO_I2STX0_BCLK_MST 36 +#define GPO_I2STX0_LRCK_MST 37 +#define GPO_CRG0_MCLK_OUT 38 +#define GPO_TDM0_CLK_MST 39 +#define GPO_TDM0_PCM_SYNCOUT 40 +#define GPO_TDM0_PCM_TXD 41 +#define GPO_U7MC_TRACE0_TDATA_0 42 +#define GPO_U7MC_TRACE0_TDATA_1 43 +#define GPO_U7MC_TRACE0_TDATA_2 44 +#define GPO_U7MC_TRACE0_TDATA_3 45 +#define GPO_U7MC_TRACE0_TREF 46 +#define GPO_CAN1_CTRL_STBY 47 +#define GPO_CAN1_CTRL_TST_NEXT_BIT 48 +#define GPO_CAN1_CTRL_TST_SAMPLE_POINT 49 +#define GPO_CAN1_CTRL_TXD 50 +#define GPO_I2C1_IC_CLK_OUT_A 51 +#define GPO_I2C1_IC_DATA_OUT_A 52 +#define GPO_SDIO1_BACK_END_POWER 53 +#define GPO_SDIO1_CARD_POWER_EN 54 +#define GPO_SDIO1_CCLK_OUT 55 +#define GPO_SDIO1_CCMD_OD_PULLUP_EN_N 56 +#define GPO_SDIO1_CCMD_OUT 57 +#define GPO_SDIO1_CDATA_OUT_0 58 +#define GPO_SDIO1_CDATA_OUT_1 59 +#define GPO_SDIO1_CDATA_OUT_2 60 +#define GPO_SDIO1_CDATA_OUT_3 61 +#define GPO_SDIO1_CDATA_OUT_4 62 +#define GPO_SDIO1_CDATA_OUT_5 63 +#define GPO_SDIO1_CDATA_OUT_6 64 +#define GPO_SDIO1_CDATA_OUT_7 65 +#define GPO_SDIO1_RST_N 66 +#define GPO_UART1_RTS_N 67 +#define GPO_UART1_SOUT 68 +#define GPO_I2STX_4CH1_SDO0 69 +#define GPO_I2STX_4CH1_SDO1 70 +#define GPO_I2STX_4CH1_SDO2 71 +#define GPO_I2STX_4CH1_SDO3 72 +#define GPO_SPI1_SSPCLKOUT 73 +#define GPO_SPI1_SSPFSSOUT 74 +#define GPO_SPI1_SSPTXD 75 +#define GPO_I2C2_IC_CLK_OUT_A 76 +#define GPO_I2C2_IC_DATA_OUT_A 77 +#define GPO_UART2_RTS_N 78 +#define GPO_UART2_SOUT 79 +#define GPO_SPI2_SSPCLKOUT 80 +#define GPO_SPI2_SSPFSSOUT 81 +#define GPO_SPI2_SSPTXD 82 +#define GPO_I2C3_IC_CLK_OUT_A 83 +#define GPO_I2C3_IC_DATA_OUT_A 84 +#define GPO_UART3_SOUT 85 +#define GPO_SPI3_SSPCLKOUT 86 +#define GPO_SPI3_SSPFSSOUT 87 +#define GPO_SPI3_SSPTXD 88 +#define GPO_I2C4_IC_CLK_OUT_A 89 +#define GPO_I2C4_IC_DATA_OUT_A 90 +#define GPO_UART4_RTS_N 91 +#define GPO_UART4_SOUT 92 +#define GPO_SPI4_SSPCLKOUT 93 +#define GPO_SPI4_SSPFSSOUT 94 +#define GPO_SPI4_SSPTXD 95 +#define GPO_I2C5_IC_CLK_OUT_A 96 +#define GPO_I2C5_IC_DATA_OUT_A 97 +#define GPO_UART5_RTS_N 98 +#define GPO_UART5_SOUT 99 +#define GPO_SPI5_SSPCLKOUT 100 +#define GPO_SPI5_SSPFSSOUT 101 +#define GPO_SPI5_SSPTXD 102 +#define GPO_I2C6_IC_CLK_OUT_A 103 +#define GPO_I2C6_IC_DATA_OUT_A 104 +#define GPO_SPI6_SSPCLKOUT 105 +#define GPO_SPI6_SSPFSSOUT 106 +#define GPO_SPI6_SSPTXD 107 +#define GPO_NONE 108 + +#define OEN_LOW 0 +#define OEN_HIGH 1 +#define OEN_HDMI0_CEC_SDA_OEN 2 +#define OEN_HDMI0_DDC_SCL_OEN 3 +#define OEN_HDMI0_DDC_SDA_OEN 4 +#define OEN_I2C0_IC_CLK_OE 5 +#define OEN_I2C0_IC_DATA_OE 6 +#define OEN_JTAG_DSP_TDO_OEN 7 +#define OEN_JTAG_CPU_CERTIFICATION_TDO_OE 8 +#define OEN_PTC0_PWM_0_OE_N 9 +#define OEN_PTC0_PWM_1_OE_N 10 +#define OEN_PTC0_PWM_2_OE_N 11 +#define OEN_PTC0_PWM_3_OE_N 12 +#define OEN_SPI0_NSSPCTLOE 13 +#define OEN_SPI0_NSSPOE 14 +#define OEN_TDM0_NPCM_SYNCOE 15 +#define OEN_TDM0_NPCM_TXDOE 16 +#define OEN_I2C1_IC_CLK_OE 17 +#define OEN_I2C1_IC_DATA_OE 18 +#define OEN_SDIO1_CCMD_OUT_EN 19 +#define OEN_SDIO1_CDATA_OUT_EN_0 20 +#define OEN_SDIO1_CDATA_OUT_EN_1 21 +#define OEN_SDIO1_CDATA_OUT_EN_2 22 +#define OEN_SDIO1_CDATA_OUT_EN_3 23 +#define OEN_SDIO1_CDATA_OUT_EN_4 24 +#define OEN_SDIO1_CDATA_OUT_EN_5 25 +#define OEN_SDIO1_CDATA_OUT_EN_6 26 +#define OEN_SDIO1_CDATA_OUT_EN_7 27 +#define OEN_SPI1_NSSPCTLOE 28 +#define OEN_SPI1_NSSPOE 29 +#define OEN_I2C2_IC_CLK_OE 30 +#define OEN_I2C2_IC_DATA_OE 31 +#define OEN_SPI2_NSSPCTLOE 32 +#define OEN_SPI2_NSSPOE 33 +#define OEN_I2C3_IC_CLK_OE 34 +#define OEN_I2C3_IC_DATA_OE 35 +#define OEN_SPI3_NSSPCTLOE 36 +#define OEN_SPI3_NSSPOE 37 +#define OEN_I2C4_IC_CLK_OE 38 +#define OEN_I2C4_IC_DATA_OE 39 +#define OEN_SPI4_NSSPCTLOE 40 +#define OEN_SPI4_NSSPOE 41 +#define OEN_I2C5_IC_CLK_OE 42 +#define OEN_I2C5_IC_DATA_OE 43 +#define OEN_SPI5_NSSPCTLOE 44 +#define OEN_SPI5_NSSPOE 45 +#define OEN_I2C6_IC_CLK_OE 46 +#define OEN_I2C6_IC_DATA_OE 47 +#define OEN_SPI6_NSSPCTLOE 48 +#define OEN_SPI6_NSSPOE 49 +#define OEN_NONE 50 + +#define GPI_WAVE511_0_I_UART_RXSIN 0 +#define GPI_CAN0_CTRL_RXD 1 +#define GPI_USB0_OVERCURRENT_N_IO 2 +#define GPI_SPDIF0_SPDIFI 3 +#define GPI_JTAG_CPU_CERTIFICATION_BYPASS_TRSTN 4 +#define GPI_HDMI0_CEC_SDA_IN 5 +#define GPI_HDMI0_DDC_SCL_IN 6 +#define GPI_HDMI0_DDC_SDA_IN 7 +#define GPI_HDMI0_HPD 8 +#define GPI_I2C0_IC_CLK_IN_A 9 +#define GPI_I2C0_IC_DATA_IN_A 10 +#define GPI_SDIO0_CARD_DETECT_N 11 +#define GPI_SDIO0_CARD_INT_N 12 +#define GPI_SDIO0_CARD_WRITE_PRT 13 +#define GPI_UART0_SIN 14 +#define GPI_JTAG_DSP_TCK 15 +#define GPI_JTAG_DSP_TDI 16 +#define GPI_JTAG_DSP_TMS 17 +#define GPI_JTAG_DSP_TRST_N 18 +#define GPI_JTAG_CPU_CERTIFICATION_TDI 19 +#define GPI_JTAG_CPU_CERTIFICATION_TMS 20 +#define GPI_PDM_4MIC0_DMIC0_DIN 21 +#define GPI_PDM_4MIC0_DMIC1_DIN 22 +#define GPI_I2SRX0_EXT_SDIN0 23 +#define GPI_I2SRX0_EXT_SDIN1 24 +#define GPI_I2SRX0_EXT_SDIN2 25 +#define GPI_SPI0_SSPCLKIN 26 +#define GPI_SPI0_SSPFSSIN 27 +#define GPI_SPI0_SSPRXD 28 +#define GPI_JTAG_CPU_CERTIFICATION_TCK 29 +#define GPI_CRG0_EXT_MCLK 30 +#define GPI_I2SRX0_BCLK_SLV 31 +#define GPI_I2SRX0_LRCK_SLV 32 +#define GPI_I2STX0_BCLK_SLV 33 +#define GPI_I2STX0_LRCK_SLV 34 +#define GPI_TDM0_CLK_SLV 35 +#define GPI_TDM0_PCM_RXD 36 +#define GPI_TDM0_PCM_SYNCIN 37 +#define GPI_CAN1_CTRL_RXD 38 +#define GPI_I2C1_IC_CLK_IN_A 39 +#define GPI_I2C1_IC_DATA_IN_A 40 +#define GPI_SDIO1_CARD_DETECT_N 41 +#define GPI_SDIO1_CARD_INT_N 42 +#define GPI_SDIO1_CARD_WRITE_PRT 43 +#define GPI_SDIO1_CCMD_IN 44 +#define GPI_SDIO1_CDATA_IN_0 45 +#define GPI_SDIO1_CDATA_IN_1 46 +#define GPI_SDIO1_CDATA_IN_2 47 +#define GPI_SDIO1_CDATA_IN_3 48 +#define GPI_SDIO1_CDATA_IN_4 49 +#define GPI_SDIO1_CDATA_IN_5 50 +#define GPI_SDIO1_CDATA_IN_6 51 +#define GPI_SDIO1_CDATA_IN_7 52 +#define GPI_SDIO1_DATA_STROBE 53 +#define GPI_UART1_CTS_N 54 +#define GPI_UART1_SIN 55 +#define GPI_SPI1_SSPCLKIN 56 +#define GPI_SPI1_SSPFSSIN 57 +#define GPI_SPI1_SSPRXD 58 +#define GPI_I2C2_IC_CLK_IN_A 59 +#define GPI_I2C2_IC_DATA_IN_A 60 +#define GPI_UART2_CTS_N 61 +#define GPI_UART2_SIN 62 +#define GPI_SPI2_SSPCLKIN 63 +#define GPI_SPI2_SSPFSSIN 64 +#define GPI_SPI2_SSPRXD 65 +#define GPI_I2C3_IC_CLK_IN_A 66 +#define GPI_I2C3_IC_DATA_IN_A 67 +#define GPI_UART3_SIN 68 +#define GPI_SPI3_SSPCLKIN 69 +#define GPI_SPI3_SSPFSSIN 70 +#define GPI_SPI3_SSPRXD 71 +#define GPI_I2C4_IC_CLK_IN_A 72 +#define GPI_I2C4_IC_DATA_IN_A 73 +#define GPI_UART4_CTS_N 74 +#define GPI_UART4_SIN 75 +#define GPI_SPI4_SSPCLKIN 76 +#define GPI_SPI4_SSPFSSIN 77 +#define GPI_SPI4_SSPRXD 78 +#define GPI_I2C5_IC_CLK_IN_A 79 +#define GPI_I2C5_IC_DATA_IN_A 80 +#define GPI_UART5_CTS_N 81 +#define GPI_UART5_SIN 82 +#define GPI_SPI5_SSPCLKIN 83 +#define GPI_SPI5_SSPFSSIN 84 +#define GPI_SPI5_SSPRXD 85 +#define GPI_I2C6_IC_CLK_IN_A 86 +#define GPI_I2C6_IC_DATA_IN_A 87 +#define GPI_SPI6_SSPCLKIN 88 +#define GPI_SPI6_SSPFSSIN 89 +#define GPI_SPI6_SSPRXD 90 +#define GPI_NONE 91 + +/* sys_iomux syscon */ +#define PADCFG_PAD_GMAC1_MDC_SYSCON 0x24c +#define PADCFG_PAD_GMAC1_MDIO_SYSCON 0x250 +#define PADCFG_PAD_GMAC1_RXD0_SYSCON 0x254 +#define PADCFG_PAD_GMAC1_RXD1_SYSCON 0x258 +#define PADCFG_PAD_GMAC1_RXD2_SYSCON 0x25c +#define PADCFG_PAD_GMAC1_RXD3_SYSCON 0x260 +#define PADCFG_PAD_GMAC1_RXDV_SYSCON 0x264 +#define PADCFG_PAD_GMAC1_RXC_SYSCON 0x268 +#define PADCFG_PAD_GMAC1_TXD0_SYSCON 0x26c +#define PADCFG_PAD_GMAC1_TXD1_SYSCON 0x270 +#define PADCFG_PAD_GMAC1_TXD2_SYSCON 0x274 +#define PADCFG_PAD_GMAC1_TXD3_SYSCON 0x278 +#define PADCFG_PAD_GMAC1_TXEN_SYSCON 0x27c +#define PADCFG_PAD_GMAC1_TXC_SYSCON 0x280 + +/* sys_iomux func sel setting */ +#define SYS_IOMUX_CFGSAIF_668_ADDR 0x29c +#define PAD_GMAC1_RXC_FUNC_SEL_SHIFT 0x0 +#define PAD_GMAC1_RXC_FUNC_SEL_MASK 0x3 +#define PAD_GPIO10_FUNC_SEL_SHIFT 0x2 +#define PAD_GPIO10_FUNC_SEL_MASK 0x1C +#define PAD_GPIO11_FUNC_SEL_SHIFT 0x5 +#define PAD_GPIO11_FUNC_SEL_MASK 0xE0 +#define PAD_GPIO12_FUNC_SEL_SHIFT 0x8 +#define PAD_GPIO12_FUNC_SEL_MASK 0x700 +#define PAD_GPIO13_FUNC_SEL_SHIFT 0xB +#define PAD_GPIO13_FUNC_SEL_MASK 0x3800 +#define PAD_GPIO14_FUNC_SEL_SHIFT 0xE +#define PAD_GPIO14_FUNC_SEL_MASK 0x1C000 +#define PAD_GPIO15_FUNC_SEL_SHIFT 0x11 +#define PAD_GPIO15_FUNC_SEL_MASK 0xE0000 +#define PAD_GPIO16_FUNC_SEL_SHIFT 0x14 +#define PAD_GPIO16_FUNC_SEL_MASK 0x700000 +#define PAD_GPIO17_FUNC_SEL_SHIFT 0x17 +#define PAD_GPIO17_FUNC_SEL_MASK 0x3800000 +#define PAD_GPIO18_FUNC_SEL_SHIFT 0x1A +#define PAD_GPIO18_FUNC_SEL_MASK 0x1C000000 +#define PAD_GPIO19_FUNC_SEL_SHIFT 0x1D +#define PAD_GPIO19_FUNC_SEL_MASK 0xE0000000 +#define SYS_IOMUX_CFGSAIF_672_ADDR 0x2a0 +#define PAD_GPIO20_FUNC_SEL_SHIFT 0x0 +#define PAD_GPIO20_FUNC_SEL_MASK 0x7 +#define PAD_GPIO21_FUNC_SEL_SHIFT 0x3 +#define PAD_GPIO21_FUNC_SEL_MASK 0x38 +#define PAD_GPIO22_FUNC_SEL_SHIFT 0x6 +#define PAD_GPIO22_FUNC_SEL_MASK 0x1C0 +#define PAD_GPIO23_FUNC_SEL_SHIFT 0x9 +#define PAD_GPIO23_FUNC_SEL_MASK 0xE00 +#define PAD_GPIO24_FUNC_SEL_SHIFT 0xC +#define PAD_GPIO24_FUNC_SEL_MASK 0x7000 +#define PAD_GPIO25_FUNC_SEL_SHIFT 0xF +#define PAD_GPIO25_FUNC_SEL_MASK 0x38000 +#define PAD_GPIO26_FUNC_SEL_SHIFT 0x12 +#define PAD_GPIO26_FUNC_SEL_MASK 0x1C0000 +#define PAD_GPIO27_FUNC_SEL_SHIFT 0x15 +#define PAD_GPIO27_FUNC_SEL_MASK 0xE00000 +#define PAD_GPIO28_FUNC_SEL_SHIFT 0x18 +#define PAD_GPIO28_FUNC_SEL_MASK 0x7000000 +#define PAD_GPIO29_FUNC_SEL_SHIFT 0x1B +#define PAD_GPIO29_FUNC_SEL_MASK 0x38000000 +#define SYS_IOMUX_CFGSAIF_676_ADDR 0x2a4 +#define PAD_GPIO30_FUNC_SEL_SHIFT 0x0 +#define PAD_GPIO30_FUNC_SEL_MASK 0x7 +#define PAD_GPIO31_FUNC_SEL_SHIFT 0x3 +#define PAD_GPIO31_FUNC_SEL_MASK 0x38 +#define PAD_GPIO32_FUNC_SEL_SHIFT 0x6 +#define PAD_GPIO32_FUNC_SEL_MASK 0x1C0 +#define PAD_GPIO33_FUNC_SEL_SHIFT 0x9 +#define PAD_GPIO33_FUNC_SEL_MASK 0xE00 +#define PAD_GPIO34_FUNC_SEL_SHIFT 0xC +#define PAD_GPIO34_FUNC_SEL_MASK 0x7000 +#define PAD_GPIO35_FUNC_SEL_SHIFT 0xF +#define PAD_GPIO35_FUNC_SEL_MASK 0x18000 +#define PAD_GPIO36_FUNC_SEL_SHIFT 0x11 +#define PAD_GPIO36_FUNC_SEL_MASK 0xE0000 +#define PAD_GPIO37_FUNC_SEL_SHIFT 0x14 +#define PAD_GPIO37_FUNC_SEL_MASK 0x700000 +#define PAD_GPIO38_FUNC_SEL_SHIFT 0x17 +#define PAD_GPIO38_FUNC_SEL_MASK 0x3800000 +#define PAD_GPIO39_FUNC_SEL_SHIFT 0x1A +#define PAD_GPIO39_FUNC_SEL_MASK 0x1C000000 +#define PAD_GPIO40_FUNC_SEL_SHIFT 0x1D +#define PAD_GPIO40_FUNC_SEL_MASK 0xE0000000 +#define SYS_IOMUX_CFGSAIF_680_ADDR 0x2a8 +#define PAD_GPIO41_FUNC_SEL_SHIFT 0x0 +#define PAD_GPIO41_FUNC_SEL_MASK 0x7 +#define PAD_GPIO42_FUNC_SEL_SHIFT 0x3 +#define PAD_GPIO42_FUNC_SEL_MASK 0x38 +#define PAD_GPIO43_FUNC_SEL_SHIFT 0x6 +#define PAD_GPIO43_FUNC_SEL_MASK 0x1C0 +#define PAD_GPIO44_FUNC_SEL_SHIFT 0x9 +#define PAD_GPIO44_FUNC_SEL_MASK 0xE00 +#define PAD_GPIO45_FUNC_SEL_SHIFT 0xC +#define PAD_GPIO45_FUNC_SEL_MASK 0x7000 +#define PAD_GPIO46_FUNC_SEL_SHIFT 0xF +#define PAD_GPIO46_FUNC_SEL_MASK 0x38000 +#define PAD_GPIO47_FUNC_SEL_SHIFT 0x12 +#define PAD_GPIO47_FUNC_SEL_MASK 0x1C0000 +#define PAD_GPIO48_FUNC_SEL_SHIFT 0x15 +#define PAD_GPIO48_FUNC_SEL_MASK 0xE00000 +#define PAD_GPIO49_FUNC_SEL_SHIFT 0x18 +#define PAD_GPIO49_FUNC_SEL_MASK 0x7000000 +#define PAD_GPIO50_FUNC_SEL_SHIFT 0x1B +#define PAD_GPIO50_FUNC_SEL_MASK 0x38000000 +#define PAD_GPIO51_FUNC_SEL_SHIFT 0x1E +#define PAD_GPIO51_FUNC_SEL_MASK 0xC0000000 +#define SYS_IOMUX_CFGSAIF_684_ADDR 0x2ac +#define PAD_GPIO52_FUNC_SEL_SHIFT 0x0 +#define PAD_GPIO52_FUNC_SEL_MASK 0x3 +#define PAD_GPIO53_FUNC_SEL_SHIFT 0x2 +#define PAD_GPIO53_FUNC_SEL_MASK 0xC +#define PAD_GPIO54_FUNC_SEL_SHIFT 0x4 +#define PAD_GPIO54_FUNC_SEL_MASK 0x30 +#define PAD_GPIO55_FUNC_SEL_SHIFT 0x6 +#define PAD_GPIO55_FUNC_SEL_MASK 0x1C0 +#define PAD_GPIO56_FUNC_SEL_SHIFT 0x9 +#define PAD_GPIO56_FUNC_SEL_MASK 0xE00 +#define PAD_GPIO57_FUNC_SEL_SHIFT 0xC +#define PAD_GPIO57_FUNC_SEL_MASK 0x7000 +#define PAD_GPIO58_FUNC_SEL_SHIFT 0xF +#define PAD_GPIO58_FUNC_SEL_MASK 0x38000 +#define PAD_GPIO59_FUNC_SEL_SHIFT 0x12 +#define PAD_GPIO59_FUNC_SEL_MASK 0x1C0000 +#define PAD_GPIO60_FUNC_SEL_SHIFT 0x15 +#define PAD_GPIO60_FUNC_SEL_MASK 0xE00000 +#define PAD_GPIO61_FUNC_SEL_SHIFT 0x18 +#define PAD_GPIO61_FUNC_SEL_MASK 0x7000000 +#define PAD_GPIO62_FUNC_SEL_SHIFT 0x1B +#define PAD_GPIO62_FUNC_SEL_MASK 0x38000000 +#define PAD_GPIO63_FUNC_SEL_SHIFT 0x1E +#define PAD_GPIO63_FUNC_SEL_MASK 0xC0000000 +#define SYS_IOMUX_CFGSAIF_688_ADDR 0x2b0 +#define PAD_GPIO6_FUNC_SEL_SHIFT 0x0 +#define PAD_GPIO6_FUNC_SEL_MASK 0x3 +#define PAD_GPIO7_FUNC_SEL_SHIFT 0x2 +#define PAD_GPIO7_FUNC_SEL_MASK 0x1C +#define PAD_GPIO8_FUNC_SEL_SHIFT 0x5 +#define PAD_GPIO8_FUNC_SEL_MASK 0xE0 +#define PAD_GPIO9_FUNC_SEL_SHIFT 0x8 +#define PAD_GPIO9_FUNC_SEL_MASK 0x700 +#define ISP_VIN_DVP_DATA0_FUNC_SEL_SHIFT 0xB +#define ISP_VIN_DVP_DATA0_FUNC_SEL_MASK 0x3800 +#define ISP_VIN_DVP_DATA10_FUNC_SEL_SHIFT 0xE +#define ISP_VIN_DVP_DATA10_FUNC_SEL_MASK 0x1C000 +#define ISP_VIN_DVP_DATA11_FUNC_SEL_SHIFT 0x11 +#define ISP_VIN_DVP_DATA11_FUNC_SEL_MASK 0xE0000 +#define ISP_VIN_DVP_DATA1_FUNC_SEL_SHIFT 0x14 +#define ISP_VIN_DVP_DATA1_FUNC_SEL_MASK 0x700000 +#define ISP_VIN_DVP_DATA2_FUNC_SEL_SHIFT 0x17 +#define ISP_VIN_DVP_DATA2_FUNC_SEL_MASK 0x3800000 +#define ISP_VIN_DVP_DATA3_FUNC_SEL_SHIFT 0x1A +#define ISP_VIN_DVP_DATA3_FUNC_SEL_MASK 0x1C000000 +#define ISP_VIN_DVP_DATA4_FUNC_SEL_SHIFT 0x1D +#define ISP_VIN_DVP_DATA4_FUNC_SEL_MASK 0xE0000000 +#define SYS_IOMUX_CFGSAIF_692_ADDR 0x2b4 +#define ISP_VIN_DVP_DATA5_FUNC_SEL_SHIFT 0x0 +#define ISP_VIN_DVP_DATA5_FUNC_SEL_MASK 0x7 +#define ISP_VIN_DVP_DATA6_FUNC_SEL_SHIFT 0x3 +#define ISP_VIN_DVP_DATA6_FUNC_SEL_MASK 0x38 +#define ISP_VIN_DVP_DATA7_FUNC_SEL_SHIFT 0x6 +#define ISP_VIN_DVP_DATA7_FUNC_SEL_MASK 0x1C0 +#define ISP_VIN_DVP_DATA8_FUNC_SEL_SHIFT 0x9 +#define ISP_VIN_DVP_DATA8_FUNC_SEL_MASK 0xE00 +#define ISP_VIN_DVP_DATA9_FUNC_SEL_SHIFT 0xC +#define ISP_VIN_DVP_DATA9_FUNC_SEL_MASK 0x7000 +#define ISP_VIN_DVP_HVALID_FUNC_SEL_SHIFT 0xF +#define ISP_VIN_DVP_HVALID_FUNC_SEL_MASK 0x38000 +#define ISP_VIN_DVP_VVALID_FUNC_SEL_SHIFT 0x12 +#define ISP_VIN_DVP_VVALID_FUNC_SEL_MASK 0x1C0000 +#define DVP_CLK_FUNC_SEL_SHIFT 0x15 +#define DVP_CLK_FUNC_SEL_MASK 0xE00000 + +#define PAD_GMAC1_RXC_FUNC_SEL \ + SYS_IOMUX_CFGSAIF_668_ADDR \ + PAD_GMAC1_RXC_FUNC_SEL_SHIFT \ + PAD_GMAC1_RXC_FUNC_SEL_MASK +#define PAD_GPIO10_FUNC_SEL \ + SYS_IOMUX_CFGSAIF_668_ADDR \ + PAD_GPIO10_FUNC_SEL_SHIFT \ + PAD_GPIO10_FUNC_SEL_MASK +#define PAD_GPIO11_FUNC_SEL \ + SYS_IOMUX_CFGSAIF_668_ADDR \ + PAD_GPIO11_FUNC_SEL_SHIFT \ + PAD_GPIO11_FUNC_SEL_MASK +#define PAD_GPIO12_FUNC_SEL \ + SYS_IOMUX_CFGSAIF_668_ADDR \ + PAD_GPIO12_FUNC_SEL_SHIFT \ + PAD_GPIO12_FUNC_SEL_MASK +#define PAD_GPIO13_FUNC_SEL \ + SYS_IOMUX_CFGSAIF_668_ADDR \ + PAD_GPIO13_FUNC_SEL_SHIFT \ + PAD_GPIO13_FUNC_SEL_MASK +#define PAD_GPIO14_FUNC_SEL \ + SYS_IOMUX_CFGSAIF_668_ADDR \ + PAD_GPIO14_FUNC_SEL_SHIFT \ + PAD_GPIO14_FUNC_SEL_MASK +#define PAD_GPIO15_FUNC_SEL \ + SYS_IOMUX_CFGSAIF_668_ADDR \ + PAD_GPIO15_FUNC_SEL_SHIFT \ + PAD_GPIO15_FUNC_SEL_MASK +#define PAD_GPIO16_FUNC_SEL \ + SYS_IOMUX_CFGSAIF_668_ADDR \ + PAD_GPIO16_FUNC_SEL_SHIFT \ + PAD_GPIO16_FUNC_SEL_MASK +#define PAD_GPIO17_FUNC_SEL \ + SYS_IOMUX_CFGSAIF_668_ADDR \ + PAD_GPIO17_FUNC_SEL_SHIFT \ + PAD_GPIO17_FUNC_SEL_MASK +#define PAD_GPIO18_FUNC_SEL \ + SYS_IOMUX_CFGSAIF_668_ADDR \ + PAD_GPIO18_FUNC_SEL_SHIFT \ + PAD_GPIO18_FUNC_SEL_MASK +#define PAD_GPIO19_FUNC_SEL \ + SYS_IOMUX_CFGSAIF_668_ADDR \ + PAD_GPIO19_FUNC_SEL_SHIFT \ + PAD_GPIO19_FUNC_SEL_MASK +#define PAD_GPIO20_FUNC_SEL \ + SYS_IOMUX_CFGSAIF_672_ADDR \ + PAD_GPIO20_FUNC_SEL_SHIFT \ + PAD_GPIO20_FUNC_SEL_MASK +#define PAD_GPIO21_FUNC_SEL \ + SYS_IOMUX_CFGSAIF_672_ADDR \ + PAD_GPIO21_FUNC_SEL_SHIFT \ + PAD_GPIO21_FUNC_SEL_MASK +#define PAD_GPIO22_FUNC_SEL \ + SYS_IOMUX_CFGSAIF_672_ADDR \ + PAD_GPIO22_FUNC_SEL_SHIFT \ + PAD_GPIO22_FUNC_SEL_MASK +#define PAD_GPIO23_FUNC_SEL \ + SYS_IOMUX_CFGSAIF_672_ADDR \ + PAD_GPIO23_FUNC_SEL_SHIFT \ + PAD_GPIO23_FUNC_SEL_MASK +#define PAD_GPIO24_FUNC_SEL \ + SYS_IOMUX_CFGSAIF_672_ADDR \ + PAD_GPIO24_FUNC_SEL_SHIFT \ + PAD_GPIO24_FUNC_SEL_MASK +#define PAD_GPIO25_FUNC_SEL \ + SYS_IOMUX_CFGSAIF_672_ADDR \ + PAD_GPIO25_FUNC_SEL_SHIFT \ + PAD_GPIO25_FUNC_SEL_MASK +#define PAD_GPIO26_FUNC_SEL \ + SYS_IOMUX_CFGSAIF_672_ADDR \ + PAD_GPIO26_FUNC_SEL_SHIFT \ + PAD_GPIO26_FUNC_SEL_MASK +#define PAD_GPIO27_FUNC_SEL \ + SYS_IOMUX_CFGSAIF_672_ADDR \ + PAD_GPIO27_FUNC_SEL_SHIFT \ + PAD_GPIO27_FUNC_SEL_MASK +#define PAD_GPIO28_FUNC_SEL \ + SYS_IOMUX_CFGSAIF_672_ADDR \ + PAD_GPIO28_FUNC_SEL_SHIFT \ + PAD_GPIO28_FUNC_SEL_MASK +#define PAD_GPIO29_FUNC_SEL \ + SYS_IOMUX_CFGSAIF_672_ADDR \ + PAD_GPIO29_FUNC_SEL_SHIFT \ + PAD_GPIO29_FUNC_SEL_MASK +#define PAD_GPIO30_FUNC_SEL \ + SYS_IOMUX_CFGSAIF_676_ADDR \ + PAD_GPIO30_FUNC_SEL_SHIFT \ + PAD_GPIO30_FUNC_SEL_MASK +#define PAD_GPIO31_FUNC_SEL \ + SYS_IOMUX_CFGSAIF_676_ADDR \ + PAD_GPIO31_FUNC_SEL_SHIFT \ + PAD_GPIO31_FUNC_SEL_MASK +#define PAD_GPIO32_FUNC_SEL \ + SYS_IOMUX_CFGSAIF_676_ADDR \ + PAD_GPIO32_FUNC_SEL_SHIFT \ + PAD_GPIO32_FUNC_SEL_MASK +#define PAD_GPIO33_FUNC_SEL \ + SYS_IOMUX_CFGSAIF_676_ADDR \ + PAD_GPIO33_FUNC_SEL_SHIFT \ + PAD_GPIO33_FUNC_SEL_MASK +#define PAD_GPIO34_FUNC_SEL \ + SYS_IOMUX_CFGSAIF_676_ADDR \ + PAD_GPIO34_FUNC_SEL_SHIFT \ + PAD_GPIO34_FUNC_SEL_MASK +#define PAD_GPIO35_FUNC_SEL \ + SYS_IOMUX_CFGSAIF_676_ADDR \ + PAD_GPIO35_FUNC_SEL_SHIFT \ + PAD_GPIO35_FUNC_SEL_MASK +#define PAD_GPIO36_FUNC_SEL \ + SYS_IOMUX_CFGSAIF_676_ADDR \ + PAD_GPIO36_FUNC_SEL_SHIFT \ + PAD_GPIO36_FUNC_SEL_MASK +#define PAD_GPIO37_FUNC_SEL \ + SYS_IOMUX_CFGSAIF_676_ADDR \ + PAD_GPIO37_FUNC_SEL_SHIFT \ + PAD_GPIO37_FUNC_SEL_MASK +#define PAD_GPIO38_FUNC_SEL \ + SYS_IOMUX_CFGSAIF_676_ADDR \ + PAD_GPIO38_FUNC_SEL_SHIFT \ + PAD_GPIO38_FUNC_SEL_MASK +#define PAD_GPIO39_FUNC_SEL \ + SYS_IOMUX_CFGSAIF_676_ADDR \ + PAD_GPIO39_FUNC_SEL_SHIFT \ + PAD_GPIO39_FUNC_SEL_MASK +#define PAD_GPIO40_FUNC_SEL \ + SYS_IOMUX_CFGSAIF_676_ADDR \ + PAD_GPIO40_FUNC_SEL_SHIFT \ + PAD_GPIO40_FUNC_SEL_MASK +#define PAD_GPIO41_FUNC_SEL \ + SYS_IOMUX_CFGSAIF_680_ADDR \ + PAD_GPIO41_FUNC_SEL_SHIFT \ + PAD_GPIO41_FUNC_SEL_MASK +#define PAD_GPIO42_FUNC_SEL \ + SYS_IOMUX_CFGSAIF_680_ADDR \ + PAD_GPIO42_FUNC_SEL_SHIFT \ + PAD_GPIO42_FUNC_SEL_MASK +#define PAD_GPIO43_FUNC_SEL \ + SYS_IOMUX_CFGSAIF_680_ADDR \ + PAD_GPIO43_FUNC_SEL_SHIFT \ + PAD_GPIO43_FUNC_SEL_MASK +#define PAD_GPIO44_FUNC_SEL \ + SYS_IOMUX_CFGSAIF_680_ADDR \ + PAD_GPIO44_FUNC_SEL_SHIFT \ + PAD_GPIO44_FUNC_SEL_MASK +#define PAD_GPIO45_FUNC_SEL \ + SYS_IOMUX_CFGSAIF_680_ADDR \ + PAD_GPIO45_FUNC_SEL_SHIFT \ + PAD_GPIO45_FUNC_SEL_MASK +#define PAD_GPIO46_FUNC_SEL \ + SYS_IOMUX_CFGSAIF_680_ADDR \ + PAD_GPIO46_FUNC_SEL_SHIFT \ + PAD_GPIO46_FUNC_SEL_MASK +#define PAD_GPIO47_FUNC_SEL \ + SYS_IOMUX_CFGSAIF_680_ADDR \ + PAD_GPIO47_FUNC_SEL_SHIFT \ + PAD_GPIO47_FUNC_SEL_MASK +#define PAD_GPIO48_FUNC_SEL \ + SYS_IOMUX_CFGSAIF_680_ADDR \ + PAD_GPIO48_FUNC_SEL_SHIFT \ + PAD_GPIO48_FUNC_SEL_MASK +#define PAD_GPIO49_FUNC_SEL \ + SYS_IOMUX_CFGSAIF_680_ADDR \ + PAD_GPIO49_FUNC_SEL_SHIFT \ + PAD_GPIO49_FUNC_SEL_MASK +#define PAD_GPIO50_FUNC_SEL \ + SYS_IOMUX_CFGSAIF_680_ADDR \ + PAD_GPIO50_FUNC_SEL_SHIFT \ + PAD_GPIO50_FUNC_SEL_MASK +#define PAD_GPIO51_FUNC_SEL \ + SYS_IOMUX_CFGSAIF_680_ADDR \ + PAD_GPIO51_FUNC_SEL_SHIFT \ + PAD_GPIO51_FUNC_SEL_MASK +#define PAD_GPIO52_FUNC_SEL \ + SYS_IOMUX_CFGSAIF_684_ADDR \ + PAD_GPIO52_FUNC_SEL_SHIFT \ + PAD_GPIO52_FUNC_SEL_MASK +#define PAD_GPIO53_FUNC_SEL \ + SYS_IOMUX_CFGSAIF_684_ADDR \ + PAD_GPIO53_FUNC_SEL_SHIFT \ + PAD_GPIO53_FUNC_SEL_MASK +#define PAD_GPIO54_FUNC_SEL \ + SYS_IOMUX_CFGSAIF_684_ADDR \ + PAD_GPIO54_FUNC_SEL_SHIFT \ + PAD_GPIO54_FUNC_SEL_MASK +#define PAD_GPIO55_FUNC_SEL \ + SYS_IOMUX_CFGSAIF_684_ADDR \ + PAD_GPIO55_FUNC_SEL_SHIFT \ + PAD_GPIO55_FUNC_SEL_MASK +#define PAD_GPIO56_FUNC_SEL \ + SYS_IOMUX_CFGSAIF_684_ADDR \ + PAD_GPIO56_FUNC_SEL_SHIFT \ + PAD_GPIO56_FUNC_SEL_MASK +#define PAD_GPIO57_FUNC_SEL \ + SYS_IOMUX_CFGSAIF_684_ADDR \ + PAD_GPIO57_FUNC_SEL_SHIFT \ + PAD_GPIO57_FUNC_SEL_MASK +#define PAD_GPIO58_FUNC_SEL \ + SYS_IOMUX_CFGSAIF_684_ADDR \ + PAD_GPIO58_FUNC_SEL_SHIFT \ + PAD_GPIO58_FUNC_SEL_MASK +#define PAD_GPIO59_FUNC_SEL \ + SYS_IOMUX_CFGSAIF_684_ADDR \ + PAD_GPIO59_FUNC_SEL_SHIFT \ + PAD_GPIO59_FUNC_SEL_MASK +#define PAD_GPIO60_FUNC_SEL \ + SYS_IOMUX_CFGSAIF_684_ADDR \ + PAD_GPIO60_FUNC_SEL_SHIFT \ + PAD_GPIO60_FUNC_SEL_MASK +#define PAD_GPIO61_FUNC_SEL \ + SYS_IOMUX_CFGSAIF_684_ADDR \ + PAD_GPIO61_FUNC_SEL_SHIFT \ + PAD_GPIO61_FUNC_SEL_MASK +#define PAD_GPIO62_FUNC_SEL \ + SYS_IOMUX_CFGSAIF_684_ADDR \ + PAD_GPIO62_FUNC_SEL_SHIFT \ + PAD_GPIO62_FUNC_SEL_MASK +#define PAD_GPIO63_FUNC_SEL \ + SYS_IOMUX_CFGSAIF_684_ADDR \ + PAD_GPIO63_FUNC_SEL_SHIFT \ + PAD_GPIO63_FUNC_SEL_MASK +#define PAD_GPIO6_FUNC_SEL \ + SYS_IOMUX_CFGSAIF_688_ADDR \ + PAD_GPIO6_FUNC_SEL_SHIFT \ + PAD_GPIO6_FUNC_SEL_MASK +#define PAD_GPIO7_FUNC_SEL \ + SYS_IOMUX_CFGSAIF_688_ADDR \ + PAD_GPIO7_FUNC_SEL_SHIFT \ + PAD_GPIO7_FUNC_SEL_MASK +#define PAD_GPIO8_FUNC_SEL \ + SYS_IOMUX_CFGSAIF_688_ADDR \ + PAD_GPIO8_FUNC_SEL_SHIFT \ + PAD_GPIO8_FUNC_SEL_MASK +#define PAD_GPIO9_FUNC_SEL \ + SYS_IOMUX_CFGSAIF_688_ADDR \ + PAD_GPIO9_FUNC_SEL_SHIFT \ + PAD_GPIO9_FUNC_SEL_MASK +#define ISP_VIN_DVP_DATA0_FUNC_SEL \ + SYS_IOMUX_CFGSAIF_688_ADDR \ + ISP_VIN_DVP_DATA0_FUNC_SEL_SHIFT \ + ISP_VIN_DVP_DATA0_FUNC_SEL_MASK +#define ISP_VIN_DVP_DATA10_FUNC_SEL \ + SYS_IOMUX_CFGSAIF_688_ADDR \ + ISP_VIN_DVP_DATA10_FUNC_SEL_SHIFT \ + ISP_VIN_DVP_DATA10_FUNC_SEL_MASK +#define ISP_VIN_DVP_DATA11_FUNC_SEL \ + SYS_IOMUX_CFGSAIF_688_ADDR \ + ISP_VIN_DVP_DATA11_FUNC_SEL_SHIFT \ + ISP_VIN_DVP_DATA11_FUNC_SEL_MASK +#define ISP_VIN_DVP_DATA1_FUNC_SEL \ + SYS_IOMUX_CFGSAIF_688_ADDR \ + ISP_VIN_DVP_DATA1_FUNC_SEL_SHIFT \ + ISP_VIN_DVP_DATA1_FUNC_SEL_MASK +#define ISP_VIN_DVP_DATA2_FUNC_SEL \ + SYS_IOMUX_CFGSAIF_688_ADDR \ + ISP_VIN_DVP_DATA2_FUNC_SEL_SHIFT \ + ISP_VIN_DVP_DATA2_FUNC_SEL_MASK +#define ISP_VIN_DVP_DATA3_FUNC_SEL \ + SYS_IOMUX_CFGSAIF_688_ADDR \ + ISP_VIN_DVP_DATA3_FUNC_SEL_SHIFT \ + ISP_VIN_DVP_DATA3_FUNC_SEL_MASK +#define ISP_VIN_DVP_DATA4_FUNC_SEL \ + SYS_IOMUX_CFGSAIF_688_ADDR \ + ISP_VIN_DVP_DATA4_FUNC_SEL_SHIFT \ + ISP_VIN_DVP_DATA4_FUNC_SEL_MASK +#define ISP_VIN_DVP_DATA5_FUNC_SEL \ + SYS_IOMUX_CFGSAIF_692_ADDR \ + ISP_VIN_DVP_DATA5_FUNC_SEL_SHIFT \ + ISP_VIN_DVP_DATA5_FUNC_SEL_MASK +#define ISP_VIN_DVP_DATA6_FUNC_SEL \ + SYS_IOMUX_CFGSAIF_692_ADDR \ + ISP_VIN_DVP_DATA6_FUNC_SEL_SHIFT \ + ISP_VIN_DVP_DATA6_FUNC_SEL_MASK +#define ISP_VIN_DVP_DATA7_FUNC_SEL \ + SYS_IOMUX_CFGSAIF_692_ADDR \ + ISP_VIN_DVP_DATA7_FUNC_SEL_SHIFT \ + ISP_VIN_DVP_DATA7_FUNC_SEL_MASK +#define ISP_VIN_DVP_DATA8_FUNC_SEL \ + SYS_IOMUX_CFGSAIF_692_ADDR \ + ISP_VIN_DVP_DATA8_FUNC_SEL_SHIFT \ + ISP_VIN_DVP_DATA8_FUNC_SEL_MASK +#define ISP_VIN_DVP_DATA9_FUNC_SEL \ + SYS_IOMUX_CFGSAIF_692_ADDR \ + ISP_VIN_DVP_DATA9_FUNC_SEL_SHIFT \ + ISP_VIN_DVP_DATA9_FUNC_SEL_MASK +#define ISP_VIN_DVP_HVALID_FUNC_SEL \ + SYS_IOMUX_CFGSAIF_692_ADDR \ + ISP_VIN_DVP_HVALID_FUNC_SEL_SHIFT \ + ISP_VIN_DVP_HVALID_FUNC_SEL_MASK +#define ISP_VIN_DVP_VVALID_FUNC_SEL \ + SYS_IOMUX_CFGSAIF_692_ADDR \ + ISP_VIN_DVP_VVALID_FUNC_SEL_SHIFT \ + ISP_VIN_DVP_VVALID_FUNC_SEL_MASK +#define DVP_CLK_FUNC_SEL \ + SYS_IOMUX_CFGSAIF_692_ADDR \ + DVP_CLK_FUNC_SEL_SHIFT \ + DVP_CLK_FUNC_SEL_MASK + +/* POS[0] */ +#define TESTEN_POS(data) (((data) << 0x0) & 0x1) + +/* SMT[0] POS[1] */ +#define RSTN_SMT(data) (((data) << 0x0) & 0x1) +#define RSTN_POS(data) (((data) << 0x1) & 0x2) + +/* DS[1:0] */ +#define OSC_DS(data) (((data) << 0x0) & 0x3) + +/* sys ioconfig */ +/* IE[0] DS[2:1] PU[3] PD[4] SLEW[5] SMT[6] POS[7] */ +#define GPIO_IE(data) (((data) << 0x0) & 0x1) +#define GPIO_DS(data) (((data) << 0x1) & 0x6) +#define GPIO_PU(data) (((data) << 0x3) & 0x8) +#define GPIO_PD(data) (((data) << 0x4) & 0x7) +#define GPIO_SLEW(data) (((data) << 0x5) & 0x20) +#define GPIO_SMT(data) (((data) << 0x6) & 0x40) +#define GPIO_POS(data) (((data) << 0x7) & 0x80) + +#define IO(config) ((config) & 0xFF) +#define DOUT(dout) ((dout) & 0xFF) +#define DOEN(doen) ((doen) & 0xFF) +#define DIN(din_reg) ((din_reg) & 0xFF) + +/* syscon value */ +#define IO_3_3V 0 /* 00: 3.3v */ +#define IO_2_5V 1 /* 01: 2.5v */ +#define IO_1_8V 2 /* 10: 1.8v */ + +#endif