linux/drivers/pinctrl/renesas/pfc-r8a77990.c

// SPDX-License-Identifier: GPL-2.0
/*
 * R8A77990 processor support - PFC hardware block.
 *
 * Copyright (C) 2018-2019 Renesas Electronics Corp.
 *
 * This file is based on the drivers/pinctrl/renesas/pfc-r8a7796.c
 *
 * R8A7796 processor support - PFC hardware block.
 *
 * Copyright (C) 2016-2017 Renesas Electronics Corp.
 */

#include <linux/errno.h>
#include <linux/kernel.h>

#include "sh_pfc.h"

#define CFG_FLAGS

#define CPU_ALL_GP(fn, sfx)

#define CPU_ALL_NOGP(fn)

/*
 * F_() : just information
 * FM() : macro for FN_xxx / xxx_MARK
 */

/* GPSR0 */
#define GPSR0_17
#define GPSR0_16
#define GPSR0_15
#define GPSR0_14
#define GPSR0_13
#define GPSR0_12
#define GPSR0_11
#define GPSR0_10
#define GPSR0_9
#define GPSR0_8
#define GPSR0_7
#define GPSR0_6
#define GPSR0_5
#define GPSR0_4
#define GPSR0_3
#define GPSR0_2
#define GPSR0_1
#define GPSR0_0

/* GPSR1 */
#define GPSR1_22
#define GPSR1_21
#define GPSR1_20
#define GPSR1_19
#define GPSR1_18
#define GPSR1_17
#define GPSR1_16
#define GPSR1_15
#define GPSR1_14
#define GPSR1_13
#define GPSR1_12
#define GPSR1_11
#define GPSR1_10
#define GPSR1_9
#define GPSR1_8
#define GPSR1_7
#define GPSR1_6
#define GPSR1_5
#define GPSR1_4
#define GPSR1_3
#define GPSR1_2
#define GPSR1_1
#define GPSR1_0

/* GPSR2 */
#define GPSR2_25
#define GPSR2_24
#define GPSR2_23
#define GPSR2_22
#define GPSR2_21
#define GPSR2_20
#define GPSR2_19
#define GPSR2_18
#define GPSR2_17
#define GPSR2_16
#define GPSR2_15
#define GPSR2_14
#define GPSR2_13
#define GPSR2_12
#define GPSR2_11
#define GPSR2_10
#define GPSR2_9
#define GPSR2_8
#define GPSR2_7
#define GPSR2_6
#define GPSR2_5
#define GPSR2_4
#define GPSR2_3
#define GPSR2_2
#define GPSR2_1
#define GPSR2_0

/* GPSR3 */
#define GPSR3_15
#define GPSR3_14
#define GPSR3_13
#define GPSR3_12
#define GPSR3_11
#define GPSR3_10
#define GPSR3_9
#define GPSR3_8
#define GPSR3_7
#define GPSR3_6
#define GPSR3_5
#define GPSR3_4
#define GPSR3_3
#define GPSR3_2
#define GPSR3_1
#define GPSR3_0

/* GPSR4 */
#define GPSR4_10
#define GPSR4_9
#define GPSR4_8
#define GPSR4_7
#define GPSR4_6
#define GPSR4_5
#define GPSR4_4
#define GPSR4_3
#define GPSR4_2
#define GPSR4_1
#define GPSR4_0

/* GPSR5 */
#define GPSR5_19
#define GPSR5_18
#define GPSR5_17
#define GPSR5_16
#define GPSR5_15
#define GPSR5_14
#define GPSR5_13
#define GPSR5_12
#define GPSR5_11
#define GPSR5_10
#define GPSR5_9
#define GPSR5_8
#define GPSR5_7
#define GPSR5_6
#define GPSR5_5
#define GPSR5_4
#define GPSR5_3
#define GPSR5_2
#define GPSR5_1
#define GPSR5_0

/* GPSR6 */
#define GPSR6_17
#define GPSR6_16
#define GPSR6_15
#define GPSR6_14
#define GPSR6_13
#define GPSR6_12
#define GPSR6_11
#define GPSR6_10
#define GPSR6_9
#define GPSR6_8
#define GPSR6_7
#define GPSR6_6
#define GPSR6_5
#define GPSR6_4
#define GPSR6_3
#define GPSR6_2
#define GPSR6_1
#define GPSR6_0

/* IPSRx */		/* 0 */			/* 1 */			/* 2 */			/* 3 */			/* 4 */			/* 5 */		/* 6 */		/* 7 */		/* 8 */		/* 9 - F */
#define IP0_3_0
#define IP0_7_4
#define IP0_11_8
#define IP0_15_12
#define IP0_19_16
#define IP0_23_20
#define IP0_27_24
#define IP0_31_28
#define IP1_3_0
#define IP1_7_4
#define IP1_11_8
#define IP1_15_12
#define IP1_19_16
#define IP1_23_20
#define IP1_27_24
#define IP1_31_28
#define IP2_3_0
#define IP2_7_4
#define IP2_11_8
#define IP2_15_12
#define IP2_19_16
#define IP2_23_20
#define IP2_27_24
#define IP2_31_28
#define IP3_3_0
#define IP3_7_4
#define IP3_11_8
#define IP3_15_12
#define IP3_19_16
#define IP3_23_20
#define IP3_27_24
#define IP3_31_28

/* IPSRx */		/* 0 */			/* 1 */			/* 2 */			/* 3 */			/* 4 */			/* 5 */		/* 6 */		/* 7 */		/* 8 */		/* 9 - F */
#define IP4_3_0
#define IP4_7_4
#define IP4_11_8
#define IP4_15_12
#define IP4_19_16
#define IP4_23_20
#define IP4_27_24
#define IP4_31_28
#define IP5_3_0
#define IP5_7_4
#define IP5_11_8
#define IP5_15_12
#define IP5_19_16
#define IP5_23_20
#define IP5_27_24
#define IP5_31_28
#define IP6_3_0
#define IP6_7_4
#define IP6_11_8
#define IP6_15_12
#define IP6_19_16
#define IP6_23_20
#define IP6_27_24
#define IP6_31_28
#define IP7_3_0
#define IP7_7_4
#define IP7_11_8
#define IP7_15_12
#define IP7_19_16
#define IP7_23_20
#define IP7_27_24
#define IP7_31_28

