Hi,
On Tue, Nov 06, 2018 at 05:44:47PM +0100, Parthiban Nallathambi wrote:
ping on this patch series!
Please send v6 incorporating the comments I provided. You have already
replied to those, so I was expecting another revision!
Thanks,
Mani
On 9/4/18 9:28 PM, Saravanan Sekar wrote:
On 08/29/18 18:34, Manivannan Sadhasivam wrote:
On Wed, Aug 29, 2018 at 10:24:12AM +0200, Saravanan Sekar wrote:
Add pinctrl driver for Actions Semi S700 SoC. The driver
supports pinctrl,
pinmux and pinconf functionalities through a range of registers
common to
both gpio driver and pinctrl driver.
Please mention GPIO and interrupt support also.
Signed-off-by: Parthiban Nallathambi <pn@xxxxxxx>
Signed-off-by: Saravanan Sekar <sravanhome@xxxxxxxxx>
---
 drivers/pinctrl/actions/Kconfig | 6 +
 drivers/pinctrl/actions/Makefile | 1 +
 drivers/pinctrl/actions/pinctrl-owl.c | 7 +-
 drivers/pinctrl/actions/pinctrl-s700.c | 1925
++++++++++++++++++++++++++++++++
 4 files changed, 1936 insertions(+), 3 deletions(-)
 create mode 100644 drivers/pinctrl/actions/pinctrl-s700.c
diff --git a/drivers/pinctrl/actions/Kconfig
b/drivers/pinctrl/actions/Kconfig
index 2397cb0f6011..c7ed1d481802 100644
--- a/drivers/pinctrl/actions/Kconfig
+++ b/drivers/pinctrl/actions/Kconfig
@@ -9,6 +9,12 @@ config PINCTRL_OWL
ÂÂÂÂÂ help
ÂÂÂÂÂÂÂ Say Y here to enable Actions Semi OWL pinctrl driver
+config PINCTRL_S700
+ÂÂÂ bool "Actions Semi S700 pinctrl driver"
+ÂÂÂ depends on PINCTRL_OWL
+ÂÂÂ help
+ÂÂÂÂÂ Say Y here to enable Actions Semi S700 pinctrl driver
+
 config PINCTRL_S900
ÂÂÂÂÂ bool "Actions Semi S900 pinctrl driver"
ÂÂÂÂÂ depends on PINCTRL_OWL
diff --git a/drivers/pinctrl/actions/Makefile
b/drivers/pinctrl/actions/Makefile
index bd232d28400f..86521ed837dd 100644
--- a/drivers/pinctrl/actions/Makefile
+++ b/drivers/pinctrl/actions/Makefile
@@ -1,2 +1,3 @@
 obj-$(CONFIG_PINCTRL_OWL) += pinctrl-owl.o
+obj-$(CONFIG_PINCTRL_S700)ÂÂÂÂ += pinctrl-s700.o
 obj-$(CONFIG_PINCTRL_S900) += pinctrl-s900.o
diff --git a/drivers/pinctrl/actions/pinctrl-owl.c
b/drivers/pinctrl/actions/pinctrl-owl.c
index cc242d6a47c3..5dfe7188a5f8 100644
--- a/drivers/pinctrl/actions/pinctrl-owl.c
+++ b/drivers/pinctrl/actions/pinctrl-owl.c
@@ -739,7 +739,7 @@ static void owl_gpio_irq_mask(struct irq_data *data)
ÂÂÂÂÂ val = readl_relaxed(gpio_base + port->intc_msk);
ÂÂÂÂÂ if (val == 0)
ÂÂÂÂÂÂÂÂÂ owl_gpio_update_reg(gpio_base + port->intc_ctl,
-ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ OWL_GPIO_CTLR_ENABLE, false);
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ OWL_GPIO_CTLR_ENABLE +
port->shared_ctl_offset * 5, false);
As per my comment in patch 1/5, this needs to be elaborated.
One control registers is shared for all the GPIO port, should we specify
this in comments?
ÂÂÂÂÂ raw_spin_unlock_irqrestore(&pctrl->lock, flags);
 }
@@ -763,7 +763,8 @@ static void owl_gpio_irq_unmask(struct
irq_data *data)
ÂÂÂÂÂ /* enable port interrupt */
ÂÂÂÂÂ value = readl_relaxed(gpio_base + port->intc_ctl);
-ÂÂÂ value |= BIT(OWL_GPIO_CTLR_ENABLE) |
BIT(OWL_GPIO_CTLR_SAMPLE_CLK_24M);
+ÂÂÂ value |= ((BIT(OWL_GPIO_CTLR_ENABLE) |
BIT(OWL_GPIO_CTLR_SAMPLE_CLK_24M))
+ÂÂÂÂÂÂÂÂÂÂÂ << port->shared_ctl_offset * 5);
ÂÂÂÂÂ writel_relaxed(value, gpio_base + port->intc_ctl);
ÂÂÂÂÂ /* enable GPIO interrupt */
@@ -801,7 +802,7 @@ static void owl_gpio_irq_ack(struct irq_data *data)
ÂÂÂÂÂ raw_spin_lock_irqsave(&pctrl->lock, flags);
ÂÂÂÂÂ owl_gpio_update_reg(gpio_base + port->intc_ctl,
-ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ OWL_GPIO_CTLR_PENDING, true);
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ OWL_GPIO_CTLR_PENDING + port->shared_ctl_offset
* 5, true);
ÂÂÂÂÂ raw_spin_unlock_irqrestore(&pctrl->lock, flags);
 }
