| // SPDX-License-Identifier: GPL-2.0-or-later |
| /* |
| * pinctrl pads, groups, functions for CSR SiRFatlasVII |
| * |
| * Copyright (c) 2011 - 2014 Cambridge Silicon Radio Limited, a CSR plc group |
| * company. |
| */ |
| |
| #include <linux/init.h> |
| #include <linux/platform_device.h> |
| #include <linux/io.h> |
| #include <linux/bitops.h> |
| #include <linux/irq.h> |
| #include <linux/slab.h> |
| #include <linux/clk.h> |
| #include <linux/of.h> |
| #include <linux/of_address.h> |
| #include <linux/of_device.h> |
| #include <linux/of_platform.h> |
| #include <linux/of_irq.h> |
| #include <linux/pinctrl/machine.h> |
| #include <linux/pinctrl/pinconf.h> |
| #include <linux/pinctrl/pinctrl.h> |
| #include <linux/pinctrl/pinmux.h> |
| #include <linux/pinctrl/consumer.h> |
| #include <linux/pinctrl/pinconf-generic.h> |
| #include <linux/gpio/driver.h> |
| |
| /* Definition of Pad&Mux Properties */ |
| #define N 0 |
| |
| /* The Bank contains input-disable regisgers */ |
| #define BANK_DS 0 |
| |
| /* Clear Register offset */ |
| #define CLR_REG(r) ((r) + 0x04) |
| |
| /* Definition of multiple function select register */ |
| #define FUNC_CLEAR_MASK 0x7 |
| #define FUNC_GPIO 0 |
| #define FUNC_ANALOGUE 0x8 |
| #define ANA_CLEAR_MASK 0x1 |
| |
| /* The Atlas7's Pad Type List */ |
| enum altas7_pad_type { |
| PAD_T_4WE_PD = 0, /* ZIO_PAD3V_4WE_PD */ |
| PAD_T_4WE_PU, /* ZIO_PAD3V_4WE_PD */ |
| PAD_T_16ST, /* ZIO_PAD3V_SDCLK_PD */ |
| PAD_T_M31_0204_PD, /* PRDW0204SDGZ_M311311_PD */ |
| PAD_T_M31_0204_PU, /* PRDW0204SDGZ_M311311_PU */ |
| PAD_T_M31_0610_PD, /* PRUW0610SDGZ_M311311_PD */ |
| PAD_T_M31_0610_PU, /* PRUW0610SDGZ_M311311_PU */ |
| PAD_T_AD, /* PRDWUWHW08SCDG_HZ */ |
| }; |
| |
| /* Raw value of Driver-Strength Bits */ |
| #define DS3 BIT(3) |
| #define DS2 BIT(2) |
| #define DS1 BIT(1) |
| #define DS0 BIT(0) |
| #define DSZ 0 |
| |
| /* Drive-Strength Intermediate Values */ |
| #define DS_NULL -1 |
| #define DS_1BIT_IM_VAL DS0 |
| #define DS_1BIT_MASK 0x1 |
| #define DS_2BIT_IM_VAL (DS1 | DS0) |
| #define DS_2BIT_MASK 0x3 |
| #define DS_4BIT_IM_VAL (DS3 | DS2 | DS1 | DS0) |
| #define DS_4BIT_MASK 0xf |
| |
| /* The Drive-Strength of 4WE Pad DS1 0 CO */ |
| #define DS_4WE_3 (DS1 | DS0) /* 1 1 3 */ |
| #define DS_4WE_2 (DS1) /* 1 0 2 */ |
| #define DS_4WE_1 (DS0) /* 0 1 1 */ |
| #define DS_4WE_0 (DSZ) /* 0 0 0 */ |
| |
| /* The Drive-Strength of 16st Pad DS3 2 1 0 CO */ |
| #define DS_16ST_15 (DS3 | DS2 | DS1 | DS0) /* 1 1 1 1 15 */ |
| #define DS_16ST_14 (DS3 | DS2 | DS0) /* 1 1 0 1 13 */ |
| #define DS_16ST_13 (DS3 | DS2 | DS1) /* 1 1 1 0 14 */ |
| #define DS_16ST_12 (DS2 | DS1 | DS0) /* 0 1 1 1 7 */ |
| #define DS_16ST_11 (DS2 | DS0) /* 0 1 0 1 5 */ |
| #define DS_16ST_10 (DS3 | DS1 | DS0) /* 1 0 1 1 11 */ |
| #define DS_16ST_9 (DS3 | DS0) /* 1 0 0 1 9 */ |
| #define DS_16ST_8 (DS1 | DS0) /* 0 0 1 1 3 */ |
| #define DS_16ST_7 (DS2 | DS1) /* 0 1 1 0 6 */ |
| #define DS_16ST_6 (DS3 | DS2) /* 1 1 0 0 12 */ |
| #define DS_16ST_5 (DS2) /* 0 1 0 0 4 */ |
| #define DS_16ST_4 (DS3 | DS1) /* 1 0 1 0 10 */ |
| #define DS_16ST_3 (DS1) /* 0 0 1 0 2 */ |
| #define DS_16ST_2 (DS0) /* 0 0 0 1 1 */ |
| #define DS_16ST_1 (DSZ) /* 0 0 0 0 0 */ |
| #define DS_16ST_0 (DS3) /* 1 0 0 0 8 */ |
| |
| /* The Drive-Strength of M31 Pad DS0 CO */ |
| #define DS_M31_0 (DSZ) /* 0 0 */ |
| #define DS_M31_1 (DS0) /* 1 1 */ |
| |
| /* Raw values of Pull Option Bits */ |
| #define PUN BIT(1) |
| #define PD BIT(0) |
| #define PE BIT(0) |
| #define PZ 0 |
| |
| /* Definition of Pull Types */ |
| #define PULL_UP 0 |
| #define HIGH_HYSTERESIS 1 |
| #define HIGH_Z 2 |
| #define PULL_DOWN 3 |
| #define PULL_DISABLE 4 |
| #define PULL_ENABLE 5 |
| #define PULL_UNKNOWN -1 |
| |
| /* Pull Options for 4WE Pad PUN PD CO */ |
| #define P4WE_PULL_MASK 0x3 |
| #define P4WE_PULL_DOWN (PUN | PD) /* 1 1 3 */ |
| #define P4WE_HIGH_Z (PUN) /* 1 0 2 */ |
| #define P4WE_HIGH_HYSTERESIS (PD) /* 0 1 1 */ |
| #define P4WE_PULL_UP (PZ) /* 0 0 0 */ |
| |
| /* Pull Options for 16ST Pad PUN PD CO */ |
| #define P16ST_PULL_MASK 0x3 |
| #define P16ST_PULL_DOWN (PUN | PD) /* 1 1 3 */ |
| #define P16ST_HIGH_Z (PUN) /* 1 0 2 */ |
| #define P16ST_PULL_UP (PZ) /* 0 0 0 */ |
| |
| /* Pull Options for M31 Pad PE */ |
| #define PM31_PULL_MASK 0x1 |
| #define PM31_PULL_ENABLED (PE) /* 1 */ |
| #define PM31_PULL_DISABLED (PZ) /* 0 */ |
| |
| /* Pull Options for A/D Pad PUN PD CO */ |
| #define PANGD_PULL_MASK 0x3 |
| #define PANGD_PULL_DOWN (PUN | PD) /* 1 1 3 */ |
| #define PANGD_HIGH_Z (PUN) /* 1 0 2 */ |
| #define PANGD_PULL_UP (PZ) /* 0 0 0 */ |
| |
| /* Definition of Input Disable */ |
| #define DI_MASK 0x1 |
| #define DI_DISABLE 0x1 |
| #define DI_ENABLE 0x0 |
| |
| /* Definition of Input Disable Value */ |
| #define DIV_MASK 0x1 |
| #define DIV_DISABLE 0x1 |
| #define DIV_ENABLE 0x0 |
| |
| /* Number of Function input disable registers */ |
| #define NUM_OF_IN_DISABLE_REG 0x2 |
| |
| /* Offset of Function input disable registers */ |
| #define IN_DISABLE_0_REG_SET 0x0A00 |
| #define IN_DISABLE_0_REG_CLR 0x0A04 |
| #define IN_DISABLE_1_REG_SET 0x0A08 |
| #define IN_DISABLE_1_REG_CLR 0x0A0C |
| #define IN_DISABLE_VAL_0_REG_SET 0x0A80 |
| #define IN_DISABLE_VAL_0_REG_CLR 0x0A84 |
| #define IN_DISABLE_VAL_1_REG_SET 0x0A88 |
| #define IN_DISABLE_VAL_1_REG_CLR 0x0A8C |
| |
| /* Offset of the SDIO9SEL*/ |
| #define SYS2PCI_SDIO9SEL 0x14 |
| |
| struct dt_params { |
| const char *property; |
| int value; |
| }; |
| |
| /** |
| * struct atlas7_pad_conf - Atlas7 Pad Configuration |
| * @id The ID of this Pad. |
| * @type: The type of this Pad. |
| * @mux_reg: The mux register offset. |
| * This register contains the mux. |
| * @pupd_reg: The pull-up/down register offset. |
| * @drvstr_reg: The drive-strength register offset. |
| * @ad_ctrl_reg: The Analogue/Digital Control register. |
| * |
| * @mux_bit: The start bit of mux register. |
| * @pupd_bit: The start bit of pull-up/down register. |
| * @drvstr_bit: The start bit of drive-strength register. |
| * @ad_ctrl_bit: The start bit of analogue/digital register. |
| */ |
| struct atlas7_pad_config { |
| const u32 id; |
| u32 type; |
| u32 mux_reg; |
| u32 pupd_reg; |
| u32 drvstr_reg; |
| u32 ad_ctrl_reg; |
| /* bits in register */ |
| u8 mux_bit; |
| u8 pupd_bit; |
| u8 drvstr_bit; |
| u8 ad_ctrl_bit; |
| }; |
| |
| #define PADCONF(pad, t, mr, pr, dsr, adr, mb, pb, dsb, adb) \ |
| { \ |
| .id = pad, \ |
| .type = t, \ |
| .mux_reg = mr, \ |
| .pupd_reg = pr, \ |
| .drvstr_reg = dsr, \ |
| .ad_ctrl_reg = adr, \ |
| .mux_bit = mb, \ |
| .pupd_bit = pb, \ |
| .drvstr_bit = dsb, \ |
| .ad_ctrl_bit = adb, \ |
| } |
| |
| /** |
| * struct atlas7_pad_status - Atlas7 Pad status |
| */ |
| struct atlas7_pad_status { |
| u8 func; |
| u8 pull; |
| u8 dstr; |
| u8 reserved; |
| }; |
| |
| /** |
| * struct atlas7_pad_mux - Atlas7 mux |
| * @bank: The bank of this pad's registers on. |
| * @pin : The ID of this Pad. |
| * @func: The mux func on this Pad. |
| * @dinput_reg: The Input-Disable register offset. |
| * @dinput_bit: The start bit of Input-Disable register. |
| * @dinput_val_reg: The Input-Disable-value register offset. |
| * This register is used to set the value of this pad |
| * if this pad was disabled. |
| * @dinput_val_bit: The start bit of Input-Disable Value register. |
| */ |
| struct atlas7_pad_mux { |
| u32 bank; |
| u32 pin; |
| u32 func; |
| u32 dinput_reg; |
| u32 dinput_bit; |
| u32 dinput_val_reg; |
| u32 dinput_val_bit; |
| }; |
| |
| #define MUX(b, pad, f, dr, db, dvr, dvb) \ |
| { \ |
| .bank = b, \ |
| .pin = pad, \ |
| .func = f, \ |
| .dinput_reg = dr, \ |
| .dinput_bit = db, \ |
| .dinput_val_reg = dvr, \ |
| .dinput_val_bit = dvb, \ |
| } |
| |
| struct atlas7_grp_mux { |
| unsigned int group; |
| unsigned int pad_mux_count; |
| const struct atlas7_pad_mux *pad_mux_list; |
| }; |
| |
| /** |
| * struct sirfsoc_pin_group - describes a SiRFprimaII pin group |
| * @name: the name of this specific pin group |
| * @pins: an array of discrete physical pins used in this group, taken |
| * from the driver-local pin enumeration space |
| * @num_pins: the number of pins in this group array, i.e. the number of |
| * elements in .pins so we can iterate over that array |
| */ |
| struct atlas7_pin_group { |
| const char *name; |
| const unsigned int *pins; |
| const unsigned num_pins; |
| }; |
| |
| #define GROUP(n, p) \ |
| { \ |
| .name = n, \ |
| .pins = p, \ |
| .num_pins = ARRAY_SIZE(p), \ |
| } |
| |
| struct atlas7_pmx_func { |
| const char *name; |
| const char * const *groups; |
| const unsigned num_groups; |
| const struct atlas7_grp_mux *grpmux; |
| }; |
| |
| #define FUNCTION(n, g, m) \ |
| { \ |
| .name = n, \ |
| .groups = g, \ |
| .num_groups = ARRAY_SIZE(g), \ |
| .grpmux = m, \ |
| } |
| |
| struct atlas7_pinctrl_data { |
| struct pinctrl_pin_desc *pads; |
| int pads_cnt; |
| struct atlas7_pin_group *grps; |
| int grps_cnt; |
| struct atlas7_pmx_func *funcs; |
| int funcs_cnt; |
| struct atlas7_pad_config *confs; |
| int confs_cnt; |
| }; |
| |
| /* Platform info of atlas7 pinctrl */ |
| #define ATLAS7_PINCTRL_REG_BANKS 2 |
| #define ATLAS7_PINCTRL_BANK_0_PINS 18 |
| #define ATLAS7_PINCTRL_BANK_1_PINS 141 |
| #define ATLAS7_PINCTRL_TOTAL_PINS \ |
| (ATLAS7_PINCTRL_BANK_0_PINS + ATLAS7_PINCTRL_BANK_1_PINS) |
| |
| /** |
| * Atlas7 GPIO Chip |
| */ |
| |
| #define NGPIO_OF_BANK 32 |
| #define GPIO_TO_BANK(gpio) ((gpio) / NGPIO_OF_BANK) |
| |
| /* Registers of GPIO Controllers */ |
| #define ATLAS7_GPIO_BASE(g, b) ((g)->reg + 0x100 * (b)) |
| #define ATLAS7_GPIO_CTRL(b, i) ((b)->base + 4 * (i)) |
| #define ATLAS7_GPIO_INT_STATUS(b) ((b)->base + 0x8C) |
| |
| /* Definition bits of GPIO Control Registers */ |
| #define ATLAS7_GPIO_CTL_INTR_LOW_MASK BIT(0) |
| #define ATLAS7_GPIO_CTL_INTR_HIGH_MASK BIT(1) |
| #define ATLAS7_GPIO_CTL_INTR_TYPE_MASK BIT(2) |
| #define ATLAS7_GPIO_CTL_INTR_EN_MASK BIT(3) |
| #define ATLAS7_GPIO_CTL_INTR_STATUS_MASK BIT(4) |
| #define ATLAS7_GPIO_CTL_OUT_EN_MASK BIT(5) |
| #define ATLAS7_GPIO_CTL_DATAOUT_MASK BIT(6) |
| #define ATLAS7_GPIO_CTL_DATAIN_MASK BIT(7) |
| |
| struct atlas7_gpio_bank { |
| int id; |
| int irq; |
| void __iomem *base; |
| unsigned int gpio_offset; |
| unsigned int ngpio; |
| const unsigned int *gpio_pins; |
| u32 sleep_data[NGPIO_OF_BANK]; |
| }; |
| |
| struct atlas7_gpio_chip { |
| const char *name; |
| void __iomem *reg; |
| struct clk *clk; |
| int nbank; |
| raw_spinlock_t lock; |
| struct gpio_chip chip; |
| struct atlas7_gpio_bank banks[0]; |
| }; |
| |
| /** |
| * @dev: a pointer back to containing device |
| * @virtbase: the offset to the controller in virtual memory |
| */ |
| struct atlas7_pmx { |
| struct device *dev; |
| struct pinctrl_dev *pctl; |
| struct pinctrl_desc pctl_desc; |
| struct atlas7_pinctrl_data *pctl_data; |
| void __iomem *regs[ATLAS7_PINCTRL_REG_BANKS]; |
| void __iomem *sys2pci_base; |
| u32 status_ds[NUM_OF_IN_DISABLE_REG]; |
| u32 status_dsv[NUM_OF_IN_DISABLE_REG]; |
| struct atlas7_pad_status sleep_data[ATLAS7_PINCTRL_TOTAL_PINS]; |
| }; |
| |
| /* |
| * Pad list for the pinmux subsystem |
| * refer to A7DA IO Summary - CS-314158-DD-4E.xls |
| */ |
| |
| /*Pads in IOC RTC & TOP */ |
| static const struct pinctrl_pin_desc atlas7_ioc_pads[] = { |
| /* RTC PADs */ |
| PINCTRL_PIN(0, "rtc_gpio_0"), |
| PINCTRL_PIN(1, "rtc_gpio_1"), |
| PINCTRL_PIN(2, "rtc_gpio_2"), |
| PINCTRL_PIN(3, "rtc_gpio_3"), |
| PINCTRL_PIN(4, "low_bat_ind_b"), |
| PINCTRL_PIN(5, "on_key_b"), |
| PINCTRL_PIN(6, "ext_on"), |
| PINCTRL_PIN(7, "mem_on"), |
| PINCTRL_PIN(8, "core_on"), |
| PINCTRL_PIN(9, "io_on"), |
| PINCTRL_PIN(10, "can0_tx"), |
| PINCTRL_PIN(11, "can0_rx"), |
| PINCTRL_PIN(12, "spi0_clk"), |
| PINCTRL_PIN(13, "spi0_cs_b"), |
| PINCTRL_PIN(14, "spi0_io_0"), |
| PINCTRL_PIN(15, "spi0_io_1"), |
| PINCTRL_PIN(16, "spi0_io_2"), |
| PINCTRL_PIN(17, "spi0_io_3"), |
| |
| /* TOP PADs */ |
| PINCTRL_PIN(18, "spi1_en"), |
| PINCTRL_PIN(19, "spi1_clk"), |
| PINCTRL_PIN(20, "spi1_din"), |
| PINCTRL_PIN(21, "spi1_dout"), |
| PINCTRL_PIN(22, "trg_spi_clk"), |
| PINCTRL_PIN(23, "trg_spi_di"), |
| PINCTRL_PIN(24, "trg_spi_do"), |
| PINCTRL_PIN(25, "trg_spi_cs_b"), |
| PINCTRL_PIN(26, "trg_acq_d1"), |
| PINCTRL_PIN(27, "trg_irq_b"), |
| PINCTRL_PIN(28, "trg_acq_d0"), |
| PINCTRL_PIN(29, "trg_acq_clk"), |
| PINCTRL_PIN(30, "trg_shutdown_b_out"), |
| PINCTRL_PIN(31, "sdio2_clk"), |
| PINCTRL_PIN(32, "sdio2_cmd"), |
| PINCTRL_PIN(33, "sdio2_dat_0"), |
| PINCTRL_PIN(34, "sdio2_dat_1"), |
| PINCTRL_PIN(35, "sdio2_dat_2"), |
| PINCTRL_PIN(36, "sdio2_dat_3"), |
| PINCTRL_PIN(37, "df_ad_7"), |
| PINCTRL_PIN(38, "df_ad_6"), |
| PINCTRL_PIN(39, "df_ad_5"), |
| PINCTRL_PIN(40, "df_ad_4"), |
| PINCTRL_PIN(41, "df_ad_3"), |
| PINCTRL_PIN(42, "df_ad_2"), |
| PINCTRL_PIN(43, "df_ad_1"), |
| PINCTRL_PIN(44, "df_ad_0"), |
| PINCTRL_PIN(45, "df_dqs"), |
| PINCTRL_PIN(46, "df_cle"), |
| PINCTRL_PIN(47, "df_ale"), |
| PINCTRL_PIN(48, "df_we_b"), |
| PINCTRL_PIN(49, "df_re_b"), |
| PINCTRL_PIN(50, "df_ry_by"), |
| PINCTRL_PIN(51, "df_cs_b_1"), |
| PINCTRL_PIN(52, "df_cs_b_0"), |
| PINCTRL_PIN(53, "l_pclk"), |
| PINCTRL_PIN(54, "l_lck"), |
| PINCTRL_PIN(55, "l_fck"), |
| PINCTRL_PIN(56, "l_de"), |
| PINCTRL_PIN(57, "ldd_0"), |
| PINCTRL_PIN(58, "ldd_1"), |
| PINCTRL_PIN(59, "ldd_2"), |
| PINCTRL_PIN(60, "ldd_3"), |
| PINCTRL_PIN(61, "ldd_4"), |
| PINCTRL_PIN(62, "ldd_5"), |
| PINCTRL_PIN(63, "ldd_6"), |
| PINCTRL_PIN(64, "ldd_7"), |
| PINCTRL_PIN(65, "ldd_8"), |
| PINCTRL_PIN(66, "ldd_9"), |
| PINCTRL_PIN(67, "ldd_10"), |
| PINCTRL_PIN(68, "ldd_11"), |
| PINCTRL_PIN(69, "ldd_12"), |
| PINCTRL_PIN(70, "ldd_13"), |
| PINCTRL_PIN(71, "ldd_14"), |
| PINCTRL_PIN(72, "ldd_15"), |
| PINCTRL_PIN(73, "lcd_gpio_20"), |
| PINCTRL_PIN(74, "vip_0"), |
| PINCTRL_PIN(75, "vip_1"), |
| PINCTRL_PIN(76, "vip_2"), |
| PINCTRL_PIN(77, "vip_3"), |
| PINCTRL_PIN(78, "vip_4"), |
| PINCTRL_PIN(79, "vip_5"), |
| PINCTRL_PIN(80, "vip_6"), |
| PINCTRL_PIN(81, "vip_7"), |
| PINCTRL_PIN(82, "vip_pxclk"), |
| PINCTRL_PIN(83, "vip_hsync"), |
| PINCTRL_PIN(84, "vip_vsync"), |
| PINCTRL_PIN(85, "sdio3_clk"), |
| PINCTRL_PIN(86, "sdio3_cmd"), |
| PINCTRL_PIN(87, "sdio3_dat_0"), |
| PINCTRL_PIN(88, "sdio3_dat_1"), |
| PINCTRL_PIN(89, "sdio3_dat_2"), |
| PINCTRL_PIN(90, "sdio3_dat_3"), |
| PINCTRL_PIN(91, "sdio5_clk"), |
| PINCTRL_PIN(92, "sdio5_cmd"), |
| PINCTRL_PIN(93, "sdio5_dat_0"), |
| PINCTRL_PIN(94, "sdio5_dat_1"), |
| PINCTRL_PIN(95, "sdio5_dat_2"), |
| PINCTRL_PIN(96, "sdio5_dat_3"), |
| PINCTRL_PIN(97, "rgmii_txd_0"), |
| PINCTRL_PIN(98, "rgmii_txd_1"), |
| PINCTRL_PIN(99, "rgmii_txd_2"), |
| PINCTRL_PIN(100, "rgmii_txd_3"), |
| PINCTRL_PIN(101, "rgmii_txclk"), |
| PINCTRL_PIN(102, "rgmii_tx_ctl"), |
| PINCTRL_PIN(103, "rgmii_rxd_0"), |
| PINCTRL_PIN(104, "rgmii_rxd_1"), |
| PINCTRL_PIN(105, "rgmii_rxd_2"), |
| PINCTRL_PIN(106, "rgmii_rxd_3"), |
| PINCTRL_PIN(107, "rgmii_rx_clk"), |
| PINCTRL_PIN(108, "rgmii_rxc_ctl"), |
| PINCTRL_PIN(109, "rgmii_mdio"), |
| PINCTRL_PIN(110, "rgmii_mdc"), |
| PINCTRL_PIN(111, "rgmii_intr_n"), |
| PINCTRL_PIN(112, "i2s_mclk"), |
| PINCTRL_PIN(113, "i2s_bclk"), |
| PINCTRL_PIN(114, "i2s_ws"), |
| PINCTRL_PIN(115, "i2s_dout0"), |
| PINCTRL_PIN(116, "i2s_dout1"), |
| PINCTRL_PIN(117, "i2s_dout2"), |
| PINCTRL_PIN(118, "i2s_din"), |
| PINCTRL_PIN(119, "gpio_0"), |
| PINCTRL_PIN(120, "gpio_1"), |
| PINCTRL_PIN(121, "gpio_2"), |
| PINCTRL_PIN(122, "gpio_3"), |
| PINCTRL_PIN(123, "gpio_4"), |
| PINCTRL_PIN(124, "gpio_5"), |
| PINCTRL_PIN(125, "gpio_6"), |
| PINCTRL_PIN(126, "gpio_7"), |
| PINCTRL_PIN(127, "sda_0"), |
| PINCTRL_PIN(128, "scl_0"), |
| PINCTRL_PIN(129, "coex_pio_0"), |
| PINCTRL_PIN(130, "coex_pio_1"), |
| PINCTRL_PIN(131, "coex_pio_2"), |
| PINCTRL_PIN(132, "coex_pio_3"), |
| PINCTRL_PIN(133, "uart0_tx"), |
| PINCTRL_PIN(134, "uart0_rx"), |
| PINCTRL_PIN(135, "uart1_tx"), |
| PINCTRL_PIN(136, "uart1_rx"), |
| PINCTRL_PIN(137, "uart3_tx"), |
| PINCTRL_PIN(138, "uart3_rx"), |
| PINCTRL_PIN(139, "uart4_tx"), |
| PINCTRL_PIN(140, "uart4_rx"), |
| PINCTRL_PIN(141, "usp0_clk"), |
| PINCTRL_PIN(142, "usp0_tx"), |
| PINCTRL_PIN(143, "usp0_rx"), |
| PINCTRL_PIN(144, "usp0_fs"), |
| PINCTRL_PIN(145, "usp1_clk"), |
| PINCTRL_PIN(146, "usp1_tx"), |
| PINCTRL_PIN(147, "usp1_rx"), |
| PINCTRL_PIN(148, "usp1_fs"), |
| PINCTRL_PIN(149, "lvds_tx0d4p"), |
| PINCTRL_PIN(150, "lvds_tx0d4n"), |
| PINCTRL_PIN(151, "lvds_tx0d3p"), |
| PINCTRL_PIN(152, "lvds_tx0d3n"), |
| PINCTRL_PIN(153, "lvds_tx0d2p"), |
| PINCTRL_PIN(154, "lvds_tx0d2n"), |
| PINCTRL_PIN(155, "lvds_tx0d1p"), |
| PINCTRL_PIN(156, "lvds_tx0d1n"), |
| PINCTRL_PIN(157, "lvds_tx0d0p"), |
| PINCTRL_PIN(158, "lvds_tx0d0n"), |
| PINCTRL_PIN(159, "jtag_tdo"), |
| PINCTRL_PIN(160, "jtag_tms"), |
| PINCTRL_PIN(161, "jtag_tck"), |
| PINCTRL_PIN(162, "jtag_tdi"), |
| PINCTRL_PIN(163, "jtag_trstn"), |
| }; |
| |
| static struct atlas7_pad_config atlas7_ioc_pad_confs[] = { |
| /* The Configuration of IOC_RTC Pads */ |
| PADCONF(0, 3, 0x0, 0x100, 0x200, -1, 0, 0, 0, 0), |
| PADCONF(1, 3, 0x0, 0x100, 0x200, -1, 4, 2, 2, 0), |
| PADCONF(2, 3, 0x0, 0x100, 0x200, -1, 8, 4, 4, 0), |
| PADCONF(3, 5, 0x0, 0x100, 0x200, -1, 12, 6, 6, 0), |
| PADCONF(4, 4, 0x0, 0x100, 0x200, -1, 16, 8, 8, 0), |
| PADCONF(5, 4, 0x0, 0x100, 0x200, -1, 20, 10, 10, 0), |
| PADCONF(6, 3, 0x0, 0x100, 0x200, -1, 24, 12, 12, 0), |
| PADCONF(7, 3, 0x0, 0x100, 0x200, -1, 28, 14, 14, 0), |
| PADCONF(8, 3, 0x8, 0x100, 0x200, -1, 0, 16, 16, 0), |
| PADCONF(9, 3, 0x8, 0x100, 0x200, -1, 4, 18, 18, 0), |
| PADCONF(10, 4, 0x8, 0x100, 0x200, -1, 8, 20, 20, 0), |
| PADCONF(11, 4, 0x8, 0x100, 0x200, -1, 12, 22, 22, 0), |
| PADCONF(12, 5, 0x8, 0x100, 0x200, -1, 16, 24, 24, 0), |
| PADCONF(13, 6, 0x8, 0x100, 0x200, -1, 20, 26, 26, 0), |
| PADCONF(14, 5, 0x8, 0x100, 0x200, -1, 24, 28, 28, 0), |
| PADCONF(15, 5, 0x8, 0x100, 0x200, -1, 28, 30, 30, 0), |
| PADCONF(16, 5, 0x10, 0x108, 0x208, -1, 0, 0, 0, 0), |
| PADCONF(17, 5, 0x10, 0x108, 0x208, -1, 4, 2, 2, 0), |
| /* The Configuration of IOC_TOP Pads */ |
| PADCONF(18, 5, 0x80, 0x180, 0x300, -1, 0, 0, 0, 0), |
| PADCONF(19, 5, 0x80, 0x180, 0x300, -1, 4, 2, 2, 0), |
| PADCONF(20, 5, 0x80, 0x180, 0x300, -1, 8, 4, 4, 0), |
| PADCONF(21, 5, 0x80, 0x180, 0x300, -1, 12, 6, 6, 0), |
| PADCONF(22, 5, 0x88, 0x188, 0x308, -1, 0, 0, 0, 0), |
| PADCONF(23, 5, 0x88, 0x188, 0x308, -1, 4, 2, 2, 0), |
| PADCONF(24, 5, 0x88, 0x188, 0x308, -1, 8, 4, 4, 0), |
| PADCONF(25, 6, 0x88, 0x188, 0x308, -1, 12, 6, 6, 0), |
| PADCONF(26, 5, 0x88, 0x188, 0x308, -1, 16, 8, 8, 0), |
| PADCONF(27, 6, 0x88, 0x188, 0x308, -1, 20, 10, 10, 0), |
| PADCONF(28, 5, 0x88, 0x188, 0x308, -1, 24, 12, 12, 0), |
| PADCONF(29, 5, 0x88, 0x188, 0x308, -1, 28, 14, 14, 0), |
| PADCONF(30, 5, 0x90, 0x188, 0x308, -1, 0, 16, 16, 0), |
| PADCONF(31, 2, 0x98, 0x190, 0x310, -1, 0, 0, 0, 0), |
| PADCONF(32, 1, 0x98, 0x190, 0x310, -1, 4, 2, 4, 0), |
| PADCONF(33, 1, 0x98, 0x190, 0x310, -1, 8, 4, 6, 0), |
| PADCONF(34, 1, 0x98, 0x190, 0x310, -1, 12, 6, 8, 0), |
| PADCONF(35, 1, 0x98, 0x190, 0x310, -1, 16, 8, 10, 0), |
| PADCONF(36, 1, 0x98, 0x190, 0x310, -1, 20, 10, 12, 0), |
| PADCONF(37, 1, 0xa0, 0x198, 0x318, -1, 0, 0, 0, 0), |
| PADCONF(38, 1, 0xa0, 0x198, 0x318, -1, 4, 2, 2, 0), |
| PADCONF(39, 1, 0xa0, 0x198, 0x318, -1, 8, 4, 4, 0), |
| PADCONF(40, 1, 0xa0, 0x198, 0x318, -1, 12, 6, 6, 0), |
| PADCONF(41, 1, 0xa0, 0x198, 0x318, -1, 16, 8, 8, 0), |
| PADCONF(42, 1, 0xa0, 0x198, 0x318, -1, 20, 10, 10, 0), |
| PADCONF(43, 1, 0xa0, 0x198, 0x318, -1, 24, 12, 12, 0), |
| PADCONF(44, 1, 0xa0, 0x198, 0x318, -1, 28, 14, 14, 0), |
| PADCONF(45, 0, 0xa8, 0x198, 0x318, -1, 0, 16, 16, 0), |
| PADCONF(46, 0, 0xa8, 0x198, 0x318, -1, 4, 18, 18, 0), |
| PADCONF(47, 1, 0xa8, 0x198, 0x318, -1, 8, 20, 20, 0), |
| PADCONF(48, 1, 0xa8, 0x198, 0x318, -1, 12, 22, 22, 0), |
| PADCONF(49, 1, 0xa8, 0x198, 0x318, -1, 16, 24, 24, 0), |
| PADCONF(50, 1, 0xa8, 0x198, 0x318, -1, 20, 26, 26, 0), |
| PADCONF(51, 1, 0xa8, 0x198, 0x318, -1, 24, 28, 28, 0), |
| PADCONF(52, 1, 0xa8, 0x198, 0x318, -1, 28, 30, 30, 0), |
| PADCONF(53, 0, 0xb0, 0x1a0, 0x320, -1, 0, 0, 0, 0), |
| PADCONF(54, 0, 0xb0, 0x1a0, 0x320, -1, 4, 2, 2, 0), |
| PADCONF(55, 0, 0xb0, 0x1a0, 0x320, -1, 8, 4, 4, 0), |
| PADCONF(56, 0, 0xb0, 0x1a0, 0x320, -1, 12, 6, 6, 0), |
| PADCONF(57, 0, 0xb0, 0x1a0, 0x320, -1, 16, 8, 8, 0), |
| PADCONF(58, 0, 0xb0, 0x1a0, 0x320, -1, 20, 10, 10, 0), |
| PADCONF(59, 0, 0xb0, 0x1a0, 0x320, -1, 24, 12, 12, 0), |
| PADCONF(60, 0, 0xb0, 0x1a0, 0x320, -1, 28, 14, 14, 0), |
| PADCONF(61, 0, 0xb8, 0x1a0, 0x320, -1, 0, 16, 16, 0), |
| PADCONF(62, 0, 0xb8, 0x1a0, 0x320, -1, 4, 18, 18, 0), |
| PADCONF(63, 0, 0xb8, 0x1a0, 0x320, -1, 8, 20, 20, 0), |
| PADCONF(64, 0, 0xb8, 0x1a0, 0x320, -1, 12, 22, 22, 0), |
| PADCONF(65, 0, 0xb8, 0x1a0, 0x320, -1, 16, 24, 24, 0), |
| PADCONF(66, 0, 0xb8, 0x1a0, 0x320, -1, 20, 26, 26, 0), |
| PADCONF(67, 0, 0xb8, 0x1a0, 0x320, -1, 24, 28, 28, 0), |
| PADCONF(68, 0, 0xb8, 0x1a0, 0x320, -1, 28, 30, 30, 0), |
| PADCONF(69, 0, 0xc0, 0x1a8, 0x328, -1, 0, 0, 0, 0), |
| PADCONF(70, 0, 0xc0, 0x1a8, 0x328, -1, 4, 2, 2, 0), |
| PADCONF(71, 0, 0xc0, 0x1a8, 0x328, -1, 8, 4, 4, 0), |
| PADCONF(72, 0, 0xc0, 0x1a8, 0x328, -1, 12, 6, 6, 0), |
| PADCONF(73, 0, 0xc0, 0x1a8, 0x328, -1, 16, 8, 8, 0), |
| PADCONF(74, 0, 0xc8, 0x1b0, 0x330, -1, 0, 0, 0, 0), |
| PADCONF(75, 0, 0xc8, 0x1b0, 0x330, -1, 4, 2, 2, 0), |
| PADCONF(76, 0, 0xc8, 0x1b0, 0x330, -1, 8, 4, 4, 0), |
| PADCONF(77, 0, 0xc8, 0x1b0, 0x330, -1, 12, 6, 6, 0), |
| PADCONF(78, 0, 0xc8, 0x1b0, 0x330, -1, 16, 8, 8, 0), |
| PADCONF(79, 0, 0xc8, 0x1b0, 0x330, -1, 20, 10, 10, 0), |
| PADCONF(80, 0, 0xc8, 0x1b0, 0x330, -1, 24, 12, 12, 0), |
| PADCONF(81, 0, 0xc8, 0x1b0, 0x330, -1, 28, 14, 14, 0), |
| PADCONF(82, 0, 0xd0, 0x1b0, 0x330, -1, 0, 16, 16, 0), |
| PADCONF(83, 0, 0xd0, 0x1b0, 0x330, -1, 4, 18, 18, 0), |
| PADCONF(84, 0, 0xd0, 0x1b0, 0x330, -1, 8, 20, 20, 0), |
| PADCONF(85, 2, 0xd8, 0x1b8, 0x338, -1, 0, 0, 0, 0), |
| PADCONF(86, 1, 0xd8, 0x1b8, 0x338, -1, 4, 4, 4, 0), |
| PADCONF(87, 1, 0xd8, 0x1b8, 0x338, -1, 8, 6, 6, 0), |
| PADCONF(88, 1, 0xd8, 0x1b8, 0x338, -1, 12, 8, 8, 0), |
| PADCONF(89, 1, 0xd8, 0x1b8, 0x338, -1, 16, 10, 10, 0), |
| PADCONF(90, 1, 0xd8, 0x1b8, 0x338, -1, 20, 12, 12, 0), |
| PADCONF(91, 2, 0xe0, 0x1c0, 0x340, -1, 0, 0, 0, 0), |
| PADCONF(92, 1, 0xe0, 0x1c0, 0x340, -1, 4, 4, 4, 0), |
| PADCONF(93, 1, 0xe0, 0x1c0, 0x340, -1, 8, 6, 6, 0), |
| PADCONF(94, 1, 0xe0, 0x1c0, 0x340, -1, 12, 8, 8, 0), |
| PADCONF(95, 1, 0xe0, 0x1c0, 0x340, -1, 16, 10, 10, 0), |
| PADCONF(96, 1, 0xe0, 0x1c0, 0x340, -1, 20, 12, 12, 0), |
| PADCONF(97, 0, 0xe8, 0x1c8, 0x348, -1, 0, 0, 0, 0), |
| PADCONF(98, 0, 0xe8, 0x1c8, 0x348, -1, 4, 2, 2, 0), |
| PADCONF(99, 0, 0xe8, 0x1c8, 0x348, -1, 8, 4, 4, 0), |
| PADCONF(100, 0, 0xe8, 0x1c8, 0x348, -1, 12, 6, 6, 0), |
| PADCONF(101, 2, 0xe8, 0x1c8, 0x348, -1, 16, 8, 8, 0), |
| PADCONF(102, 0, 0xe8, 0x1c8, 0x348, -1, 20, 12, 12, 0), |
| PADCONF(103, 0, 0xe8, 0x1c8, 0x348, -1, 24, 14, 14, 0), |
| PADCONF(104, 0, 0xe8, 0x1c8, 0x348, -1, 28, 16, 16, 0), |
| PADCONF(105, 0, 0xf0, 0x1c8, 0x348, -1, 0, 18, 18, 0), |
| PADCONF(106, 0, 0xf0, 0x1c8, 0x348, -1, 4, 20, 20, 0), |
| PADCONF(107, 0, 0xf0, 0x1c8, 0x348, -1, 8, 22, 22, 0), |
| PADCONF(108, 0, 0xf0, 0x1c8, 0x348, -1, 12, 24, 24, 0), |
| PADCONF(109, 1, 0xf0, 0x1c8, 0x348, -1, 16, 26, 26, 0), |
| PADCONF(110, 0, 0xf0, 0x1c8, 0x348, -1, 20, 28, 28, 0), |
| PADCONF(111, 1, 0xf0, 0x1c8, 0x348, -1, 24, 30, 30, 0), |
| PADCONF(112, 5, 0xf8, 0x200, 0x350, -1, 0, 0, 0, 0), |
| PADCONF(113, 5, 0xf8, 0x200, 0x350, -1, 4, 2, 2, 0), |
| PADCONF(114, 5, 0xf8, 0x200, 0x350, -1, 8, 4, 4, 0), |
| PADCONF(115, 5, 0xf8, 0x200, 0x350, -1, 12, 6, 6, 0), |
| PADCONF(116, 5, 0xf8, 0x200, 0x350, -1, 16, 8, 8, 0), |
| PADCONF(117, 5, 0xf8, 0x200, 0x350, -1, 20, 10, 10, 0), |
| PADCONF(118, 5, 0xf8, 0x200, 0x350, -1, 24, 12, 12, 0), |
| PADCONF(119, 5, 0x100, 0x250, 0x358, -1, 0, 0, 0, 0), |
| PADCONF(120, 5, 0x100, 0x250, 0x358, -1, 4, 2, 2, 0), |
| PADCONF(121, 5, 0x100, 0x250, 0x358, -1, 8, 4, 4, 0), |
| PADCONF(122, 5, 0x100, 0x250, 0x358, -1, 12, 6, 6, 0), |
| PADCONF(123, 6, 0x100, 0x250, 0x358, -1, 16, 8, 8, 0), |
| PADCONF(124, 6, 0x100, 0x250, 0x358, -1, 20, 10, 10, 0), |
| PADCONF(125, 6, 0x100, 0x250, 0x358, -1, 24, 12, 12, 0), |
| PADCONF(126, 6, 0x100, 0x250, 0x358, -1, 28, 14, 14, 0), |
| PADCONF(127, 6, 0x108, 0x250, 0x358, -1, 16, 24, 24, 0), |
| PADCONF(128, 6, 0x108, 0x250, 0x358, -1, 20, 26, 26, 0), |
| PADCONF(129, 0, 0x110, 0x258, 0x360, -1, 0, 0, 0, 0), |
| PADCONF(130, 0, 0x110, 0x258, 0x360, -1, 4, 2, 2, 0), |
| PADCONF(131, 0, 0x110, 0x258, 0x360, -1, 8, 4, 4, 0), |
| PADCONF(132, 0, 0x110, 0x258, 0x360, -1, 12, 6, 6, 0), |
| PADCONF(133, 6, 0x118, 0x260, 0x368, -1, 0, 0, 0, 0), |
| PADCONF(134, 6, 0x118, 0x260, 0x368, -1, 4, 2, 2, 0), |
| PADCONF(135, 6, 0x118, 0x260, 0x368, -1, 16, 8, 8, 0), |
| PADCONF(136, 6, 0x118, 0x260, 0x368, -1, 20, 10, 10, 0), |
| PADCONF(137, 6, 0x118, 0x260, 0x368, -1, 24, 12, 12, 0), |
| PADCONF(138, 6, 0x118, 0x260, 0x368, -1, 28, 14, 14, 0), |
| PADCONF(139, 6, 0x120, 0x260, 0x368, -1, 0, 16, 16, 0), |
| PADCONF(140, 6, 0x120, 0x260, 0x368, -1, 4, 18, 18, 0), |
| PADCONF(141, 5, 0x128, 0x268, 0x378, -1, 0, 0, 0, 0), |
| PADCONF(142, 5, 0x128, 0x268, 0x378, -1, 4, 2, 2, 0), |
| PADCONF(143, 5, 0x128, 0x268, 0x378, -1, 8, 4, 4, 0), |
| PADCONF(144, 5, 0x128, 0x268, 0x378, -1, 12, 6, 6, 0), |
| PADCONF(145, 5, 0x128, 0x268, 0x378, -1, 16, 8, 8, 0), |
| PADCONF(146, 5, 0x128, 0x268, 0x378, -1, 20, 10, 10, 0), |
| PADCONF(147, 5, 0x128, 0x268, 0x378, -1, 24, 12, 12, 0), |
| PADCONF(148, 5, 0x128, 0x268, 0x378, -1, 28, 14, 14, 0), |
| PADCONF(149, 7, 0x130, 0x270, -1, 0x480, 0, 0, 0, 0), |
| PADCONF(150, 7, 0x130, 0x270, -1, 0x480, 4, 2, 0, 1), |
| PADCONF(151, 7, 0x130, 0x270, -1, 0x480, 8, 4, 0, 2), |
| PADCONF(152, 7, 0x130, 0x270, -1, 0x480, 12, 6, 0, 3), |
| PADCONF(153, 7, 0x130, 0x270, -1, 0x480, 16, 8, 0, 4), |
| PADCONF(154, 7, 0x130, 0x270, -1, 0x480, 20, 10, 0, 5), |
| PADCONF(155, 7, 0x130, 0x270, -1, 0x480, 24, 12, 0, 6), |
| PADCONF(156, 7, 0x130, 0x270, -1, 0x480, 28, 14, 0, 7), |
| PADCONF(157, 7, 0x138, 0x278, -1, 0x480, 0, 0, 0, 8), |
| PADCONF(158, 7, 0x138, 0x278, -1, 0x480, 4, 2, 0, 9), |
| PADCONF(159, 5, 0x140, 0x280, 0x380, -1, 0, 0, 0, 0), |
| PADCONF(160, 6, 0x140, 0x280, 0x380, -1, 4, 2, 2, 0), |
| PADCONF(161, 5, 0x140, 0x280, 0x380, -1, 8, 4, 4, 0), |
| PADCONF(162, 6, 0x140, 0x280, 0x380, -1, 12, 6, 6, 0), |
| PADCONF(163, 6, 0x140, 0x280, 0x380, -1, 16, 8, 8, 0), |
| }; |
| |
| /* pin list of each pin group */ |
| static const unsigned int gnss_gpio_pins[] = { 119, 120, 121, 122, 123, 124, |
| 125, 126, 127, 128, 22, 23, 24, 25, 26, 27, 28, 29, 30, }; |
| static const unsigned int lcd_vip_gpio_pins[] = { 74, 75, 76, 77, 78, 79, 80, |
| 81, 82, 83, 84, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, |
| 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, }; |
| static const unsigned int sdio_i2s_gpio_pins[] = { 31, 32, 33, 34, 35, 36, |
| 85, 86, 87, 88, 89, 90, 129, 130, 131, 132, 91, 92, 93, 94, |
| 95, 96, 112, 113, 114, 115, 116, 117, 118, }; |
| static const unsigned int sp_rgmii_gpio_pins[] = { 97, 98, 99, 100, 101, 102, |
| 103, 104, 105, 106, 107, 108, 109, 110, 111, 18, 19, 20, 21, |
| 141, 142, 143, 144, 145, 146, 147, 148, }; |
| static const unsigned int lvds_gpio_pins[] = { 157, 158, 155, 156, 153, 154, |
| 151, 152, 149, 150, }; |
| static const unsigned int jtag_uart_nand_gpio_pins[] = { 44, 43, 42, 41, 40, |
| 39, 38, 37, 46, 47, 48, 49, 50, 52, 51, 45, 133, 134, 135, |
| 136, 137, 138, 139, 140, 159, 160, 161, 162, 163, }; |
| static const unsigned int rtc_gpio_pins[] = { 0, 1, 2, 3, 4, 10, 11, 12, 13, |
| 14, 15, 16, 17, 9, }; |
| static const unsigned int audio_ac97_pins[] = { 113, 118, 115, 114, }; |
| static const unsigned int audio_digmic_pins0[] = { 51, }; |
| static const unsigned int audio_digmic_pins1[] = { 122, }; |
| static const unsigned int audio_digmic_pins2[] = { 161, }; |
| static const unsigned int audio_func_dbg_pins[] = { 141, 144, 44, 43, 42, 41, |
| 40, 39, 38, 37, 74, 75, 76, 77, 78, 79, 81, 113, 114, 118, |
| 115, 49, 50, 142, 143, 80, }; |
| static const unsigned int audio_i2s_pins[] = { 118, 115, 116, 117, 112, 113, |
| 114, }; |
| static const unsigned int audio_i2s_2ch_pins[] = { 118, 115, 112, 113, 114, }; |
| static const unsigned int audio_i2s_extclk_pins[] = { 112, }; |
| static const unsigned int audio_spdif_out_pins0[] = { 112, }; |
| static const unsigned int audio_spdif_out_pins1[] = { 116, }; |
| static const unsigned int audio_spdif_out_pins2[] = { 142, }; |
| static const unsigned int audio_uart0_basic_pins[] = { 143, 142, 141, 144, }; |
| static const unsigned int audio_uart0_urfs_pins0[] = { 117, }; |
| static const unsigned int audio_uart0_urfs_pins1[] = { 139, }; |
| static const unsigned int audio_uart0_urfs_pins2[] = { 163, }; |
| static const unsigned int audio_uart0_urfs_pins3[] = { 162, }; |
| static const unsigned int audio_uart1_basic_pins[] = { 147, 146, 145, 148, }; |
| static const unsigned int audio_uart1_urfs_pins0[] = { 117, }; |
| static const unsigned int audio_uart1_urfs_pins1[] = { 140, }; |
| static const unsigned int audio_uart1_urfs_pins2[] = { 163, }; |
| static const unsigned int audio_uart2_urfs_pins0[] = { 139, }; |
| static const unsigned int audio_uart2_urfs_pins1[] = { 163, }; |
| static const unsigned int audio_uart2_urfs_pins2[] = { 96, }; |
| static const unsigned int audio_uart2_urxd_pins0[] = { 20, }; |
| static const unsigned int audio_uart2_urxd_pins1[] = { 109, }; |
| static const unsigned int audio_uart2_urxd_pins2[] = { 93, }; |
| static const unsigned int audio_uart2_usclk_pins0[] = { 19, }; |
| static const unsigned int audio_uart2_usclk_pins1[] = { 101, }; |
| static const unsigned int audio_uart2_usclk_pins2[] = { 91, }; |
| static const unsigned int audio_uart2_utfs_pins0[] = { 18, }; |
| static const unsigned int audio_uart2_utfs_pins1[] = { 111, }; |
| static const unsigned int audio_uart2_utfs_pins2[] = { 94, }; |
| static const unsigned int audio_uart2_utxd_pins0[] = { 21, }; |
| static const unsigned int audio_uart2_utxd_pins1[] = { 110, }; |
| static const unsigned int audio_uart2_utxd_pins2[] = { 92, }; |
| static const unsigned int c_can_trnsvr_en_pins0[] = { 2, }; |
| static const unsigned int c_can_trnsvr_en_pins1[] = { 0, }; |
| static const unsigned int c_can_trnsvr_intr_pins[] = { 1, }; |
| static const unsigned int c_can_trnsvr_stb_n_pins[] = { 3, }; |
| static const unsigned int c0_can_rxd_trnsv0_pins[] = { 11, }; |
| static const unsigned int c0_can_rxd_trnsv1_pins[] = { 2, }; |
| static const unsigned int c0_can_txd_trnsv0_pins[] = { 10, }; |
| static const unsigned int c0_can_txd_trnsv1_pins[] = { 3, }; |
| static const unsigned int c1_can_rxd_pins0[] = { 138, }; |
| static const unsigned int c1_can_rxd_pins1[] = { 147, }; |
| static const unsigned int c1_can_rxd_pins2[] = { 2, }; |
| static const unsigned int c1_can_rxd_pins3[] = { 162, }; |
| static const unsigned int c1_can_txd_pins0[] = { 137, }; |
| static const unsigned int c1_can_txd_pins1[] = { 146, }; |
| static const unsigned int c1_can_txd_pins2[] = { 3, }; |
| static const unsigned int c1_can_txd_pins3[] = { 161, }; |
| static const unsigned int ca_audio_lpc_pins[] = { 62, 63, 64, 65, 66, 67, 68, |
| 69, 70, 71, }; |
| static const unsigned int ca_bt_lpc_pins[] = { 85, 86, 87, 88, 89, 90, }; |
| static const unsigned int ca_coex_pins[] = { 129, 130, 131, 132, }; |
| static const unsigned int ca_curator_lpc_pins[] = { 57, 58, 59, 60, }; |
| static const unsigned int ca_pcm_debug_pins[] = { 91, 93, 94, 92, }; |
| static const unsigned int ca_pio_pins[] = { 121, 122, 125, 126, 38, 37, 47, |
| 49, 50, 54, 55, 56, }; |
| static const unsigned int ca_sdio_debug_pins[] = { 40, 39, 44, 43, 42, 41, }; |
| static const unsigned int ca_spi_pins[] = { 82, 79, 80, 81, }; |
| static const unsigned int ca_trb_pins[] = { 91, 93, 94, 95, 96, 78, 74, 75, |
| 76, 77, }; |
| static const unsigned int ca_uart_debug_pins[] = { 136, 135, 134, 133, }; |
| static const unsigned int clkc_pins0[] = { 30, 47, }; |
| static const unsigned int clkc_pins1[] = { 78, 54, }; |
| static const unsigned int gn_gnss_i2c_pins[] = { 128, 127, }; |
| static const unsigned int gn_gnss_uart_nopause_pins[] = { 134, 133, }; |
| static const unsigned int gn_gnss_uart_pins[] = { 134, 133, 136, 135, }; |
| static const unsigned int gn_trg_spi_pins0[] = { 22, 25, 23, 24, }; |
| static const unsigned int gn_trg_spi_pins1[] = { 82, 79, 80, 81, }; |
| static const unsigned int cvbs_dbg_pins[] = { 54, 53, 82, 74, 75, 76, 77, 78, |
| 79, 80, 81, 83, 84, 73, 55, 56, }; |
| static const unsigned int cvbs_dbg_test_pins0[] = { 57, }; |
| static const unsigned int cvbs_dbg_test_pins1[] = { 58, }; |
| static const unsigned int cvbs_dbg_test_pins2[] = { 59, }; |
| static const unsigned int cvbs_dbg_test_pins3[] = { 60, }; |
| static const unsigned int cvbs_dbg_test_pins4[] = { 61, }; |
| static const unsigned int cvbs_dbg_test_pins5[] = { 62, }; |
| static const unsigned int cvbs_dbg_test_pins6[] = { 63, }; |
| static const unsigned int cvbs_dbg_test_pins7[] = { 64, }; |
| static const unsigned int cvbs_dbg_test_pins8[] = { 65, }; |
| static const unsigned int cvbs_dbg_test_pins9[] = { 66, }; |
| static const unsigned int cvbs_dbg_test_pins10[] = { 67, }; |
| static const unsigned int cvbs_dbg_test_pins11[] = { 68, }; |
| static const unsigned int cvbs_dbg_test_pins12[] = { 69, }; |
| static const unsigned int cvbs_dbg_test_pins13[] = { 70, }; |
| static const unsigned int cvbs_dbg_test_pins14[] = { 71, }; |
| static const unsigned int cvbs_dbg_test_pins15[] = { 72, }; |
| static const unsigned int gn_gnss_power_pins[] = { 123, 124, 121, 122, 125, |
| 120, }; |
| static const unsigned int gn_gnss_sw_status_pins[] = { 57, 58, 59, 60, 61, |
| 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 53, 55, 56, 54, }; |
| static const unsigned int gn_gnss_eclk_pins[] = { 113, }; |
| static const unsigned int gn_gnss_irq1_pins0[] = { 112, }; |
| static const unsigned int gn_gnss_irq2_pins0[] = { 118, }; |
| static const unsigned int gn_gnss_tm_pins[] = { 115, }; |
| static const unsigned int gn_gnss_tsync_pins[] = { 114, }; |
| static const unsigned int gn_io_gnsssys_sw_cfg_pins[] = { 44, 43, 42, 41, 40, |
| 39, 38, 37, 49, 50, 91, 92, 93, 94, 95, 96, }; |
| static const unsigned int gn_trg_pins0[] = { 29, 28, 26, 27, }; |
| static const unsigned int gn_trg_pins1[] = { 77, 76, 74, 75, }; |
| static const unsigned int gn_trg_shutdown_pins0[] = { 30, }; |
| static const unsigned int gn_trg_shutdown_pins1[] = { 83, }; |
| static const unsigned int gn_trg_shutdown_pins2[] = { 117, }; |
| static const unsigned int gn_trg_shutdown_pins3[] = { 123, }; |
| static const unsigned int i2c0_pins[] = { 128, 127, }; |
| static const unsigned int i2c1_pins[] = { 126, 125, }; |
| static const unsigned int i2s0_pins[] = { 91, 93, 94, 92, }; |
| static const unsigned int i2s1_basic_pins[] = { 95, 96, }; |
| static const unsigned int i2s1_rxd0_pins0[] = { 61, }; |
| static const unsigned int i2s1_rxd0_pins1[] = { 131, }; |
| static const unsigned int i2s1_rxd0_pins2[] = { 129, }; |
| static const unsigned int i2s1_rxd0_pins3[] = { 117, }; |
| static const unsigned int i2s1_rxd0_pins4[] = { 83, }; |
| static const unsigned int i2s1_rxd1_pins0[] = { 72, }; |
| static const unsigned int i2s1_rxd1_pins1[] = { 132, }; |
| static const unsigned int i2s1_rxd1_pins2[] = { 130, }; |
| static const unsigned int i2s1_rxd1_pins3[] = { 118, }; |
| static const unsigned int i2s1_rxd1_pins4[] = { 84, }; |
| static const unsigned int jtag_jt_dbg_nsrst_pins[] = { 125, }; |
| static const unsigned int jtag_ntrst_pins0[] = { 4, }; |
| static const unsigned int jtag_ntrst_pins1[] = { 163, }; |
| static const unsigned int jtag_swdiotms_pins0[] = { 2, }; |
| static const unsigned int jtag_swdiotms_pins1[] = { 160, }; |
| static const unsigned int jtag_tck_pins0[] = { 0, }; |
| static const unsigned int jtag_tck_pins1[] = { 161, }; |
| static const unsigned int jtag_tdi_pins0[] = { 1, }; |
| static const unsigned int jtag_tdi_pins1[] = { 162, }; |
| static const unsigned int jtag_tdo_pins0[] = { 3, }; |
| static const unsigned int jtag_tdo_pins1[] = { 159, }; |
| static const unsigned int ks_kas_spi_pins0[] = { 141, 144, 143, 142, }; |
| static const unsigned int ld_ldd_pins[] = { 57, 58, 59, 60, 61, 62, 63, 64, |
| 65, 66, 67, 68, 69, 70, 71, 72, 74, 75, 76, 77, 78, 79, 80, |
| 81, 56, 53, }; |
| static const unsigned int ld_ldd_16bit_pins[] = { 57, 58, 59, 60, 61, 62, 63, |
| 64, 65, 66, 67, 68, 69, 70, 71, 72, 56, 53, }; |
| static const unsigned int ld_ldd_fck_pins[] = { 55, }; |
| static const unsigned int ld_ldd_lck_pins[] = { 54, }; |
| static const unsigned int lr_lcdrom_pins[] = { 73, 54, 57, 58, 59, 60, 61, |
| 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 56, 53, 55, }; |
| static const unsigned int lvds_analog_pins[] = { 149, 150, 151, 152, 153, 154, |
| 155, 156, 157, 158, }; |
| static const unsigned int nd_df_basic_pins[] = { 44, 43, 42, 41, 40, 39, 38, |
| 37, 47, 46, 52, 45, 49, 50, 48, }; |
| static const unsigned int nd_df_wp_pins[] = { 124, }; |
| static const unsigned int nd_df_cs_pins[] = { 51, }; |
| static const unsigned int ps_pins[] = { 120, 119, 121, }; |
| static const unsigned int ps_no_dir_pins[] = { 119, }; |
| static const unsigned int pwc_core_on_pins[] = { 8, }; |
| static const unsigned int pwc_ext_on_pins[] = { 6, }; |
| static const unsigned int pwc_gpio3_clk_pins[] = { 3, }; |
| static const unsigned int pwc_io_on_pins[] = { 9, }; |
| static const unsigned int pwc_lowbatt_b_pins0[] = { 4, }; |
| static const unsigned int pwc_mem_on_pins[] = { 7, }; |
| static const unsigned int pwc_on_key_b_pins0[] = { 5, }; |
| static const unsigned int pwc_wakeup_src0_pins[] = { 0, }; |
| static const unsigned int pwc_wakeup_src1_pins[] = { 1, }; |
| static const unsigned int pwc_wakeup_src2_pins[] = { 2, }; |
| static const unsigned int pwc_wakeup_src3_pins[] = { 3, }; |
| static const unsigned int pw_cko0_pins0[] = { 123, }; |
| static const unsigned int pw_cko0_pins1[] = { 101, }; |
| static const unsigned int pw_cko0_pins2[] = { 82, }; |
| static const unsigned int pw_cko0_pins3[] = { 162, }; |
| static const unsigned int pw_cko1_pins0[] = { 124, }; |
| static const unsigned int pw_cko1_pins1[] = { 110, }; |
| static const unsigned int pw_cko1_pins2[] = { 163, }; |
| static const unsigned int pw_i2s01_clk_pins0[] = { 125, }; |
| static const unsigned int pw_i2s01_clk_pins1[] = { 117, }; |
| static const unsigned int pw_i2s01_clk_pins2[] = { 132, }; |
| static const unsigned int pw_pwm0_pins0[] = { 119, }; |
| static const unsigned int pw_pwm0_pins1[] = { 159, }; |
| static const unsigned int pw_pwm1_pins0[] = { 120, }; |
| static const unsigned int pw_pwm1_pins1[] = { 160, }; |
| static const unsigned int pw_pwm1_pins2[] = { 131, }; |
| static const unsigned int pw_pwm2_pins0[] = { 121, }; |
| static const unsigned int pw_pwm2_pins1[] = { 98, }; |
| static const unsigned int pw_pwm2_pins2[] = { 161, }; |
| static const unsigned int pw_pwm3_pins0[] = { 122, }; |
| static const unsigned int pw_pwm3_pins1[] = { 73, }; |
| static const unsigned int pw_pwm_cpu_vol_pins0[] = { 121, }; |
| static const unsigned int pw_pwm_cpu_vol_pins1[] = { 98, }; |
| static const unsigned int pw_pwm_cpu_vol_pins2[] = { 161, }; |
| static const unsigned int pw_backlight_pins0[] = { 122, }; |
| static const unsigned int pw_backlight_pins1[] = { 73, }; |
| static const unsigned int rg_eth_mac_pins[] = { 108, 103, 104, 105, 106, 107, |
| 102, 97, 98, 99, 100, 101, }; |
| static const unsigned int rg_gmac_phy_intr_n_pins[] = { 111, }; |
| static const unsigned int rg_rgmii_mac_pins[] = { 109, 110, }; |
| static const unsigned int rg_rgmii_phy_ref_clk_pins0[] = { 111, }; |
| static const unsigned int rg_rgmii_phy_ref_clk_pins1[] = { 53, }; |
| static const unsigned int sd0_pins[] = { 46, 47, 44, 43, 42, 41, 40, 39, 38, |
| 37, }; |
| static const unsigned int sd0_4bit_pins[] = { 46, 47, 44, 43, 42, 41, }; |
| static const unsigned int sd1_pins[] = { 48, 49, 44, 43, 42, 41, 40, 39, 38, |
| 37, }; |
| static const unsigned int sd1_4bit_pins0[] = { 48, 49, 44, 43, 42, 41, }; |
| static const unsigned int sd1_4bit_pins1[] = { 48, 49, 40, 39, 38, 37, }; |
| static const unsigned int sd2_basic_pins[] = { 31, 32, 33, 34, 35, 36, }; |
| static const unsigned int sd2_cdb_pins0[] = { 124, }; |
| static const unsigned int sd2_cdb_pins1[] = { 161, }; |
| static const unsigned int sd2_wpb_pins0[] = { 123, }; |
| static const unsigned int sd2_wpb_pins1[] = { 163, }; |
| static const unsigned int sd3_9_pins[] = { 85, 86, 87, 88, 89, 90, }; |
| static const unsigned int sd5_pins[] = { 91, 92, 93, 94, 95, 96, }; |
| static const unsigned int sd6_pins0[] = { 79, 78, 74, 75, 76, 77, }; |
| static const unsigned int sd6_pins1[] = { 101, 99, 100, 110, 109, 111, }; |
| static const unsigned int sp0_ext_ldo_on_pins[] = { 4, }; |
| static const unsigned int sp0_qspi_pins[] = { 12, 13, 14, 15, 16, 17, }; |
| static const unsigned int sp1_spi_pins[] = { 19, 20, 21, 18, }; |
| static const unsigned int tpiu_trace_pins[] = { 53, 56, 57, 58, 59, 60, 61, |
| 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, }; |
| static const unsigned int uart0_pins[] = { 121, 120, 134, 133, }; |
| static const unsigned int uart0_nopause_pins[] = { 134, 133, }; |
| static const unsigned int uart1_pins[] = { 136, 135, }; |
| static const unsigned int uart2_cts_pins0[] = { 132, }; |
| static const unsigned int uart2_cts_pins1[] = { 162, }; |
| static const unsigned int uart2_rts_pins0[] = { 131, }; |
| static const unsigned int uart2_rts_pins1[] = { 161, }; |
| static const unsigned int uart2_rxd_pins0[] = { 11, }; |
| static const unsigned int uart2_rxd_pins1[] = { 160, }; |
| static const unsigned int uart2_rxd_pins2[] = { 130, }; |
| static const unsigned int uart2_txd_pins0[] = { 10, }; |
| static const unsigned int uart2_txd_pins1[] = { 159, }; |
| static const unsigned int uart2_txd_pins2[] = { 129, }; |
| static const unsigned int uart3_cts_pins0[] = { 125, }; |
| static const unsigned int uart3_cts_pins1[] = { 111, }; |
| static const unsigned int uart3_cts_pins2[] = { 140, }; |
| static const unsigned int uart3_rts_pins0[] = { 126, }; |
| static const unsigned int uart3_rts_pins1[] = { 109, }; |
| static const unsigned int uart3_rts_pins2[] = { 139, }; |
| static const unsigned int uart3_rxd_pins0[] = { 138, }; |
| static const unsigned int uart3_rxd_pins1[] = { 84, }; |
| static const unsigned int uart3_rxd_pins2[] = { 162, }; |
| static const unsigned int uart3_txd_pins0[] = { 137, }; |
| static const unsigned int uart3_txd_pins1[] = { 83, }; |
| static const unsigned int uart3_txd_pins2[] = { 161, }; |
| static const unsigned int uart4_basic_pins[] = { 140, 139, }; |
| static const unsigned int uart4_cts_pins0[] = { 122, }; |
| static const unsigned int uart4_cts_pins1[] = { 100, }; |
| static const unsigned int uart4_cts_pins2[] = { 117, }; |
| static const unsigned int uart4_rts_pins0[] = { 123, }; |
| static const unsigned int uart4_rts_pins1[] = { 99, }; |
| static const unsigned int uart4_rts_pins2[] = { 116, }; |
| static const unsigned int usb0_drvvbus_pins0[] = { 51, }; |
| static const unsigned int usb0_drvvbus_pins1[] = { 162, }; |
| static const unsigned int usb1_drvvbus_pins0[] = { 134, }; |
| static const unsigned int usb1_drvvbus_pins1[] = { 163, }; |
| static const unsigned int visbus_dout_pins[] = { 57, 58, 59, 60, 61, 62, 63, |
| 64, 65, 66, 67, 68, 69, 70, 71, 72, 53, 54, 55, 56, 85, 86, |
| 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, }; |
| static const unsigned int vi_vip1_pins[] = { 74, 75, 76, 77, 78, 79, 80, 81, |
| 82, 83, 84, 103, 104, 105, 106, 107, 102, 97, 98, }; |
| static const unsigned int vi_vip1_ext_pins[] = { 74, 75, 76, 77, 78, 79, 80, |
| 81, 82, 83, 84, 108, 103, 104, 105, 106, 107, 102, 97, 98, |
| 99, 100, }; |
| static const unsigned int vi_vip1_low8bit_pins[] = { 74, 75, 76, 77, 78, 79, |
| 80, 81, 82, 83, 84, }; |
| static const unsigned int vi_vip1_high8bit_pins[] = { 82, 83, 84, 103, 104, |
| 105, 106, 107, 102, 97, 98, }; |
| |
| /* definition of pin group table */ |
| static struct atlas7_pin_group altas7_pin_groups[] = { |
| GROUP("gnss_gpio_grp", gnss_gpio_pins), |
| GROUP("lcd_vip_gpio_grp", lcd_vip_gpio_pins), |
| GROUP("sdio_i2s_gpio_grp", sdio_i2s_gpio_pins), |
| GROUP("sp_rgmii_gpio_grp", sp_rgmii_gpio_pins), |
| GROUP("lvds_gpio_grp", lvds_gpio_pins), |
| GROUP("jtag_uart_nand_gpio_grp", jtag_uart_nand_gpio_pins), |
| GROUP("rtc_gpio_grp", rtc_gpio_pins), |
| GROUP("audio_ac97_grp", audio_ac97_pins), |
| GROUP("audio_digmic_grp0", audio_digmic_pins0), |
| GROUP("audio_digmic_grp1", audio_digmic_pins1), |
| GROUP("audio_digmic_grp2", audio_digmic_pins2), |
| GROUP("audio_func_dbg_grp", audio_func_dbg_pins), |
| GROUP("audio_i2s_grp", audio_i2s_pins), |
| GROUP("audio_i2s_2ch_grp", audio_i2s_2ch_pins), |
| GROUP("audio_i2s_extclk_grp", audio_i2s_extclk_pins), |
| GROUP("audio_spdif_out_grp0", audio_spdif_out_pins0), |
| GROUP("audio_spdif_out_grp1", audio_spdif_out_pins1), |
| GROUP("audio_spdif_out_grp2", audio_spdif_out_pins2), |
| GROUP("audio_uart0_basic_grp", audio_uart0_basic_pins), |
| GROUP("audio_uart0_urfs_grp0", audio_uart0_urfs_pins0), |
| GROUP("audio_uart0_urfs_grp1", audio_uart0_urfs_pins1), |
| GROUP("audio_uart0_urfs_grp2", audio_uart0_urfs_pins2), |
| GROUP("audio_uart0_urfs_grp3", audio_uart0_urfs_pins3), |
| GROUP("audio_uart1_basic_grp", audio_uart1_basic_pins), |
| GROUP("audio_uart1_urfs_grp0", audio_uart1_urfs_pins0), |
| GROUP("audio_uart1_urfs_grp1", audio_uart1_urfs_pins1), |
| GROUP("audio_uart1_urfs_grp2", audio_uart1_urfs_pins2), |
| GROUP("audio_uart2_urfs_grp0", audio_uart2_urfs_pins0), |
| GROUP("audio_uart2_urfs_grp1", audio_uart2_urfs_pins1), |
| GROUP("audio_uart2_urfs_grp2", audio_uart2_urfs_pins2), |
| GROUP("audio_uart2_urxd_grp0", audio_uart2_urxd_pins0), |
| GROUP("audio_uart2_urxd_grp1", audio_uart2_urxd_pins1), |
| GROUP("audio_uart2_urxd_grp2", audio_uart2_urxd_pins2), |
| GROUP("audio_uart2_usclk_grp0", audio_uart2_usclk_pins0), |
| GROUP("audio_uart2_usclk_grp1", audio_uart2_usclk_pins1), |
| GROUP("audio_uart2_usclk_grp2", audio_uart2_usclk_pins2), |
| GROUP("audio_uart2_utfs_grp0", audio_uart2_utfs_pins0), |
| GROUP("audio_uart2_utfs_grp1", audio_uart2_utfs_pins1), |
| GROUP("audio_uart2_utfs_grp2", audio_uart2_utfs_pins2), |
| GROUP("audio_uart2_utxd_grp0", audio_uart2_utxd_pins0), |
| GROUP("audio_uart2_utxd_grp1", audio_uart2_utxd_pins1), |
| GROUP("audio_uart2_utxd_grp2", audio_uart2_utxd_pins2), |
| GROUP("c_can_trnsvr_en_grp0", c_can_trnsvr_en_pins0), |
| GROUP("c_can_trnsvr_en_grp1", c_can_trnsvr_en_pins1), |
| GROUP("c_can_trnsvr_intr_grp", c_can_trnsvr_intr_pins), |
| GROUP("c_can_trnsvr_stb_n_grp", c_can_trnsvr_stb_n_pins), |
| GROUP("c0_can_rxd_trnsv0_grp", c0_can_rxd_trnsv0_pins), |
| GROUP("c0_can_rxd_trnsv1_grp", c0_can_rxd_trnsv1_pins), |
| GROUP("c0_can_txd_trnsv0_grp", c0_can_txd_trnsv0_pins), |
| GROUP("c0_can_txd_trnsv1_grp", c0_can_txd_trnsv1_pins), |
| GROUP("c1_can_rxd_grp0", c1_can_rxd_pins0), |
| GROUP("c1_can_rxd_grp1", c1_can_rxd_pins1), |
| GROUP("c1_can_rxd_grp2", c1_can_rxd_pins2), |
| GROUP("c1_can_rxd_grp3", c1_can_rxd_pins3), |
| GROUP("c1_can_txd_grp0", c1_can_txd_pins0), |
| GROUP("c1_can_txd_grp1", c1_can_txd_pins1), |
| GROUP("c1_can_txd_grp2", c1_can_txd_pins2), |
| GROUP("c1_can_txd_grp3", c1_can_txd_pins3), |
| GROUP("ca_audio_lpc_grp", ca_audio_lpc_pins), |
| GROUP("ca_bt_lpc_grp", ca_bt_lpc_pins), |
| GROUP("ca_coex_grp", ca_coex_pins), |
| GROUP("ca_curator_lpc_grp", ca_curator_lpc_pins), |
| GROUP("ca_pcm_debug_grp", ca_pcm_debug_pins), |
| GROUP("ca_pio_grp", ca_pio_pins), |
| GROUP("ca_sdio_debug_grp", ca_sdio_debug_pins), |
| GROUP("ca_spi_grp", ca_spi_pins), |
| GROUP("ca_trb_grp", ca_trb_pins), |
| GROUP("ca_uart_debug_grp", ca_uart_debug_pins), |
| GROUP("clkc_grp0", clkc_pins0), |
| GROUP("clkc_grp1", clkc_pins1), |
| GROUP("gn_gnss_i2c_grp", gn_gnss_i2c_pins), |
| GROUP("gn_gnss_uart_nopause_grp", gn_gnss_uart_nopause_pins), |
| GROUP("gn_gnss_uart_grp", gn_gnss_uart_pins), |
| GROUP("gn_trg_spi_grp0", gn_trg_spi_pins0), |
| GROUP("gn_trg_spi_grp1", gn_trg_spi_pins1), |
| GROUP("cvbs_dbg_grp", cvbs_dbg_pins), |
| GROUP("cvbs_dbg_test_grp0", cvbs_dbg_test_pins0), |
| GROUP("cvbs_dbg_test_grp1", cvbs_dbg_test_pins1), |
| GROUP("cvbs_dbg_test_grp2", cvbs_dbg_test_pins2), |
| GROUP("cvbs_dbg_test_grp3", cvbs_dbg_test_pins3), |
| GROUP("cvbs_dbg_test_grp4", cvbs_dbg_test_pins4), |
| GROUP("cvbs_dbg_test_grp5", cvbs_dbg_test_pins5), |
| GROUP("cvbs_dbg_test_grp6", cvbs_dbg_test_pins6), |
| GROUP("cvbs_dbg_test_grp7", cvbs_dbg_test_pins7), |
| GROUP("cvbs_dbg_test_grp8", cvbs_dbg_test_pins8), |
| GROUP("cvbs_dbg_test_grp9", cvbs_dbg_test_pins9), |
| GROUP("cvbs_dbg_test_grp10", cvbs_dbg_test_pins10), |
| GROUP("cvbs_dbg_test_grp11", cvbs_dbg_test_pins11), |
| GROUP("cvbs_dbg_test_grp12", cvbs_dbg_test_pins12), |
| GROUP("cvbs_dbg_test_grp13", cvbs_dbg_test_pins13), |
| GROUP("cvbs_dbg_test_grp14", cvbs_dbg_test_pins14), |
| GROUP("cvbs_dbg_test_grp15", cvbs_dbg_test_pins15), |
| GROUP("gn_gnss_power_grp", gn_gnss_power_pins), |
| GROUP("gn_gnss_sw_status_grp", gn_gnss_sw_status_pins), |
| GROUP("gn_gnss_eclk_grp", gn_gnss_eclk_pins), |
| GROUP("gn_gnss_irq1_grp0", gn_gnss_irq1_pins0), |
| GROUP("gn_gnss_irq2_grp0", gn_gnss_irq2_pins0), |
| GROUP("gn_gnss_tm_grp", gn_gnss_tm_pins), |
| GROUP("gn_gnss_tsync_grp", gn_gnss_tsync_pins), |
| GROUP("gn_io_gnsssys_sw_cfg_grp", gn_io_gnsssys_sw_cfg_pins), |
| GROUP("gn_trg_grp0", gn_trg_pins0), |
| GROUP("gn_trg_grp1", gn_trg_pins1), |
| GROUP("gn_trg_shutdown_grp0", gn_trg_shutdown_pins0), |
| GROUP("gn_trg_shutdown_grp1", gn_trg_shutdown_pins1), |
| GROUP("gn_trg_shutdown_grp2", gn_trg_shutdown_pins2), |
| GROUP("gn_trg_shutdown_grp3", gn_trg_shutdown_pins3), |
| GROUP("i2c0_grp", i2c0_pins), |
| GROUP("i2c1_grp", i2c1_pins), |
| GROUP("i2s0_grp", i2s0_pins), |
| GROUP("i2s1_basic_grp", i2s1_basic_pins), |
| GROUP("i2s1_rxd0_grp0", i2s1_rxd0_pins0), |
| GROUP("i2s1_rxd0_grp1", i2s1_rxd0_pins1), |
| GROUP("i2s1_rxd0_grp2", i2s1_rxd0_pins2), |
| GROUP("i2s1_rxd0_grp3", i2s1_rxd0_pins3), |
| GROUP("i2s1_rxd0_grp4", i2s1_rxd0_pins4), |
| GROUP("i2s1_rxd1_grp0", i2s1_rxd1_pins0), |
| GROUP("i2s1_rxd1_grp1", i2s1_rxd1_pins1), |
| GROUP("i2s1_rxd1_grp2", i2s1_rxd1_pins2), |
| GROUP("i2s1_rxd1_grp3", i2s1_rxd1_pins3), |
| GROUP("i2s1_rxd1_grp4", i2s1_rxd1_pins4), |
| GROUP("jtag_jt_dbg_nsrst_grp", jtag_jt_dbg_nsrst_pins), |
| GROUP("jtag_ntrst_grp0", jtag_ntrst_pins0), |
| GROUP("jtag_ntrst_grp1", jtag_ntrst_pins1), |
| GROUP("jtag_swdiotms_grp0", jtag_swdiotms_pins0), |
| GROUP("jtag_swdiotms_grp1", jtag_swdiotms_pins1), |
| GROUP("jtag_tck_grp0", jtag_tck_pins0), |
| GROUP("jtag_tck_grp1", jtag_tck_pins1), |
| GROUP("jtag_tdi_grp0", jtag_tdi_pins0), |
| GROUP("jtag_tdi_grp1", jtag_tdi_pins1), |
| GROUP("jtag_tdo_grp0", jtag_tdo_pins0), |
| GROUP("jtag_tdo_grp1", jtag_tdo_pins1), |
| GROUP("ks_kas_spi_grp0", ks_kas_spi_pins0), |
| GROUP("ld_ldd_grp", ld_ldd_pins), |
| GROUP("ld_ldd_16bit_grp", ld_ldd_16bit_pins), |
| GROUP("ld_ldd_fck_grp", ld_ldd_fck_pins), |
| GROUP("ld_ldd_lck_grp", ld_ldd_lck_pins), |
| GROUP("lr_lcdrom_grp", lr_lcdrom_pins), |
| GROUP("lvds_analog_grp", lvds_analog_pins), |
| GROUP("nd_df_basic_grp", nd_df_basic_pins), |
| GROUP("nd_df_wp_grp", nd_df_wp_pins), |
| GROUP("nd_df_cs_grp", nd_df_cs_pins), |
| GROUP("ps_grp", ps_pins), |
| GROUP("ps_no_dir_grp", ps_no_dir_pins), |
| GROUP("pwc_core_on_grp", pwc_core_on_pins), |
| GROUP("pwc_ext_on_grp", pwc_ext_on_pins), |
| GROUP("pwc_gpio3_clk_grp", pwc_gpio3_clk_pins), |
| GROUP("pwc_io_on_grp", pwc_io_on_pins), |
| GROUP("pwc_lowbatt_b_grp0", pwc_lowbatt_b_pins0), |
| GROUP("pwc_mem_on_grp", pwc_mem_on_pins), |
| GROUP("pwc_on_key_b_grp0", pwc_on_key_b_pins0), |
| GROUP("pwc_wakeup_src0_grp", pwc_wakeup_src0_pins), |
| GROUP("pwc_wakeup_src1_grp", pwc_wakeup_src1_pins), |
| GROUP("pwc_wakeup_src2_grp", pwc_wakeup_src2_pins), |
| GROUP("pwc_wakeup_src3_grp", pwc_wakeup_src3_pins), |
| GROUP("pw_cko0_grp0", pw_cko0_pins0), |
| GROUP("pw_cko0_grp1", pw_cko0_pins1), |
| GROUP("pw_cko0_grp2", pw_cko0_pins2), |
| GROUP("pw_cko0_grp3", pw_cko0_pins3), |
| GROUP("pw_cko1_grp0", pw_cko1_pins0), |
| GROUP("pw_cko1_grp1", pw_cko1_pins1), |
| GROUP("pw_cko1_grp2", pw_cko1_pins2), |
| GROUP("pw_i2s01_clk_grp0", pw_i2s01_clk_pins0), |
| GROUP("pw_i2s01_clk_grp1", pw_i2s01_clk_pins1), |
| GROUP("pw_i2s01_clk_grp2", pw_i2s01_clk_pins2), |
| GROUP("pw_pwm0_grp0", pw_pwm0_pins0), |
| GROUP("pw_pwm0_grp1", pw_pwm0_pins1), |
| GROUP("pw_pwm1_grp0", pw_pwm1_pins0), |
| GROUP("pw_pwm1_grp1", pw_pwm1_pins1), |
| GROUP("pw_pwm1_grp2", pw_pwm1_pins2), |
| GROUP("pw_pwm2_grp0", pw_pwm2_pins0), |
| GROUP("pw_pwm2_grp1", pw_pwm2_pins1), |
| GROUP("pw_pwm2_grp2", pw_pwm2_pins2), |
| GROUP("pw_pwm3_grp0", pw_pwm3_pins0), |
| GROUP("pw_pwm3_grp1", pw_pwm3_pins1), |
| GROUP("pw_pwm_cpu_vol_grp0", pw_pwm_cpu_vol_pins0), |
| GROUP("pw_pwm_cpu_vol_grp1", pw_pwm_cpu_vol_pins1), |
| GROUP("pw_pwm_cpu_vol_grp2", pw_pwm_cpu_vol_pins2), |
| GROUP("pw_backlight_grp0", pw_backlight_pins0), |
| GROUP("pw_backlight_grp1", pw_backlight_pins1), |
| GROUP("rg_eth_mac_grp", rg_eth_mac_pins), |
| GROUP("rg_gmac_phy_intr_n_grp", rg_gmac_phy_intr_n_pins), |
| GROUP("rg_rgmii_mac_grp", rg_rgmii_mac_pins), |
| GROUP("rg_rgmii_phy_ref_clk_grp0", rg_rgmii_phy_ref_clk_pins0), |
| GROUP("rg_rgmii_phy_ref_clk_grp1", rg_rgmii_phy_ref_clk_pins1), |
| GROUP("sd0_grp", sd0_pins), |
| GROUP("sd0_4bit_grp", sd0_4bit_pins), |
| GROUP("sd1_grp", sd1_pins), |
| GROUP("sd1_4bit_grp0", sd1_4bit_pins0), |
| GROUP("sd1_4bit_grp1", sd1_4bit_pins1), |
| GROUP("sd2_basic_grp", sd2_basic_pins), |
| GROUP("sd2_cdb_grp0", sd2_cdb_pins0), |
| GROUP("sd2_cdb_grp1", sd2_cdb_pins1), |
| GROUP("sd2_wpb_grp0", sd2_wpb_pins0), |
| GROUP("sd2_wpb_grp1", sd2_wpb_pins1), |
| GROUP("sd3_9_grp", sd3_9_pins), |
| GROUP("sd5_grp", sd5_pins), |
| GROUP("sd6_grp0", sd6_pins0), |
| GROUP("sd6_grp1", sd6_pins1), |
| GROUP("sp0_ext_ldo_on_grp", sp0_ext_ldo_on_pins), |
| GROUP("sp0_qspi_grp", sp0_qspi_pins), |
| GROUP("sp1_spi_grp", sp1_spi_pins), |
| GROUP("tpiu_trace_grp", tpiu_trace_pins), |
| GROUP("uart0_grp", uart0_pins), |
| GROUP("uart0_nopause_grp", uart0_nopause_pins), |
| GROUP("uart1_grp", uart1_pins), |
| GROUP("uart2_cts_grp0", uart2_cts_pins0), |
| GROUP("uart2_cts_grp1", uart2_cts_pins1), |
| GROUP("uart2_rts_grp0", uart2_rts_pins0), |
| GROUP("uart2_rts_grp1", uart2_rts_pins1), |
| GROUP("uart2_rxd_grp0", uart2_rxd_pins0), |
| GROUP("uart2_rxd_grp1", uart2_rxd_pins1), |
| GROUP("uart2_rxd_grp2", uart2_rxd_pins2), |
| GROUP("uart2_txd_grp0", uart2_txd_pins0), |
| GROUP("uart2_txd_grp1", uart2_txd_pins1), |
| GROUP("uart2_txd_grp2", uart2_txd_pins2), |
| GROUP("uart3_cts_grp0", uart3_cts_pins0), |
| GROUP("uart3_cts_grp1", uart3_cts_pins1), |
| GROUP("uart3_cts_grp2", uart3_cts_pins2), |
| GROUP("uart3_rts_grp0", uart3_rts_pins0), |
| GROUP("uart3_rts_grp1", uart3_rts_pins1), |
| GROUP("uart3_rts_grp2", uart3_rts_pins2), |
| GROUP("uart3_rxd_grp0", uart3_rxd_pins0), |
| GROUP("uart3_rxd_grp1", uart3_rxd_pins1), |
| GROUP("uart3_rxd_grp2", uart3_rxd_pins2), |
| GROUP("uart3_txd_grp0", uart3_txd_pins0), |
| GROUP("uart3_txd_grp1", uart3_txd_pins1), |
| GROUP("uart3_txd_grp2", uart3_txd_pins2), |
| GROUP("uart4_basic_grp", uart4_basic_pins), |
| GROUP("uart4_cts_grp0", uart4_cts_pins0), |
| GROUP("uart4_cts_grp1", uart4_cts_pins1), |
| GROUP("uart4_cts_grp2", uart4_cts_pins2), |
| GROUP("uart4_rts_grp0", uart4_rts_pins0), |
| GROUP("uart4_rts_grp1", uart4_rts_pins1), |
| GROUP("uart4_rts_grp2", uart4_rts_pins2), |
| GROUP("usb0_drvvbus_grp0", usb0_drvvbus_pins0), |
| GROUP("usb0_drvvbus_grp1", usb0_drvvbus_pins1), |
| GROUP("usb1_drvvbus_grp0", usb1_drvvbus_pins0), |
| GROUP("usb1_drvvbus_grp1", usb1_drvvbus_pins1), |
| GROUP("visbus_dout_grp", visbus_dout_pins), |
| GROUP("vi_vip1_grp", vi_vip1_pins), |
| GROUP("vi_vip1_ext_grp", vi_vip1_ext_pins), |
| GROUP("vi_vip1_low8bit_grp", vi_vip1_low8bit_pins), |
| GROUP("vi_vip1_high8bit_grp", vi_vip1_high8bit_pins), |
| }; |
| |
| /* How many groups that a function can use */ |
| static const char * const gnss_gpio_grp[] = { "gnss_gpio_grp", }; |
| static const char * const lcd_vip_gpio_grp[] = { "lcd_vip_gpio_grp", }; |
| static const char * const sdio_i2s_gpio_grp[] = { "sdio_i2s_gpio_grp", }; |
| static const char * const sp_rgmii_gpio_grp[] = { "sp_rgmii_gpio_grp", }; |
| static const char * const lvds_gpio_grp[] = { "lvds_gpio_grp", }; |
| static const char * const jtag_uart_nand_gpio_grp[] = { |
| "jtag_uart_nand_gpio_grp", }; |
| static const char * const rtc_gpio_grp[] = { "rtc_gpio_grp", }; |
| static const char * const audio_ac97_grp[] = { "audio_ac97_grp", }; |
| static const char * const audio_digmic_grp0[] = { "audio_digmic_grp0", }; |
| static const char * const audio_digmic_grp1[] = { "audio_digmic_grp1", }; |
| static const char * const audio_digmic_grp2[] = { "audio_digmic_grp2", }; |
| static const char * const audio_func_dbg_grp[] = { "audio_func_dbg_grp", }; |
| static const char * const audio_i2s_grp[] = { "audio_i2s_grp", }; |
| static const char * const audio_i2s_2ch_grp[] = { "audio_i2s_2ch_grp", }; |
| static const char * const audio_i2s_extclk_grp[] = { "audio_i2s_extclk_grp", }; |
| static const char * const audio_spdif_out_grp0[] = { "audio_spdif_out_grp0", }; |
| static const char * const audio_spdif_out_grp1[] = { "audio_spdif_out_grp1", }; |
| static const char * const audio_spdif_out_grp2[] = { "audio_spdif_out_grp2", }; |
| static const char * const audio_uart0_basic_grp[] = { |
| "audio_uart0_basic_grp", }; |
| static const char * const audio_uart0_urfs_grp0[] = { |
| "audio_uart0_urfs_grp0", }; |
| static const char * const audio_uart0_urfs_grp1[] = { |
| "audio_uart0_urfs_grp1", }; |
| static const char * const audio_uart0_urfs_grp2[] = { |
| "audio_uart0_urfs_grp2", }; |
| static const char * const audio_uart0_urfs_grp3[] = { |
| "audio_uart0_urfs_grp3", }; |
| static const char * const audio_uart1_basic_grp[] = { |
| "audio_uart1_basic_grp", }; |
| static const char * const audio_uart1_urfs_grp0[] = { |
| "audio_uart1_urfs_grp0", }; |
| static const char * const audio_uart1_urfs_grp1[] = { |
| "audio_uart1_urfs_grp1", }; |
| static const char * const audio_uart1_urfs_grp2[] = { |
| "audio_uart1_urfs_grp2", }; |
| static const char * const audio_uart2_urfs_grp0[] = { |
| "audio_uart2_urfs_grp0", }; |
| static const char * const audio_uart2_urfs_grp1[] = { |
| "audio_uart2_urfs_grp1", }; |
| static const char * const audio_uart2_urfs_grp2[] = { |
| "audio_uart2_urfs_grp2", }; |
| static const char * const audio_uart2_urxd_grp0[] = { |
| "audio_uart2_urxd_grp0", }; |
| static const char * const audio_uart2_urxd_grp1[] = { |
| "audio_uart2_urxd_grp1", }; |
| static const char * const audio_uart2_urxd_grp2[] = { |
| "audio_uart2_urxd_grp2", }; |
| static const char * const audio_uart2_usclk_grp0[] = { |
| "audio_uart2_usclk_grp0", }; |
| static const char * const audio_uart2_usclk_grp1[] = { |
| "audio_uart2_usclk_grp1", }; |
| static const char * const audio_uart2_usclk_grp2[] = { |
| "audio_uart2_usclk_grp2", }; |
| static const char * const audio_uart2_utfs_grp0[] = { |
| "audio_uart2_utfs_grp0", }; |
| static const char * const audio_uart2_utfs_grp1[] = { |
| "audio_uart2_utfs_grp1", }; |
| static const char * const audio_uart2_utfs_grp2[] = { |
| "audio_uart2_utfs_grp2", }; |
| static const char * const audio_uart2_utxd_grp0[] = { |
| "audio_uart2_utxd_grp0", }; |
| static const char * const audio_uart2_utxd_grp1[] = { |
| "audio_uart2_utxd_grp1", }; |
| static const char * const audio_uart2_utxd_grp2[] = { |
| "audio_uart2_utxd_grp2", }; |
| static const char * const c_can_trnsvr_en_grp0[] = { "c_can_trnsvr_en_grp0", }; |
| static const char * const c_can_trnsvr_en_grp1[] = { "c_can_trnsvr_en_grp1", }; |
| static const char * const c_can_trnsvr_intr_grp[] = { |
| "c_can_trnsvr_intr_grp", }; |
| static const char * const c_can_trnsvr_stb_n_grp[] = { |
| "c_can_trnsvr_stb_n_grp", }; |
| static const char * const c0_can_rxd_trnsv0_grp[] = { |
| "c0_can_rxd_trnsv0_grp", }; |
| static const char * const c0_can_rxd_trnsv1_grp[] = { |
| "c0_can_rxd_trnsv1_grp", }; |
| static const char * const c0_can_txd_trnsv0_grp[] = { |
| "c0_can_txd_trnsv0_grp", }; |
| static const char * const c0_can_txd_trnsv1_grp[] = { |
| "c0_can_txd_trnsv1_grp", }; |
| static const char * const c1_can_rxd_grp0[] = { "c1_can_rxd_grp0", }; |
| static const char * const c1_can_rxd_grp1[] = { "c1_can_rxd_grp1", }; |
| static const char * const c1_can_rxd_grp2[] = { "c1_can_rxd_grp2", }; |
| static const char * const c1_can_rxd_grp3[] = { "c1_can_rxd_grp3", }; |
| static const char * const c1_can_txd_grp0[] = { "c1_can_txd_grp0", }; |
| static const char * const c1_can_txd_grp1[] = { "c1_can_txd_grp1", }; |
| static const char * const c1_can_txd_grp2[] = { "c1_can_txd_grp2", }; |
| static const char * const c1_can_txd_grp3[] = { "c1_can_txd_grp3", }; |
| static const char * const ca_audio_lpc_grp[] = { "ca_audio_lpc_grp", }; |
| static const char * const ca_bt_lpc_grp[] = { "ca_bt_lpc_grp", }; |
| static const char * const ca_coex_grp[] = { "ca_coex_grp", }; |
| static const char * const ca_curator_lpc_grp[] = { "ca_curator_lpc_grp", }; |
| static const char * const ca_pcm_debug_grp[] = { "ca_pcm_debug_grp", }; |
| static const char * const ca_pio_grp[] = { "ca_pio_grp", }; |
| static const char * const ca_sdio_debug_grp[] = { "ca_sdio_debug_grp", }; |
| static const char * const ca_spi_grp[] = { "ca_spi_grp", }; |
| static const char * const ca_trb_grp[] = { "ca_trb_grp", }; |
| static const char * const ca_uart_debug_grp[] = { "ca_uart_debug_grp", }; |
| static const char * const clkc_grp0[] = { "clkc_grp0", }; |
| static const char * const clkc_grp1[] = { "clkc_grp1", }; |
| static const char * const gn_gnss_i2c_grp[] = { "gn_gnss_i2c_grp", }; |
| static const char * const gn_gnss_uart_nopause_grp[] = { |
| "gn_gnss_uart_nopause_grp", }; |
| static const char * const gn_gnss_uart_grp[] = { "gn_gnss_uart_grp", }; |
| static const char * const gn_trg_spi_grp0[] = { "gn_trg_spi_grp0", }; |
| static const char * const gn_trg_spi_grp1[] = { "gn_trg_spi_grp1", }; |
| static const char * const cvbs_dbg_grp[] = { "cvbs_dbg_grp", }; |
| static const char * const cvbs_dbg_test_grp0[] = { "cvbs_dbg_test_grp0", }; |
| static const char * const cvbs_dbg_test_grp1[] = { "cvbs_dbg_test_grp1", }; |
| static const char * const cvbs_dbg_test_grp2[] = { "cvbs_dbg_test_grp2", }; |
| static const char * const cvbs_dbg_test_grp3[] = { "cvbs_dbg_test_grp3", }; |
| static const char * const cvbs_dbg_test_grp4[] = { "cvbs_dbg_test_grp4", }; |
| static const char * const cvbs_dbg_test_grp5[] = { "cvbs_dbg_test_grp5", }; |
| static const char * const cvbs_dbg_test_grp6[] = { "cvbs_dbg_test_grp6", }; |
| static const char * const cvbs_dbg_test_grp7[] = { "cvbs_dbg_test_grp7", }; |
| static const char * const cvbs_dbg_test_grp8[] = { "cvbs_dbg_test_grp8", }; |
| static const char * const cvbs_dbg_test_grp9[] = { "cvbs_dbg_test_grp9", }; |
| static const char * const cvbs_dbg_test_grp10[] = { "cvbs_dbg_test_grp10", }; |
| static const char * const cvbs_dbg_test_grp11[] = { "cvbs_dbg_test_grp11", }; |
| static const char * const cvbs_dbg_test_grp12[] = { "cvbs_dbg_test_grp12", }; |
| static const char * const cvbs_dbg_test_grp13[] = { "cvbs_dbg_test_grp13", }; |
| static const char * const cvbs_dbg_test_grp14[] = { "cvbs_dbg_test_grp14", }; |
| static const char * const cvbs_dbg_test_grp15[] = { "cvbs_dbg_test_grp15", }; |
| static const char * const gn_gnss_power_grp[] = { "gn_gnss_power_grp", }; |
| static const char * const gn_gnss_sw_status_grp[] = { |
| "gn_gnss_sw_status_grp", }; |
| static const char * const gn_gnss_eclk_grp[] = { "gn_gnss_eclk_grp", }; |
| static const char * const gn_gnss_irq1_grp0[] = { "gn_gnss_irq1_grp0", }; |
| static const char * const gn_gnss_irq2_grp0[] = { "gn_gnss_irq2_grp0", }; |
| static const char * const gn_gnss_tm_grp[] = { "gn_gnss_tm_grp", }; |
| static const char * const gn_gnss_tsync_grp[] = { "gn_gnss_tsync_grp", }; |
| static const char * const gn_io_gnsssys_sw_cfg_grp[] = { |
| "gn_io_gnsssys_sw_cfg_grp", }; |
| static const char * const gn_trg_grp0[] = { "gn_trg_grp0", }; |
| static const char * const gn_trg_grp1[] = { "gn_trg_grp1", }; |
| static const char * const gn_trg_shutdown_grp0[] = { "gn_trg_shutdown_grp0", }; |
| static const char * const gn_trg_shutdown_grp1[] = { "gn_trg_shutdown_grp1", }; |
| static const char * const gn_trg_shutdown_grp2[] = { "gn_trg_shutdown_grp2", }; |
| static const char * const gn_trg_shutdown_grp3[] = { "gn_trg_shutdown_grp3", }; |
| static const char * const i2c0_grp[] = { "i2c0_grp", }; |
| static const char * const i2c1_grp[] = { "i2c1_grp", }; |
| static const char * const i2s0_grp[] = { "i2s0_grp", }; |
| static const char * const i2s1_basic_grp[] = { "i2s1_basic_grp", }; |
| static const char * const i2s1_rxd0_grp0[] = { "i2s1_rxd0_grp0", }; |
| static const char * const i2s1_rxd0_grp1[] = { "i2s1_rxd0_grp1", }; |
| static const char * const i2s1_rxd0_grp2[] = { "i2s1_rxd0_grp2", }; |
| static const char * const i2s1_rxd0_grp3[] = { "i2s1_rxd0_grp3", }; |
| static const char * const i2s1_rxd0_grp4[] = { "i2s1_rxd0_grp4", }; |
| static const char * const i2s1_rxd1_grp0[] = { "i2s1_rxd1_grp0", }; |
| static const char * const i2s1_rxd1_grp1[] = { "i2s1_rxd1_grp1", }; |
| static const char * const i2s1_rxd1_grp2[] = { "i2s1_rxd1_grp2", }; |
| static const char * const i2s1_rxd1_grp3[] = { "i2s1_rxd1_grp3", }; |
| static const char * const i2s1_rxd1_grp4[] = { "i2s1_rxd1_grp4", }; |
| static const char * const jtag_jt_dbg_nsrst_grp[] = { |
| "jtag_jt_dbg_nsrst_grp", }; |
| static const char * const jtag_ntrst_grp0[] = { "jtag_ntrst_grp0", }; |
| static const char * const jtag_ntrst_grp1[] = { "jtag_ntrst_grp1", }; |
| static const char * const jtag_swdiotms_grp0[] = { "jtag_swdiotms_grp0", }; |
| static const char * const jtag_swdiotms_grp1[] = { "jtag_swdiotms_grp1", }; |
| static const char * const jtag_tck_grp0[] = { "jtag_tck_grp0", }; |
| static const char * const jtag_tck_grp1[] = { "jtag_tck_grp1", }; |
| static const char * const jtag_tdi_grp0[] = { "jtag_tdi_grp0", }; |
| static const char * const jtag_tdi_grp1[] = { "jtag_tdi_grp1", }; |
| static const char * const jtag_tdo_grp0[] = { "jtag_tdo_grp0", }; |
| static const char * const jtag_tdo_grp1[] = { "jtag_tdo_grp1", }; |
| static const char * const ks_kas_spi_grp0[] = { "ks_kas_spi_grp0", }; |
| static const char * const ld_ldd_grp[] = { "ld_ldd_grp", }; |
| static const char * const ld_ldd_16bit_grp[] = { "ld_ldd_16bit_grp", }; |
| static const char * const ld_ldd_fck_grp[] = { "ld_ldd_fck_grp", }; |
| static const char * const ld_ldd_lck_grp[] = { "ld_ldd_lck_grp", }; |
| static const char * const lr_lcdrom_grp[] = { "lr_lcdrom_grp", }; |
| static const char * const lvds_analog_grp[] = { "lvds_analog_grp", }; |
| static const char * const nd_df_basic_grp[] = { "nd_df_basic_grp", }; |
| static const char * const nd_df_wp_grp[] = { "nd_df_wp_grp", }; |
| static const char * const nd_df_cs_grp[] = { "nd_df_cs_grp", }; |
| static const char * const ps_grp[] = { "ps_grp", }; |
| static const char * const ps_no_dir_grp[] = { "ps_no_dir_grp", }; |
| static const char * const pwc_core_on_grp[] = { "pwc_core_on_grp", }; |
| static const char * const pwc_ext_on_grp[] = { "pwc_ext_on_grp", }; |
| static const char * const pwc_gpio3_clk_grp[] = { "pwc_gpio3_clk_grp", }; |
| static const char * const pwc_io_on_grp[] = { "pwc_io_on_grp", }; |
| static const char * const pwc_lowbatt_b_grp0[] = { "pwc_lowbatt_b_grp0", }; |
| static const char * const pwc_mem_on_grp[] = { "pwc_mem_on_grp", }; |
| static const char * const pwc_on_key_b_grp0[] = { "pwc_on_key_b_grp0", }; |
| static const char * const pwc_wakeup_src0_grp[] = { "pwc_wakeup_src0_grp", }; |
| static const char * const pwc_wakeup_src1_grp[] = { "pwc_wakeup_src1_grp", }; |
| static const char * const pwc_wakeup_src2_grp[] = { "pwc_wakeup_src2_grp", }; |
| static const char * const pwc_wakeup_src3_grp[] = { "pwc_wakeup_src3_grp", }; |
| static const char * const pw_cko0_grp0[] = { "pw_cko0_grp0", }; |
| static const char * const pw_cko0_grp1[] = { "pw_cko0_grp1", }; |
| static const char * const pw_cko0_grp2[] = { "pw_cko0_grp2", }; |
| static const char * const pw_cko0_grp3[] = { "pw_cko0_grp3", }; |
| static const char * const pw_cko1_grp0[] = { "pw_cko1_grp0", }; |
| static const char * const pw_cko1_grp1[] = { "pw_cko1_grp1", }; |
| static const char * const pw_cko1_grp2[] = { "pw_cko1_grp2", }; |
| static const char * const pw_i2s01_clk_grp0[] = { "pw_i2s01_clk_grp0", }; |
| static const char * const pw_i2s01_clk_grp1[] = { "pw_i2s01_clk_grp1", }; |
| static const char * const pw_i2s01_clk_grp2[] = { "pw_i2s01_clk_grp2", }; |
| static const char * const pw_pwm0_grp0[] = { "pw_pwm0_grp0", }; |
| static const char * const pw_pwm0_grp1[] = { "pw_pwm0_grp1", }; |
| static const char * const pw_pwm1_grp0[] = { "pw_pwm1_grp0", }; |
| static const char * const pw_pwm1_grp1[] = { "pw_pwm1_grp1", }; |
| static const char * const pw_pwm1_grp2[] = { "pw_pwm1_grp2", }; |
| static const char * const pw_pwm2_grp0[] = { "pw_pwm2_grp0", }; |
| static const char * const pw_pwm2_grp1[] = { "pw_pwm2_grp1", }; |
| static const char * const pw_pwm2_grp2[] = { "pw_pwm2_grp2", }; |
| static const char * const pw_pwm3_grp0[] = { "pw_pwm3_grp0", }; |
| static const char * const pw_pwm3_grp1[] = { "pw_pwm3_grp1", }; |
| static const char * const pw_pwm_cpu_vol_grp0[] = { "pw_pwm_cpu_vol_grp0", }; |
| static const char * const pw_pwm_cpu_vol_grp1[] = { "pw_pwm_cpu_vol_grp1", }; |
| static const char * const pw_pwm_cpu_vol_grp2[] = { "pw_pwm_cpu_vol_grp2", }; |
| static const char * const pw_backlight_grp0[] = { "pw_backlight_grp0", }; |
| static const char * const pw_backlight_grp1[] = { "pw_backlight_grp1", }; |
| static const char * const rg_eth_mac_grp[] = { "rg_eth_mac_grp", }; |
| static const char * const rg_gmac_phy_intr_n_grp[] = { |
| "rg_gmac_phy_intr_n_grp", }; |
| static const char * const rg_rgmii_mac_grp[] = { "rg_rgmii_mac_grp", }; |
| static const char * const rg_rgmii_phy_ref_clk_grp0[] = { |
| "rg_rgmii_phy_ref_clk_grp0", }; |
| static const char * const rg_rgmii_phy_ref_clk_grp1[] = { |
| "rg_rgmii_phy_ref_clk_grp1", }; |
| static const char * const sd0_grp[] = { "sd0_grp", }; |
| static const char * const sd0_4bit_grp[] = { "sd0_4bit_grp", }; |
| static const char * const sd1_grp[] = { "sd1_grp", }; |
| static const char * const sd1_4bit_grp0[] = { "sd1_4bit_grp0", }; |
| static const char * const sd1_4bit_grp1[] = { "sd1_4bit_grp1", }; |
| static const char * const sd2_basic_grp[] = { "sd2_basic_grp", }; |
| static const char * const sd2_cdb_grp0[] = { "sd2_cdb_grp0", }; |
| static const char * const sd2_cdb_grp1[] = { "sd2_cdb_grp1", }; |
| static const char * const sd2_wpb_grp0[] = { "sd2_wpb_grp0", }; |
| static const char * const sd2_wpb_grp1[] = { "sd2_wpb_grp1", }; |
| static const char * const sd3_9_grp[] = { "sd3_9_grp", }; |
| static const char * const sd5_grp[] = { "sd5_grp", }; |
| static const char * const sd6_grp0[] = { "sd6_grp0", }; |
| static const char * const sd6_grp1[] = { "sd6_grp1", }; |
| static const char * const sp0_ext_ldo_on_grp[] = { "sp0_ext_ldo_on_grp", }; |
| static const char * const sp0_qspi_grp[] = { "sp0_qspi_grp", }; |
| static const char * const sp1_spi_grp[] = { "sp1_spi_grp", }; |
| static const char * const tpiu_trace_grp[] = { "tpiu_trace_grp", }; |
| static const char * const uart0_grp[] = { "uart0_grp", }; |
| static const char * const uart0_nopause_grp[] = { "uart0_nopause_grp", }; |
| static const char * const uart1_grp[] = { "uart1_grp", }; |
| static const char * const uart2_cts_grp0[] = { "uart2_cts_grp0", }; |
| static const char * const uart2_cts_grp1[] = { "uart2_cts_grp1", }; |
| static const char * const uart2_rts_grp0[] = { "uart2_rts_grp0", }; |
| static const char * const uart2_rts_grp1[] = { "uart2_rts_grp1", }; |
| static const char * const uart2_rxd_grp0[] = { "uart2_rxd_grp0", }; |
| static const char * const uart2_rxd_grp1[] = { "uart2_rxd_grp1", }; |
| static const char * const uart2_rxd_grp2[] = { "uart2_rxd_grp2", }; |
| static const char * const uart2_txd_grp0[] = { "uart2_txd_grp0", }; |
| static const char * const uart2_txd_grp1[] = { "uart2_txd_grp1", }; |
| static const char * const uart2_txd_grp2[] = { "uart2_txd_grp2", }; |
| static const char * const uart3_cts_grp0[] = { "uart3_cts_grp0", }; |
| static const char * const uart3_cts_grp1[] = { "uart3_cts_grp1", }; |
| static const char * const uart3_cts_grp2[] = { "uart3_cts_grp2", }; |
| static const char * const uart3_rts_grp0[] = { "uart3_rts_grp0", }; |
| static const char * const uart3_rts_grp1[] = { "uart3_rts_grp1", }; |
| static const char * const uart3_rts_grp2[] = { "uart3_rts_grp2", }; |
| static const char * const uart3_rxd_grp0[] = { "uart3_rxd_grp0", }; |
| static const char * const uart3_rxd_grp1[] = { "uart3_rxd_grp1", }; |
| static const char * const uart3_rxd_grp2[] = { "uart3_rxd_grp2", }; |
| static const char * const uart3_txd_grp0[] = { "uart3_txd_grp0", }; |
| static const char * const uart3_txd_grp1[] = { "uart3_txd_grp1", }; |
| static const char * const uart3_txd_grp2[] = { "uart3_txd_grp2", }; |
| static const char * const uart4_basic_grp[] = { "uart4_basic_grp", }; |
| static const char * const uart4_cts_grp0[] = { "uart4_cts_grp0", }; |
| static const char * const uart4_cts_grp1[] = { "uart4_cts_grp1", }; |
| static const char * const uart4_cts_grp2[] = { "uart4_cts_grp2", }; |
| static const char * const uart4_rts_grp0[] = { "uart4_rts_grp0", }; |
| static const char * const uart4_rts_grp1[] = { "uart4_rts_grp1", }; |
| static const char * const uart4_rts_grp2[] = { "uart4_rts_grp2", }; |
| static const char * const usb0_drvvbus_grp0[] = { "usb0_drvvbus_grp0", }; |
| static const char * const usb0_drvvbus_grp1[] = { "usb0_drvvbus_grp1", }; |
| static const char * const usb1_drvvbus_grp0[] = { "usb1_drvvbus_grp0", }; |
| static const char * const usb1_drvvbus_grp1[] = { "usb1_drvvbus_grp1", }; |
| static const char * const visbus_dout_grp[] = { "visbus_dout_grp", }; |
| static const char * const vi_vip1_grp[] = { "vi_vip1_grp", }; |
| static const char * const vi_vip1_ext_grp[] = { "vi_vip1_ext_grp", }; |
| static const char * const vi_vip1_low8bit_grp[] = { "vi_vip1_low8bit_grp", }; |
| static const char * const vi_vip1_high8bit_grp[] = { "vi_vip1_high8bit_grp", }; |
| |
| static struct atlas7_pad_mux gnss_gpio_grp_pad_mux[] = { |
| MUX(1, 119, 0, N, N, N, N), |
| MUX(1, 120, 0, N, N, N, N), |
| MUX(1, 121, 0, N, N, N, N), |
| MUX(1, 122, 0, N, N, N, N), |
| MUX(1, 123, 0, N, N, N, N), |
| MUX(1, 124, 0, N, N, N, N), |
| MUX(1, 125, 0, N, N, N, N), |
| MUX(1, 126, 0, N, N, N, N), |
| MUX(1, 127, 0, N, N, N, N), |
| MUX(1, 128, 0, N, N, N, N), |
| MUX(1, 22, 0, N, N, N, N), |
| MUX(1, 23, 0, N, N, N, N), |
| MUX(1, 24, 0, N, N, N, N), |
| MUX(1, 25, 0, N, N, N, N), |
| MUX(1, 26, 0, N, N, N, N), |
| MUX(1, 27, 0, N, N, N, N), |
| MUX(1, 28, 0, N, N, N, N), |
| MUX(1, 29, 0, N, N, N, N), |
| MUX(1, 30, 0, N, N, N, N), |
| }; |
| |
| static struct atlas7_grp_mux gnss_gpio_grp_mux = { |
| .pad_mux_count = ARRAY_SIZE(gnss_gpio_grp_pad_mux), |
| .pad_mux_list = gnss_gpio_grp_pad_mux, |
| }; |
| |
| static struct atlas7_pad_mux lcd_vip_gpio_grp_pad_mux[] = { |
| MUX(1, 74, 0, N, N, N, N), |
| MUX(1, 75, 0, N, N, N, N), |
| MUX(1, 76, 0, N, N, N, N), |
| MUX(1, 77, 0, N, N, N, N), |
| MUX(1, 78, 0, N, N, N, N), |
| MUX(1, 79, 0, N, N, N, N), |
| MUX(1, 80, 0, N, N, N, N), |
| MUX(1, 81, 0, N, N, N, N), |
| MUX(1, 82, 0, N, N, N, N), |
| MUX(1, 83, 0, N, N, N, N), |
| MUX(1, 84, 0, N, N, N, N), |
| MUX(1, 53, 0, N, N, N, N), |
| MUX(1, 54, 0, N, N, N, N), |
| MUX(1, 55, 0, N, N, N, N), |
| MUX(1, 56, 0, N, N, N, N), |
| MUX(1, 57, 0, N, N, N, N), |
| MUX(1, 58, 0, N, N, N, N), |
| MUX(1, 59, 0, N, N, N, N), |
| MUX(1, 60, 0, N, N, N, N), |
| MUX(1, 61, 0, N, N, N, N), |
| MUX(1, 62, 0, N, N, N, N), |
| MUX(1, 63, 0, N, N, N, N), |
| MUX(1, 64, 0, N, N, N, N), |
| MUX(1, 65, 0, N, N, N, N), |
| MUX(1, 66, 0, N, N, N, N), |
| MUX(1, 67, 0, N, N, N, N), |
| MUX(1, 68, 0, N, N, N, N), |
| MUX(1, 69, 0, N, N, N, N), |
| MUX(1, 70, 0, N, N, N, N), |
| MUX(1, 71, 0, N, N, N, N), |
| MUX(1, 72, 0, N, N, N, N), |
| MUX(1, 73, 0, N, N, N, N), |
| }; |
| |
| static struct atlas7_grp_mux lcd_vip_gpio_grp_mux = { |
| .pad_mux_count = ARRAY_SIZE(lcd_vip_gpio_grp_pad_mux), |
| .pad_mux_list = lcd_vip_gpio_grp_pad_mux, |
| }; |
| |
| static struct atlas7_pad_mux sdio_i2s_gpio_grp_pad_mux[] = { |
| MUX(1, 31, 0, N, N, N, N), |
| MUX(1, 32, 0, N, N, N, N), |
| MUX(1, 33, 0, N, N, N, N), |
| MUX(1, 34, 0, N, N, N, N), |
| MUX(1, 35, 0, N, N, N, N), |
| MUX(1, 36, 0, N, N, N, N), |
| MUX(1, 85, 0, N, N, N, N), |
| MUX(1, 86, 0, N, N, N, N), |
| MUX(1, 87, 0, N, N, N, N), |
| MUX(1, 88, 0, N, N, N, N), |
| MUX(1, 89, 0, N, N, N, N), |
| MUX(1, 90, 0, N, N, N, N), |
| MUX(1, 129, 0, N, N, N, N), |
| MUX(1, 130, 0, N, N, N, N), |
| MUX(1, 131, 0, N, N, N, N), |
| MUX(1, 132, 0, N, N, N, N), |
| MUX(1, 91, 0, N, N, N, N), |
| MUX(1, 92, 0, N, N, N, N), |
| MUX(1, 93, 0, N, N, N, N), |
| MUX(1, 94, 0, N, N, N, N), |
| MUX(1, 95, 0, N, N, N, N), |
| MUX(1, 96, 0, N, N, N, N), |
| MUX(1, 112, 0, N, N, N, N), |
| MUX(1, 113, 0, N, N, N, N), |
| MUX(1, 114, 0, N, N, N, N), |
| MUX(1, 115, 0, N, N, N, N), |
| MUX(1, 116, 0, N, N, N, N), |
| MUX(1, 117, 0, N, N, N, N), |
| MUX(1, 118, 0, N, N, N, N), |
| }; |
| |
| static struct atlas7_grp_mux sdio_i2s_gpio_grp_mux = { |
| .pad_mux_count = ARRAY_SIZE(sdio_i2s_gpio_grp_pad_mux), |
| .pad_mux_list = sdio_i2s_gpio_grp_pad_mux, |
| }; |
| |
| static struct atlas7_pad_mux sp_rgmii_gpio_grp_pad_mux[] = { |
| MUX(1, 97, 0, N, N, N, N), |
| MUX(1, 98, 0, N, N, N, N), |
| MUX(1, 99, 0, N, N, N, N), |
| MUX(1, 100, 0, N, N, N, N), |
| MUX(1, 101, 0, N, N, N, N), |
| MUX(1, 102, 0, N, N, N, N), |
| MUX(1, 103, 0, N, N, N, N), |
| MUX(1, 104, 0, N, N, N, N), |
| MUX(1, 105, 0, N, N, N, N), |
| MUX(1, 106, 0, N, N, N, N), |
| MUX(1, 107, 0, N, N, N, N), |
| MUX(1, 108, 0, N, N, N, N), |
| MUX(1, 109, 0, N, N, N, N), |
| MUX(1, 110, 0, N, N, N, N), |
| MUX(1, 111, 0, N, N, N, N), |
| MUX(1, 18, 0, N, N, N, N), |
| MUX(1, 19, 0, N, N, N, N), |
| MUX(1, 20, 0, N, N, N, N), |
| MUX(1, 21, 0, N, N, N, N), |
| MUX(1, 141, 0, N, N, N, N), |
| MUX(1, 142, 0, N, N, N, N), |
| MUX(1, 143, 0, N, N, N, N), |
| MUX(1, 144, 0, N, N, N, N), |
| MUX(1, 145, 0, N, N, N, N), |
| MUX(1, 146, 0, N, N, N, N), |
| MUX(1, 147, 0, N, N, N, N), |
| MUX(1, 148, 0, N, N, N, N), |
| }; |
| |
| static struct atlas7_grp_mux sp_rgmii_gpio_grp_mux = { |
| .pad_mux_count = ARRAY_SIZE(sp_rgmii_gpio_grp_pad_mux), |
| .pad_mux_list = sp_rgmii_gpio_grp_pad_mux, |
| }; |
| |
| static struct atlas7_pad_mux lvds_gpio_grp_pad_mux[] = { |
| MUX(1, 157, 0, N, N, N, N), |
| MUX(1, 158, 0, N, N, N, N), |
| MUX(1, 155, 0, N, N, N, N), |
| MUX(1, 156, 0, N, N, N, N), |
| MUX(1, 153, 0, N, N, N, N), |
| MUX(1, 154, 0, N, N, N, N), |
| MUX(1, 151, 0, N, N, N, N), |
| MUX(1, 152, 0, N, N, N, N), |
| MUX(1, 149, 0, N, N, N, N), |
| MUX(1, 150, 0, N, N, N, N), |
| }; |
| |
| static struct atlas7_grp_mux lvds_gpio_grp_mux = { |
| .pad_mux_count = ARRAY_SIZE(lvds_gpio_grp_pad_mux), |
| .pad_mux_list = lvds_gpio_grp_pad_mux, |
| }; |
| |
| static struct atlas7_pad_mux jtag_uart_nand_gpio_grp_pad_mux[] = { |
| MUX(1, 44, 0, N, N, N, N), |
| MUX(1, 43, 0, N, N, N, N), |
| MUX(1, 42, 0, N, N, N, N), |
| MUX(1, 41, 0, N, N, N, N), |
| MUX(1, 40, 0, N, N, N, N), |
| MUX(1, 39, 0, N, N, N, N), |
| MUX(1, 38, 0, N, N, N, N), |
| MUX(1, 37, 0, N, N, N, N), |
| MUX(1, 46, 0, N, N, N, N), |
| MUX(1, 47, 0, N, N, N, N), |
| MUX(1, 48, 0, N, N, N, N), |
| MUX(1, 49, 0, N, N, N, N), |
| MUX(1, 50, 0, N, N, N, N), |
| MUX(1, 52, 0, N, N, N, N), |
| MUX(1, 51, 0, N, N, N, N), |
| MUX(1, 45, 0, N, N, N, N), |
| MUX(1, 133, 0, N, N, N, N), |
| MUX(1, 134, 0, N, N, N, N), |
| MUX(1, 135, 0, N, N, N, N), |
| MUX(1, 136, 0, N, N, N, N), |
| MUX(1, 137, 0, N, N, N, N), |
| MUX(1, 138, 0, N, N, N, N), |
| MUX(1, 139, 0, N, N, N, N), |
| MUX(1, 140, 0, N, N, N, N), |
| MUX(1, 159, 0, N, N, N, N), |
| MUX(1, 160, 0, N, N, N, N), |
| MUX(1, 161, 0, N, N, N, N), |
| MUX(1, 162, 0, N, N, N, N), |
| MUX(1, 163, 0, N, N, N, N), |
| }; |
| |
| static struct atlas7_grp_mux jtag_uart_nand_gpio_grp_mux = { |
| .pad_mux_count = ARRAY_SIZE(jtag_uart_nand_gpio_grp_pad_mux), |
| .pad_mux_list = jtag_uart_nand_gpio_grp_pad_mux, |
| }; |
| |
| static struct atlas7_pad_mux rtc_gpio_grp_pad_mux[] = { |
| MUX(0, 0, 0, N, N, N, N), |
| MUX(0, 1, 0, N, N, N, N), |
| MUX(0, 2, 0, N, N, N, N), |
| MUX(0, 3, 0, N, N, N, N), |
| MUX(0, 4, 0, N, N, N, N), |
| MUX(0, 10, 0, N, N, N, N), |
| MUX(0, 11, 0, N, N, N, N), |
| MUX(0, 12, 0, N, N, N, N), |
| MUX(0, 13, 0, N, N, N, N), |
| MUX(0, 14, 0, N, N, N, N), |
| MUX(0, 15, 0, N, N, N, N), |
| MUX(0, 16, 0, N, N, N, N), |
| MUX(0, 17, 0, N, N, N, N), |
| MUX(0, 9, 0, N, N, N, N), |
| }; |
| |
| static struct atlas7_grp_mux rtc_gpio_grp_mux = { |
| .pad_mux_count = ARRAY_SIZE(rtc_gpio_grp_pad_mux), |
| .pad_mux_list = rtc_gpio_grp_pad_mux, |
| }; |
| |
| static struct atlas7_pad_mux audio_ac97_grp_pad_mux[] = { |
| MUX(1, 113, 2, N, N, N, N), |
| MUX(1, 118, 2, N, N, N, N), |
| MUX(1, 115, 2, N, N, N, N), |
| MUX(1, 114, 2, N, N, N, N), |
| }; |
| |
| static struct atlas7_grp_mux audio_ac97_grp_mux = { |
| .pad_mux_count = ARRAY_SIZE(audio_ac97_grp_pad_mux), |
| .pad_mux_list = audio_ac97_grp_pad_mux, |
| }; |
| |
| static struct atlas7_pad_mux audio_digmic_grp0_pad_mux[] = { |
| MUX(1, 51, 3, 0xa10, 20, 0xa90, 20), |
| }; |
| |
| static struct atlas7_grp_mux audio_digmic_grp0_mux = { |
| .pad_mux_count = ARRAY_SIZE(audio_digmic_grp0_pad_mux), |
| .pad_mux_list = audio_digmic_grp0_pad_mux, |
| }; |
| |
| static struct atlas7_pad_mux audio_digmic_grp1_pad_mux[] = { |
| MUX(1, 122, 5, 0xa10, 20, 0xa90, 20), |
| }; |
| |
| static struct atlas7_grp_mux audio_digmic_grp1_mux = { |
| .pad_mux_count = ARRAY_SIZE(audio_digmic_grp1_pad_mux), |
| .pad_mux_list = audio_digmic_grp1_pad_mux, |
| }; |
| |
| static struct atlas7_pad_mux audio_digmic_grp2_pad_mux[] = { |
| MUX(1, 161, 7, 0xa10, 20, 0xa90, 20), |
| }; |
| |
| static struct atlas7_grp_mux audio_digmic_grp2_mux = { |
| .pad_mux_count = ARRAY_SIZE(audio_digmic_grp2_pad_mux), |
| .pad_mux_list = audio_digmic_grp2_pad_mux, |
| }; |
| |
| static struct atlas7_pad_mux audio_func_dbg_grp_pad_mux[] = { |
| MUX(1, 141, 4, N, N, N, N), |
| MUX(1, 144, 4, N, N, N, N), |
| MUX(1, 44, 6, N, N, N, N), |
| MUX(1, 43, 6, N, N, N, N), |
| MUX(1, 42, 6, N, N, N, N), |
| MUX(1, 41, 6, N, N, N, N), |
| MUX(1, 40, 6, N, N, N, N), |
| MUX(1, 39, 6, N, N, N, N), |
| MUX(1, 38, 6, N, N, N, N), |
| MUX(1, 37, 6, N, N, N, N), |
| MUX(1, 74, 6, N, N, N, N), |
| MUX(1, 75, 6, N, N, N, N), |
| MUX(1, 76, 6, N, N, N, N), |
| MUX(1, 77, 6, N, N, N, N), |
| MUX(1, 78, 6, N, N, N, N), |
| MUX(1, 79, 6, N, N, N, N), |
| MUX(1, 81, 6, N, N, N, N), |
| MUX(1, 113, 6, N, N, N, N), |
| MUX(1, 114, 6, N, N, N, N), |
| MUX(1, 118, 6, N, N, N, N), |
| MUX(1, 115, 6, N, N, N, N), |
| MUX(1, 49, 6, N, N, N, N), |
| MUX(1, 50, 6, N, N, N, N), |
| MUX(1, 142, 4, N, N, N, N), |
| MUX(1, 143, 4, N, N, N, N), |
| MUX(1, 80, 6, N, N, N, N), |
| }; |
| |
| static struct atlas7_grp_mux audio_func_dbg_grp_mux = { |
| .pad_mux_count = ARRAY_SIZE(audio_func_dbg_grp_pad_mux), |
| .pad_mux_list = audio_func_dbg_grp_pad_mux, |
| }; |
| |
| static struct atlas7_pad_mux audio_i2s_grp_pad_mux[] = { |
| MUX(1, 118, 1, N, N, N, N), |
| MUX(1, 115, 1, N, N, N, N), |
| MUX(1, 116, 1, N, N, N, N), |
| MUX(1, 117, 1, N, N, N, N), |
| MUX(1, 112, 1, N, N, N, N), |
| MUX(1, 113, 1, N, N, N, N), |
| MUX(1, 114, 1, N, N, N, N), |
| }; |
| |
| static struct atlas7_grp_mux audio_i2s_grp_mux = { |
| .pad_mux_count = ARRAY_SIZE(audio_i2s_grp_pad_mux), |
| .pad_mux_list = audio_i2s_grp_pad_mux, |
| }; |
| |
| static struct atlas7_pad_mux audio_i2s_2ch_grp_pad_mux[] = { |
| MUX(1, 118, 1, N, N, N, N), |
| MUX(1, 115, 1, N, N, N, N), |
| MUX(1, 112, 1, N, N, N, N), |
| MUX(1, 113, 1, N, N, N, N), |
| MUX(1, 114, 1, N, N, N, N), |
| }; |
| |
| static struct atlas7_grp_mux audio_i2s_2ch_grp_mux = { |
| .pad_mux_count = ARRAY_SIZE(audio_i2s_2ch_grp_pad_mux), |
| .pad_mux_list = audio_i2s_2ch_grp_pad_mux, |
| }; |
| |
| static struct atlas7_pad_mux audio_i2s_extclk_grp_pad_mux[] = { |
| MUX(1, 112, 2, N, N, N, N), |
| }; |
| |
| static struct atlas7_grp_mux audio_i2s_extclk_grp_mux = { |
| .pad_mux_count = ARRAY_SIZE(audio_i2s_extclk_grp_pad_mux), |
| .pad_mux_list = audio_i2s_extclk_grp_pad_mux, |
| };
|