/* IPSRx */		/* 0 */			/* 1 */			/* 2 */			/* 3 */			/* 4 */			/* 5 */		/* 6 */		/* 7 */		/* 8 */		/* 9 - F */
#define IP8_3_0
#define IP8_7_4
#define IP8_11_8
#define IP8_15_12
#define IP8_19_16
#define IP8_23_20
#define IP8_27_24
#define IP8_31_28
#define IP9_3_0
#define IP9_7_4
#define IP9_11_8
#define IP9_15_12
#define IP9_19_16
#define IP9_23_20
#define IP9_27_24
#define IP9_31_28
#define IP10_3_0
#define IP10_7_4
#define IP10_11_8
#define IP10_15_12
#define IP10_19_16
#define IP10_23_20
#define IP10_27_24
#define IP10_31_28
#define IP11_3_0
#define IP11_7_4
#define IP11_11_8
#define IP11_15_12
#define IP11_19_16
#define IP11_23_20
#define IP11_27_24
#define IP11_31_28

/* IPSRx */		/* 0 */			/* 1 */			/* 2 */			/* 3 */			/* 4 */			/* 5 */		/* 6 */		/* 7 */		/* 8 */		/* 9 - F */
#define IP12_3_0
#define IP12_7_4
#define IP12_11_8
#define IP12_15_12
#define IP12_19_16
#define IP12_23_20
#define IP12_27_24
#define IP12_31_28
#define IP13_3_0
#define IP13_7_4
#define IP13_11_8
#define IP13_15_12
#define IP13_19_16
#define IP13_23_20
#define IP13_27_24
#define IP13_31_28
#define IP14_3_0
#define IP14_7_4
#define IP14_11_8
#define IP14_15_12
#define IP14_19_16
#define IP14_23_20
#define IP14_27_24
#define IP14_31_28
#define IP15_3_0
#define IP15_7_4
#define IP15_11_8
#define IP15_15_12
#define IP15_19_16
#define IP15_23_20
#define IP15_27_24
#define IP15_31_28

#define PINMUX_GPSR

#define PINMUX_IPSR

/* The bit numbering in MOD_SEL fields is reversed */
#define REV4(f0, f1, f2, f3)
#define REV8(f0, f1, f2, f3, f4, f5, f6, f7)

/* MOD_SEL0 */			/* 0 */				/* 1 */				/* 2 */				/* 3 */			/* 4 */			/* 5 */		/* 6 */		/* 7 */
#define MOD_SEL0_30_29
#define MOD_SEL0_28
#define MOD_SEL0_27_26
#define MOD_SEL0_25
#define MOD_SEL0_24
#define MOD_SEL0_23
#define MOD_SEL0_22
#define MOD_SEL0_21_20
#define MOD_SEL0_19_18_17
#define MOD_SEL0_16
#define MOD_SEL0_15
#define MOD_SEL0_14
#define MOD_SEL0_13_12
#define MOD_SEL0_11_10
#define MOD_SEL0_9
#define MOD_SEL0_8
#define MOD_SEL0_7
#define MOD_SEL0_6_5
#define MOD_SEL0_4
#define MOD_SEL0_3
#define MOD_SEL0_2
#define MOD_SEL0_1_0

/* MOD_SEL1 */			/* 0 */				/* 1 */				/* 2 */				/* 3 */			/* 4 */			/* 5 */		/* 6 */		/* 7 */
#define MOD_SEL1_31
#define MOD_SEL1_30
#define MOD_SEL1_29
#define MOD_SEL1_28
#define MOD_SEL1_26
#define MOD_SEL1_25
#define MOD_SEL1_24_23_22
#define MOD_SEL1_21_20_19
#define MOD_SEL1_18
#define MOD_SEL1_17
#define MOD_SEL1_16
#define MOD_SEL1_15
#define MOD_SEL1_14_13
#define MOD_SEL1_12_11
#define MOD_SEL1_10_9
#define MOD_SEL1_8
#define MOD_SEL1_7
#define MOD_SEL1_6_5
#define MOD_SEL1_4

#define PINMUX_MOD_SELS

/*
 * These pins are not able to be muxed but have other properties
 * that can be set, such as pull-up/pull-down enable.
 */
#define PINMUX_STATIC

enum {};

static const u16 pinmux_data[] =;

/*
 * Pins not associated with a GPIO port.
 */
enum {};

static const struct sh_pfc_pin pinmux_pins[] =;

/* - AUDIO CLOCK ------------------------------------------------------------ */
static const unsigned int audio_clk_a_pins[] =;

static const unsigned int audio_clk_a_mux[] =;

static const unsigned int audio_clk_b_a_pins[] =;

static const unsigned int audio_clk_b_a_mux[] =;

static const unsigned int audio_clk_b_b_pins[] =;

static const unsigned int audio_clk_b_b_mux[] =;

static const unsigned int audio_clk_b_c_pins[] =;

static const unsigned int audio_clk_b_c_mux[] =;

static const unsigned int audio_clk_c_a_pins[] =;

static const unsigned int audio_clk_c_a_mux[] =;

static const unsigned int audio_clk_c_b_pins[] =;

static const unsigned int audio_clk_c_b_mux[] =;

static const unsigned int audio_clk_c_c_pins[] =;

static const unsigned int audio_clk_c_c_mux[] =;

static const unsigned int audio_clkout_a_pins[] =;