diff --git a/drivers/pinctrl/actions/pinctrl-s700.c
b/drivers/pinctrl/actions/pinctrl-s700.c
new file mode 100644
index 000000000000..df69827803a0
--- /dev/null
+++ b/drivers/pinctrl/actions/pinctrl-s700.c
@@ -0,0 +1,1925 @@
+// SPDX-License-Identifier: GPL-2.0+
+/*
+ * OWL S700 Pinctrl driver
We agreed to use the following naming convention:
"Actions Semi Owl"
+ *
+ * Copyright (c) 2014 Actions Semi Inc.
+ * Author: David Liu <liuwei@xxxxxxxxxxxxxxxx>
+ *
+ * Author: Pathiban Nallathambi <pn@xxxxxxx>
+ * Author: Saravanan Sekar <sravanhome@xxxxxxxxx>
+ */
+
+#include <linux/module.h>
+#include <linux/platform_device.h>
+#include <linux/of.h>
Please order the headers in alphabetical order.
+#include <linux/pinctrl/pinctrl.h>
+#include <linux/pinctrl/pinconf-generic.h>
+#include "pinctrl-owl.h"
+
+/* Pinctrl registers offset */
+#define MFCTL0ÂÂÂÂÂÂÂÂÂÂÂ (0x0040)
+#define MFCTL1ÂÂÂÂÂÂÂÂÂÂÂ (0x0044)
+#define MFCTL2ÂÂÂÂÂÂÂÂÂÂÂ (0x0048)
+#define MFCTL3ÂÂÂÂÂÂÂÂÂÂÂ (0x004C)
+#define PAD_PULLCTL0ÂÂÂÂÂÂÂ (0x0060)
+#define PAD_PULLCTL1ÂÂÂÂÂÂÂ (0x0064)
+#define PAD_PULLCTL2ÂÂÂÂÂÂÂ (0x0068)
+#define PAD_ST0ÂÂÂÂÂÂÂÂÂÂÂ (0x006C)
+#define PAD_ST1ÂÂÂÂÂÂÂÂÂÂÂ (0x0070)
+#define PAD_CTLÂÂÂÂÂÂÂÂÂÂÂ (0x0074)
+#define PAD_DRV0ÂÂÂÂÂÂÂ (0x0080)
+#define PAD_DRV1ÂÂÂÂÂÂÂ (0x0084)
+#define PAD_DRV2ÂÂÂÂÂÂÂ (0x0088)
+
+/*
+ * Most pins affected by the pinmux can also be GPIOs. Define
these first.
+ * These must match how the GPIO driver names/numbers its pins.
+ */
+#define _GPIOA(offset)ÂÂÂÂÂÂÂ (offset)
Port A seems to be using only the lower 18 bits (14 - 31) according to
the datasheet I have.
As stated in bindings patch, datasheet is incomplete
+#define _GPIOB(offset)ÂÂÂÂÂÂÂ (32 + (offset))
+#define _GPIOC(offset)ÂÂÂÂÂÂÂ (64 + (offset))
+#define _GPIOD(offset)ÂÂÂÂÂÂÂ (96 + (offset))
+#define _GPIOE(offset)ÂÂÂÂÂÂÂ (128 + (offset))
+
+/* All non-GPIO pins follow */
+#define NUM_GPIOSÂÂÂÂÂÂÂ (_GPIOE(7) + 1)
+#define _PIN(offset)ÂÂÂÂÂÂÂ (NUM_GPIOS + (offset))
+
+/* Ethernet MAC */
+#define ETH_TXD0ÂÂÂÂÂÂÂ _GPIOA(14)
+#define ETH_TXD1ÂÂÂÂÂÂÂ _GPIOA(15)
+#define ETH_TXD2ÂÂÂÂÂÂÂ _GPIOE(4)
+#define ETH_TXD3ÂÂÂÂÂÂÂ _GPIOE(5)
+#define ETH_TXENÂÂÂÂÂÂÂ _GPIOA(16)
+#define ETH_RXERÂÂÂÂÂÂÂ _GPIOA(17)
+#define ETH_CRS_DVÂÂÂÂÂÂÂ _GPIOA(18)
+#define ETH_RXD1ÂÂÂÂÂÂÂ _GPIOA(19)
+#define ETH_RXD0ÂÂÂÂÂÂÂ _GPIOA(20)
+#define ETH_RXD2ÂÂÂÂÂÂÂ _GPIOE(6)
+#define ETH_RXD3ÂÂÂÂÂÂÂ _GPIOE(7)
+#define ETH_REF_CLKÂÂÂÂÂÂÂ _GPIOA(21)
+#define ETH_MDCÂÂÂÂÂÂÂÂÂÂÂ _GPIOA(22)
+#define ETH_MDIOÂÂÂÂÂÂÂ _GPIOA(23)
+
+/* SIRQ */
+#define SIRQ0ÂÂÂÂÂÂÂÂÂÂÂ _GPIOA(24)
+#define SIRQ1ÂÂÂÂÂÂÂÂÂÂÂ _GPIOA(25)
+#define SIRQ2ÂÂÂÂÂÂÂÂÂÂÂ _GPIOA(26)
+
+/* I2S */
+#define I2S_D0ÂÂÂÂÂÂÂÂÂÂÂ _GPIOA(27)
+#define I2S_BCLK0ÂÂÂÂÂÂÂ _GPIOA(28)
+#define I2S_LRCLK0ÂÂÂÂÂÂÂ _GPIOA(29)
+#define I2S_MCLK0ÂÂÂÂÂÂÂ _GPIOA(30)
+#define I2S_D1ÂÂÂÂÂÂÂÂÂÂÂ _GPIOA(31)
+#define I2S_BCLK1ÂÂÂÂÂÂÂ _GPIOB(0)
+#define I2S_LRCLK1ÂÂÂÂÂÂÂ _GPIOB(1)
+#define I2S_MCLK1ÂÂÂÂÂÂÂ _GPIOB(2)
+
+/* PCM1 */
+#define PCM1_INÂÂÂÂÂÂÂÂÂÂÂ _GPIOD(28)
+#define PCM1_CLKÂÂÂÂÂÂÂ _GPIOD(29)
+#define PCM1_SYNCÂÂÂÂÂÂÂ _GPIOD(30)
+#define PCM1_OUTÂÂÂÂÂÂÂ _GPIOD(31)
+
+/* KEY */
+#define KS_IN0ÂÂÂÂÂÂÂÂÂÂÂ _GPIOB(3)
+#define KS_IN1ÂÂÂÂÂÂÂÂÂÂÂ _GPIOB(4)
+#define KS_IN2ÂÂÂÂÂÂÂÂÂÂÂ _GPIOB(5)
+#define KS_IN3ÂÂÂÂÂÂÂÂÂÂÂ _GPIOB(6)
+#define KS_OUT0ÂÂÂÂÂÂÂÂÂÂÂ _GPIOB(7)
+#define KS_OUT1ÂÂÂÂÂÂÂÂÂÂÂ _GPIOB(8)
+#define KS_OUT2ÂÂÂÂÂÂÂÂÂÂÂ _GPIOB(9)
+
+/* LVDS */
+#define LVDS_OEPÂÂÂÂÂÂÂ _GPIOB(10)
+#define LVDS_OENÂÂÂÂÂÂÂ _GPIOB(11)
+#define LVDS_ODPÂÂÂÂÂÂÂ _GPIOB(12)
+#define LVDS_ODNÂÂÂÂÂÂÂ _GPIOB(13)
+#define LVDS_OCPÂÂÂÂÂÂÂ _GPIOB(14)
+#define LVDS_OCNÂÂÂÂÂÂÂ _GPIOB(15)
+#define LVDS_OBPÂÂÂÂÂÂÂ _GPIOB(16)
+#define LVDS_OBNÂÂÂÂÂÂÂ _GPIOB(17)
+#define LVDS_OAPÂÂÂÂÂÂÂ _GPIOB(18)
+#define LVDS_OANÂÂÂÂÂÂÂ _GPIOB(19)
+#define LVDS_EEPÂÂÂÂÂÂÂ _GPIOB(20)
+#define LVDS_EENÂÂÂÂÂÂÂ _GPIOB(21)
+#define LVDS_EDPÂÂÂÂÂÂÂ _GPIOB(22)
+#define LVDS_EDNÂÂÂÂÂÂÂ _GPIOB(23)
+#define LVDS_ECPÂÂÂÂÂÂÂ _GPIOB(24)
+#define LVDS_ECNÂÂÂÂÂÂÂ _GPIOB(25)
+#define LVDS_EBPÂÂÂÂÂÂÂ _GPIOB(26)
+#define LVDS_EBNÂÂÂÂÂÂÂ _GPIOB(27)
+#define LVDS_EAPÂÂÂÂÂÂÂ _GPIOB(28)
+#define LVDS_EANÂÂÂÂÂÂÂ _GPIOB(29)
+#define LCD0_D18ÂÂÂÂÂÂÂ _GPIOB(30)
+#define LCD0_D2ÂÂÂÂÂÂÂÂÂÂÂ _GPIOB(31)
+
+/* DSI */
+#define DSI_DP3ÂÂÂÂÂÂÂÂÂÂÂ _GPIOC(0)
+#define DSI_DN3ÂÂÂÂÂÂÂÂÂÂÂ _GPIOC(1)
+#define DSI_DP1ÂÂÂÂÂÂÂÂÂÂÂ _GPIOC(2)
+#define DSI_DN1ÂÂÂÂÂÂÂÂÂÂÂ _GPIOC(3)
+#define DSI_CPÂÂÂÂÂÂÂÂÂÂÂ _GPIOC(4)
+#define DSI_CNÂÂÂÂÂÂÂÂÂÂÂ _GPIOC(5)
+#define DSI_DP0ÂÂÂÂÂÂÂÂÂÂÂ _GPIOC(6)
+#define DSI_DN0ÂÂÂÂÂÂÂÂÂÂÂ _GPIOC(7)
+#define DSI_DP2ÂÂÂÂÂÂÂÂÂÂÂ _GPIOC(8)
+#define DSI_DN2ÂÂÂÂÂÂÂÂÂÂÂ _GPIOC(9)
+
+/* SD */
+#define SD0_D0ÂÂÂÂÂÂÂÂÂÂÂ _GPIOC(10)
+#define SD0_D1ÂÂÂÂÂÂÂÂÂÂÂ _GPIOC(11)
+#define SD0_D2ÂÂÂÂÂÂÂÂÂÂÂ _GPIOC(12)
+#define SD0_D3ÂÂÂÂÂÂÂÂÂÂÂ _GPIOC(13)
+#define SD0_D4ÂÂÂÂÂÂÂÂÂÂÂ _GPIOC(14)
+#define SD0_D5ÂÂÂÂÂÂÂÂÂÂÂ _GPIOC(15)
+#define SD0_D6ÂÂÂÂÂÂÂÂÂÂÂ _GPIOC(16)
+#define SD0_D7ÂÂÂÂÂÂÂÂÂÂÂ _GPIOC(17)
+#define SD0_CMDÂÂÂÂÂÂÂÂÂÂÂ _GPIOC(18)
+#define SD0_CLKÂÂÂÂÂÂÂÂÂÂÂ _GPIOC(19)
+#define SD1_CMDÂÂÂÂÂÂÂÂÂÂÂ _GPIOC(20)
+#define SD1_CLKÂÂÂÂÂÂÂÂÂÂÂ _GPIOC(21)
+#define SD1_D0ÂÂÂÂÂÂÂÂÂÂÂ SD0_D4
+#define SD1_D1ÂÂÂÂÂÂÂÂÂÂÂ SD0_D5
+#define SD1_D2ÂÂÂÂÂÂÂÂÂÂÂ SD0_D6
+#define SD1_D3ÂÂÂÂÂÂÂÂÂÂÂ SD0_D7
+
Why SD1_Dx uses SD0 pins?
As its just muxing of same pin between SD1 and SD0, reused macro
+/* SPI */
+#define SPI0_SSÂÂÂÂÂÂÂÂÂÂÂ _GPIOC(23)
+#define SPI0_MISOÂÂÂÂÂÂÂ _GPIOC(24)
+
+/* UART for console */
+#define UART0_RXÂÂÂÂÂÂÂ _GPIOC(26)
+#define UART0_TXÂÂÂÂÂÂÂ _GPIOC(27)
+
+/* UART for Bluetooth */
+#define UART2_RXÂÂÂÂÂÂÂ _GPIOD(18)
+#define UART2_TXÂÂÂÂÂÂÂ _GPIOD(19)
+#define UART2_RTSBÂÂÂÂÂÂÂ _GPIOD(20)
+#define UART2_CTSBÂÂÂÂÂÂÂ _GPIOD(21)
+
+/* UART for 3G */
+#define UART3_RXÂÂÂÂÂÂÂ _GPIOD(22)
+#define UART3_TXÂÂÂÂÂÂÂ _GPIOD(23)
+#define UART3_RTSBÂÂÂÂÂÂÂ _GPIOD(24)
+#define UART3_CTSBÂÂÂÂÂÂÂ _GPIOD(25)
+
+/* I2C */
+#define I2C0_SCLKÂÂÂÂÂÂÂ _GPIOC(28)
+#define I2C0_SDATAÂÂÂÂÂÂÂ _GPIOC(29)
+#define I2C1_SCLKÂÂÂÂÂÂÂ _GPIOE(0)
+#define I2C1_SDATAÂÂÂÂÂÂÂ _GPIOE(1)
+#define I2C2_SCLKÂÂÂÂÂÂÂ _GPIOE(2)
+#define I2C2_SDATAÂÂÂÂÂÂÂ _GPIOE(3)
+
+/* CSI*/
+#define CSI_DN0ÂÂÂÂÂÂÂÂÂÂÂ _PIN(0)
+#define CSI_DP0ÂÂÂÂÂÂÂÂÂÂÂ _PIN(1)
+#define CSI_DN1ÂÂÂÂÂÂÂÂÂÂÂ _PIN(2)
+#define CSI_DP1ÂÂÂÂÂÂÂÂÂÂÂ _PIN(3)
+#define CSI_CNÂÂÂÂÂÂÂÂÂÂÂ _PIN(4)
+#define CSI_CPÂÂÂÂÂÂÂÂÂÂÂ _PIN(5)
+#define CSI_DN2ÂÂÂÂÂÂÂÂÂÂÂ _PIN(6)
+#define CSI_DP2ÂÂÂÂÂÂÂÂÂÂÂ _PIN(7)
+#define CSI_DN3ÂÂÂÂÂÂÂÂÂÂÂ _PIN(8)
+#define CSI_DP3ÂÂÂÂÂÂÂÂÂÂÂ _PIN(9)
+
+/* Sensor */
+#define SENSOR0_PCLKÂÂÂÂÂÂÂ _GPIOC(31)
+#define SENSOR0_CKOUTÂÂÂÂÂÂÂ _GPIOD(10)
+
+/* NAND (1.8v / 3.3v) */
+#define DNAND_D0ÂÂÂÂÂÂÂ _PIN(10)
+#define DNAND_D1ÂÂÂÂÂÂÂ _PIN(11)
+#define DNAND_D2ÂÂÂÂÂÂÂ _PIN(12)
+#define DNAND_D3ÂÂÂÂÂÂÂ _PIN(13)
+#define DNAND_D4ÂÂÂÂÂÂÂ _PIN(14)
+#define DNAND_D5ÂÂÂÂÂÂÂ _PIN(15)
+#define DNAND_D6ÂÂÂÂÂÂÂ _PIN(16)
+#define DNAND_D7ÂÂÂÂÂÂÂ _PIN(17)
+#define DNAND_WRBÂÂÂÂÂÂÂ _PIN(18)
+#define DNAND_RDBÂÂÂÂÂÂÂ _PIN(19)
+#define DNAND_RDBNÂÂÂÂÂÂÂ _PIN(20)
+#define DNAND_DQSÂÂÂÂÂÂÂ _GPIOA(12)
+#define DNAND_DQSNÂÂÂÂÂÂÂ _GPIOA(13)
+#define DNAND_RB0ÂÂÂÂÂÂÂ _PIN(21)
+#define DNAND_ALEÂÂÂÂÂÂÂ _GPIOD(12)
+#define DNAND_CLEÂÂÂÂÂÂÂ _GPIOD(13)
+#define DNAND_CEB0ÂÂÂÂÂÂÂ _GPIOD(14)
+#define DNAND_CEB1ÂÂÂÂÂÂÂ _GPIOD(15)
+#define DNAND_CEB2ÂÂÂÂÂÂÂ _GPIOD(16)
+#define DNAND_CEB3ÂÂÂÂÂÂÂ _GPIOD(17)
+
+/* System */
+#define PORBÂÂÂÂÂÂÂÂÂÂÂ _PIN(22)
+#define CLKO_25MÂÂÂÂÂÂÂ _PIN(23)
+#define BSELÂÂÂÂÂÂÂÂÂÂÂ _PIN(24)
+#define PKG0ÂÂÂÂÂÂÂÂÂÂÂ _PIN(25)
+#define PKG1ÂÂÂÂÂÂÂÂÂÂÂ _PIN(26)
+#define PKG2ÂÂÂÂÂÂÂÂÂÂÂ _PIN(27)
+#define PKG3ÂÂÂÂÂÂÂÂÂÂÂ _PIN(28)
+
+#define _FIRSTPADÂÂÂÂÂÂÂ _GPIOA(0)
+#define _LASTPADÂÂÂÂÂÂÂ PKG3
+#define NUM_PADSÂÂÂÂÂÂÂ (_LASTPAD - _FIRSTPAD + 1)
Why not, #define NUM_PADS (_PIN(28) + 1) ?
Okay
+
+/* Pad names for the pinmux subsystem */
+static const struct pinctrl_pin_desc s700_pads[] = {
+ÂÂÂ PINCTRL_PIN(ETH_TXD0, "eth_txd0"),
+ÂÂÂ PINCTRL_PIN(ETH_TXD1, "eth_txd1"),
+ÂÂÂ PINCTRL_PIN(ETH_TXD2, "eth_txd2"),
+ÂÂÂ PINCTRL_PIN(ETH_TXD3, "eth_txd3"),
+ÂÂÂ PINCTRL_PIN(ETH_TXEN, "eth_txen"),
+ÂÂÂ PINCTRL_PIN(ETH_RXER, "eth_rxer"),
+ÂÂÂ PINCTRL_PIN(ETH_CRS_DV, "eth_crs_dv"),
+ÂÂÂ PINCTRL_PIN(ETH_RXD1, "eth_rxd1"),
+ÂÂÂ PINCTRL_PIN(ETH_RXD0, "eth_rxd0"),
+ÂÂÂ PINCTRL_PIN(ETH_RXD2, "eth_rxd2"),
+ÂÂÂ PINCTRL_PIN(ETH_RXD3, "eth_rxd3"),
+ÂÂÂ PINCTRL_PIN(ETH_REF_CLK, "eth_ref_clk"),
+ÂÂÂ PINCTRL_PIN(ETH_MDC, "eth_mdc"),
+ÂÂÂ PINCTRL_PIN(ETH_MDIO, "eth_mdio"),
+ÂÂÂ PINCTRL_PIN(SIRQ0, "sirq0"),
+ÂÂÂ PINCTRL_PIN(SIRQ1, "sirq1"),
+ÂÂÂ PINCTR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),
+ÂÂÂ PINCTRL_PIN(SD0_D1, "sd0_d1"),
+ÂÂÂ PINCTRL_PIN(SD0_D2, "sd0_d2"),
+ÂÂÂ PINCTRL_PIN(SD0_D3, "sd0_d3"),
+ÂÂÂ PINCTRL_PIN(SD1_D0, "sd1_d0"),
+ÂÂÂ PINCTRL_PIN(SD1_D1, "sd1_d1"),
+ÂÂÂ PINCTRL_PIN(SD1_D2, "sd1_d2"),
+ÂÂÂ PINCTRL_PIN(SD1_D3, "sd1_d3"),
+ÂÂÂ PINCTRL_PIN(SD0_CMD, "sd0_cmd"),
+ÂÂÂ PINCTRL_PIN(SD0_CLK, "sd0_clk"),
+ÂÂÂ PINCTRL_PIN(SD1_CMD, "sd1_cmd"),
+ÂÂÂ PINCTRL_PIN(SD1_CLK, "sd1_clk"),
+ÂÂÂ PINCTRL_PIN(SPI0_SS, "spi0_ss"),
+ÂÂÂ PINCTRL_PIN(SPI0_MISO, "spi0_miso"),
+ÂÂÂ PINCTRL_PIN(UART0_RX, "uart0_rx"),
+ÂÂÂ PINCTRL_PIN(UART0_TX, "uart0_tx"),
+ÂÂÂ PINCTRL_PIN(UART2_RX, "uart2_rx"),
+ÂÂÂ PINCTRL_PIN(UART2_TX, "uart2_tx"),
+ÂÂÂ PINCTRL_PIN(UART2_RTSB, "uart2_rtsb"),
+ÂÂÂ PINCTRL_PIN(UART2_CTSB, "uart2_ctsb"),
+ÂÂÂ PINCTRL_PIN(UART3_RX, "uart3_rx"),
+ÂÂÂ PINCTRL_PIN(UART3_TX, "uart3_tx"),
+ÂÂÂ PINCTRL_PIN(UART3_RTSB, "uart3_rtsb"),
+ÂÂÂ PINCTRL_PIN(UART3_CTSB, "uart3_ctsb"),
+ÂÂÂ PINCTRL_PIN(I2C0_SCLK, "i2c0_sclk"),
+ÂÂÂ PINCTRL_PIN(I2C0_SDATA, "i2c0_sdata"),
+ÂÂÂ PINCTRL_PIN(I2C1_SCLK, "i2c1_sclk"),
+ÂÂÂ PINCTRL_PIN(I2C1_SDATA, "i2c1_sdata"),
+ÂÂÂ PINCTRL_PIN(I2C2_SCLK, "i2c2_sclk"),
+ÂÂÂ PINCTRL_PIN(I2C2_SDATA, "i2c2_sdata"),
+ÂÂÂ PINCTRL_PIN(CSI_DN0, "csi_dn0"),
+ÂÂÂ PINCTRL_PIN(CSI_DP0, "csi_dp0"),
+ÂÂÂ PINCTRL_PIN(CSI_DN1, "csi_dn1"),
+ÂÂÂ PINCTRL_PIN(CSI_DP1, "csi_dp1"),
+ÂÂÂ PINCTRL_PIN(CSI_CN, "csi_cn"),
+ÂÂÂ PINCTRL_PIN(CSI_CP, "csi_cp"),
+ÂÂÂ PINCTRL_PIN(CSI_DN2, "csi_dn2"),
+ÂÂÂ PINCTRL_PIN(CSI_DP2, "csi_dp2"),
+ÂÂÂ PINCTRL_PIN(CSI_DN3, "csi_dn3"),
+ÂÂÂ PINCTRL_PIN(CSI_DP3, "csi_dp3"),
+ÂÂÂ PINCTRL_PIN(SENSOR0_PCLK, "sensor0_pclk"),
+ÂÂÂ PINCTRL_PIN(SENSOR0_CKOUT, "sensor0_ckout"),
+ÂÂÂ PINCTRL_PIN(DNAND_D0, "dnand_d0"),
+ÂÂÂ PINCTRL_PIN(DNAND_D1, "dnand_d1"),
+ÂÂÂ PINCTRL_PIN(DNAND_D2, "dnand_d2"),
+ÂÂÂ PINCTRL_PIN(DNAND_D3, "dnand_d3"),
+ÂÂÂ PINCTRL_PIN(DNAND_D4, "dnand_d4"),
+ÂÂÂ PINCTRL_PIN(DNAND_D5, "dnand_d5"),
+ÂÂÂ PINCTRL_PIN(DNAND_D6, "dnand_d6"),
+ÂÂÂ PINCTRL_PIN(DNAND_D7, "dnand_d7"),
+ÂÂÂ PINCTRL_PIN(DNAND_WRB, "dnand_wrb"),
+ÂÂÂ PINCTRL_PIN(DNAND_RDB, "dnand_rdb"),
+ÂÂÂ PINCTRL_PIN(DNAND_RDBN, "dnand_rdbn"),
+ÂÂÂ PINCTRL_PIN(DNAND_DQS, "dnand_dqs"),
+ÂÂÂ PINCTRL_PIN(DNAND_DQSN, "dnand_dqsn"),
+ÂÂÂ PINCTRL_PIN(DNAND_RB0, "dnand_rb0"),
+ÂÂÂ PINCTRL_PIN(DNAND_ALE, "dnand_ale"),
+ÂÂÂ PINCTRL_PIN(DNAND_CLE, "dnand_cle"),
+ÂÂÂ PINCTRL_PIN(DNAND_CEB0, "dnand_ceb0"),
+ÂÂÂ PINCTRL_PIN(DNAND_CEB1, "dnand_ceb1"),
+ÂÂÂ PINCTRL_PIN(DNAND_CEB2, "dnand_ceb2"),
+ÂÂÂ PINCTRL_PIN(DNAND_CEB3, "dnand_ceb3"),
+ÂÂÂ PINCTRL_PIN(PORB, "porb"),
+ÂÂÂ PINCTRL_PIN(CLKO_25M, "clko_25m"),
+ÂÂÂ PINCTRL_PIN(BSEL, "bsel"),
+ÂÂÂ PINCTRL_PIN(PKG0, "pkg0"),
+ÂÂÂ PINCTRL_PIN(PKG1, "pkg1"),
+ÂÂÂ PINCTRL_PIN(PKG2, "pkg2"),
+ÂÂÂ PINCTRL_PIN(PKG3, "pkg3"),
+};
+
+enum s700_pinmux_functions {
+ÂÂÂ S700_MUX_NOR,
+ÂÂÂ S700_MUX_ETH_RGMII,
+ÂÂÂ S700_MUX_ETH_SGMII,
+ÂÂÂ S700_MUX_SPI0,
+ÂÂÂ S700_MUX_SPI1,
+ÂÂÂ S700_MUX_SPI2,
+ÂÂÂ S700_MUX_SPI3,
+ÂÂÂ S700_MUX_SENS0,
+ÂÂÂ S700_MUX_SENS1,
+ÂÂÂ S700_MUX_UART0,
+ÂÂÂ S700_MUX_UART1,
+ÂÂÂ S700_MUX_UART2,
+ÂÂÂ S700_MUX_UART3,
+ÂÂÂ S700_MUX_UART4,
+ÂÂÂ S700_MUX_UART5,
+ÂÂÂ S700_MUX_UART6,
+ÂÂÂ S700_MUX_I2S0,
+ÂÂÂ S700_MUX_I2S1,
+ÂÂÂ S700_MUX_PCM1,
+ÂÂÂ S700_MUX_PCM0,
+ÂÂÂ S700_MUX_KS,
+ÂÂÂ S700_MUX_JTAG,
+ÂÂÂ S700_MUX_PWM0,
+ÂÂÂ S700_MUX_PWM1,
+ÂÂÂ S700_MUX_PWM2,
+ÂÂÂ S700_MUX_PWM3,
+ÂÂÂ S700_MUX_PWM4,
+ÂÂÂ S700_MUX_PWM5,
+ÂÂÂ S700_MUX_P0,
+ÂÂÂ S700_MUX_SD0,
+ÂÂÂ S700_MUX_SD1,
+ÂÂÂ S700_MUX_SD2,
+ÂÂÂ S700_MUX_I2C0,
+ÂÂÂ S700_MUX_I2C1,
+ÂÂÂ S700_MUX_I2C2,
+ÂÂÂ S700_MUX_I2C3,
+ÂÂÂ S700_MUX_DSI,
+ÂÂÂ S700_MUX_LVDS,
+ÂÂÂ S700_MUX_USB30,
+ÂÂÂ S700_MUX_CLKO_25M,
+ÂÂÂ S700_MUX_MIPI_CSI,
+ÂÂÂ S700_MUX_NAND,
+ÂÂÂ S700_MUX_SPDIF,
+ÂÂÂ S700_MUX_SIRQ0,
+ÂÂÂ S700_MUX_SIRQ1,
+ÂÂÂ S700_MUX_SIRQ2,
+ÂÂÂ S700_MUX_BT,
+ÂÂÂ S700_MUX_LCD0,
+ÂÂÂ S700_MUX_RESERVED,
+};
+
+/*****MFP group data****************************/
Please remove above banner.
+/* mfp0_31_30 reserved */
+
+/* rgmii_txd23 */
+static unsigned int rgmii_txd23_mfp_pads[] = {
ETH_TXD2, ETH_TXD3};
+static unsigned int rgmii_txd23_mfp_funcs[] = {
S700_MUX_ETH_RGMII,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ S700_MUX_I2C1,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ S700_MUX_UART3 };
+/* rgmii_rxd2 */
+static unsigned int rgmii_rxd2_mfp_pads[] = { ETH_RXD2 };
+static unsigned int rgmii_rxd2_mfp_funcs[] = {
S700_MUX_ETH_RGMII,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ S700_MUX_PWM0,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ S700_MUX_UART3 };
+/* rgmii_rxd3 */
+static unsigned int rgmii_rxd3_mfp_pads[] = { ETH_RXD3};
+static unsigned int rgmii_rxd3_mfp_funcs[] = {
S700_MUX_ETH_RGMII,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ S700_MUX_PWM2,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ S700_MUX_UART3 };
+/* lcd0_d18 */
+static unsigned int lcd0_d18_mfp_pads[] = { LCD0_D18 };
+static unsigned int lcd0_d18_mfp_funcs[] = { S700_MUX_NOR,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ S700_MUX_SENS1,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ S700_MUX_PWM2,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ S700_MUX_PWM4,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ S700_MUX_LCD0 };
+/* rgmii_txd01 */
+static unsigned int rgmii_txd01_mfp_pads[] = { ETH_CRS_DV };
+static unsigned int rgmii_txd01_mfp_funcs[] = {
S700_MUX_ETH_RGMII,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ S700_MUX_RESERVED,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ S700_MUX_SPI2,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ S700_MUX_UART4,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ S700_MUX_PWM4 };
+/* rgmii_txd0 */
+static unsigned int rgmii_txd0_mfp_pads[] = { ETH_TXD0 };
+static unsigned int rgmii_txd0_mfp_funcs[] = {
S700_MUX_ETH_RGMII,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ S700_MUX_ETH_SGMII,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ S700_MUX_SPI2,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ S700_MUX_UART6,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ S700_MUX_PWM4 };
+/* rgmii_txd1 */
+static unsigned int rgmii_txd1_mfp_pads[] = { ETH_TXD1 };
+static unsigned int rgmii_txd1_mfp_funcs[] = {
S700_MUX_ETH_RGMII,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ S700_MUX_ETH_SGMII,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ S700_MUX_SPI2,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ S700_MUX_UART6,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ S700_MUX_PWM5 };
+/* rgmii_txen */
+static unsigned int rgmii_txen_mfp_pads[] = { ETH_TXEN };
+static unsigned int rgmii_txen_mfp_funcs[] = {
S700_MUX_ETH_RGMII,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ S700_MUX_UART2,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ S700_MUX_SPI3,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ S700_MUX_PWM0 };
+/* rgmii_rxen */
+static unsigned int rgmii_rxen_mfp_pads[] = { ETH_RXER };
+static unsigned int rgmii_rxen_mfp_funcs[] = {
S700_MUX_ETH_RGMII,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ S700_MUX_UART2,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ S700_MUX_SPI3,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ S700_MUX_PWM1 };
+/* mfp0_12_11 reserved */
+/* rgmii_rxd1*/
+static unsigned int rgmii_rxd1_mfp_pads[] = { ETH_RXD1 };
+static unsigned int rgmii_rxd1_mfp_funcs[] = {
S700_MUX_ETH_RGMII,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ S700_MUX_UART2,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ S700_MUX_SPI3,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ S700_MUX_PWM2,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ S700_MUX_UART5,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ S700_MUX_ETH_SGMII };
+/* rgmii_rxd0 */
+static unsigned int rgmii_rxd0_mfp_pads[] = { ETH_RXD0 };
+static unsigned int rgmii_rxd0_mfp_funcs[] = {
S700_MUX_ETH_RGMII,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ S700_MUX_UART2,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ S700_MUX_SPI3,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ S700_MUX_PWM3,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ S700_MUX_UART5,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ S700_MUX_ETH_SGMII };
+/* rgmii_ref_clk */
+static unsigned int rgmii_ref_clk_mfp_pads[] = { ETH_REF_CLK };
+static unsigned int rgmii_ref_clk_mfp_funcs[] = {
S700_MUX_ETH_RGMII,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ S700_MUX_UART4,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ S700_MUX_SPI2,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ S700_MUX_RESERVED,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ S700_MUX_ETH_SGMII };
+/* i2s_d0 */
+static unsigned int i2s_d0_mfp_pads[] = { I2S_D0 };
+static unsigned int i2s_d0_mfp_funcs[] = { S700_MUX_I2S0,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ S700_MUX_NOR };
+/* i2s_pcm1 */
+static unsigned int i2s_pcm1_mfp_pads[] = { I2S_LRCLK0,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ I2S_MCLK0 };
+static unsigned int i2s_pcm1_mfp_funcs[] = { S700_MUX_I2S0,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ S700_MUX_NOR,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ S700_MUX_PCM1,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ S700_MUX_BT };
+/* i2s0_pcm0 */
+static unsigned int i2s0_pcm0_mfp_pads[] = { I2S_BCLK0 };
+static unsigned int i2s0_pcm0_mfp_funcs[] = { S700_MUX_I2S0,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ S700_MUX_NOR,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ S700_MUX_PCM0,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ S700_MUX_BT };
+/* i2s1_pcm0 */
+static unsigned int i2s1_pcm0_mfp_pads[] = { I2S_BCLK1,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ I2S_LRCLK1,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ I2S_MCLK1 };
+
+static unsigned int i2s1_pcm0_mfp_funcs[] = { S700_MUX_I2S1,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ S700_MUX_NOR,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ S700_MUX_PCM0,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ S700_MUX_BT };
+/* i2s_d1 */
+static unsigned int i2s_d1_mfp_pads[] = { I2S_D1 };
+static unsigned int i2s_d1_mfp_funcs[] = { S700_MUX_I2S1,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ S700_MUX_NOR };
+/* ks_in2 */
+static unsigned int ks_in2_mfp_pads[] = { KS_IN2 };
+static unsigned int ks_in2_mfp_funcs[] = { S700_MUX_KS,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ S700_MUX_JTAG,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ S700_MUX_NOR,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ S700_MUX_BT,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ S700_MUX_PWM0,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ S700_MUX_SENS1,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ S700_MUX_PWM0,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ S700_MUX_P0 };
+/* ks_in1 */
+static unsigned int ks_in1_mfp_pads[] = { KS_IN1 };
+static unsigned int ks_in1_mfp_funcs[] = { S700_MUX_KS,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ S700_MUX_JTAG,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ S700_MUX_NOR,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ S700_MUX_BT,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ S700_MUX_PWM5,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ S700_MUX_SENS1,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ S700_MUX_PWM1,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ S700_MUX_USB30 };
+/* ks_in0 */
+static unsigned int ks_in0_mfp_pads[] = { KS_IN0 };
+static unsigned int ks_in0_mfp_funcs[] = { S700_MUX_KS,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ S700_MUX_JTAG,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ S700_MUX_NOR,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ S700_MUX_BT,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ S700_MUX_PWM4,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ S700_MUX_SENS1,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ S700_MUX_PWM4,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ S700_MUX_P0 };
+/* ks_in3 */
+static unsigned int ks_in3_mfp_pads[] = { KS_IN3 };
+static unsigned int ks_in3_mfp_funcs[] = { S700_MUX_KS,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ S700_MUX_JTAG,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ S700_MUX_NOR,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ S700_MUX_PWM1,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ S700_MUX_BT,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ S700_MUX_SENS1 };
+/* ks_out0 */
+static unsigned int ks_out0_mfp_pads[] = { KS_OUT0 };
+static unsigned int ks_out0_mfp_funcs[] = { S700_MUX_KS,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ S700_MUX_UART5,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ S700_MUX_NOR,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ S700_MUX_PWM2,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ S700_MUX_BT,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ S700_MUX_SENS1,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ S700_MUX_SD0,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ S700_MUX_UART4 };
+
+/* ks_out1 */
+static unsigned int ks_out1_mfp_pads[] = { KS_OUT1 };
+static unsigned int ks_out1_mfp_funcs[] = { S700_MUX_KS,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ S700_MUX_JTAG,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ S700_MUX_NOR,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ S700_MUX_PWM3,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ S700_MUX_BT,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ S700_MUX_SENS1,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ S700_MUX_SD0,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ S700_MUX_UART4 };
+/* ks_out2 */
+static unsigned int ks_out2_mfp_pads[] = { KS_OUT2 };
+static unsigned int ks_out2_mfp_funcs[] = { S700_MUX_SD0,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ S700_MUX_KS,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ S700_MUX_NOR,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ S700_MUX_PWM2,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ S700_MUX_UART5,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ S700_MUX_SENS1,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ S700_MUX_BT };
+/* lvds_o_pn */
+static unsigned int lvds_o_pn_mfp_pads[] = { LVDS_OEP,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ LVDS_OEN,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ LVDS_ODP,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ LVDS_ODN,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ LVDS_OCP,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ LVDS_OCN,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ LVDS_OBP,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ LVDS_OBN,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ LVDS_OAP,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ LVDS_OAN };
+
+static unsigned int lvds_o_pn_mfp_funcs[] = { S700_MUX_LVDS,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ S700_MUX_BT,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ S700_MUX_LCD0 };
+
+/* dsi_dn0 */
+static unsigned int dsi_dn0_mfp_pads[] = { DSI_DN0 };
+static unsigned int dsi_dn0_mfp_funcs[] = { S700_MUX_DSI,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ S700_MUX_UART2,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ S700_MUX_SPI0 };
+/* dsi_dp2 */
+static unsigned int dsi_dp2_mfp_pads[] = { DSI_DP2 };
+static unsigned int dsi_dp2_mfp_funcs[] = { S700_MUX_DSI,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ S700_MUX_UART2,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ S700_MUX_SPI0,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ S700_MUX_SD1 };
+/* lcd0_d2 */
+static unsigned int lcd0_d2_mfp_pads[] = { LCD0_D2 };
+static unsigned int lcd0_d2_mfp_funcs[] = { S700_MUX_NOR,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ S700_MUX_SD0,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ S700_MUX_RESERVED,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ S700_MUX_PWM3,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ S700_MUX_LCD0 };
+/* dsi_dp3 */
+static unsigned int dsi_dp3_mfp_pads[] = { DSI_DP3 };
+static unsigned int dsi_dp3_mfp_funcs[] = { S700_MUX_DSI,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ S700_MUX_SD0,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ S700_MUX_SD1,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ S700_MUX_LCD0 };
+/* dsi_dn3 */
+static unsigned int dsi_dn3_mfp_pads[] = { DSI_DN3 };
+static unsigned int dsi_dn3_mfp_funcs[] = { S700_MUX_DSI,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ S700_MUX_SD0,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ S700_MUX_SD1,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ S700_MUX_LCD0 };
+/* dsi_dp0 */
+static unsigned int dsi_dp0_mfp_pads[] = { DSI_DP0 };
+static unsigned int dsi_dp0_mfp_funcs[] = { S700_MUX_DSI,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ S700_MUX_RESERVED,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ S700_MUX_SD0,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ S700_MUX_UART2,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ S700_MUX_SPI0 };
+/* lvds_ee_pn */
+static unsigned int lvds_ee_pn_mfp_pads[] = { LVDS_EEP,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ LVDS_EEN };
+static unsigned int lvds_ee_pn_mfp_funcs[] = { S700_MUX_LVDS,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ S700_MUX_NOR,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ S700_MUX_BT,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ S700_MUX_LCD0 };
+/* uart2_rx_tx */
+static unsigned int uart2_rx_tx_mfp_pads[] = { UART2_RX,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ UART2_TX };
+static unsigned int uart2_rx_tx_mfp_funcs[] = { S700_MUX_UART2,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ S700_MUX_NOR,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ S700_MUX_SPI0,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ S700_MUX_PCM0 };
+/* spi0_i2c_pcm */
+static unsigned int spi0_i2c_pcm_mfp_pads[] = { SPI0_SS,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ SPI0_MISO };
+static unsigned int spi0_i2c_pcm_mfp_funcs[] = { S700_MUX_SPI0,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ S700_MUX_NOR,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ S700_MUX_I2S1,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ S700_MUX_PCM1,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ S700_MUX_PCM0,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ S700_MUX_I2C2 };
+/* mfp2_31 reserved */
+
+/* dsi_dnp1_cp_d2 */
+static unsigned int dsi_dnp1_cp_d2_mfp_pads[] = { DSI_DP1,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ DSI_CP,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ DSI_CN };
+static unsigned int dsi_dnp1_cp_d2_mfp_funcs[] = {
S700_MUX_DSI,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ S700_MUX_LCD0,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ S700_MUX_RESERVED };
+/* dsi_dnp1_cp_d17 */
+static unsigned int dsi_dnp1_cp_d17_mfp_pads[] = { DSI_DP1,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ DSI_CP,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ DSI_CN };
+
+static unsigned int dsi_dnp1_cp_d17_mfp_funcs[] = { S700_MUX_DSI,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ S700_MUX_RESERVED,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ S700_MUX_LCD0 };
+/* lvds_e_pn */
+static unsigned int lvds_e_pn_mfp_pads[] = { LVDS_EDP,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ LVDS_EDN,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ LVDS_ECP,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ LVDS_ECN,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ LVDS_EBP,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ LVDS_EBN,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ LVDS_EAP,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ LVDS_EAN };
+
+static unsigned int lvds_e_pn_mfp_funcs[] = { S700_MUX_LVDS,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ S700_MUX_NOR,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ S700_MUX_LCD0 };
+/* dsi_dn2 */
+static unsigned int dsi_dn2_mfp_pads[] = { DSI_DN2 };
+static unsigned int dsi_dn2_mfp_funcs[] = { S700_MUX_DSI,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ S700_MUX_RESERVED,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ S700_MUX_SD1,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ S700_MUX_UART2,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ S700_MUX_SPI0 };
+/* uart2_rtsb */
+static unsigned int uart2_rtsb_mfp_pads[] = { UART2_RTSB };
+static unsigned int uart2_rtsb_mfp_funcs[] = { S700_MUX_UART2,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ S700_MUX_UART0 };
+
+/* uart2_ctsb */
+static unsigned int uart2_ctsb_mfp_pads[] = { UART2_CTSB };
+static unsigned int uart2_ctsb_mfp_funcs[] = { S700_MUX_UART2,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ S700_MUX_UART0 };
+/* uart3_rtsb */
+static unsigned int uart3_rtsb_mfp_pads[] = { UART3_RTSB };
+static unsigned int uart3_rtsb_mfp_funcs[] = { S700_MUX_UART3,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ S700_MUX_UART5 };
+
+/* uart3_ctsb */
+static unsigned int uart3_ctsb_mfp_pads[] = { UART3_CTSB };
+static unsigned int uart3_ctsb_mfp_funcs[] = { S700_MUX_UART3,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ S700_MUX_UART5 };
+/* sd0_d0 */
+static unsigned int sd0_d0_mfp_pads[] = { SD0_D0 };
+static unsigned int sd0_d0_mfp_funcs[] = { S700_MUX_SD0,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ S700_MUX_NOR,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ S700_MUX_RESERVED,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ S700_MUX_JTAG,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ S700_MUX_UART2,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ S700_MUX_UART5 };
+/* sd0_d1 */
+static unsigned int sd0_d1_mfp_pads[] = { SD0_D1 };
+static unsigned int sd0_d1_mfp_funcs[] = { S700_MUX_SD0,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ S700_MUX_NOR,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ S700_MUX_RESERVED,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ S700_MUX_RESERVED,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ S700_MUX_UART2,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ S700_MUX_UART5 };
+/* sd0_d2_d3 */
+static unsigned int sd0_d2_d3_mfp_pads[] = { SD0_D2,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ SD0_D3 };
+static unsigned int sd0_d2_d3_mfp_funcs[] = { S700_MUX_SD0,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ S700_MUX_NOR,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ S700_MUX_RESERVED,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ S700_MUX_JTAG,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ S700_MUX_UART2,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ S700_MUX_UART1 };
+
+/* sd1_d0_d3 */
+static unsigned int sd1_d0_d3_mfp_pads[] = { SD1_D0,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ SD1_D1,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ SD1_D2,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ SD1_D3 };
+static unsigned int sd1_d0_d3_mfp_funcs[] = { S700_MUX_SD0,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ S700_MUX_NOR,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ S700_MUX_RESERVED,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ S700_MUX_SD1 };
+
+/* sd0_cmd */
+static unsigned int sd0_cmd_mfp_pads[] = { SD0_CMD };
+static unsigned int sd0_cmd_mfp_funcs[] = { S700_MUX_SD0,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ S700_MUX_NOR,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ S700_MUX_RESERVED,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ S700_MUX_JTAG };
+/* sd0_clk */
+static unsigned int sd0_clk_mfp_pads[] = { SD0_CLK };
+static unsigned int sd0_clk_mfp_funcs[] = { S700_MUX_SD0,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ S700_MUX_RESERVED,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ S700_MUX_JTAG };
+/* sd1_cmd */
+static unsigned int sd1_cmd_mfp_pads[] = { SD1_CMD };
+static unsigned int sd1_cmd_mfp_funcs[] = { S700_MUX_SD1,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ S700_MUX_NOR };
+/* uart0_rx */
+static unsigned int uart0_rx_mfp_pads[] = { UART0_RX };
+static unsigned int uart0_rx_mfp_funcs[] = { S700_MUX_UART0,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ S700_MUX_UART2,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ S700_MUX_SPI1,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ S700_MUX_I2C0,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ S700_MUX_PCM1,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ S700_MUX_I2S1 };
+/* dnand_data_wr1 reserved */
+
+/* clko_25m */
+static unsigned int clko_25m_mfp_pads[] = { CLKO_25M };
+static unsigned int clko_25m_mfp_funcs[] = { S700_MUX_RESERVED,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ S700_MUX_CLKO_25M };
+/* csi_cn_cp */
+static unsigned int csi_cn_cp_mfp_pads[] = { CSI_CN,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ CSI_CP };
+static unsigned int csi_cn_cp_mfp_funcs[] = {
S700_MUX_MIPI_CSI,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ S700_MUX_SENS0 };
+/* dnand_acle_ce07_24 reserved */
+
+/* sens0_ckout */
+static unsigned int sens0_ckout_mfp_pads[] = { SENSOR0_CKOUT };
+static unsigned int sens0_ckout_mfp_funcs[] = { S700_MUX_SENS0,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ S700_MUX_NOR,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ S700_MUX_SENS1,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ S700_MUX_PWM1 };
+/* uart0_tx */
+static unsigned int uart0_tx_mfp_pads[] = { UART0_TX };
+static unsigned int uart0_tx_mfp_funcs[] = { S700_MUX_UART0,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ S700_MUX_UART2,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ S700_MUX_SPI1,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ S700_MUX_I2C0,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ S700_MUX_SPDIF,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ S700_MUX_PCM1,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ S700_MUX_I2S1 };
+/* i2c0_mfp */
+static unsigned int i2c0_mfp_pads[] = { I2C0_SCLK,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ I2C0_SDATA };
+static unsigned int i2c0_mfp_funcs[] = { S700_MUX_I2C0,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ S700_MUX_UART2,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ S700_MUX_I2C1,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ S700_MUX_UART1,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ S700_MUX_SPI1 };
+/* csi_dn_dp */
+static unsigned int csi_dn_dp_mfp_pads[] = { CSI_DN0,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ CSI_DN1,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ CSI_DN2,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ CSI_DN3,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ CSI_DP0,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ CSI_DP1,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ CSI_DP2,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ CSI_DP3 };
+static unsigned int csi_dn_dp_mfp_funcs[] = {
S700_MUX_MIPI_CSI,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ S700_MUX_SENS0 };
+/* sen0_pclk */
+static unsigned int sen0_pclk_mfp_pads[] = { SENSOR0_PCLK };
+static unsigned int sen0_pclk_mfp_funcs[] = { S700_MUX_SENS0,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ S700_MUX_NOR,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ S700_MUX_PWM0 };
+/* pcm1_in */
+static unsigned int pcm1_in_mfp_pads[] = { PCM1_IN };
+static unsigned int pcm1_in_mfp_funcs[] = { S700_MUX_PCM1,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ S700_MUX_SENS1,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ S700_MUX_BT,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ S700_MUX_PWM4 };
+/* pcm1_clk */
+static unsigned int pcm1_clk_mfp_pads[] = { PCM1_CLK };
+static unsigned int pcm1_clk_mfp_funcs[] = { S700_MUX_PCM1,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ S700_MUX_SENS1,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ S700_MUX_BT,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ S700_MUX_PWM5 };
+/* pcm1_sync */
+static unsigned int pcm1_sync_mfp_pads[] = { PCM1_SYNC };
+static unsigned int pcm1_sync_mfp_funcs[] = { S700_MUX_PCM1,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ S700_MUX_SENS1,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ S700_MUX_BT,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ S700_MUX_I2C3 };
+/* pcm1_out */
+static unsigned int pcm1_out_mfp_pads[] = { PCM1_OUT };
+static unsigned int pcm1_out_mfp_funcs[] = { S700_MUX_PCM1,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ S700_MUX_SENS1,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ S700_MUX_BT,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ S700_MUX_I2C3 };
+/* dnand_data_wr */
+static unsigned int dnand_data_wr_mfp_pads[] = { DNAND_D0,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ DNAND_D1,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ DNAND_D2,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ DNAND_D3,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ DNAND_D4,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ DNAND_D5,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ DNAND_D6,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ DNAND_D7,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ DNAND_RDB,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ DNAND_RDBN };
+static unsigned int dnand_data_wr_mfp_funcs[] = {
S700_MUX_NAND,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ S700_MUX_SD2 };
+/* dnand_acle_ce0 */
+static unsigned int dnand_acle_ce0_mfp_pads[] = { DNAND_ALE,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ DNAND_CLE,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ DNAND_CEB0,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ DNAND_CEB1 };
+static unsigned int dnand_acle_ce0_mfp_funcs[] = {
S700_MUX_NAND,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ S700_MUX_SPI2 };
+
+/* nand_ceb2 */
+static unsigned int nand_ceb2_mfp_pads[] = { DNAND_CEB2 };
+static unsigned int nand_ceb2_mfp_funcs[] = { S700_MUX_NAND,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ S700_MUX_PWM5 };
+/* nand_ceb3 */
+static unsigned int nand_ceb3_mfp_pads[] = { DNAND_CEB3 };
+static unsigned int nand_ceb3_mfp_funcs[] = { S700_MUX_NAND,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ S700_MUX_PWM4 };
+/*****End MFP group data****************************/
+
+/*****PADDRV group data****************************/
+
+/*PAD_DRV0*/
+static unsigned int sirq_drv_pads[] = { SIRQ0,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ SIRQ1,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ SIRQ2 };
+
+static unsigned int rgmii_txd23_drv_pads[] = { ETH_TXD2,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ ETH_TXD3 };
+
+static unsigned int rgmii_rxd23_drv_pads[] = { ETH_RXD2,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ ETH_RXD3 };
+
+static unsigned int rgmii_txd01_txen_drv_pads[] = { ETH_TXD0,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ ETH_TXD1,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ ETH_TXEN };
+
+static unsigned int rgmii_rxer_drv_pads[] = { ETH_RXER };
+
+static unsigned int rgmii_crs_drv_pads[] = { ETH_CRS_DV };
+
+static unsigned int rgmii_rxd10_drv_pads[] = { ETH_RXD0,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ ETH_RXD1 };
+
+static unsigned int rgmii_ref_clk_drv_pads[] = { ETH_REF_CLK };
+
+static unsigned int smi_mdc_mdio_drv_pads[] = { ETH_MDC,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ ETH_MDIO };
+
+static unsigned int i2s_d0_drv_pads[] = { I2S_D0 };
+
+static unsigned int i2s_bclk0_drv_pads[] = { I2S_BCLK0 };
+
+static unsigned int i2s3_drv_pads[] = { I2S_LRCLK0,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ I2S_MCLK0,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ I2S_D1 };
+
+static unsigned int i2s13_drv_pads[] = { I2S_BCLK1,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ I2S_LRCLK1,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ I2S_MCLK1 };
+
+static unsigned int pcm1_drv_pads[] = { PCM1_IN,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ PCM1_CLK,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ PCM1_SYNC,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ PCM1_OUT };
+
+static unsigned int ks_in_drv_pads[] = { KS_IN0,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ KS_IN1,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ KS_IN2,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ KS_IN3 };
+
+/*PAD_DRV1*/
+static unsigned int ks_out_drv_pads[] = { KS_OUT0,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ KS_OUT1,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ KS_OUT2 };
+
+static unsigned int lvds_all_drv_pads[] = { LVDS_OEP,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ LVDS_OEN,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ LVDS_ODP,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ LVDS_ODN,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ LVDS_OCP,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ LVDS_OCN,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ LVDS_OBP,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ LVDS_OBN,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ LVDS_OAP,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ LVDS_OAN,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ LVDS_EEP,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ LVDS_EEN,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ LVDS_EDP,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ LVDS_EDN,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ LVDS_ECP,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ LVDS_ECN,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ LVDS_EBP,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ LVDS_EBN,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ LVDS_EAP,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ LVDS_EAN };
+
+static unsigned int lcd_d18_d2_drv_pads[] = { LCD0_D18,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ LCD0_D2 };
+
+static unsigned int dsi_all_drv_pads[] = { DSI_DP0,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ DSI_DN0,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ DSI_DP2,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ DSI_DN2,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ DSI_DP3,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ DSI_DN3,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ DSI_DP1,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ DSI_DN1,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ DSI_CP,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ DSI_CN };
+
+static unsigned int sd0_d0_d3_drv_pads[] = { SD0_D0,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ SD0_D1,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ SD0_D2,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ SD0_D3 };
+
+static unsigned int sd0_cmd_drv_pads[] = { SD0_CMD };
+
+static unsigned int sd0_clk_drv_pads[] = { SD0_CLK };
+
+static unsigned int spi0_all_drv_pads[] = { SPI0_SS,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ SPI0_MISO };
+
+/*PAD_DRV2*/
+static unsigned int uart0_rx_drv_pads[] = { UART0_RX };
+
+static unsigned int uart0_tx_drv_pads[] = { UART0_TX };
+
+static unsigned int uart2_all_drv_pads[] = { UART2_RX,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ UART2_TX,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ UART2_RTSB,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ UART2_CTSB };
+
+static unsigned int i2c0_all_drv_pads[] = { I2C0_SCLK,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ I2C0_SDATA };
+
+static unsigned int i2c12_all_drv_pads[] = { I2C1_SCLK,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ I2C1_SDATA,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ I2C2_SCLK,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ I2C2_SDATA };
+
+static unsigned int sens0_pclk_drv_pads[] = { SENSOR0_PCLK };
+
+static unsigned int sens0_ckout_drv_pads[] = { SENSOR0_CKOUT };
+
+static unsigned int uart3_all_drv_pads[] = { UART3_RX,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ UART3_TX,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ UART3_RTSB,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ UART3_CTSB };
+
+/*****End PADDRV group data****************************/
+
Remove this also.
+/* all pinctrl groups of S700 board */
+static const struct owl_pingroup s700_groups[] = {
+ÂÂÂ MUX_PG(rgmii_txd23_mfp, 0, 28, 2),
+ÂÂÂ MUX_PG(rgmii_rxd2_mfp, 0, 26, 2),
+ÂÂÂ MUX_PG(rgmii_rxd3_mfp, 0, 26, 2),
+ÂÂÂ MUX_PG(lcd0_d18_mfp, 0, 23, 3),
+ÂÂÂ MUX_PG(rgmii_txd01_mfp, 0, 20, 3),
+ÂÂÂ MUX_PG(rgmii_txd0_mfp, 0, 16, 3),
+ÂÂÂ MUX_PG(rgmii_txd1_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_all_drv, 1, 10, 2),
+ÂÂÂ DRV_PG(uart0_rx_drv, 2, 30, 2),
+ÂÂÂ DRV_PG(uart0_tx_drv, 2, 28, 2),
+ÂÂÂ DRV_PG(uart2_all_drv, 2, 26, 2),
+ÂÂÂ DRV_PG(i2c0_all_drv, 2, 23, 2),
+ÂÂÂ DRV_PG(i2c12_all_drv, 2, 21, 2),
+ÂÂÂ DRV_PG(sens0_pclk_drv, 2, 18, 2),
+ÂÂÂ DRV_PG(sens0_ckout_drv, 2, 12, 2),
+ÂÂÂ DRV_PG(uart3_all_drv, 2, 2, 2),
+};
+
+static const char * const nor_groups[] = {
+ÂÂÂ "lcd0_d18",
+ÂÂÂ "i2s_d0",
+ÂÂÂ "i2s0_pcm0",
+ÂÂÂ "i2s1_pcm0",
+ÂÂÂ "i2s_d1",
+ÂÂÂ "ks_in2",
+ÂÂÂ "ks_in1",
+ÂÂÂ "ks_in0",
+ÂÂÂ "ks_in3",
+ÂÂÂ "ks_out0",
+ÂÂÂ "ks_out1",
+ÂÂÂ "ks_out2",
+ÂÂÂ "lcd0_d2",
+ÂÂÂ "lvds_ee_pn",
+ÂÂÂ "uart2_rx_tx",
+ÂÂÂ "spi0_i2c_pcm",
+ÂÂÂ "lvds_e_pn",
+ÂÂÂ "sd0_d0",
+ÂÂÂ "sd0_d1",
+ÂÂÂ "sd0_d2_d3",
+ÂÂÂ "sd1_d0_d3",
+ÂÂÂ "sd0_cmd",
+ÂÂÂ "sd1_cmd",
+ÂÂÂ "sens0_ckout",
+ÂÂÂ "sen0_pclk",
+};
+
+static const char * const eth_rmii_groups[] = {
+ÂÂÂ "rgmii_txd23",
+ÂÂÂ "rgmii_rxd2",
+ÂÂÂ "rgmii_rxd3",
+ÂÂÂ "rgmii_txd01",
+ÂÂÂ "rgmii_txd0",
+ÂÂÂ "rgmii_txd1",
+ÂÂÂ "rgmii_txen",
+ÂÂÂ "rgmii_rxen",
+ÂÂÂ "rgmii_rxd1",
+ÂÂÂ "rgmii_rxd0",
+ÂÂÂ "rgmii_ref_clk",
+ÂÂÂ "eth_smi_dummy",
+};
+
+static const char * const eth_smii_groups[] = {
+ÂÂÂ "rgmii_txd0",
+ÂÂÂ "rgmii_txd1",
+ÂÂÂ "rgmii_rxd0",
+ÂÂÂ "rgmii_rxd1",
+ÂÂÂ "rgmii_ref_clk",
+ÂÂÂ "eth_smi_dummy",
+};
+
+static const char * const spi0_groups[] = {
+ÂÂÂ "dsi_dn0",
+ÂÂÂ "dsi_dp2",
+ÂÂÂ "dsi_dp0",
+ÂÂÂ "uart2_rx_tx",
+ÂÂÂ "spi0_i2c_pcm",
+ÂÂÂ "dsi_dn2",
+
Remove this empty line.
+};
+
+static const char * const spi1_groups[] = {
+ÂÂÂ "uart0_rx",
+ÂÂÂ "uart0_tx",
+ÂÂÂ "i2c0_mfp",
+};
+
+static const char * const spi2_groups[] = {
+ÂÂÂ "rgmii_txd01",
+ÂÂÂ "rgmii_txd0",
+ÂÂÂ "rgmii_txd1",
+ÂÂÂ "rgmii_ref_clk",
+ÂÂÂ "dnand_acle_ce0",
+};
+
+static const char * const spi3_groups[] = {
+ÂÂÂ "rgmii_txen",
+ÂÂÂ "rgmii_rxen",
+ÂÂÂ "rgmii_rxd1",
+ÂÂÂ "rgmii_rxd0",
+};
+
+static const char * const sens0_groups[] = {
+ÂÂÂ "csi_cn_cp",
+ÂÂÂ "sens0_ckout",
+ÂÂÂ "csi_dn_dp",
+ÂÂÂ "sen0_pclk",
+};
+
+static const char * const sens1_groups[] = {
+ÂÂÂ "lcd0_d18",
+ÂÂÂ "ks_in2",
+ÂÂÂ "ks_in1",
+ÂÂÂ "ks_in0",
+ÂÂÂ "ks_in3",
+ÂÂÂ "ks_out0",
+ÂÂÂ "ks_out1",
+ÂÂÂ "ks_out2",
+ÂÂÂ "sens0_ckout",
+ÂÂÂ "pcm1_in",
+ÂÂÂ "pcm1_clk",
+ÂÂÂ "pcm1_sync",
+ÂÂÂ "pcm1_out",
+};
+
+static const char * const uart0_groups[] = {
+ÂÂÂ "uart2_rtsb",
+ÂÂÂ "uart2_ctsb",
+ÂÂÂ "uart0_rx",
+ÂÂÂ "uart0_tx",
+};
+
+static const char * const uart1_groups[] = {
+ÂÂÂ "sd0_d2_d3",
+ÂÂÂ "i2c0_mfp",
+};
+
+static const char * const uart2_groups[] = {
+ÂÂÂ "rgmii_txen",
+ÂÂÂ "rgmii_rxen",
+ÂÂÂ "rgmii_rxd1",
+ÂÂÂ "rgmii_rxd0",
+ÂÂÂ "dsi_dn0",
+ÂÂÂ "dsi_dp2",
+ÂÂÂ "dsi_dp0",
+ÂÂÂ "uart2_rx_tx",
+ÂÂÂ "dsi_dn2",
+ÂÂÂ "uart2_rtsb",
+ÂÂÂ "uart2_ctsb",
+ÂÂÂ "sd0_d0",
+ÂÂÂ "sd0_d1",
+ÂÂÂ "sd0_d2_d3",
+ÂÂÂ "uart0_rx",
+ÂÂÂ "uart0_tx",
+ÂÂÂ "i2c0_mfp",
+ÂÂÂ "uart2_dummy"
+};
+
+static const char * const uart3_groups[] = {
+ÂÂÂ "rgmii_txd23",
+ÂÂÂ "rgmii_rxd2",
+ÂÂÂ "rgmii_rxd3",
+ÂÂÂ "uart3_rtsb",
+ÂÂÂ "uart3_ctsb",
+ÂÂÂ "uart3_dummy"
+};
+
+static const char * const uart4_groups[] = {
+ÂÂÂ "rgmii_txd01",
+ÂÂÂ "rgmii_ref_clk",
+ÂÂÂ "ks_out0",
+ÂÂÂ "ks_out1",
+
Ditto.
+};
+
+static const char * const uart5_groups[] = {
+ÂÂÂ "rgmii_rxd1",
+ÂÂÂ "rgmii_rxd0",
+ÂÂÂ "ks_out0",
+ÂÂÂ "ks_out2",
+ÂÂÂ "uart3_rtsb",
+ÂÂÂ "uart3_ctsb",
+ÂÂÂ "sd0_d0",
+ÂÂÂ "sd0_d1",
+};
+
+static const char * const uart6_groups[] = {
+ÂÂÂ "rgmii_txd0",
+ÂÂÂ "rgmii_txd1",
+
Ditto.
+};
+
+static const char * const i2s0_groups[] = {
+ÂÂÂ "i2s_d0",
+ÂÂÂ "i2s_pcm1",
+ÂÂÂ "i2s0_pcm0",
+};
+
+static const char * const i2s1_groups[] = {
+ÂÂÂ "i2s1_pcm0",
+ÂÂÂ "i2s_d1",
+ÂÂÂ "i2s1_dummy",
+ÂÂÂ "spi0_i2c_pcm",
+ÂÂÂ "uart0_rx",
+ÂÂÂ "uart0_tx",
+};
+
+static const char * const pcm1_groups[] = {
+ÂÂÂ "i2s_pcm1",
+ÂÂÂ "spi0_i2c_pcm",
+ÂÂÂ "uart0_rx",
+ÂÂÂ "uart0_tx",
+ÂÂÂ "pcm1_in",
+ÂÂÂ "pcm1_clk",
+ÂÂÂ "pcm1_sync",
+ÂÂÂ "pcm1_out",
+};
+
+static const char * const pcm0_groups[] = {
+ÂÂÂ "i2s0_pcm0",
+ÂÂÂ "i2s1_pcm0",
+ÂÂÂ "uart2_rx_tx",
+ÂÂÂ "spi0_i2c_pcm",
+};
+
+static const char * const ks_groups[] = {
+ÂÂÂ "ks_in2",
+ÂÂÂ "ks_in1",
+ÂÂÂ "ks_in0",
+ÂÂÂ "ks_in3",
+ÂÂÂ "ks_out0",
+ÂÂÂ "ks_out1",
+ÂÂÂ "ks_out2",
+};
+
+static const char * const jtag_groups[] = {
+ÂÂÂ "ks_in2",
+ÂÂÂ "ks_in1",
+ÂÂÂ "ks_in0",
+ÂÂÂ "ks_in3",
+ÂÂÂ "ks_out1",
+ÂÂÂ "sd0_d0",
+ÂÂÂ "sd0_d2_d3",
+ÂÂÂ "sd0_cmd",
+ÂÂÂ "sd0_clk",
+};
+
+static const char * const pwm0_groups[] = {
+ÂÂÂ "rgmii_rxd2",
+ÂÂÂ "rgmii_txen",
+ÂÂÂ "ks_in2",
+
Ditto.
+ÂÂÂ "sen0_pclk",
+};
+
+static const char * const pwm1_groups[] = {
+ÂÂÂ "rgmii_rxen",
+ÂÂÂ "ks_in1",
+ÂÂÂ "ks_in3",
+ÂÂÂ "sens0_ckout",
+};
+
+static const char * const pwm2_groups[] = {
+ÂÂÂ "lcd0_d18",
+ÂÂÂ "rgmii_rxd3",
+ÂÂÂ "rgmii_rxd1",
+ÂÂÂ "ks_out0",
+ÂÂÂ "ks_out2",
+};
+
+static const char * const pwm3_groups[] = {
+ÂÂÂ "rgmii_rxd0",
+ÂÂÂ "ks_out1",
+ÂÂÂ "lcd0_d2",
+};
+
+static const char * const pwm4_groups[] = {
+ÂÂÂ "lcd0_d18",
+ÂÂÂ "rgmii_txd01",
+ÂÂÂ "rgmii_txd0",
+ÂÂÂ "ks_in0",
+ÂÂÂ "pcm1_in",
+ÂÂÂ "nand_ceb3",
+};
+
+static const char * const pwm5_groups[] = {
+ÂÂÂ "rgmii_txd1",
+ÂÂÂ "ks_in1",
+ÂÂÂ "pcm1_clk",
+ÂÂÂ "nand_ceb2",
+};
+
+static const char * const p0_groups[] = {
+ÂÂÂ "ks_in2",
+ÂÂÂ "ks_in0",
+};
+
+static const char * const sd0_groups[] = {
+ÂÂÂ "ks_out0",
+ÂÂÂ "ks_out1",
+ÂÂÂ "ks_out2",
+ÂÂÂ "lcd0_d2",
+ÂÂÂ "dsi_dp3",
+ÂÂÂ "dsi_dp0",
+ÂÂÂ "sd0_d0",
+ÂÂÂ "sd0_d1",
+ÂÂÂ "sd0_d2_d3",
+ÂÂÂ "sd1_d0_d3",
+ÂÂÂ "sd0_cmd",
+ÂÂÂ "sd0_clk",
+};
+
+static const char * const sd1_groups[] = {
+ÂÂÂ "dsi_dp2",
+ÂÂÂ "mfp1_16_14",
+ÂÂÂ "lcd0_d2",
+ÂÂÂ "mfp1_16_14_d17",
+ÂÂÂ "dsi_dp3",
+ÂÂÂ "dsi_dn3",
+ÂÂÂ "dsi_dnp1_cp_d2",
+ÂÂÂ "dsi_dnp1_cp_d17",
+ÂÂÂ "dsi_dn2",
+ÂÂÂ "sd1_d0_d3",
+ÂÂÂ "sd1_cmd",
+ÂÂÂ "sd1_dummy",
+};
+
+static const char * const sd2_groups[] = {
+ÂÂÂ "dnand_data_wr",
+};
+
+static const char * const i2c0_groups[] = {
+ÂÂÂ "uart0_rx",
+ÂÂÂ "uart0_tx",
+ÂÂÂ "i2c0_mfp",
+};
+
+static const char * const i2c1_groups[] = {
+ÂÂÂ "i2c0_mfp",
+ÂÂÂ "i2c1_dummy"
+};
+
+static const char * const i2c2_groups[] = {
+ÂÂÂ "i2c2_dummy"
+};
+
+static const char * const i2c3_groups[] = {
+ÂÂÂ "uart2_rx_tx",
+ÂÂÂ "pcm1_sync",
+ÂÂÂ "pcm1_out",
+};
+
+static const char * const lvds_groups[] = {
+ÂÂÂ "lvds_o_pn",
+ÂÂÂ "lvds_ee_pn",
+ÂÂÂ "lvds_e_pn",
+};
+
+static const char * const bt_groups[] = {
+ÂÂÂ "i2s_pcm1",
+ÂÂÂ "i2s0_pcm0",
+ÂÂÂ "i2s1_pcm0",
+ÂÂÂ "ks_in2",
+ÂÂÂ "ks_in1",
+ÂÂÂ "ks_in0",
+ÂÂÂ "ks_in3",
+ÂÂÂ "ks_out0",
+ÂÂÂ "ks_out1",
+ÂÂÂ "ks_out2",
+ÂÂÂ "lvds_o_pn",
+ÂÂÂ "lvds_ee_pn",
+ÂÂÂ "pcm1_in",
+ÂÂÂ "pcm1_clk",
+ÂÂÂ "pcm1_sync",
+ÂÂÂ "pcm1_out",
+};
+
+static const char * const lcd0_groups[] = {
+ÂÂÂ "lcd0_d18",
+ÂÂÂ "lcd0_d2",
+ÂÂÂ "mfp1_16_14_d17",
+ÂÂÂ "lvds_o_pn",
+ÂÂÂ "dsi_dp3",
+ÂÂÂ "dsi_dn3",
+ÂÂÂ "lvds_ee_pn",
+ÂÂÂ "dsi_dnp1_cp_d2",
+ÂÂÂ "dsi_dnp1_cp_d17",
+ÂÂÂ "lvds_e_pn",
+};
+
+
+static const char * const usb30_groups[] = {
+ÂÂÂ "ks_in1",
+};
+
+static const char * const clko_25m_groups[] = {
+ÂÂÂ "clko_25m",
+};
+
+static const char * const mipi_csi_groups[] = {
+ÂÂÂ "csi_cn_cp",
+ÂÂÂ "csi_dn_dp",
+};
+
+static const char * const dsi_groups[] = {
+ÂÂÂ "dsi_dn0",
+ÂÂÂ "dsi_dp2",
+ÂÂÂ "dsi_dp3",
+ÂÂÂ "dsi_dn3",
+ÂÂÂ "dsi_dp0",
+ÂÂÂ "dsi_dnp1_cp_d2",
+ÂÂÂ "dsi_dnp1_cp_d17",
+ÂÂÂ "dsi_dn2",
+ÂÂÂ "dsi_dummy",
+};
+
+static const char * const nand_groups[] = {
+ÂÂÂ "dnand_data_wr",
+ÂÂÂ "dnand_acle_ce0",
+ÂÂÂ "nand_ceb2",
+ÂÂÂ "nand_ceb3",
+ÂÂÂ "nand_dummy",
+};
+
+static const char * const spdif_groups[] = {
+ÂÂÂ "uart0_tx",
+};
+
Ditto.
+
+static const char * const sirq0_groups[] = {
+ÂÂÂ "sirq0_dummy",
+};
+
+static const char * const sirq1_groups[] = {
+ÂÂÂ "sirq1_dummy",
+};
+
+static const char * const sirq2_groups[] = {
+ÂÂÂ "sirq2_dummy",
+};
+
+static const struct owl_pinmux_func s700_functions[] = {
+ÂÂÂ [S700_MUX_NOR] = FUNCTION(nor),
+ÂÂÂ [S700_MUX_ETH_RGMII] = FUNCTION(eth_rmii),
+ÂÂÂ [S700_MUX_ETH_SGMII] = FUNCTION(eth_smii),
+ÂÂÂ [S700_MUX_SPI0] = FUNCTION(spi0),
+ÂÂÂ [S700_MUX_SPI1] = FUNCTION(spi1),
+ÂÂÂ [S700_MUX_SPI2] = FUNCTION(spi2),
+ÂÂÂ [S700_MUX_SPI3] = FUNCTION(spi3),
+ÂÂÂ [S700_MUX_SENS0] = FUNCTION(sens0),
+ÂÂÂ [S700_MUX_SENS1] = FUNCTION(sens1),
+ÂÂÂ [S700_MUX_UART0] = FUNCTION(uart0),
+ÂÂÂ [S700_MUX_UART1] = FUNCTION(uart1),
+ÂÂÂ [S700_MUX_UART2] = FUNCTION(uart2),
+ÂÂÂ [S700_MUX_UART3] = FUNCTION(uart3),
+ÂÂÂ [S700_MUX_UART4] = FUNCTION(uart4),
+ÂÂÂ [S700_MUX_UART5] = FUNCTION(uart5),
+ÂÂÂ [S700_MUX_UART6] = FUNCTION(uart6),
+ÂÂÂ [S700_MUX_I2S0] = FUNCTION(i2s0),
+ÂÂÂ [S700_MUX_I2S1] = FUNCTION(i2s1),
+ÂÂÂ [S700_MUX_PCM1] = FUNCTION(pcm1),
+ÂÂÂ [S700_MUX_PCM0] = FUNCTION(pcm0),
+ÂÂÂ [S700_MUX_KS] = FUNCTION(ks),
+ÂÂÂ [S700_MUX_JTAG] = FUNCTION(jtag),
+ÂÂÂ [S700_MUX_PWM0] = FUNCTION(pwm0),
+ÂÂÂ [S700_MUX_PWM1] = FUNCTION(pwm1),
+ÂÂÂ [S700_MUX_PWM2] = FUNCTION(pwm2),
+ÂÂÂ [S700_MUX_PWM3] = FUNCTION(pwm3),
+ÂÂÂ [S700_MUX_PWM4] = FUNCTION(pwm4),
+ÂÂÂ [S700_MUX_PWM5] = FUNCTION(pwm5),
+ÂÂÂ [S700_MUX_P0] = FUNCTION(p0),
+ÂÂÂ [S700_MUX_SD0] = FUNCTION(sd0),
+ÂÂÂ [S700_MUX_SD1] = FUNCTION(sd1),
+ÂÂÂ [S700_MUX_SD2] = FUNCTION(sd2),
+ÂÂÂ [S700_MUX_I2C0] = FUNCTION(i2c0),
+ÂÂÂ [S700_MUX_I2C1] = FUNCTION(i2c1),
+ÂÂÂ [S700_MUX_I2C2] = FUNCTION(i2c2),
+ÂÂÂ [S700_MUX_I2C3] = FUNCTION(i2c3),
+ÂÂÂ [S700_MUX_DSI] = FUNCTION(dsi),
+ÂÂÂ [S700_MUX_LVDS] = FUNCTION(lvds),
+ÂÂÂ [S700_MUX_USB30] = FUNCTION(usb30),
+ÂÂÂ [S700_MUX_CLKO_25M] = FUNCTION(clko_25m),
+ÂÂÂ [S700_MUX_MIPI_CSI] = FUNCTION(mipi_csi),
+ÂÂÂ [S700_MUX_DSI] = FUNCTION(dsi),
+ÂÂÂ [S700_MUX_NAND] = FUNCTION(nand),
+ÂÂÂ [S700_MUX_SPDIF] = FUNCTION(spdif),
+ÂÂÂ [S700_MUX_SIRQ0] = FUNCTION(sirq0),
+ÂÂÂ [S700_MUX_SIRQ1] = FUNCTION(sirq1),
+ÂÂÂ [S700_MUX_SIRQ2] = FUNCTION(sirq2),
+ÂÂÂ [S700_MUX_BT] = FUNCTION(bt),
+ÂÂÂ [S700_MUX_LCD0] = FUNCTION(lcd0),
+};
+
+/*PAD_ST0*/
/* PAD_ST0 */
+static PAD_ST_CONF(UART2_TX, 0, 31, 1);
+static PAD_ST_CONF(I2C0_SDATA, 0, 30, 1);
+static PAD_ST_CONF(UART0_RX, 0, 29, 1);
+static PAD_ST_CONF(I2S_MCLK1, 0, 23, 1);
+static PAD_ST_CONF(ETH_REF_CLK, 0, 22, 1);
+static PAD_ST_CONF(ETH_TXEN, 0, 21, 1);
+static PAD_ST_CONF(ETH_TXD0, 0, 20, 1);
+static PAD_ST_CONF(I2S_LRCLK1, 0, 19, 1);
+static PAD_ST_CONF(DSI_DP0, 0, 16, 1);
+static PAD_ST_CONF(DSI_DN0, 0, 15, 1);
+static PAD_ST_CONF(UART0_TX, 0, 14, 1);
+static PAD_ST_CONF(SD0_CLK, 0, 12, 1);
+static PAD_ST_CONF(KS_IN0, 0, 11, 1);
+static PAD_ST_CONF(SENSOR0_PCLK, 0, 9, 1);
+static PAD_ST_CONF(I2C0_SCLK, 0, 7, 1);
+static PAD_ST_CONF(KS_OUT0, 0, 6, 1);
+static PAD_ST_CONF(KS_OUT1, 0, 5, 1);
+static PAD_ST_CONF(KS_OUT2, 0, 4, 1);
+static PAD_ST_CONF(ETH_TXD3, 0, 3, 1);
+static PAD_ST_CONF(ETH_TXD2, 0, 2, 1);
+
+/*PAD_ST1*/
/* PAD_ST1 */
+static PAD_ST_CONF(DSI_DP2, 1, 31, 1);
+static PAD_ST_CONF(DSI_DN2, 1, 30, 1);
+static PAD_ST_CONF(I2S_LRCLK0, 1, 29, 1);
+static PAD_ST_CONF(UART3_CTSB, 1, 27, 1);
+static PAD_ST_CONF(UART3_RTSB, 1, 26, 1);
+static PAD_ST_CONF(UART3_RX, 1, 25, 1);
+static PAD_ST_CONF(UART2_RTSB, 1, 24, 1);
+static PAD_ST_CONF(UART2_CTSB, 1, 23, 1);
+static PAD_ST_CONF(UART2_RX, 1, 22, 1);
+static PAD_ST_CONF(ETH_RXD0, 1, 21, 1);
+static PAD_ST_CONF(ETH_RXD1, 1, 20, 1);
+static PAD_ST_CONF(ETH_CRS_DV, 1, 19, 1);
+static PAD_ST_CONF(ETH_RXER, 1, 18, 1);
+static PAD_ST_CONF(ETH_TXD1, 1, 17, 1);
+static PAD_ST_CONF(LVDS_OAP, 1, 12, 1);
+static PAD_ST_CONF(PCM1_CLK, 1, 11, 1);
+static PAD_ST_CONF(PCM1_IN, 1, 10, 1);
+static PAD_ST_CONF(PCM1_SYNC, 1, 9, 1);
+static PAD_ST_CONF(I2C1_SCLK, 1, 8, 1);
+static PAD_ST_CONF(I2C1_SDATA, 1, 7, 1);
+static PAD_ST_CONF(I2C2_SCLK, 1, 6, 1);
+static PAD_ST_CONF(I2C2_SDATA, 1, 5, 1);
+
+static PAD_ST_CONF(SPI0_MISO, 1, 3, 1);
+static PAD_ST_CONF(SPI0_SS, 1, 2, 1);
+static PAD_ST_CONF(I2S_BCLK0, 1, 1, 1);
+static PAD_ST_CONF(I2S_MCLK0, 1, 0, 1);
+
+/******PAD PULL UP/DOWN CONFIGURES*************************/
Remove this.
+/*PAD_PULLCTL0*/
/* PAD_PULLCTL0 */
+static PAD_PULLCTL_CONF(PCM1_SYNC, 0, 30, 1);
+static PAD_PULLCTL_CONF(PCM1_OUT, 0, 29, 1);
+static PAD_PULLCTL_CONF(KS_OUT2, 0, 28, 1);
+static PAD_PULLCTL_CONF(LCD0_D2, 0, 27, 1);
+static PAD_PULLCTL_CONF(DSI_DN3, 0, 26, 1);
+static PAD_PULLCTL_CONF(ETH_RXER, 0, 16, 1);
+static PAD_PULLCTL_CONF(SIRQ0, 0, 14, 2);
+static PAD_PULLCTL_CONF(SIRQ1, 0, 12, 2);
+static PAD_PULLCTL_CONF(SIRQ2, 0, 10, 2);
+static PAD_PULLCTL_CONF(I2C0_SDATA, 0, 9, 1);
+static PAD_PULLCTL_CONF(I2C0_SCLK, 0, 8, 1);
+static PAD_PULLCTL_CONF(KS_IN0, 0, 7, 1);
+static PAD_PULLCTL_CONF(KS_IN1, 0, 6, 1);
+static PAD_PULLCTL_CONF(KS_IN2, 0, 5, 1);
+static PAD_PULLCTL_CONF(KS_IN3, 0, 4, 1);
+static PAD_PULLCTL_CONF(KS_OUT0, 0, 2, 1);
+static PAD_PULLCTL_CONF(KS_OUT1, 0, 1, 1);
+static PAD_PULLCTL_CONF(DSI_DP1, 0, 0, 1);
+
+/*PAD_PULLCTL1*/
/* PAD_PULLCTL1 */
+static PAD_PULLCTL_CONF(SD0_D0, 1, 17, 1);
+static PAD_PULLCTL_CONF(SD0_D1, 1, 16, 1);
+static PAD_PULLCTL_CONF(SD0_D2, 1, 15, 1);
+static PAD_PULLCTL_CONF(SD0_D3, 1, 14, 1);
+static PAD_PULLCTL_CONF(SD0_CMD, 1, 13, 1);
+static PAD_PULLCTL_CONF(SD0_CLK, 1, 12, 1);
+static PAD_PULLCTL_CONF(UART0_RX, 1, 2, 1);
+static PAD_PULLCTL_CONF(UART0_TX, 1, 1, 1);
+static PAD_PULLCTL_CONF(CLKO_25M, 1, 0, 1);
+
+/*PAD_PULLCTL2*/
/* PAD_PULLCTL2 */
+static PAD_PULLCTL_CONF(ETH_TXD2, 2, 18, 1);
+static PAD_PULLCTL_CONF(ETH_TXD3, 2, 17, 1);
+static PAD_PULLCTL_CONF(SPI0_SS, 2, 16, 1);
+static PAD_PULLCTL_CONF(SPI0_MISO, 2, 15, 1);
+static PAD_PULLCTL_CONF(I2C1_SDATA, 2, 10, 1);
+static PAD_PULLCTL_CONF(I2C1_SCLK, 2, 9, 1);
+static PAD_PULLCTL_CONF(I2C2_SDATA, 2, 8, 1);
+static PAD_PULLCTL_CONF(I2C2_SCLK, 2, 7, 1);
+
+/********PAD INFOS*****************************/
+
Remove.
+/* Pad info table for the pinmux subsystem */
+static struct owl_padinfo s700_padinfo[NUM_PADS] = {
+ÂÂÂ [ETH_TXD0] = PAD_INFO_ST(ETH_TXD0),
+ÂÂÂ [ETH_TXD1] = PAD_INFO_ST(ETH_TXD1),
+ÂÂÂ [ETH_TXEN] = PAD_INFO_ST(ETH_TXEN),
+ÂÂÂ [ETH_RXER] = PAD_INFO_PULLCTL_ST(ETH_RXER),
+ÂÂÂ [ETH_CRS_DV] = PAD_INFO_ST(ETH_CRS_DV),
+ÂÂÂ [ETH_RXD1] = PAD_INFO_ST(ETH_RXD1),
+ÂÂÂ [ETH_RXD0] = PAD_INFO_ST(ETH_RXD0),
+ÂÂÂ [ETH_REF_CLK] = PAD_INFO_ST(ETH_REF_CLK),
+ÂÂÂ [ETH_MDC] = PAD_INFO(ETH_MDC),
+ÂÂÂ [ETH_MDIO] = PAD_INFO(ETH_MDIO),
+ÂÂÂ [SIRQ0] = PAD_INFO_PULLCTL(SIRQ0),
+ÂÂÂ [SIRQ1] = PAD_INFO_PULLCTL(SIRQ1),
+ÂÂÂ [SIRQ2] = PAD_INFO_PULLCTL(SIRQ2),
+ÂÂÂ [I2S_D0] = PAD_INFO(I2S_D0),
+ÂÂÂ [I2S_BCLK0] = PAD_INFO_ST(I2S_BCLK0),
+ÂÂÂ [I2S_LRCLK0] = PAD_INFO_ST(I2S_LRCLK0),
+ÂÂÂ [I2S_MCLK0] = PAD_INFO_ST(I2S_MCLK0),
+ÂÂÂ [I2S_D1] = PAD_INFO(I2S_D1),
+ÂÂÂ [I2S_BCLK1] = PAD_INFO(I2S_BCLK1),
+ÂÂÂ [I2S_LRCLK1] = PAD_INFO_ST(I2S_LRCLK1),
+ÂÂÂ [I2S_MCLK1] = PAD_INFO_ST(I2S_M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ÂÂÂ [SENSOR0_PCLK] = PAD_INFO_ST(SENSOR0_PCLK),
+ÂÂÂ [SENSOR0_CKOUT] = PAD_INFO(SENSOR0_CKOUT),
+ÂÂÂ [DNAND_ALE] = PAD_INFO(DNAND_ALE),
+ÂÂÂ [DNAND_CLE] = PAD_INFO(DNAND_CLE),
+ÂÂÂ [DNAND_CEB0] = PAD_INFO(DNAND_CEB0),
+ÂÂÂ [DNAND_CEB1] = PAD_INFO(DNAND_CEB1),
+ÂÂÂ [DNAND_CEB2] = PAD_INFO(DNAND_CEB2),
+ÂÂÂ [DNAND_CEB3] = PAD_INFO(DNAND_CEB3),
+ÂÂÂ [UART2_RX] = PAD_INFO_ST(UART2_RX),
+ÂÂÂ [UART2_TX] = PAD_INFO_ST(UART2_TX),
+ÂÂÂ [UART2_RTSB] = PAD_INFO_ST(UART2_RTSB),
+ÂÂÂ [UART2_CTSB] = PAD_INFO_ST(UART2_CTSB),
+ÂÂÂ [UART3_RX] = PAD_INFO_ST(UART3_RX),
+ÂÂÂ [UART3_TX] = PAD_INFO(UART3_TX),
+ÂÂÂ [UART3_RTSB] = PAD_INFO_ST(UART3_RTSB),
+ÂÂÂ [UART3_CTSB] = PAD_INFO_ST(UART3_CTSB),
+ÂÂÂ [PCM1_IN] = PAD_INFO_ST(PCM1_IN),
+ÂÂÂ [PCM1_CLK] = PAD_INFO_ST(PCM1_CLK),
+ÂÂÂ [PCM1_SYNC] = PAD_INFO_PULLCTL_ST(PCM1_SYNC),
+ÂÂÂ [PCM1_OUT] = PAD_INFO_PULLCTL(PCM1_OUT),
+ÂÂÂ [I2C1_SCLK] = PAD_INFO_PULLCTL_ST(I2C1_SCLK),
+ÂÂÂ [I2C1_SDATA] = PAD_INFO_PULLCTL_ST(I2C1_SDATA),
+ÂÂÂ [I2C2_SCLK] = PAD_INFO_PULLCTL_ST(I2C2_SCLK),
+ÂÂÂ [I2C2_SDATA] = PAD_INFO_PULLCTL_ST(I2C2_SDATA),
+ÂÂÂ [CSI_DN0] = PAD_INFO(CSI_DN0),
+ÂÂÂ [CSI_DP0] = PAD_INFO(CSI_DP0),
+ÂÂÂ [CSI_DN1] = PAD_INFO(CSI_DN1),
+ÂÂÂ [CSI_DP1] = PAD_INFO(CSI_DP1),
+ÂÂÂ [CSI_CN] = PAD_INFO(CSI_CN),
+ÂÂÂ [CSI_CP] = PAD_INFO(CSI_CP),
+ÂÂÂ [CSI_DN2] = PAD_INFO(CSI_DN2),
+ÂÂÂ [CSI_DP2] = PAD_INFO(CSI_DP2),
+ÂÂÂ [CSI_DN3] = PAD_INFO(CSI_DN3),
+ÂÂÂ [CSI_DP3] = PAD_INFO(CSI_DP3),
+ÂÂÂ [DNAND_WRB] = PAD_INFO(DNAND_WRB),
+ÂÂÂ [DNAND_RDB] = PAD_INFO(DNAND_RDB),
+ÂÂÂ [DNAND_RB0] = PAD_INFO(DNAND_RB0),
+ÂÂÂ [PORB] = PAD_INFO(PORB),
+ÂÂÂ [CLKO_25M] = PAD_INFO_PULLCTL(CLKO_25M),
+ÂÂÂ [BSEL] = PAD_INFO(BSEL),
+ÂÂÂ [PKG0] = PAD_INFO(PKG0),
+ÂÂÂ [PKG1] = PAD_INFO(PKG1),
+ÂÂÂ [PKG2] = PAD_INFO(PKG2),
+ÂÂÂ [PKG3] = PAD_INFO(PKG3),
+ÂÂÂ [ETH_TXD2] = PAD_INFO_PULLCTL_ST(ETH_TXD2),
+ÂÂÂ [ETH_TXD3] = PAD_INFO_PULLCTL_ST(ETH_TXD3),
+};
+
+static const struct owl_gpio_port s700_gpio_ports[] = {
+ÂÂÂ OWL_GPIO_PORT(A, 0x0000, 32, 0x0, 0x4, 0x8, 0x204, 0x208,
0x20C, 0x230, 0),
Again, check whether this port has 32 bits or not!
+ÂÂÂ OWL_GPIO_PORT(B, 0x000C, 32, 0x0, 0x4, 0x8, 0x204, 0x210,
0x214, 0x238, 1),
+ÂÂÂ OWL_GPIO_PORT(C, 0x0018, 32, 0x0, 0x4, 0x8, 0x204, 0x218,
0x21C, 0x240, 2),
+ÂÂÂ OWL_GPIO_PORT(D, 0x0024, 32, 0x0, 0x4, 0x8, 0x204, 0x220,
0x224, 0x248, 3),
+ÂÂÂ /* 0x24C (INTC_GPIOD_TYPE1) used to tweak the driver to
handle generic */
Need to ellaborate what you are trying to say. Seems like you have
used the INTC_GPIOD_TYPE1 offset for INTC_GPIOE_TYPE.
Register offset 0 -> 16-32 bit and offset 1 -> 0-15 bit for the PORT A
to D, but for PORT E offset 0 -> 0-15 bit thus offeset is passed (0x250
- 32)
Yes it is, will be removed+ÂÂÂ OWL_GPIO_PORT(E, 0x0030, 8, 0x0, 0x4, 0x8, 0x204, 0x228,
0x22C, 0x24C, 4),
+};
+
+enum owl_pinconf_pull {
+ÂÂÂ OWL_PINCONF_PULL_DOWN,
+ÂÂÂ OWL_PINCONF_PULL_UP,
+};
+
+static int s700_pad_pinconf_arg2val(const struct owl_padinfo *info,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ unsigned int param,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ u32 *arg)
+{
+ÂÂÂ switch (param) {
+ÂÂÂ case PIN_CONFIG_BIAS_PULL_DOWN:
+ÂÂÂÂÂÂÂ *arg = OWL_PINCONF_PULL_DOWN;
+ÂÂÂÂÂÂÂ break;
+ÂÂÂ case PIN_CONFIG_BIAS_PULL_UP:
+ÂÂÂÂÂÂÂ *arg = OWL_PINCONF_PULL_UP;
+ÂÂÂÂÂÂÂ break;
+ÂÂÂ case PIN_CONFIG_INPUT_SCHMITT_ENABLE:
+ÂÂÂÂÂÂÂ *arg = (*arg >= 1 ? 1 : 0);
+ÂÂÂÂÂÂÂ break;
+ÂÂÂ default:
+ÂÂÂÂÂÂÂ return -ENOTSUPP;
+ÂÂÂ }
+
+ÂÂÂ return 0;
+}
+
+static int s700_pad_pinconf_val2arg(const struct owl_padinfo *padinfo,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ unsigned int param,
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ u32 *arg)
+{
+ÂÂÂ switch (param) {
+ÂÂÂ case PIN_CONFIG_BIAS_PULL_DOWN:
+ÂÂÂÂÂÂÂ *arg = *arg == OWL_PINCONF_PULL_DOWN;
+ÂÂÂÂÂÂÂ break;
+ÂÂÂ case PIN_CONFIG_BIAS_PULL_UP:
+ÂÂÂÂÂÂÂ *arg = *arg == OWL_PINCONF_PULL_UP;
+ÂÂÂÂÂÂÂ break;
+ÂÂÂ case PIN_CONFIG_INPUT_SCHMITT_ENABLE:
+ÂÂÂÂÂÂÂ *arg = *arg == 1;
+ÂÂÂÂÂÂÂ break;
+ÂÂÂ default:
+ÂÂÂÂÂÂÂ return -ENOTSUPP;
+ÂÂÂ }
+
+ÂÂÂ return 0;
+}
+
+static struct owl_pinctrl_soc_data s700_pinctrl_data = {
+ÂÂÂ .padinfo = s700_padinfo,
+ÂÂÂ .pins = (const struct pinctrl_pin_desc *)s700_pads,
+ÂÂÂ .npins = ARRAY_SIZE(s700_pads),
+ÂÂÂ .functions = s700_functions,
+ÂÂÂ .nfunctions = ARRAY_SIZE(s700_functions),
+ÂÂÂ .groups = s700_groups,
+ÂÂÂ .ngroups = ARRAY_SIZE(s700_groups),
+ÂÂÂ .ngpios = NUM_GPIOS,
+ÂÂÂ .ports = s700_gpio_ports,
+ÂÂÂ .nports = ARRAY_SIZE(s700_gpio_ports),
+ÂÂÂ .padctl_arg2val = s700_pad_pinconf_arg2val,
+ÂÂÂ .padctl_val2arg = s700_pad_pinconf_val2arg,
+};
+
+static int s700_pinctrl_probe(struct platform_device *pdev)
+{
+ÂÂÂ pr_info("[OWL] pinctrl s700 probe\n");
No banner please.
+ÂÂÂ return owl_pinctrl_probe(pdev, &s700_pinctrl_data);
+}
+
+static const struct of_device_id s700_pinctrl_of_match[] = {
+ÂÂÂ { .compatible = "actions,s700-pinctrl", },
+ÂÂÂ {}
+};
+
+static struct platform_driver s700_pinctrl_driver = {
+ÂÂÂ .probe = s700_pinctrl_probe,
+ÂÂÂ .driver = {
+ÂÂÂÂÂÂÂ .name = "pinctrl-s700",
+ÂÂÂÂÂÂÂ .owner = THIS_MODULE,
Don't we set this in core itself? Linus?
Regards,
Mani
+ÂÂÂÂÂÂÂ .of_match_table = of_match_ptr(s700_pinctrl_of_match),
+ÂÂÂ },
+};
+
+static int __init s700_pinctrl_init(void)
+{
+ÂÂÂ return platform_driver_register(&s700_pinctrl_driver);
+}
+arch_initcall(s700_pinctrl_init);
+
+static void __exit s700_pinctrl_exit(void)
+{
+ÂÂÂ platform_driver_unregister(&s700_pinctrl_driver);
+}
+module_exit(s700_pinctrl_exit);
+
+MODULE_AUTHOR("Actions Semi Inc.");
+MODULE_DESCRIPTION("Actions Semi S700 Soc Pinctrl Driver");
+MODULE_LICENSE("GPL");
--
2.14.4
--
Thanks,
Parthiban N
DENX Software Engineering GmbH, Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-22 Fax: (+49)-8142-66989-80 Email: pn@xxxxxxx