static const unsigned int audio_clkout_a_mux[] =;

static const unsigned int audio_clkout_b_pins[] =;

static const unsigned int audio_clkout_b_mux[] =;

static const unsigned int audio_clkout1_a_pins[] =;

static const unsigned int audio_clkout1_a_mux[] =;

static const unsigned int audio_clkout1_b_pins[] =;

static const unsigned int audio_clkout1_b_mux[] =;

static const unsigned int audio_clkout1_c_pins[] =;

static const unsigned int audio_clkout1_c_mux[] =;

static const unsigned int audio_clkout2_a_pins[] =;

static const unsigned int audio_clkout2_a_mux[] =;

static const unsigned int audio_clkout2_b_pins[] =;

static const unsigned int audio_clkout2_b_mux[] =;

static const unsigned int audio_clkout2_c_pins[] =;

static const unsigned int audio_clkout2_c_mux[] =;

static const unsigned int audio_clkout3_a_pins[] =;

static const unsigned int audio_clkout3_a_mux[] =;

static const unsigned int audio_clkout3_b_pins[] =;

static const unsigned int audio_clkout3_b_mux[] =;

static const unsigned int audio_clkout3_c_pins[] =;

static const unsigned int audio_clkout3_c_mux[] =;

/* - EtherAVB --------------------------------------------------------------- */
static const unsigned int avb_link_pins[] =;

static const unsigned int avb_link_mux[] =;

static const unsigned int avb_magic_pins[] =;

static const unsigned int avb_magic_mux[] =;

static const unsigned int avb_phy_int_pins[] =;

static const unsigned int avb_phy_int_mux[] =;

static const unsigned int avb_mii_pins[] =;

static const unsigned int avb_mii_mux[] =;

static const unsigned int avb_avtp_pps_pins[] =;

static const unsigned int avb_avtp_pps_mux[] =;

static const unsigned int avb_avtp_match_pins[] =;

static const unsigned int avb_avtp_match_mux[] =;

static const unsigned int avb_avtp_capture_pins[] =;

static const unsigned int avb_avtp_capture_mux[] =;

/* - CAN ------------------------------------------------------------------ */
static const unsigned int can0_data_pins[] =;

static const unsigned int can0_data_mux[] =;

static const unsigned int can1_data_pins[] =;

static const unsigned int can1_data_mux[] =;

/* - CAN Clock -------------------------------------------------------------- */
static const unsigned int can_clk_pins[] =;

static const unsigned int can_clk_mux[] =;

/* - CAN FD --------------------------------------------------------------- */
static const unsigned int canfd0_data_pins[] =;

static const unsigned int canfd0_data_mux[] =;

static const unsigned int canfd1_data_pins[] =;

static const unsigned int canfd1_data_mux[] =;

#ifdef CONFIG_PINCTRL_PFC_R8A77990
/* - DRIF0 --------------------------------------------------------------- */
static const unsigned int drif0_ctrl_a_pins[] =;

static const unsigned int drif0_ctrl_a_mux[] =;

static const unsigned int drif0_data0_a_pins[] =;

static const unsigned int drif0_data0_a_mux[] =;

static const unsigned int drif0_data1_a_pins[] =;

static const unsigned int drif0_data1_a_mux[] =;

static const unsigned int drif0_ctrl_b_pins[] =;

static const unsigned int drif0_ctrl_b_mux[] =;

static const unsigned int drif0_data0_b_pins[] =;

static const unsigned int drif0_data0_b_mux[] =;

static const unsigned int drif0_data1_b_pins[] =;

static const unsigned int drif0_data1_b_mux[] =;

/* - DRIF1 --------------------------------------------------------------- */
static const unsigned int drif1_ctrl_pins[] =;

static const unsigned int drif1_ctrl_mux[] =;

static const unsigned int drif1_data0_pins[] =;

static const unsigned int drif1_data0_mux[] =;

static const unsigned int drif1_data1_pins[] =;

static const unsigned int drif1_data1_mux[] =;

/* - DRIF2 --------------------------------------------------------------- */
static const unsigned int drif2_ctrl_a_pins[] =;

static const unsigned int drif2_ctrl_a_mux[] =;

static const unsigned int drif2_data0_a_pins[] =;

static const unsigned int drif2_data0_a_mux[] =;

static const unsigned int drif2_data1_a_pins[] =;

static const unsigned int drif2_data1_a_mux[] =;

static const unsigned int drif2_ctrl_b_pins[] =;

static const unsigned int drif2_ctrl_b_mux[] =;

static const unsigned int drif2_data0_b_pins[] =;

static const unsigned int drif2_data0_b_mux[] =;

static const unsigned int drif2_data1_b_pins[] =;

static const unsigned int drif2_data1_b_mux[] =;

/* - DRIF3 --------------------------------------------------------------- */
static const unsigned int drif3_ctrl_a_pins[] =;

static const unsigned int drif3_ctrl_a_mux[] =;

static const unsigned int drif3_data0_a_pins[] =;

static const unsigned int drif3_data0_a_mux[] =;

static const unsigned int drif3_data1_a_pins[] =;

static const unsigned int drif3_data1_a_mux[] =;

static const unsigned int drif3_ctrl_b_pins[] =;

static const unsigned int drif3_ctrl_b_mux[] =;

static const unsigned int drif3_data0_b_pins[] =;

static const unsigned int drif3_data0_b_mux[] =;

static const unsigned int drif3_data1_b_pins[] =;

static const unsigned int drif3_data1_b_mux[] =;
#endif /* CONFIG_PINCTRL_PFC_R8A77990 */

/* - DU --------------------------------------------------------------------- */
static const unsigned int du_rgb666_pins[] =;
static const unsigned int du_rgb666_mux[] =;
static const unsigned int du_rgb888_pins[] =;
static const unsigned int du_rgb888_mux[] =;
static const unsigned int du_clk_in_0_pins[] =;
static const unsigned int du_clk_in_0_mux[] =;
static const unsigned int du_clk_in_1_pins[] =;
static const unsigned int du_clk_in_1_mux[] =;
static const unsigned int du_clk_out_0_pins[] =;
static const unsigned int du_clk_out_0_mux[] =;
static const unsigned int du_sync_pins[] =;
static const unsigned int du_sync_mux[] =;
static const unsigned int du_disp_cde_pins[] =;
static const unsigned int du_disp_cde_mux[] =;
static const unsigned int du_cde_pins[] =;
static const unsigned int du_cde_mux[] =;
static const unsigned int du_disp_pins[] =;
static const unsigned int du_disp_mux[] =;

/* - HSCIF0 --------------------------------------------------*/
static const unsigned int hscif0_data_a_pins[] =;

static const unsigned int hscif0_data_a_mux[] =;

static const unsigned int hscif0_clk_a_pins[] =;

static const unsigned int hscif0_clk_a_mux[] =;

static const unsigned int hscif0_ctrl_a_pins[] =;

static const unsigned int hscif0_ctrl_a_mux[] =;

static const unsigned int hscif0_data_b_pins[] =;

static const unsigned int hscif0_data_b_mux[] =;

static const unsigned int hscif0_clk_b_pins[] =;

static const unsigned int hscif0_clk_b_mux[] =;

/* - HSCIF1 ------------------------------------------------- */
static const unsigned int hscif1_data_a_pins[] =;

static const unsigned int hscif1_data_a_mux[] =;

static const unsigned int hscif1_clk_a_pins[] =;

static const unsigned int hscif1_clk_a_mux[] =;

static const unsigned int hscif1_data_b_pins[] =;

static const unsigned int hscif1_data_b_mux[] =;

static const unsigned int hscif1_clk_b_pins[] =;

static const unsigned int hscif1_clk_b_mux[] =;

static const unsigned int hscif1_ctrl_b_pins[] =;

static const unsigned int hscif1_ctrl_b_mux[] =;

/* - HSCIF2 ------------------------------------------------- */
static const unsigned int hscif2_data_a_pins[] =;

static const unsigned int hscif2_data_a_mux[] =;

static const unsigned int hscif2_clk_a_pins[] =;

static const unsigned int hscif2_clk_a_mux[] =;

static const unsigned int hscif2_ctrl_a_pins[] =;

static const unsigned int hscif2_ctrl_a_mux[] =;

static const unsigned int hscif2_data_b_pins[] =;

static const unsigned int hscif2_data_b_mux[] =;

/* - HSCIF3 ------------------------------------------------*/
static const unsigned int hscif3_data_a_pins[] =;

static const unsigned int hscif3_data_a_mux[] =;

static const unsigned int hscif3_data_b_pins[] =;

static const unsigned int hscif3_data_b_mux[] =;

static const unsigned int hscif3_clk_b_pins[] =;

static const unsigned int hscif3_clk_b_mux[] =;

static const unsigned int hscif3_data_c_pins[] =;

static const unsigned int hscif3_data_c_mux[] =;

static const unsigned int hscif3_clk_c_pins[] =;

static const unsigned int hscif3_clk_c_mux[] =;

static const unsigned int hscif3_ctrl_c_pins[] =;

static const unsigned int hscif3_ctrl_c_mux[] =;

static const unsigned int hscif3_data_d_pins[] =;

static const unsigned int hscif3_data_d_mux[] =;

static const unsigned int hscif3_data_e_pins[] =;

static const unsigned int hscif3_data_e_mux[] =;

static const unsigned int hscif3_ctrl_e_pins[] =;

static const unsigned int hscif3_ctrl_e_mux[] =;

/* - HSCIF4 -------------------------------------------------- */
static const unsigned int hscif4_data_a_pins[] =;

static const unsigned int hscif4_data_a_mux[] =;

static const unsigned int hscif4_clk_a_pins[] =;

static const unsigned int hscif4_clk_a_mux[] =;

static const unsigned int hscif4_ctrl_a_pins[] =;

static const unsigned int hscif4_ctrl_a_mux[] =;

static const unsigned int hscif4_data_b_pins[] =;

static const unsigned int hscif4_data_b_mux[] =;

static const unsigned int hscif4_clk_b_pins[] =;

static const unsigned int hscif4_clk_b_mux[] =;

static const unsigned int hscif4_data_c_pins[] =;

static const unsigned int hscif4_data_c_mux[] =;

static const unsigned int hscif4_data_d_pins[] =;

static const unsigned int hscif4_data_d_mux[] =;

static const unsigned int hscif4_data_e_pins[] =;

static const unsigned int hscif4_data_e_mux[] =;

/* - I2C -------------------------------------------------------------------- */
static const unsigned int i2c1_a_pins[] =;

static const unsigned int i2c1_a_mux[] =;

static const unsigned int i2c1_b_pins[] =;

static const unsigned int i2c1_b_mux[] =;

static const unsigned int i2c1_c_pins[] =;

static const unsigned int i2c1_c_mux[] =;

static const unsigned int i2c1_d_pins[] =;

static const unsigned int i2c1_d_mux[] =;

static const unsigned int i2c2_a_pins[] =;

static const unsigned int i2c2_a_mux[] =;

static const unsigned int i2c2_b_pins[] =;

static const unsigned int i2c2_b_mux[] =;

static const unsigned int i2c2_c_pins[] =;

static const unsigned int i2c2_c_mux[] =;

static const unsigned int i2c2_d_pins[] =;

static const unsigned int i2c2_d_mux[] =;

static const unsigned int i2c2_e_pins[] =;

static const unsigned int i2c2_e_mux[] =;

static const unsigned int i2c4_pins[] =;

static const unsigned int i2c4_mux[] =;

static const unsigned int i2c5_pins[] =;

static const unsigned int i2c5_mux[] =;

static const unsigned int i2c6_a_pins[] =;

static const unsigned int i2c6_a_mux[] =;

static const unsigned int i2c6_b_pins[] =;

static const unsigned int i2c6_b_mux[] =;

static const unsigned int i2c7_a_pins[] =;

static const unsigned int i2c7_a_mux[] =;

static const unsigned int i2c7_b_pins[] =;

static const unsigned int i2c7_b_mux[] =;

/* - INTC-EX ---------------------------------------------------------------- */
static const unsigned int intc_ex_irq0_pins[] =;
static const unsigned int intc_ex_irq0_mux[] =;
static const unsigned int intc_ex_irq1_pins[] =;
static const unsigned int intc_ex_irq1_mux[] =;
static const unsigned int intc_ex_irq2_pins[] =;
static const unsigned int intc_ex_irq2_mux[] =;
static const unsigned int intc_ex_irq3_pins[] =;
static const unsigned int intc_ex_irq3_mux[] =;
static const unsigned int intc_ex_irq4_pins[] =;
static const unsigned int intc_ex_irq4_mux[] =;
static const unsigned int intc_ex_irq5_pins[] =;
static const unsigned int intc_ex_irq5_mux[] =;

#ifdef CONFIG_PINCTRL_PFC_R8A77990
/* - MLB+ ------------------------------------------------------------------- */
static const unsigned int mlb_3pin_pins[] =;
static const unsigned int mlb_3pin_mux[] =;
#endif /* CONFIG_PINCTRL_PFC_R8A77990 */

/* - MSIOF0 ----------------------------------------------------------------- */
static const unsigned int msiof0_clk_pins[] =;

static const unsigned int msiof0_clk_mux[] =;

static const unsigned int msiof0_sync_pins[] =;

static const unsigned int msiof0_sync_mux[] =;

static const unsigned int msiof0_ss1_pins[] =;

static const unsigned int msiof0_ss1_mux[] =;

static const unsigned int msiof0_ss2_pins[] =;

static const unsigned int msiof0_ss2_mux[] =;

static const unsigned int msiof0_txd_pins[] =;

static const unsigned int msiof0_txd_mux[] =;

static const unsigned int msiof0_rxd_pins[] =;

static const unsigned int msiof0_rxd_mux[] =;

/* - MSIOF1 ----------------------------------------------------------------- */
static const unsigned int msiof1_clk_pins[] =;

static const unsigned int msiof1_clk_mux[] =;

static const unsigned int msiof1_sync_pins[] =;

static const unsigned int msiof1_sync_mux[] =;

static const unsigned int msiof1_ss1_pins[] =;

static const unsigned int msiof1_ss1_mux[] =;

static const unsigned int msiof1_ss2_pins[] =;

static const unsigned int msiof1_ss2_mux[] =;

static const unsigned int msiof1_txd_pins[] =;

static const unsigned int msiof1_txd_mux[] =;

static const unsigned int msiof1_rxd_pins[] =;

static const unsigned int msiof1_rxd_mux[] =;

/* - MSIOF2 ----------------------------------------------------------------- */
static const unsigned int msiof2_clk_a_pins[] =;

static const unsigned int msiof2_clk_a_mux[] =;

static const unsigned int msiof2_sync_a_pins[] =;

static const unsigned int msiof2_sync_a_mux[] =;

static const unsigned int msiof2_ss1_a_pins[] =;

static const unsigned int msiof2_ss1_a_mux[] =;

static const unsigned int msiof2_ss2_a_pins[] =;

static const unsigned int msiof2_ss2_a_mux[] =;

static const unsigned int msiof2_txd_a_pins[] =;

static const unsigned int msiof2_txd_a_mux[] =;

static const unsigned int msiof2_rxd_a_pins[] =;

static const unsigned int msiof2_rxd_a_mux[] =;

static const unsigned int msiof2_clk_b_pins[] =;

static const unsigned int msiof2_clk_b_mux[] =;

static const unsigned int msiof2_sync_b_pins[] =;

static const unsigned int msiof2_sync_b_mux[] =;

static const unsigned int msiof2_ss1_b_pins[] =;

static const unsigned int msiof2_ss1_b_mux[] =;

static const unsigned int msiof2_ss2_b_pins[] =;

static const unsigned int msiof2_ss2_b_mux[] =;

static const unsigned int msiof2_txd_b_pins[] =;

static const unsigned int msiof2_txd_b_mux[] =;

static const unsigned int msiof2_rxd_b_pins[] =;

static const unsigned int msiof2_rxd_b_mux[] =;

/* - MSIOF3 ----------------------------------------------------------------- */
static const unsigned int msiof3_clk_a_pins[] =;

static const unsigned int msiof3_clk_a_mux[] =;

static const unsigned int msiof3_sync_a_pins[] =;

static const unsigned int msiof3_sync_a_mux[] =;

static const unsigned int msiof3_ss1_a_pins[] =;

static const unsigned int msiof3_ss1_a_mux[] =;

static const unsigned int msiof3_ss2_a_pins[] =;

static const unsigned int msiof3_ss2_a_mux[] =;

static const unsigned int msiof3_txd_a_pins[] =;

static const unsigned int msiof3_txd_a_mux[] =;

static const unsigned int msiof3_rxd_a_pins[] =;

static const unsigned int msiof3_rxd_a_mux[] =;

static const unsigned int msiof3_clk_b_pins[] =;

static const unsigned int msiof3_clk_b_mux[] =;

static const unsigned int msiof3_sync_b_pins[] =;

static const unsigned int msiof3_sync_b_mux[] =;

static const unsigned int msiof3_ss1_b_pins[] =;

static const unsigned int msiof3_ss1_b_mux[] =;

static const unsigned int msiof3_txd_b_pins[] =;

static const unsigned int msiof3_txd_b_mux[] =;

static const unsigned int msiof3_rxd_b_pins[] =;

static const unsigned int msiof3_rxd_b_mux[] =;

/* - PWM0 --------------------------------------------------------------------*/
static const unsigned int pwm0_a_pins[] =;

static const unsigned int pwm0_a_mux[] =;

static const unsigned int pwm0_b_pins[] =;

static const unsigned int pwm0_b_mux[] =;

/* - PWM1 --------------------------------------------------------------------*/
static const unsigned int pwm1_a_pins[] =;

static const unsigned int pwm1_a_mux[] =;

static const unsigned int pwm1_b_pins[] =;

static const unsigned int pwm1_b_mux[] =;

/* - PWM2 --------------------------------------------------------------------*/
static const unsigned int pwm2_a_pins[] =;

static const unsigned int pwm2_a_mux[] =;

static const unsigned int pwm2_b_pins[] =;

static const unsigned int pwm2_b_mux[] =;

static const unsigned int pwm2_c_pins[] =;

static const unsigned int pwm2_c_mux[] =;

/* - PWM3 --------------------------------------------------------------------*/
static const unsigned int pwm3_a_pins[] =;

static const unsigned int pwm3_a_mux[] =;

static const unsigned int pwm3_b_pins[] =;

static const unsigned int pwm3_b_mux[] =;

static const unsigned int pwm3_c_pins[] =;

static const unsigned int pwm3_c_mux[] =;

/* - PWM4 --------------------------------------------------------------------*/
static const unsigned int pwm4_a_pins[] =;

static const unsigned int pwm4_a_mux[] =;

static const unsigned int pwm4_b_pins[] =;

static const unsigned int pwm4_b_mux[] =;

/* - PWM5 --------------------------------------------------------------------*/
static const unsigned int pwm5_a_pins[] =;

static const unsigned int pwm5_a_mux[] =;

static const unsigned int pwm5_b_pins[] =;

static const unsigned int pwm5_b_mux[] =;

/* - PWM6 --------------------------------------------------------------------*/
static const unsigned int pwm6_a_pins[] =;

static const unsigned int pwm6_a_mux[] =;

static const unsigned int pwm6_b_pins[] =;

static const unsigned int pwm6_b_mux[] =;

/* - QSPI0 ------------------------------------------------------------------ */
static const unsigned int qspi0_ctrl_pins[] =;
static const unsigned int qspi0_ctrl_mux[] =;
/* - QSPI1 ------------------------------------------------------------------ */
static const unsigned int qspi1_ctrl_pins[] =;
static const unsigned int qspi1_ctrl_mux[] =;

/* - RPC -------------------------------------------------------------------- */
static const unsigned int rpc_clk_pins[] =;
static const unsigned int rpc_clk_mux[] =;
static const unsigned int rpc_ctrl_pins[] =;
static const unsigned int rpc_ctrl_mux[] =;
static const unsigned int rpc_data_pins[] =;
static const unsigned int rpc_data_mux[] =;
static const unsigned int rpc_reset_pins[] =;
static const unsigned int rpc_reset_mux[] =;
static const unsigned int rpc_int_pins[] =;
static const unsigned int rpc_int_mux[] =;

/* - SCIF0 ------------------------------------------------------------------ */
static const unsigned int scif0_data_a_pins[] =;

static const unsigned int scif0_data_a_mux[] =;

static const unsigned int scif0_clk_a_pins[] =;

static const unsigned int scif0_clk_a_mux[] =;

static const unsigned int scif0_ctrl_a_pins[] =;

static const unsigned int scif0_ctrl_a_mux[] =;

static const unsigned int scif0_data_b_pins[] =;

static const unsigned int scif0_data_b_mux[] =;

static const unsigned int scif0_clk_b_pins[] =;

static const unsigned int scif0_clk_b_mux[] =;

/* - SCIF1 ------------------------------------------------------------------ */
static const unsigned int scif1_data_pins[] =;

static const unsigned int scif1_data_mux[] =;

static const unsigned int scif1_clk_pins[] =;

static const unsigned int scif1_clk_mux[] =;

static const unsigned int scif1_ctrl_pins[] =;

static const unsigned int scif1_ctrl_mux[] =;

/* - SCIF2 ------------------------------------------------------------------ */
static const unsigned int scif2_data_a_pins[] =;

static const unsigned int scif2_data_a_mux[] =;

static const unsigned int scif2_clk_a_pins[] =;

static const unsigned int scif2_clk_a_mux[] =;

static const unsigned int scif2_data_b_pins[] =;

static const unsigned int scif2_data_b_mux[] =;

/* - SCIF3 ------------------------------------------------------------------ */
static const unsigned int scif3_data_a_pins[] =;

static const unsigned int scif3_data_a_mux[] =;

static const unsigned int scif3_clk_a_pins[] =;

static const unsigned int scif3_clk_a_mux[] =;

static const unsigned int scif3_ctrl_a_pins[] =;

static const unsigned int scif3_ctrl_a_mux[] =;

static const unsigned int scif3_data_b_pins[] =;

static const unsigned int scif3_data_b_mux[] =;

static const unsigned int scif3_data_c_pins[] =;

static const unsigned int scif3_data_c_mux[] =;

static const unsigned int scif3_clk_c_pins[] =;

static const unsigned int scif3_clk_c_mux[] =;

/* - SCIF4 ------------------------------------------------------------------ */
static const unsigned int scif4_data_a_pins[] =;

static const unsigned int scif4_data_a_mux[] =;

static const unsigned int scif4_clk_a_pins[] =;

static const unsigned int scif4_clk_a_mux[] =;

static const unsigned int scif4_ctrl_a_pins[] =;

static const unsigned int scif4_ctrl_a_mux[] =;

static const unsigned int scif4_data_b_pins[] =;

static const unsigned int scif4_data_b_mux[] =;

static const unsigned int scif4_clk_b_pins[] =;

static const unsigned int scif4_clk_b_mux[] =;

static const unsigned int scif4_data_c_pins[] =;

static const unsigned int scif4_data_c_mux[] =;

static const unsigned int scif4_ctrl_c_pins[] =;

static const unsigned int scif4_ctrl_c_mux[] =;

/* - SCIF5 ------------------------------------------------------------------ */
static const unsigned int scif5_data_a_pins[] =;

static const unsigned int scif5_data_a_mux[] =;

static const unsigned int scif5_clk_a_pins[] =;

static const unsigned int scif5_clk_a_mux[] =;

static const unsigned int scif5_data_b_pins[] =;

static const unsigned int scif5_data_b_mux[] =;

static const unsigned int scif5_data_c_pins[] =;

static const unsigned int scif5_data_c_mux[] =;

/* - SCIF Clock ------------------------------------------------------------- */
static const unsigned int scif_clk_a_pins[] =;

static const unsigned int scif_clk_a_mux[] =;

static const unsigned int scif_clk_b_pins[] =;

static const unsigned int scif_clk_b_mux[] =;

/* - SDHI0 ------------------------------------------------------------------ */
static const unsigned int sdhi0_data_pins[] =;

static const unsigned int sdhi0_data_mux[] =;

static const unsigned int sdhi0_ctrl_pins[] =;

static const unsigned int sdhi0_ctrl_mux[] =;

static const unsigned int sdhi0_cd_pins[] =;

static const unsigned int sdhi0_cd_mux[] =;

static const unsigned int sdhi0_wp_pins[] =;

static const unsigned int sdhi0_wp_mux[] =;

/* - SDHI1 ------------------------------------------------------------------ */
static const unsigned int sdhi1_data_pins[] =;

static const unsigned int sdhi1_data_mux[] =;

static const unsigned int sdhi1_ctrl_pins[] =;

static const unsigned int sdhi1_ctrl_mux[] =;

static const unsigned int sdhi1_cd_pins[] =;

static const unsigned int sdhi1_cd_mux[] =;

static const unsigned int sdhi1_wp_pins[] =;

static const unsigned int sdhi1_wp_mux[] =;

/* - SDHI3 ------------------------------------------------------------------ */
static const unsigned int sdhi3_data_pins[] =;

static const unsigned int sdhi3_data_mux[] =;

static const unsigned int sdhi3_ctrl_pins[] =;

static const unsigned int sdhi3_ctrl_mux[] =;

static const unsigned int sdhi3_cd_pins[] =;

static const unsigned int sdhi3_cd_mux[] =;

static const unsigned int sdhi3_wp_pins[] =;

static const unsigned int sdhi3_wp_mux[] =;

static const unsigned int sdhi3_ds_pins[] =;

static const unsigned int sdhi3_ds_mux[] =;

/* - SSI -------------------------------------------------------------------- */
static const unsigned int ssi0_data_pins[] =;

static const unsigned int ssi0_data_mux[] =;

static const unsigned int ssi01239_ctrl_pins[] =;

static const unsigned int ssi01239_ctrl_mux[] =;

static const unsigned int ssi1_data_pins[] =;

static const unsigned int ssi1_data_mux[] =;

static const unsigned int ssi1_ctrl_pins[] =;

static const unsigned int ssi1_ctrl_mux[] =;

static const unsigned int ssi2_data_pins[] =;

static const unsigned int ssi2_data_mux[] =;

static const unsigned int ssi2_ctrl_a_pins[] =;

static const unsigned int ssi2_ctrl_a_mux[] =;

static const unsigned int ssi2_ctrl_b_pins[] =;

static const unsigned int ssi2_ctrl_b_mux[] =;

static const unsigned int ssi3_data_pins[] =;

static const unsigned int ssi3_data_mux[] =;

static const unsigned int ssi349_ctrl_pins[] =;

static const unsigned int ssi349_ctrl_mux[] =;

static const unsigned int ssi4_data_pins[] =;

static const unsigned int ssi4_data_mux[] =;

static const unsigned int ssi4_ctrl_pins[] =;

static const unsigned int ssi4_ctrl_mux[] =;

static const unsigned int ssi5_data_pins[] =;

static const unsigned int ssi5_data_mux[] =;

static const unsigned int ssi5_ctrl_pins[] =;

static const unsigned int ssi5_ctrl_mux[] =;

static const unsigned int ssi6_data_pins[] =;

static const unsigned int ssi6_data_mux[] =;

static const unsigned int ssi6_ctrl_pins[] =;

static const unsigned int ssi6_ctrl_mux[] =;

static const unsigned int ssi7_data_pins[] =;

static const unsigned int ssi7_data_mux[] =;

static const unsigned int ssi78_ctrl_pins[] =;

static const unsigned int ssi78_ctrl_mux[] =;

static const unsigned int ssi8_data_pins[] =;

static const unsigned int ssi8_data_mux[] =;

static const unsigned int ssi9_data_pins[] =;

static const unsigned int ssi9_data_mux[] =;

static const unsigned int ssi9_ctrl_a_pins[] =;

static const unsigned int ssi9_ctrl_a_mux[] =;

static const unsigned int ssi9_ctrl_b_pins[] =;

static const unsigned int ssi9_ctrl_b_mux[] =;

/* - TMU -------------------------------------------------------------------- */
static const unsigned int tmu_tclk1_a_pins[] =;

static const unsigned int tmu_tclk1_a_mux[] =;

static const unsigned int tmu_tclk1_b_pins[] =;

static const unsigned int tmu_tclk1_b_mux[] =;

static const unsigned int tmu_tclk2_a_pins[] =;

static const unsigned int tmu_tclk2_a_mux[] =;

static const unsigned int tmu_tclk2_b_pins[] =;

static const unsigned int tmu_tclk2_b_mux[] =;

/* - USB0 ------------------------------------------------------------------- */
static const unsigned int usb0_a_pins[] =;

static const unsigned int usb0_a_mux[] =;

static const unsigned int usb0_b_pins[] =;

static const unsigned int usb0_b_mux[] =;

static const unsigned int usb0_id_pins[] =;

static const unsigned int usb0_id_mux[] =;

/* - USB30 ------------------------------------------------------------------ */
static const unsigned int usb30_pins[] =;

static const unsigned int usb30_mux[] =;

static const unsigned int usb30_id_pins[] =;

static const unsigned int usb30_id_mux[] =;

/* - VIN4 ------------------------------------------------------------------- */
static const unsigned int vin4_data18_a_pins[] =;

static const unsigned int vin4_data18_a_mux[] =;

static const unsigned int vin4_data_a_pins[] =;

static const unsigned int vin4_data_a_mux[] =;

static const unsigned int vin4_data18_b_pins[] =;

static const unsigned int vin4_data18_b_mux[] =;

static const unsigned int vin4_data_b_pins[] =;

static const unsigned int vin4_data_b_mux[] =;

static const unsigned int vin4_sync_pins[] =;

static const unsigned int vin4_sync_mux[] =;

static const unsigned int vin4_field_pins[] =;

static const unsigned int vin4_field_mux[] =;

static const unsigned int vin4_clkenb_pins[] =;

static const unsigned int vin4_clkenb_mux[] =;

static const unsigned int vin4_clk_pins[] =;

static const unsigned int vin4_clk_mux[] =;

/* - VIN5 ------------------------------------------------------------------- */
static const unsigned int vin5_data_a_pins[] =;

static const unsigned int vin5_data_a_mux[] =;

static const unsigned int vin5_data8_b_pins[] =;

static const unsigned int vin5_data8_b_mux[] =;

static const unsigned int vin5_sync_a_pins[] =;

static const unsigned int vin5_sync_a_mux[] =;

static const unsigned int vin5_field_a_pins[] =;

static const unsigned int vin5_field_a_mux[] =;

static const unsigned int vin5_clkenb_a_pins[] =;

static const unsigned int vin5_clkenb_a_mux[] =;

static const unsigned int vin5_clk_a_pins[] =;

static const unsigned int vin5_clk_a_mux[] =;

static const unsigned int vin5_clk_b_pins[] =;

static const unsigned int vin5_clk_b_mux[] =;

static const struct {} pinmux_groups =;

static const char * const audio_clk_groups[] =;

static const char * const avb_groups[] =;

static const char * const can0_groups[] =;

static const char * const can1_groups[] =;

static const char * const can_clk_groups[] =;

static const char * const canfd0_groups[] =;

static const char * const canfd1_groups[] =;

#ifdef CONFIG_PINCTRL_PFC_R8A77990
static const char * const drif0_groups[] =;

static const char * const drif1_groups[] =;

static const char * const drif2_groups[] =;

static const char * const drif3_groups[] =;
#endif /* CONFIG_PINCTRL_PFC_R8A77990 */

static const char * const du_groups[] =;

static const char * const hscif0_groups[] =;

static const char * const hscif1_groups[] =;

static const char * const hscif2_groups[] =;

static const char * const hscif3_groups[] =;

static const char * const hscif4_groups[] =;

static const char * const i2c1_groups[] =;

static const char * const i2c2_groups[] =;

static const char * const i2c4_groups[] =;

static const char * const i2c5_groups[] =;

static const char * const i2c6_groups[] =;

static const char * const i2c7_groups[] =;

static const char * const intc_ex_groups[] =;

#ifdef CONFIG_PINCTRL_PFC_R8A77990
static const char * const mlb_3pin_groups[] =;
#endif /* CONFIG_PINCTRL_PFC_R8A77990 */

static const char * const msiof0_groups[] =;

static const char * const msiof1_groups[] =;

static const char * const msiof2_groups[] =;

static const char * const msiof3_groups[] =;

static const char * const pwm0_groups[] =;

static const char * const pwm1_groups[] =;

static const char * const pwm2_groups[] =;

static const char * const pwm3_groups[] =;

static const char * const pwm4_groups[] =;

static const char * const pwm5_groups[] =;

static const char * const pwm6_groups[] =;

static const char * const qspi0_groups[] =;

static const char * const qspi1_groups[] =;

static const char * const rpc_groups[] =;

static const char * const scif0_groups[] =;

static const char * const scif1_groups[] =;

static const char * const scif2_groups[] =;

static const char * const scif3_groups[] =;

static const char * const scif4_groups[] =;

static const char * const scif5_groups[] =;

static const char * const scif_clk_groups[] =;

static const char * const sdhi0_groups[] =;

static const char * const sdhi1_groups[] =;

static const char * const sdhi3_groups[] =;

static const char * const ssi_groups[] =;

static const char * const tmu_groups[] =;

static const char * const usb0_groups[] =;

static const char * const usb30_groups[] =;

static const char * const vin4_groups[] =;

static const char * const vin5_groups[] =;

static const struct {} pinmux_functions =;

static const struct pinmux_cfg_reg pinmux_config_regs[] =;

static const struct pinmux_drive_reg pinmux_drive_regs[] =;

enum ioctrl_regs {};

static const struct pinmux_ioctrl_reg pinmux_ioctrl_regs[] =;

static int r8a77990_pin_to_pocctrl(unsigned int pin, u32 *pocctrl)
{}

static const struct pinmux_bias_reg pinmux_bias_regs[] =;

static const struct sh_pfc_soc_operations r8a77990_pfc_ops =;

#ifdef CONFIG_PINCTRL_PFC_R8A774C0
const struct sh_pfc_soc_info r8a774c0_pinmux_info =;
#endif

#ifdef CONFIG_PINCTRL_PFC_R8A77990
const struct sh_pfc_soc_info r8a77990_pinmux_info =;
#endif