From fd584a422c7aafa4745f13a136a39f5200bae6f5 Mon Sep 17 00:00:00 2001 From: Xingyu Chen Date: Wed, 13 Dec 2017 20:05:49 +0800 Subject: [PATCH] pinctrl: remove offset and pin_base from pinctrl [1/4] PD#157965: pinctrl: remove offset and pin_base from pinctrl porting from the upstream v4.15-rc2, commits as follows: commit 634e40b0c2bde81051e309cdfe4c26bbca3164ec commit 70e5ecb1b994f2704c234cb12366d45474b98f32 commit 40833a84faed72f333b1626f00f59e6bebea4d98 commit 6affd6981ca5d2b1d3d9d5191b18bd4a692587fe Change-Id: Ia856617fc202589199a9fc47664886a25779e8a0 Signed-off-by: Xingyu Chen --- drivers/amlogic/pinctrl/pinctrl-meson-txlx.c | 1474 +++++++++--------- drivers/amlogic/pinctrl/pinctrl-meson.c | 101 +- drivers/amlogic/pinctrl/pinctrl-meson.h | 9 +- drivers/amlogic/pinctrl/pinctrl-meson8b.c | 744 +++++---- drivers/amlogic/pinctrl/pinctrl-mesonaxg.c | 220 ++- drivers/amlogic/pinctrl/pinctrl_gxl.c | 1186 +++++++------- 6 files changed, 1834 insertions(+), 1900 deletions(-) diff --git a/drivers/amlogic/pinctrl/pinctrl-meson-txlx.c b/drivers/amlogic/pinctrl/pinctrl-meson-txlx.c index f4a910fb7865..e24d5aa1b757 100644 --- a/drivers/amlogic/pinctrl/pinctrl-meson-txlx.c +++ b/drivers/amlogic/pinctrl/pinctrl-meson-txlx.c @@ -19,646 +19,644 @@ #include #include -#define EE_OFF 15 - static const struct pinctrl_pin_desc meson_txlx_periphs_pins[] = { - MESON_PIN(GPIOZ_0, EE_OFF), - MESON_PIN(GPIOZ_1, EE_OFF), - MESON_PIN(GPIOZ_2, EE_OFF), - MESON_PIN(GPIOZ_3, EE_OFF), - MESON_PIN(GPIOZ_4, EE_OFF), - MESON_PIN(GPIOZ_5, EE_OFF), - MESON_PIN(GPIOZ_6, EE_OFF), - MESON_PIN(GPIOZ_7, EE_OFF), - MESON_PIN(GPIOZ_8, EE_OFF), - MESON_PIN(GPIOZ_9, EE_OFF), - MESON_PIN(GPIOZ_10, EE_OFF), - MESON_PIN(GPIOZ_11, EE_OFF), - MESON_PIN(GPIOZ_12, EE_OFF), - MESON_PIN(GPIOZ_13, EE_OFF), - MESON_PIN(GPIOZ_14, EE_OFF), - MESON_PIN(GPIOZ_15, EE_OFF), - MESON_PIN(GPIOZ_16, EE_OFF), - MESON_PIN(GPIOZ_17, EE_OFF), - MESON_PIN(GPIOZ_18, EE_OFF), - MESON_PIN(GPIOZ_19, EE_OFF), - MESON_PIN(GPIOH_0, EE_OFF), - MESON_PIN(GPIOH_1, EE_OFF), - MESON_PIN(GPIOH_2, EE_OFF), - MESON_PIN(GPIOH_3, EE_OFF), - MESON_PIN(GPIOH_4, EE_OFF), - MESON_PIN(GPIOH_5, EE_OFF), - MESON_PIN(GPIOH_6, EE_OFF), - MESON_PIN(GPIOH_7, EE_OFF), - MESON_PIN(GPIOH_8, EE_OFF), - MESON_PIN(GPIOH_9, EE_OFF), - MESON_PIN(GPIOH_10, EE_OFF), - MESON_PIN(BOOT_0, EE_OFF), - MESON_PIN(BOOT_1, EE_OFF), - MESON_PIN(BOOT_2, EE_OFF), - MESON_PIN(BOOT_3, EE_OFF), - MESON_PIN(BOOT_4, EE_OFF), - MESON_PIN(BOOT_5, EE_OFF), - MESON_PIN(BOOT_6, EE_OFF), - MESON_PIN(BOOT_7, EE_OFF), - MESON_PIN(BOOT_8, EE_OFF), - MESON_PIN(BOOT_9, EE_OFF), - MESON_PIN(BOOT_10, EE_OFF), - MESON_PIN(BOOT_11, EE_OFF), - MESON_PIN(GPIOC_0, EE_OFF), - MESON_PIN(GPIOC_1, EE_OFF), - MESON_PIN(GPIOC_2, EE_OFF), - MESON_PIN(GPIOC_3, EE_OFF), - MESON_PIN(GPIOC_4, EE_OFF), - MESON_PIN(GPIOC_5, EE_OFF), - MESON_PIN(GPIODV_0, EE_OFF), - MESON_PIN(GPIODV_1, EE_OFF), - MESON_PIN(GPIODV_2, EE_OFF), - MESON_PIN(GPIODV_3, EE_OFF), - MESON_PIN(GPIODV_4, EE_OFF), - MESON_PIN(GPIODV_5, EE_OFF), - MESON_PIN(GPIODV_6, EE_OFF), - MESON_PIN(GPIODV_7, EE_OFF), - MESON_PIN(GPIODV_8, EE_OFF), - MESON_PIN(GPIODV_9, EE_OFF), - MESON_PIN(GPIODV_10, EE_OFF), - MESON_PIN(GPIOW_0, EE_OFF), - MESON_PIN(GPIOW_1, EE_OFF), - MESON_PIN(GPIOW_2, EE_OFF), - MESON_PIN(GPIOW_3, EE_OFF), - MESON_PIN(GPIOW_4, EE_OFF), - MESON_PIN(GPIOW_5, EE_OFF), - MESON_PIN(GPIOW_6, EE_OFF), - MESON_PIN(GPIOW_7, EE_OFF), - MESON_PIN(GPIOW_8, EE_OFF), - MESON_PIN(GPIOW_9, EE_OFF), - MESON_PIN(GPIOW_10, EE_OFF), - MESON_PIN(GPIOW_11, EE_OFF), - MESON_PIN(GPIOW_12, EE_OFF), - MESON_PIN(GPIOW_13, EE_OFF), - MESON_PIN(GPIOW_14, EE_OFF), - MESON_PIN(GPIOW_15, EE_OFF), - MESON_PIN(GPIOY_0, EE_OFF), - MESON_PIN(GPIOY_1, EE_OFF), - MESON_PIN(GPIOY_2, EE_OFF), - MESON_PIN(GPIOY_3, EE_OFF), - MESON_PIN(GPIOY_4, EE_OFF), - MESON_PIN(GPIOY_5, EE_OFF), - MESON_PIN(GPIOY_6, EE_OFF), - MESON_PIN(GPIOY_7, EE_OFF), - MESON_PIN(GPIOY_8, EE_OFF), - MESON_PIN(GPIOY_9, EE_OFF), - MESON_PIN(GPIOY_10, EE_OFF), - MESON_PIN(GPIOY_11, EE_OFF), - MESON_PIN(GPIOY_12, EE_OFF), - MESON_PIN(GPIOY_13, EE_OFF), - MESON_PIN(GPIOY_14, EE_OFF), - MESON_PIN(GPIOY_15, EE_OFF), - MESON_PIN(GPIOY_16, EE_OFF), - MESON_PIN(GPIOY_17, EE_OFF), - MESON_PIN(GPIOY_18, EE_OFF), - MESON_PIN(GPIOY_19, EE_OFF), - MESON_PIN(GPIOY_20, EE_OFF), - MESON_PIN(GPIOY_21, EE_OFF), - MESON_PIN(GPIOY_22, EE_OFF), - MESON_PIN(GPIOY_23, EE_OFF), - MESON_PIN(GPIOY_24, EE_OFF), - MESON_PIN(GPIOY_25, EE_OFF), - MESON_PIN(GPIOY_26, EE_OFF), - MESON_PIN(GPIOY_27, EE_OFF), + MESON_PIN(GPIOZ_0), + MESON_PIN(GPIOZ_1), + MESON_PIN(GPIOZ_2), + MESON_PIN(GPIOZ_3), + MESON_PIN(GPIOZ_4), + MESON_PIN(GPIOZ_5), + MESON_PIN(GPIOZ_6), + MESON_PIN(GPIOZ_7), + MESON_PIN(GPIOZ_8), + MESON_PIN(GPIOZ_9), + MESON_PIN(GPIOZ_10), + MESON_PIN(GPIOZ_11), + MESON_PIN(GPIOZ_12), + MESON_PIN(GPIOZ_13), + MESON_PIN(GPIOZ_14), + MESON_PIN(GPIOZ_15), + MESON_PIN(GPIOZ_16), + MESON_PIN(GPIOZ_17), + MESON_PIN(GPIOZ_18), + MESON_PIN(GPIOZ_19), + MESON_PIN(GPIOH_0), + MESON_PIN(GPIOH_1), + MESON_PIN(GPIOH_2), + MESON_PIN(GPIOH_3), + MESON_PIN(GPIOH_4), + MESON_PIN(GPIOH_5), + MESON_PIN(GPIOH_6), + MESON_PIN(GPIOH_7), + MESON_PIN(GPIOH_8), + MESON_PIN(GPIOH_9), + MESON_PIN(GPIOH_10), + MESON_PIN(BOOT_0), + MESON_PIN(BOOT_1), + MESON_PIN(BOOT_2), + MESON_PIN(BOOT_3), + MESON_PIN(BOOT_4), + MESON_PIN(BOOT_5), + MESON_PIN(BOOT_6), + MESON_PIN(BOOT_7), + MESON_PIN(BOOT_8), + MESON_PIN(BOOT_9), + MESON_PIN(BOOT_10), + MESON_PIN(BOOT_11), + MESON_PIN(GPIOC_0), + MESON_PIN(GPIOC_1), + MESON_PIN(GPIOC_2), + MESON_PIN(GPIOC_3), + MESON_PIN(GPIOC_4), + MESON_PIN(GPIOC_5), + MESON_PIN(GPIODV_0), + MESON_PIN(GPIODV_1), + MESON_PIN(GPIODV_2), + MESON_PIN(GPIODV_3), + MESON_PIN(GPIODV_4), + MESON_PIN(GPIODV_5), + MESON_PIN(GPIODV_6), + MESON_PIN(GPIODV_7), + MESON_PIN(GPIODV_8), + MESON_PIN(GPIODV_9), + MESON_PIN(GPIODV_10), + MESON_PIN(GPIOW_0), + MESON_PIN(GPIOW_1), + MESON_PIN(GPIOW_2), + MESON_PIN(GPIOW_3), + MESON_PIN(GPIOW_4), + MESON_PIN(GPIOW_5), + MESON_PIN(GPIOW_6), + MESON_PIN(GPIOW_7), + MESON_PIN(GPIOW_8), + MESON_PIN(GPIOW_9), + MESON_PIN(GPIOW_10), + MESON_PIN(GPIOW_11), + MESON_PIN(GPIOW_12), + MESON_PIN(GPIOW_13), + MESON_PIN(GPIOW_14), + MESON_PIN(GPIOW_15), + MESON_PIN(GPIOY_0), + MESON_PIN(GPIOY_1), + MESON_PIN(GPIOY_2), + MESON_PIN(GPIOY_3), + MESON_PIN(GPIOY_4), + MESON_PIN(GPIOY_5), + MESON_PIN(GPIOY_6), + MESON_PIN(GPIOY_7), + MESON_PIN(GPIOY_8), + MESON_PIN(GPIOY_9), + MESON_PIN(GPIOY_10), + MESON_PIN(GPIOY_11), + MESON_PIN(GPIOY_12), + MESON_PIN(GPIOY_13), + MESON_PIN(GPIOY_14), + MESON_PIN(GPIOY_15), + MESON_PIN(GPIOY_16), + MESON_PIN(GPIOY_17), + MESON_PIN(GPIOY_18), + MESON_PIN(GPIOY_19), + MESON_PIN(GPIOY_20), + MESON_PIN(GPIOY_21), + MESON_PIN(GPIOY_22), + MESON_PIN(GPIOY_23), + MESON_PIN(GPIOY_24), + MESON_PIN(GPIOY_25), + MESON_PIN(GPIOY_26), + MESON_PIN(GPIOY_27), }; /* emmc & nand */ static const unsigned int emmc_nand_d07_pins[] = { - PIN(BOOT_0, EE_OFF), PIN(BOOT_1, EE_OFF), PIN(BOOT_2, EE_OFF), - PIN(BOOT_3, EE_OFF), PIN(BOOT_4, EE_OFF), PIN(BOOT_5, EE_OFF), - PIN(BOOT_6, EE_OFF), PIN(BOOT_7, EE_OFF), + BOOT_0, BOOT_1, BOOT_2, + BOOT_3, BOOT_4, BOOT_5, + BOOT_6, BOOT_7, }; /* emmc */ -static const unsigned int emmc_clk_pins[] = { PIN(BOOT_8, EE_OFF) }; -static const unsigned int emmc_cmd_pins[] = { PIN(BOOT_10, EE_OFF) }; -static const unsigned int emmc_ds_pins[] = { PIN(BOOT_11, EE_OFF) }; +static const unsigned int emmc_clk_pins[] = { BOOT_8 }; +static const unsigned int emmc_cmd_pins[] = { BOOT_10 }; +static const unsigned int emmc_ds_pins[] = { BOOT_11 }; /* nor */ -static const unsigned int nor_d_pins[] = { PIN(BOOT_4, EE_OFF) }; -static const unsigned int nor_q_pins[] = { PIN(BOOT_5, EE_OFF) }; -static const unsigned int nor_c_pins[] = { PIN(BOOT_6, EE_OFF) }; -static const unsigned int nor_cs_pins[] = { PIN(BOOT_11, EE_OFF) }; +static const unsigned int nor_d_pins[] = { BOOT_4 }; +static const unsigned int nor_q_pins[] = { BOOT_5 }; +static const unsigned int nor_c_pins[] = { BOOT_6 }; +static const unsigned int nor_cs_pins[] = { BOOT_11 }; /* sacard */ -static const unsigned int sdcard_d1_c_pins[] = { PIN(GPIOC_0, EE_OFF) }; -static const unsigned int sdcard_d0_c_pins[] = { PIN(GPIOC_1, EE_OFF) }; -static const unsigned int sdcard_clk_c_pins[] = { PIN(GPIOC_2, EE_OFF) }; -static const unsigned int sdcard_cmd_c_pins[] = { PIN(GPIOC_3, EE_OFF) }; -static const unsigned int sdcard_d3_c_pins[] = { PIN(GPIOC_4, EE_OFF) }; -static const unsigned int sdcard_d2_c_pins[] = { PIN(GPIOC_5, EE_OFF) }; +static const unsigned int sdcard_d1_c_pins[] = { GPIOC_0 }; +static const unsigned int sdcard_d0_c_pins[] = { GPIOC_1 }; +static const unsigned int sdcard_clk_c_pins[] = { GPIOC_2 }; +static const unsigned int sdcard_cmd_c_pins[] = { GPIOC_3 }; +static const unsigned int sdcard_d3_c_pins[] = { GPIOC_4 }; +static const unsigned int sdcard_d2_c_pins[] = { GPIOC_5 }; -static const unsigned int sdcard_d1_z_pins[] = { PIN(GPIOZ_8, EE_OFF) }; -static const unsigned int sdcard_d0_z_pins[] = { PIN(GPIOZ_9, EE_OFF) }; -static const unsigned int sdcard_clk_z_pins[] = { PIN(GPIOZ_10, EE_OFF) }; -static const unsigned int sdcard_cmd_z_pins[] = { PIN(GPIOZ_11, EE_OFF) }; -static const unsigned int sdcard_d3_z_pins[] = { PIN(GPIOZ_12, EE_OFF) }; -static const unsigned int sdcard_d2_z_pins[] = { PIN(GPIOZ_13, EE_OFF) }; +static const unsigned int sdcard_d1_z_pins[] = { GPIOZ_8 }; +static const unsigned int sdcard_d0_z_pins[] = { GPIOZ_9 }; +static const unsigned int sdcard_clk_z_pins[] = { GPIOZ_10 }; +static const unsigned int sdcard_cmd_z_pins[] = { GPIOZ_11 }; +static const unsigned int sdcard_d3_z_pins[] = { GPIOZ_12 }; +static const unsigned int sdcard_d2_z_pins[] = { GPIOZ_13 }; /* i2c_a */ -static const unsigned int i2c0_sda_pins[] = { PIN(GPIOZ_9, EE_OFF) }; -static const unsigned int i2c0_sck_pins[] = { PIN(GPIOZ_8, EE_OFF) }; +static const unsigned int i2c0_sda_pins[] = { GPIOZ_9 }; +static const unsigned int i2c0_sck_pins[] = { GPIOZ_8 }; /* i2c_b */ -static const unsigned int i2c1_sda_pins[] = { PIN(GPIODV_0, EE_OFF) }; -static const unsigned int i2c1_sck_pins[] = { PIN(GPIODV_1, EE_OFF) }; +static const unsigned int i2c1_sda_pins[] = { GPIODV_0 }; +static const unsigned int i2c1_sck_pins[] = { GPIODV_1 }; /* i2c_c */ -static const unsigned int i2c2_sda_pins[] = { PIN(GPIOH_3, EE_OFF) }; -static const unsigned int i2c2_sck_pins[] = { PIN(GPIOH_2, EE_OFF) }; +static const unsigned int i2c2_sda_pins[] = { GPIOH_3 }; +static const unsigned int i2c2_sck_pins[] = { GPIOH_2 }; /* i2c_d */ -static const unsigned int i2c3_sda_pins[] = { PIN(GPIOZ_2, EE_OFF) }; -static const unsigned int i2c3_sck_pins[] = { PIN(GPIOZ_3, EE_OFF) }; +static const unsigned int i2c3_sda_pins[] = { GPIOZ_2 }; +static const unsigned int i2c3_sck_pins[] = { GPIOZ_3 }; /* i2c_slave_ao_ee */ static const unsigned int i2c_s_sda_ao_dv_pins[] = { - PIN(GPIODV_0, EE_OFF) + GPIODV_0 }; static const unsigned int i2c_s_sck_ao_dv_pins[] = { - PIN(GPIODV_1, EE_OFF) + GPIODV_1 }; static const unsigned int i2c_s_sda_ao_h_pins[] = { - PIN(GPIOH_3, EE_OFF) + GPIOH_3 }; static const unsigned int i2c_s_sck_ao_h_pins[] = { - PIN(GPIOH_2, EE_OFF) + GPIOH_2 }; /* pwm_a */ -static const unsigned int pwm_a_pins[] = { PIN(GPIOZ_5, EE_OFF) }; +static const unsigned int pwm_a_pins[] = { GPIOZ_5 }; /* pwm_b */ -static const unsigned int pwm_b_pins[] = { PIN(GPIOZ_6, EE_OFF) }; +static const unsigned int pwm_b_pins[] = { GPIOZ_6 }; /* pwm_c */ -static const unsigned int pwm_c_z_pins[] = { PIN(GPIOZ_7, EE_OFF) }; -static const unsigned int pwm_c_h_pins[] = { PIN(GPIOH_6, EE_OFF) }; +static const unsigned int pwm_c_z_pins[] = { GPIOZ_7 }; +static const unsigned int pwm_c_h_pins[] = { GPIOH_6 }; /* pwm_d */ -static const unsigned int pwm_d_dv_pins[] = { PIN(GPIODV_2, EE_OFF) }; -static const unsigned int pwm_d_z_pins[] = { PIN(GPIOZ_19, EE_OFF) }; +static const unsigned int pwm_d_dv_pins[] = { GPIODV_2 }; +static const unsigned int pwm_d_z_pins[] = { GPIOZ_19 }; /* pwm_vs */ -static const unsigned int pwm_vs_dv_pins[] = { PIN(GPIODV_3, EE_OFF) }; -static const unsigned int pwm_vs_z6_pins[] = { PIN(GPIOZ_6, EE_OFF) }; -static const unsigned int pwm_vs_z7_pins[] = { PIN(GPIOZ_7, EE_OFF) }; +static const unsigned int pwm_vs_dv_pins[] = { GPIODV_3 }; +static const unsigned int pwm_vs_z6_pins[] = { GPIOZ_6 }; +static const unsigned int pwm_vs_z7_pins[] = { GPIOZ_7 }; /* pwm_e */ -static const unsigned int pwm_e_dv_pins[] = { PIN(GPIODV_6, EE_OFF) }; -static const unsigned int pwm_e_h_pins[] = { PIN(GPIOH_4, EE_OFF) }; -static const unsigned int pwm_e_y_pins[] = { PIN(GPIOY_9, EE_OFF) }; -static const unsigned int pwm_e_z_pins[] = { PIN(GPIOZ_4, EE_OFF) }; +static const unsigned int pwm_e_dv_pins[] = { GPIODV_6 }; +static const unsigned int pwm_e_h_pins[] = { GPIOH_4 }; +static const unsigned int pwm_e_y_pins[] = { GPIOY_9 }; +static const unsigned int pwm_e_z_pins[] = { GPIOZ_4 }; /* pwm_f */ -static const unsigned int pwm_f_dv_pins[] = { PIN(GPIODV_10, EE_OFF) }; -static const unsigned int pwm_f_h_pins[] = { PIN(GPIOH_7, EE_OFF) }; +static const unsigned int pwm_f_dv_pins[] = { GPIODV_10 }; +static const unsigned int pwm_f_h_pins[] = { GPIOH_7 }; /* tsin_a */ -static const unsigned int tsin_d0_a_dv_pins[] = { PIN(GPIODV_7, EE_OFF) }; -static const unsigned int tsin_clk_a_dv_pins[] = { PIN(GPIODV_8, EE_OFF) }; -static const unsigned int tsin_sop_a_dv_pins[] = { PIN(GPIODV_9, EE_OFF) }; +static const unsigned int tsin_d0_a_dv_pins[] = { GPIODV_7 }; +static const unsigned int tsin_clk_a_dv_pins[] = { GPIODV_8 }; +static const unsigned int tsin_sop_a_dv_pins[] = { GPIODV_9 }; static const unsigned int tsin_valid_a_dv_pins[] = { - PIN(GPIODV_10, EE_OFF) + GPIODV_10 }; -static const unsigned int tsin_d0_a_y_pins[] = { PIN(GPIOY_1, EE_OFF) }; -static const unsigned int tsin_clk_a_y_pins[] = { PIN(GPIOY_0, EE_OFF) }; -static const unsigned int tsin_sop_a_y_pins[] = { PIN(GPIOY_2, EE_OFF) }; +static const unsigned int tsin_d0_a_y_pins[] = { GPIOY_1 }; +static const unsigned int tsin_clk_a_y_pins[] = { GPIOY_0 }; +static const unsigned int tsin_sop_a_y_pins[] = { GPIOY_2 }; static const unsigned int tsin_valid_a_y_pins[] = { - PIN(GPIOY_3, EE_OFF) + GPIOY_3 }; -static const unsigned int tsin_d0_a_z_pins[] = { PIN(GPIOZ_1, EE_OFF) }; -static const unsigned int tsin_clk_a_z_pins[] = { PIN(GPIOZ_0, EE_OFF) }; -static const unsigned int tsin_sop_a_z_pins[] = { PIN(GPIOZ_2, EE_OFF) }; +static const unsigned int tsin_d0_a_z_pins[] = { GPIOZ_1 }; +static const unsigned int tsin_clk_a_z_pins[] = { GPIOZ_0 }; +static const unsigned int tsin_sop_a_z_pins[] = { GPIOZ_2 }; static const unsigned int tsin_valid_a_z_pins[] = { - PIN(GPIOZ_3, EE_OFF) + GPIOZ_3 }; static const unsigned int tsin_d1_7_a_pins[] = { - PIN(GPIODV_0, EE_OFF), PIN(GPIODV_1, EE_OFF), - PIN(GPIODV_2, EE_OFF), PIN(GPIODV_3, EE_OFF), - PIN(GPIODV_4, EE_OFF), PIN(GPIODV_5, EE_OFF), - PIN(GPIODV_6, EE_OFF), + GPIODV_0, GPIODV_1, + GPIODV_2, GPIODV_3, + GPIODV_4, GPIODV_5, + GPIODV_6, }; /* tsin_b */ -static const unsigned int tsin_d0_b_pins[] = { PIN(GPIOY_11, EE_OFF) }; -static const unsigned int tsin_d1_b_pins[] = { PIN(GPIOY_12, EE_OFF) }; -static const unsigned int tsin_d2_b_pins[] = { PIN(GPIOY_13, EE_OFF) }; -static const unsigned int tsin_d3_b_pins[] = { PIN(GPIOY_14, EE_OFF) }; -static const unsigned int tsin_d4_b_pins[] = { PIN(GPIOY_15, EE_OFF) }; -static const unsigned int tsin_d5_b_pins[] = { PIN(GPIOY_17, EE_OFF) }; -static const unsigned int tsin_d6_b_pins[] = { PIN(GPIOY_19, EE_OFF) }; -static const unsigned int tsin_d7_b_pins[] = { PIN(GPIOY_20, EE_OFF) }; +static const unsigned int tsin_d0_b_pins[] = { GPIOY_11 }; +static const unsigned int tsin_d1_b_pins[] = { GPIOY_12 }; +static const unsigned int tsin_d2_b_pins[] = { GPIOY_13 }; +static const unsigned int tsin_d3_b_pins[] = { GPIOY_14 }; +static const unsigned int tsin_d4_b_pins[] = { GPIOY_15 }; +static const unsigned int tsin_d5_b_pins[] = { GPIOY_17 }; +static const unsigned int tsin_d6_b_pins[] = { GPIOY_19 }; +static const unsigned int tsin_d7_b_pins[] = { GPIOY_20 }; -static const unsigned int tsin_clk_b_pins[] = { PIN(GPIOY_18, EE_OFF) }; -static const unsigned int tsin_sop_b_pins[] = { PIN(GPIOY_10, EE_OFF) }; -static const unsigned int tsin_valid_b_pins[] = { PIN(GPIOY_16, EE_OFF) }; -static const unsigned int tsin_fail_b_pins[] = { PIN(GPIOY_22, EE_OFF) }; +static const unsigned int tsin_clk_b_pins[] = { GPIOY_18 }; +static const unsigned int tsin_sop_b_pins[] = { GPIOY_10 }; +static const unsigned int tsin_valid_b_pins[] = { GPIOY_16 }; +static const unsigned int tsin_fail_b_pins[] = { GPIOY_22 }; /* atv */ -static const unsigned int atv_if_agc_dv_pins[] = { PIN(GPIODV_2, EE_OFF) }; -static const unsigned int atv_if_agc_h_pins[] = { PIN(GPIOH_5, EE_OFF) }; +static const unsigned int atv_if_agc_dv_pins[] = { GPIODV_2 }; +static const unsigned int atv_if_agc_h_pins[] = { GPIOH_5 }; /* dtv */ -static const unsigned int dtv_if_agc_dv2_pins[] = { PIN(GPIODV_2, EE_OFF) }; -static const unsigned int dtv_if_agc_dv3_pins[] = { PIN(GPIODV_3, EE_OFF) }; -static const unsigned int dtv_rf_agc_dv3_pins[] = { PIN(GPIODV_3, EE_OFF) }; +static const unsigned int dtv_if_agc_dv2_pins[] = { GPIODV_2 }; +static const unsigned int dtv_if_agc_dv3_pins[] = { GPIODV_3 }; +static const unsigned int dtv_rf_agc_dv3_pins[] = { GPIODV_3 }; /* spi_a */ -static const unsigned int spi_miso_a_pins[] = { PIN(GPIOZ_1, EE_OFF) }; -static const unsigned int spi_mosi_a_pins[] = { PIN(GPIOZ_0, EE_OFF) }; -static const unsigned int spi_clk_a_pins[] = { PIN(GPIOZ_2, EE_OFF) }; -static const unsigned int spi_ss0_a_pins[] = { PIN(GPIOZ_3, EE_OFF) }; -static const unsigned int spi_ss1_a_pins[] = { PIN(GPIOZ_4, EE_OFF) }; -static const unsigned int spi_ss2_a_pins[] = { PIN(GPIOZ_5, EE_OFF) }; +static const unsigned int spi_miso_a_pins[] = { GPIOZ_1 }; +static const unsigned int spi_mosi_a_pins[] = { GPIOZ_0 }; +static const unsigned int spi_clk_a_pins[] = { GPIOZ_2 }; +static const unsigned int spi_ss0_a_pins[] = { GPIOZ_3 }; +static const unsigned int spi_ss1_a_pins[] = { GPIOZ_4 }; +static const unsigned int spi_ss2_a_pins[] = { GPIOZ_5 }; /* spi_b */ -static const unsigned int spi_miso_b_dv_pins[] = { PIN(GPIODV_4, EE_OFF) }; -static const unsigned int spi_mosi_b_dv_pins[] = { PIN(GPIODV_3, EE_OFF) }; -static const unsigned int spi_clk_b_dv_pins[] = { PIN(GPIODV_5, EE_OFF) }; -static const unsigned int spi_ss0_b_dv_pins[] = { PIN(GPIODV_6, EE_OFF) }; -static const unsigned int spi_ss1_b_dv_pins[] = { PIN(GPIODV_7, EE_OFF) }; -static const unsigned int spi_ss2_b_dv_pins[] = { PIN(GPIODV_2, EE_OFF) }; +static const unsigned int spi_miso_b_dv_pins[] = { GPIODV_4 }; +static const unsigned int spi_mosi_b_dv_pins[] = { GPIODV_3 }; +static const unsigned int spi_clk_b_dv_pins[] = { GPIODV_5 }; +static const unsigned int spi_ss0_b_dv_pins[] = { GPIODV_6 }; +static const unsigned int spi_ss1_b_dv_pins[] = { GPIODV_7 }; +static const unsigned int spi_ss2_b_dv_pins[] = { GPIODV_2 }; -static const unsigned int spi_miso_b_c_pins[] = { PIN(GPIOC_1, EE_OFF) }; -static const unsigned int spi_mosi_b_c_pins[] = { PIN(GPIOC_3, EE_OFF) }; -static const unsigned int spi_clk_b_c_pins[] = { PIN(GPIOC_2, EE_OFF) }; -static const unsigned int spi_ss0_b_c_pins[] = { PIN(GPIOC_0, EE_OFF) }; -static const unsigned int spi_ss1_b_c_pins[] = { PIN(GPIOC_4, EE_OFF) }; -static const unsigned int spi_ss2_b_c_pins[] = { PIN(GPIOC_5, EE_OFF) }; +static const unsigned int spi_miso_b_c_pins[] = { GPIOC_1 }; +static const unsigned int spi_mosi_b_c_pins[] = { GPIOC_3 }; +static const unsigned int spi_clk_b_c_pins[] = { GPIOC_2 }; +static const unsigned int spi_ss0_b_c_pins[] = { GPIOC_0 }; +static const unsigned int spi_ss1_b_c_pins[] = { GPIOC_4 }; +static const unsigned int spi_ss2_b_c_pins[] = { GPIOC_5 }; /* pcm_a */ -static const unsigned int pcm_clk_a_dv_pins[] = { PIN(GPIODV_3, EE_OFF) }; -static const unsigned int pcm_fs_a_dv_pins[] = { PIN(GPIODV_4, EE_OFF) }; -static const unsigned int pcm_in_a_dv_pins[] = { PIN(GPIODV_5, EE_OFF) }; -static const unsigned int pcm_out_a_dv_pins[] = { PIN(GPIODV_6, EE_OFF) }; +static const unsigned int pcm_clk_a_dv_pins[] = { GPIODV_3 }; +static const unsigned int pcm_fs_a_dv_pins[] = { GPIODV_4 }; +static const unsigned int pcm_in_a_dv_pins[] = { GPIODV_5 }; +static const unsigned int pcm_out_a_dv_pins[] = { GPIODV_6 }; -static const unsigned int pcm_clk_a_z_pins[] = { PIN(GPIOZ_11, EE_OFF) }; -static const unsigned int pcm_fs_a_z_pins[] = { PIN(GPIOZ_12, EE_OFF) }; -static const unsigned int pcm_in_a_z_pins[] = { PIN(GPIOZ_13, EE_OFF) }; -static const unsigned int pcm_out_a_z_pins[] = { PIN(GPIOZ_14, EE_OFF) }; +static const unsigned int pcm_clk_a_z_pins[] = { GPIOZ_11 }; +static const unsigned int pcm_fs_a_z_pins[] = { GPIOZ_12 }; +static const unsigned int pcm_in_a_z_pins[] = { GPIOZ_13 }; +static const unsigned int pcm_out_a_z_pins[] = { GPIOZ_14 }; /* uart_a */ -static const unsigned int uart_tx_a_pins[] = { PIN(GPIODV_7, EE_OFF) }; -static const unsigned int uart_rx_a_pins[] = { PIN(GPIODV_8, EE_OFF) }; -static const unsigned int uart_cts_a_pins[] = { PIN(GPIODV_9, EE_OFF) }; -static const unsigned int uart_rts_a_pins[] = { PIN(GPIODV_10, EE_OFF) }; +static const unsigned int uart_tx_a_pins[] = { GPIODV_7 }; +static const unsigned int uart_rx_a_pins[] = { GPIODV_8 }; +static const unsigned int uart_cts_a_pins[] = { GPIODV_9 }; +static const unsigned int uart_rts_a_pins[] = { GPIODV_10 }; /* uart_b */ -static const unsigned int uart_tx_b_h_pins[] = { PIN(GPIOH_5, EE_OFF) }; -static const unsigned int uart_rx_b_h_pins[] = { PIN(GPIOH_6, EE_OFF) }; -static const unsigned int uart_tx_b_z_pins[] = { PIN(GPIOZ_15, EE_OFF) }; -static const unsigned int uart_rx_b_z_pins[] = { PIN(GPIOZ_16, EE_OFF) }; +static const unsigned int uart_tx_b_h_pins[] = { GPIOH_5 }; +static const unsigned int uart_rx_b_h_pins[] = { GPIOH_6 }; +static const unsigned int uart_tx_b_z_pins[] = { GPIOZ_15 }; +static const unsigned int uart_rx_b_z_pins[] = { GPIOZ_16 }; -static const unsigned int uart_cts_b_pins[] = { PIN(GPIOZ_18, EE_OFF) }; -static const unsigned int uart_rts_b_pins[] = { PIN(GPIOZ_19, EE_OFF) }; +static const unsigned int uart_cts_b_pins[] = { GPIOZ_18 }; +static const unsigned int uart_rts_b_pins[] = { GPIOZ_19 }; /*uart_c*/ -static const unsigned int uart_tx_c_pins[] = { PIN(GPIOZ_0, EE_OFF) }; -static const unsigned int uart_rx_c_pins[] = { PIN(GPIOZ_1, EE_OFF) }; -static const unsigned int uart_cts_c_pins[] = { PIN(GPIOZ_2, EE_OFF) }; -static const unsigned int uart_rts_c_pins[] = { PIN(GPIOZ_3, EE_OFF) }; +static const unsigned int uart_tx_c_pins[] = { GPIOZ_0 }; +static const unsigned int uart_rx_c_pins[] = { GPIOZ_1 }; +static const unsigned int uart_cts_c_pins[] = { GPIOZ_2 }; +static const unsigned int uart_rts_c_pins[] = { GPIOZ_3 }; /* uart_ao_a_ee */ -static const unsigned int uart_tx_ao_a_c4_pins[] = { PIN(GPIOC_4, EE_OFF) }; -static const unsigned int uart_rx_ao_a_c5_pins[] = { PIN(GPIOC_5, EE_OFF) }; +static const unsigned int uart_tx_ao_a_c4_pins[] = { GPIOC_4 }; +static const unsigned int uart_rx_ao_a_c5_pins[] = { GPIOC_5 }; -static const unsigned int uart_rx_ao_a_c4_pins[] = { PIN(GPIOC_4, EE_OFF) }; -static const unsigned int uart_tx_ao_a_c5_pins[] = { PIN(GPIOC_5, EE_OFF) }; +static const unsigned int uart_rx_ao_a_c4_pins[] = { GPIOC_4 }; +static const unsigned int uart_tx_ao_a_c5_pins[] = { GPIOC_5 }; -static const unsigned int uart_tx_ao_a_w2_pins[] = { PIN(GPIOW_2, EE_OFF) }; -static const unsigned int uart_rx_ao_a_w3_pins[] = { PIN(GPIOW_3, EE_OFF) }; +static const unsigned int uart_tx_ao_a_w2_pins[] = { GPIOW_2 }; +static const unsigned int uart_rx_ao_a_w3_pins[] = { GPIOW_3 }; -static const unsigned int uart_tx_ao_a_w6_pins[] = { PIN(GPIOW_6, EE_OFF) }; -static const unsigned int uart_rx_ao_a_w7_pins[] = { PIN(GPIOW_7, EE_OFF) }; +static const unsigned int uart_tx_ao_a_w6_pins[] = { GPIOW_6 }; +static const unsigned int uart_rx_ao_a_w7_pins[] = { GPIOW_7 }; -static const unsigned int uart_tx_ao_a_w10_pins[] = { PIN(GPIOW_10, EE_OFF) }; -static const unsigned int uart_rx_ao_a_w11_pins[] = { PIN(GPIOW_11, EE_OFF) }; +static const unsigned int uart_tx_ao_a_w10_pins[] = { GPIOW_10 }; +static const unsigned int uart_rx_ao_a_w11_pins[] = { GPIOW_11 }; -static const unsigned int uart_tx_ao_a_w14_pins[] = { PIN(GPIOW_14, EE_OFF) }; -static const unsigned int uart_rx_ao_a_w15_pins[] = { PIN(GPIOW_15, EE_OFF) }; +static const unsigned int uart_tx_ao_a_w14_pins[] = { GPIOW_14 }; +static const unsigned int uart_rx_ao_a_w15_pins[] = { GPIOW_15 }; /* spdif_out */ -static const unsigned int spdif_out_dv_pins[] = { PIN(GPIODV_6, EE_OFF) }; -static const unsigned int spdif_out_h_pins[] = { PIN(GPIOH_7, EE_OFF) }; -static const unsigned int spdif_out_z_pins[] = { PIN(GPIOZ_17, EE_OFF) }; +static const unsigned int spdif_out_dv_pins[] = { GPIODV_6 }; +static const unsigned int spdif_out_h_pins[] = { GPIOH_7 }; +static const unsigned int spdif_out_z_pins[] = { GPIOZ_17 }; /*spdif_in*/ -static const unsigned int spdif_in_h_pins[] = { PIN(GPIOH_0, EE_OFF) }; -static const unsigned int spdif_in_z16_pins[] = { PIN(GPIOZ_16, EE_OFF) }; -static const unsigned int spdif_in_z18_pins[] = { PIN(GPIOZ_18, EE_OFF) }; +static const unsigned int spdif_in_h_pins[] = { GPIOH_0 }; +static const unsigned int spdif_in_z16_pins[] = { GPIOZ_16 }; +static const unsigned int spdif_in_z18_pins[] = { GPIOZ_18 }; /* hdmitx */ -static const unsigned int hdmitx_hpd_pins[] = { PIN(GPIOH_1, EE_OFF) }; -static const unsigned int hdmitx_sck_pins[] = { PIN(GPIOH_2, EE_OFF) }; -static const unsigned int hdmitx_sda_pins[] = { PIN(GPIOH_3, EE_OFF) }; +static const unsigned int hdmitx_hpd_pins[] = { GPIOH_1 }; +static const unsigned int hdmitx_sck_pins[] = { GPIOH_2 }; +static const unsigned int hdmitx_sda_pins[] = { GPIOH_3 }; /* hdmirx_a */ -static const unsigned int hdmirx_hpd_a_pins[] = { PIN(GPIOW_4, EE_OFF) }; -static const unsigned int hdmirx_det_a_pins[] = { PIN(GPIOW_5, EE_OFF) }; -static const unsigned int hdmirx_sda_a_pins[] = { PIN(GPIOW_6, EE_OFF) }; -static const unsigned int hdmirx_sck_a_pins[] = { PIN(GPIOW_7, EE_OFF) }; +static const unsigned int hdmirx_hpd_a_pins[] = { GPIOW_4 }; +static const unsigned int hdmirx_det_a_pins[] = { GPIOW_5 }; +static const unsigned int hdmirx_sda_a_pins[] = { GPIOW_6 }; +static const unsigned int hdmirx_sck_a_pins[] = { GPIOW_7 }; /* hdmirx_b */ -static const unsigned int hdmirx_hpd_b_pins[] = { PIN(GPIOW_12, EE_OFF) }; -static const unsigned int hdmirx_det_b_pins[] = { PIN(GPIOW_13, EE_OFF) }; -static const unsigned int hdmirx_sda_b_pins[] = { PIN(GPIOW_14, EE_OFF) }; -static const unsigned int hdmirx_sck_b_pins[] = { PIN(GPIOW_15, EE_OFF) }; +static const unsigned int hdmirx_hpd_b_pins[] = { GPIOW_12 }; +static const unsigned int hdmirx_det_b_pins[] = { GPIOW_13 }; +static const unsigned int hdmirx_sda_b_pins[] = { GPIOW_14 }; +static const unsigned int hdmirx_sck_b_pins[] = { GPIOW_15 }; /* hdmirx_c */ -static const unsigned int hdmirx_hpd_c_pins[] = { PIN(GPIOW_8, EE_OFF) }; -static const unsigned int hdmirx_det_c_pins[] = { PIN(GPIOW_9, EE_OFF) }; -static const unsigned int hdmirx_sda_c_pins[] = { PIN(GPIOW_10, EE_OFF) }; -static const unsigned int hdmirx_sck_c_pins[] = { PIN(GPIOW_11, EE_OFF) }; +static const unsigned int hdmirx_hpd_c_pins[] = { GPIOW_8 }; +static const unsigned int hdmirx_det_c_pins[] = { GPIOW_9 }; +static const unsigned int hdmirx_sda_c_pins[] = { GPIOW_10 }; +static const unsigned int hdmirx_sck_c_pins[] = { GPIOW_11 }; /* hdmirx_d */ -static const unsigned int hdmirx_hpd_d_pins[] = { PIN(GPIOW_0, EE_OFF) }; -static const unsigned int hdmirx_det_d_pins[] = { PIN(GPIOW_1, EE_OFF) }; -static const unsigned int hdmirx_sda_d_pins[] = { PIN(GPIOW_2, EE_OFF) }; -static const unsigned int hdmirx_sck_d_pins[] = { PIN(GPIOW_3, EE_OFF) }; +static const unsigned int hdmirx_hpd_d_pins[] = { GPIOW_0 }; +static const unsigned int hdmirx_det_d_pins[] = { GPIOW_1 }; +static const unsigned int hdmirx_sda_d_pins[] = { GPIOW_2 }; +static const unsigned int hdmirx_sck_d_pins[] = { GPIOW_3 }; /* audin */ -static const unsigned int audin_lrclk_h7_pins[] = { PIN(GPIOH_7, EE_OFF) }; -static const unsigned int audin_sclk_h8_pins[] = { PIN(GPIOH_8, EE_OFF) }; -static const unsigned int audin_mclk_h_pins[] = { PIN(GPIOH_9, EE_OFF) }; -static const unsigned int audin_lrclkin_h7_pins[] = { PIN(GPIOH_7, EE_OFF) }; -static const unsigned int audin_sclkin_h8_pins[] = { PIN(GPIOH_8, EE_OFF) }; +static const unsigned int audin_lrclk_h7_pins[] = { GPIOH_7 }; +static const unsigned int audin_sclk_h8_pins[] = { GPIOH_8 }; +static const unsigned int audin_mclk_h_pins[] = { GPIOH_9 }; +static const unsigned int audin_lrclkin_h7_pins[] = { GPIOH_7 }; +static const unsigned int audin_sclkin_h8_pins[] = { GPIOH_8 }; -static const unsigned int audin_lrclk_z9_pins[] = { PIN(GPIOZ_9, EE_OFF) }; -static const unsigned int audin_sclk_z8_pins[] = { PIN(GPIOZ_8, EE_OFF) }; -static const unsigned int audin_mclk_z_pins[] = { PIN(GPIOZ_4, EE_OFF) }; -static const unsigned int audin_lrclkin_z9_pins[] = { PIN(GPIOZ_9, EE_OFF) }; -static const unsigned int audin_sclkin_z8_pins[] = { PIN(GPIOZ_8, EE_OFF) }; +static const unsigned int audin_lrclk_z9_pins[] = { GPIOZ_9 }; +static const unsigned int audin_sclk_z8_pins[] = { GPIOZ_8 }; +static const unsigned int audin_mclk_z_pins[] = { GPIOZ_4 }; +static const unsigned int audin_lrclkin_z9_pins[] = { GPIOZ_9 }; +static const unsigned int audin_sclkin_z8_pins[] = { GPIOZ_8 }; /* i2s */ -static const unsigned int i2s_lrclk_h_pins[] = { PIN(GPIOH_7, EE_OFF) }; -static const unsigned int i2s_sclk_h_pins[] = { PIN(GPIOH_8, EE_OFF) }; -static const unsigned int i2s_mclk_h_pins[] = { PIN(GPIOH_9, EE_OFF) }; -static const unsigned int i2s_dout01_h6_pins[] = { PIN(GPIOH_6, EE_OFF) }; -static const unsigned int i2s_dout23_h5_pins[] = { PIN(GPIOH_5, EE_OFF) }; -static const unsigned int i2s_dout45_h4_pins[] = { PIN(GPIOH_4, EE_OFF) }; -static const unsigned int i2s_dout67_h0_pins[] = { PIN(GPIOH_0, EE_OFF) }; -static const unsigned int i2s_din01_h6_pins[] = { PIN(GPIOH_6, EE_OFF) }; -static const unsigned int i2s_din23_h5_pins[] = { PIN(GPIOH_5, EE_OFF) }; -static const unsigned int i2s_din45_h4_pins[] = { PIN(GPIOH_4, EE_OFF) }; -static const unsigned int i2s_din67_h0_pins[] = { PIN(GPIOH_0, EE_OFF) }; +static const unsigned int i2s_lrclk_h_pins[] = { GPIOH_7 }; +static const unsigned int i2s_sclk_h_pins[] = { GPIOH_8 }; +static const unsigned int i2s_mclk_h_pins[] = { GPIOH_9 }; +static const unsigned int i2s_dout01_h6_pins[] = { GPIOH_6 }; +static const unsigned int i2s_dout23_h5_pins[] = { GPIOH_5 }; +static const unsigned int i2s_dout45_h4_pins[] = { GPIOH_4 }; +static const unsigned int i2s_dout67_h0_pins[] = { GPIOH_0 }; +static const unsigned int i2s_din01_h6_pins[] = { GPIOH_6 }; +static const unsigned int i2s_din23_h5_pins[] = { GPIOH_5 }; +static const unsigned int i2s_din45_h4_pins[] = { GPIOH_4 }; +static const unsigned int i2s_din67_h0_pins[] = { GPIOH_0 }; -static const unsigned int i2s_lrclk_z_pins[] = { PIN(GPIOZ_12, EE_OFF) }; -static const unsigned int i2s_sclk_z_pins[] = { PIN(GPIOZ_11, EE_OFF) }; -static const unsigned int i2s_mclk_z_pins[] = { PIN(GPIOZ_10, EE_OFF) }; -static const unsigned int i2s_dout01_z_pins[] = { PIN(GPIOZ_14, EE_OFF) }; -static const unsigned int i2s_dout23_z15_pins[] = { PIN(GPIOZ_15, EE_OFF) }; -static const unsigned int i2s_dout45_z_pins[] = { PIN(GPIOZ_16, EE_OFF) }; -static const unsigned int i2s_dout67_z19_pins[] = { PIN(GPIOZ_19, EE_OFF) }; -static const unsigned int i2s_din01_z_pins[] = { PIN(GPIOZ_13, EE_OFF) }; -static const unsigned int i2s_din23_z15_pins[] = { PIN(GPIOZ_15, EE_OFF) }; -static const unsigned int i2s_din45_z_pins[] = { PIN(GPIOZ_18, EE_OFF) }; -static const unsigned int i2s_din67_z19_pins[] = { PIN(GPIOZ_19, EE_OFF) }; +static const unsigned int i2s_lrclk_z_pins[] = { GPIOZ_12 }; +static const unsigned int i2s_sclk_z_pins[] = { GPIOZ_11 }; +static const unsigned int i2s_mclk_z_pins[] = { GPIOZ_10 }; +static const unsigned int i2s_dout01_z_pins[] = { GPIOZ_14 }; +static const unsigned int i2s_dout23_z15_pins[] = { GPIOZ_15 }; +static const unsigned int i2s_dout45_z_pins[] = { GPIOZ_16 }; +static const unsigned int i2s_dout67_z19_pins[] = { GPIOZ_19 }; +static const unsigned int i2s_din01_z_pins[] = { GPIOZ_13 }; +static const unsigned int i2s_din23_z15_pins[] = { GPIOZ_15 }; +static const unsigned int i2s_din45_z_pins[] = { GPIOZ_18 }; +static const unsigned int i2s_din67_z19_pins[] = { GPIOZ_19 }; /* acodec_i2s */ -static const unsigned int a_i2s_mclk_pins[] = { PIN(GPIOZ_10, EE_OFF) }; -static const unsigned int a_i2s_sclkin_pins[] = { PIN(GPIOZ_11, EE_OFF) }; -static const unsigned int a_i2s_lrclkin_pins[] = { PIN(GPIOZ_12, EE_OFF) }; -static const unsigned int a_i2s_din01_pins[] = { PIN(GPIOZ_13, EE_OFF) }; -static const unsigned int a_i2s_din23_pins[] = { PIN(GPIOZ_14, EE_OFF) }; +static const unsigned int a_i2s_mclk_pins[] = { GPIOZ_10 }; +static const unsigned int a_i2s_sclkin_pins[] = { GPIOZ_11 }; +static const unsigned int a_i2s_lrclkin_pins[] = { GPIOZ_12 }; +static const unsigned int a_i2s_din01_pins[] = { GPIOZ_13 }; +static const unsigned int a_i2s_din23_pins[] = { GPIOZ_14 }; /* lcd */ static const unsigned int lcd_r0_1_pins[] = { - PIN(GPIOY_0, EE_OFF), PIN(GPIOY_1, EE_OFF), + GPIOY_0, GPIOY_1, }; static const unsigned int lcd_r2_7_pins[] = { - PIN(GPIOY_2, EE_OFF), PIN(GPIOY_3, EE_OFF), - PIN(GPIOY_4, EE_OFF), PIN(GPIOY_5, EE_OFF), - PIN(GPIOY_6, EE_OFF), PIN(GPIOY_7, EE_OFF), + GPIOY_2, GPIOY_3, + GPIOY_4, GPIOY_5, + GPIOY_6, GPIOY_7, }; static const unsigned int lcd_g0_1_pins[] = { - PIN(GPIOY_8, EE_OFF), PIN(GPIOY_9, EE_OFF), + GPIOY_8, GPIOY_9, }; static const unsigned int lcd_g2_7_pins[] = { - PIN(GPIOY_10, EE_OFF), PIN(GPIOY_11, EE_OFF), - PIN(GPIOY_12, EE_OFF), PIN(GPIOY_13, EE_OFF), - PIN(GPIOY_14, EE_OFF), PIN(GPIOY_15, EE_OFF), + GPIOY_10, GPIOY_11, + GPIOY_12, GPIOY_13, + GPIOY_14, GPIOY_15, }; static const unsigned int lcd_b0_1_pins[] = { - PIN(GPIOY_16, EE_OFF), PIN(GPIOY_17, EE_OFF), + GPIOY_16, GPIOY_17, }; static const unsigned int lcd_b2_7_pins[] = { - PIN(GPIOY_18, EE_OFF), PIN(GPIOY_19, EE_OFF), - PIN(GPIOY_20, EE_OFF), PIN(GPIOY_21, EE_OFF), - PIN(GPIOY_22, EE_OFF), PIN(GPIOY_23, EE_OFF), + GPIOY_18, GPIOY_19, + GPIOY_20, GPIOY_21, + GPIOY_22, GPIOY_23, }; -static const unsigned int lcd_hs_pins[] = { PIN(GPIOY_26, EE_OFF) }; -static const unsigned int lcd_vs_pins[] = { PIN(GPIOY_27, EE_OFF) }; +static const unsigned int lcd_hs_pins[] = { GPIOY_26 }; +static const unsigned int lcd_vs_pins[] = { GPIOY_27 }; /* tcon */ -static const unsigned int tcon_oeh_pins[] = { PIN(GPIOY_25, EE_OFF) }; -static const unsigned int tcon_oev_pins[] = { PIN(GPIOY_0, EE_OFF) }; -static const unsigned int tcon_cpv_pins[] = { PIN(GPIOY_1, EE_OFF) }; -static const unsigned int tcon_cph_y24_pins[] = { PIN(GPIOY_24, EE_OFF) }; -static const unsigned int tcon_clko_y24_pins[] = { PIN(GPIOY_24, EE_OFF) }; -static const unsigned int tcon_vcom_y8_pins[] = { PIN(GPIOY_8, EE_OFF) }; -static const unsigned int tcon_vcom_y26_pins[] = { PIN(GPIOY_26, EE_OFF) }; +static const unsigned int tcon_oeh_pins[] = { GPIOY_25 }; +static const unsigned int tcon_oev_pins[] = { GPIOY_0 }; +static const unsigned int tcon_cpv_pins[] = { GPIOY_1 }; +static const unsigned int tcon_cph_y24_pins[] = { GPIOY_24 }; +static const unsigned int tcon_clko_y24_pins[] = { GPIOY_24 }; +static const unsigned int tcon_vcom_y8_pins[] = { GPIOY_8 }; +static const unsigned int tcon_vcom_y26_pins[] = { GPIOY_26 }; /* tsout */ -static const unsigned int tsout_fail_pins[] = { PIN(GPIOY_4, EE_OFF) }; -static const unsigned int tsout_valid_pins[] = { PIN(GPIOY_23, EE_OFF) }; -static const unsigned int tsout_sop_pins[] = { PIN(GPIOY_24, EE_OFF) }; -static const unsigned int tsout_clk_pins[] = { PIN(GPIOY_21, EE_OFF) }; -static const unsigned int tsout_d0_pins[] = { PIN(GPIOY_25, EE_OFF) }; -static const unsigned int tsout_d1_pins[] = { PIN(GPIOY_26, EE_OFF) }; -static const unsigned int tsout_d2_pins[] = { PIN(GPIOY_27, EE_OFF) }; -static const unsigned int tsout_d3_pins[] = { PIN(GPIOY_5, EE_OFF) }; -static const unsigned int tsout_d4_pins[] = { PIN(GPIOY_6, EE_OFF) }; -static const unsigned int tsout_d5_pins[] = { PIN(GPIOY_7, EE_OFF) }; -static const unsigned int tsout_d6_pins[] = { PIN(GPIOY_8, EE_OFF) }; -static const unsigned int tsout_d7_pins[] = { PIN(GPIOY_9, EE_OFF) }; +static const unsigned int tsout_fail_pins[] = { GPIOY_4 }; +static const unsigned int tsout_valid_pins[] = { GPIOY_23 }; +static const unsigned int tsout_sop_pins[] = { GPIOY_24 }; +static const unsigned int tsout_clk_pins[] = { GPIOY_21 }; +static const unsigned int tsout_d0_pins[] = { GPIOY_25 }; +static const unsigned int tsout_d1_pins[] = { GPIOY_26 }; +static const unsigned int tsout_d2_pins[] = { GPIOY_27 }; +static const unsigned int tsout_d3_pins[] = { GPIOY_5 }; +static const unsigned int tsout_d4_pins[] = { GPIOY_6 }; +static const unsigned int tsout_d5_pins[] = { GPIOY_7 }; +static const unsigned int tsout_d6_pins[] = { GPIOY_8 }; +static const unsigned int tsout_d7_pins[] = { GPIOY_9 }; /* eth */ -static const unsigned int eth_mdio_pins[] = { PIN(GPIOY_4, EE_OFF) }; -static const unsigned int eth_mdc_pins[] = { PIN(GPIOY_5, EE_OFF) }; -static const unsigned int eth_rgmii_rx_clk_pins[] = { PIN(GPIOY_6, EE_OFF) }; -static const unsigned int eth_rx_dv_pins[] = { PIN(GPIOY_7, EE_OFF) }; -static const unsigned int eth_rxd0_pins[] = { PIN(GPIOY_8, EE_OFF) }; -static const unsigned int eth_rxd1_pins[] = { PIN(GPIOY_9, EE_OFF) }; -static const unsigned int eth_rxd2_pins[] = { PIN(GPIOY_10, EE_OFF) }; -static const unsigned int eth_rxd3_pins[] = { PIN(GPIOY_11, EE_OFF) }; -static const unsigned int eth_rgmii_tx_clk_pins[] = { PIN(GPIOY_12, EE_OFF) }; -static const unsigned int eth_tx_en_pins[] = { PIN(GPIOY_13, EE_OFF) }; -static const unsigned int eth_txd0_pins[] = { PIN(GPIOY_14, EE_OFF) }; -static const unsigned int eth_txd1_pins[] = { PIN(GPIOY_15, EE_OFF) }; -static const unsigned int eth_txd2_pins[] = { PIN(GPIOY_16, EE_OFF) }; -static const unsigned int eth_txd3_pins[] = { PIN(GPIOY_17, EE_OFF) }; -static const unsigned int eth_link_led_pins[] = { PIN(GPIOZ_18, EE_OFF) }; -static const unsigned int eth_act_led_pins[] = { PIN(GPIOZ_19, EE_OFF) }; +static const unsigned int eth_mdio_pins[] = { GPIOY_4 }; +static const unsigned int eth_mdc_pins[] = { GPIOY_5 }; +static const unsigned int eth_rgmii_rx_clk_pins[] = { GPIOY_6 }; +static const unsigned int eth_rx_dv_pins[] = { GPIOY_7 }; +static const unsigned int eth_rxd0_pins[] = { GPIOY_8 }; +static const unsigned int eth_rxd1_pins[] = { GPIOY_9 }; +static const unsigned int eth_rxd2_pins[] = { GPIOY_10 }; +static const unsigned int eth_rxd3_pins[] = { GPIOY_11 }; +static const unsigned int eth_rgmii_tx_clk_pins[] = { GPIOY_12 }; +static const unsigned int eth_tx_en_pins[] = { GPIOY_13 }; +static const unsigned int eth_txd0_pins[] = { GPIOY_14 }; +static const unsigned int eth_txd1_pins[] = { GPIOY_15 }; +static const unsigned int eth_txd2_pins[] = { GPIOY_16 }; +static const unsigned int eth_txd3_pins[] = { GPIOY_17 }; +static const unsigned int eth_link_led_pins[] = { GPIOZ_18 }; +static const unsigned int eth_act_led_pins[] = { GPIOZ_19 }; /* vbyone */ -static const unsigned int vx1_lockn_pins[] = { PIN(GPIOH_0, EE_OFF) }; -static const unsigned int vx1_htpdn_pins[] = { PIN(GPIOH_1, EE_OFF) }; +static const unsigned int vx1_lockn_pins[] = { GPIOH_0 }; +static const unsigned int vx1_htpdn_pins[] = { GPIOH_1 }; static struct meson_pmx_group meson_txlx_periphs_groups[] = { - GPIO_GROUP(GPIOZ_0, EE_OFF), - GPIO_GROUP(GPIOZ_1, EE_OFF), - GPIO_GROUP(GPIOZ_2, EE_OFF), - GPIO_GROUP(GPIOZ_3, EE_OFF), - GPIO_GROUP(GPIOZ_4, EE_OFF), - GPIO_GROUP(GPIOZ_5, EE_OFF), - GPIO_GROUP(GPIOZ_6, EE_OFF), - GPIO_GROUP(GPIOZ_7, EE_OFF), - GPIO_GROUP(GPIOZ_8, EE_OFF), - GPIO_GROUP(GPIOZ_9, EE_OFF), - GPIO_GROUP(GPIOZ_10, EE_OFF), - GPIO_GROUP(GPIOZ_11, EE_OFF), - GPIO_GROUP(GPIOZ_12, EE_OFF), - GPIO_GROUP(GPIOZ_13, EE_OFF), - GPIO_GROUP(GPIOZ_14, EE_OFF), - GPIO_GROUP(GPIOZ_15, EE_OFF), - GPIO_GROUP(GPIOZ_16, EE_OFF), - GPIO_GROUP(GPIOZ_17, EE_OFF), - GPIO_GROUP(GPIOZ_18, EE_OFF), - GPIO_GROUP(GPIOZ_19, EE_OFF), - GPIO_GROUP(GPIOH_0, EE_OFF), - GPIO_GROUP(GPIOH_1, EE_OFF), - GPIO_GROUP(GPIOH_2, EE_OFF), - GPIO_GROUP(GPIOH_3, EE_OFF), - GPIO_GROUP(GPIOH_4, EE_OFF), - GPIO_GROUP(GPIOH_5, EE_OFF), - GPIO_GROUP(GPIOH_6, EE_OFF), - GPIO_GROUP(GPIOH_7, EE_OFF), - GPIO_GROUP(GPIOH_8, EE_OFF), - GPIO_GROUP(GPIOH_9, EE_OFF), - GPIO_GROUP(GPIOH_10, EE_OFF), - GPIO_GROUP(BOOT_0, EE_OFF), - GPIO_GROUP(BOOT_1, EE_OFF), - GPIO_GROUP(BOOT_2, EE_OFF), - GPIO_GROUP(BOOT_3, EE_OFF), - GPIO_GROUP(BOOT_4, EE_OFF), - GPIO_GROUP(BOOT_5, EE_OFF), - GPIO_GROUP(BOOT_6, EE_OFF), - GPIO_GROUP(BOOT_7, EE_OFF), - GPIO_GROUP(BOOT_8, EE_OFF), - GPIO_GROUP(BOOT_9, EE_OFF), - GPIO_GROUP(BOOT_10, EE_OFF), - GPIO_GROUP(BOOT_11, EE_OFF), - GPIO_GROUP(GPIOC_0, EE_OFF), - GPIO_GROUP(GPIOC_1, EE_OFF), - GPIO_GROUP(GPIOC_2, EE_OFF), - GPIO_GROUP(GPIOC_3, EE_OFF), - GPIO_GROUP(GPIOC_4, EE_OFF), - GPIO_GROUP(GPIOC_5, EE_OFF), - GPIO_GROUP(GPIODV_0, EE_OFF), - GPIO_GROUP(GPIODV_1, EE_OFF), - GPIO_GROUP(GPIODV_2, EE_OFF), - GPIO_GROUP(GPIODV_3, EE_OFF), - GPIO_GROUP(GPIODV_4, EE_OFF), - GPIO_GROUP(GPIODV_5, EE_OFF), - GPIO_GROUP(GPIODV_6, EE_OFF), - GPIO_GROUP(GPIODV_7, EE_OFF), - GPIO_GROUP(GPIODV_8, EE_OFF), - GPIO_GROUP(GPIODV_9, EE_OFF), - GPIO_GROUP(GPIODV_10, EE_OFF), - GPIO_GROUP(GPIOW_0, EE_OFF), - GPIO_GROUP(GPIOW_1, EE_OFF), - GPIO_GROUP(GPIOW_2, EE_OFF), - GPIO_GROUP(GPIOW_3, EE_OFF), - GPIO_GROUP(GPIOW_4, EE_OFF), - GPIO_GROUP(GPIOW_5, EE_OFF), - GPIO_GROUP(GPIOW_6, EE_OFF), - GPIO_GROUP(GPIOW_7, EE_OFF), - GPIO_GROUP(GPIOW_8, EE_OFF), - GPIO_GROUP(GPIOW_9, EE_OFF), - GPIO_GROUP(GPIOW_10, EE_OFF), - GPIO_GROUP(GPIOW_11, EE_OFF), - GPIO_GROUP(GPIOW_12, EE_OFF), - GPIO_GROUP(GPIOW_13, EE_OFF), - GPIO_GROUP(GPIOW_14, EE_OFF), - GPIO_GROUP(GPIOW_15, EE_OFF), - GPIO_GROUP(GPIOY_0, EE_OFF), - GPIO_GROUP(GPIOY_1, EE_OFF), - GPIO_GROUP(GPIOY_2, EE_OFF), - GPIO_GROUP(GPIOY_3, EE_OFF), - GPIO_GROUP(GPIOY_4, EE_OFF), - GPIO_GROUP(GPIOY_5, EE_OFF), - GPIO_GROUP(GPIOY_6, EE_OFF), - GPIO_GROUP(GPIOY_7, EE_OFF), - GPIO_GROUP(GPIOY_8, EE_OFF), - GPIO_GROUP(GPIOY_9, EE_OFF), - GPIO_GROUP(GPIOY_10, EE_OFF), - GPIO_GROUP(GPIOY_11, EE_OFF), - GPIO_GROUP(GPIOY_12, EE_OFF), - GPIO_GROUP(GPIOY_13, EE_OFF), - GPIO_GROUP(GPIOY_14, EE_OFF), - GPIO_GROUP(GPIOY_15, EE_OFF), - GPIO_GROUP(GPIOY_16, EE_OFF), - GPIO_GROUP(GPIOY_17, EE_OFF), - GPIO_GROUP(GPIOY_18, EE_OFF), - GPIO_GROUP(GPIOY_19, EE_OFF), - GPIO_GROUP(GPIOY_20, EE_OFF), - GPIO_GROUP(GPIOY_21, EE_OFF), - GPIO_GROUP(GPIOY_22, EE_OFF), - GPIO_GROUP(GPIOY_23, EE_OFF), - GPIO_GROUP(GPIOY_24, EE_OFF), - GPIO_GROUP(GPIOY_25, EE_OFF), - GPIO_GROUP(GPIOY_26, EE_OFF), - GPIO_GROUP(GPIOY_27, EE_OFF), + GPIO_GROUP(GPIOZ_0), + GPIO_GROUP(GPIOZ_1), + GPIO_GROUP(GPIOZ_2), + GPIO_GROUP(GPIOZ_3), + GPIO_GROUP(GPIOZ_4), + GPIO_GROUP(GPIOZ_5), + GPIO_GROUP(GPIOZ_6), + GPIO_GROUP(GPIOZ_7), + GPIO_GROUP(GPIOZ_8), + GPIO_GROUP(GPIOZ_9), + GPIO_GROUP(GPIOZ_10), + GPIO_GROUP(GPIOZ_11), + GPIO_GROUP(GPIOZ_12), + GPIO_GROUP(GPIOZ_13), + GPIO_GROUP(GPIOZ_14), + GPIO_GROUP(GPIOZ_15), + GPIO_GROUP(GPIOZ_16), + GPIO_GROUP(GPIOZ_17), + GPIO_GROUP(GPIOZ_18), + GPIO_GROUP(GPIOZ_19), + GPIO_GROUP(GPIOH_0), + GPIO_GROUP(GPIOH_1), + GPIO_GROUP(GPIOH_2), + GPIO_GROUP(GPIOH_3), + GPIO_GROUP(GPIOH_4), + GPIO_GROUP(GPIOH_5), + GPIO_GROUP(GPIOH_6), + GPIO_GROUP(GPIOH_7), + GPIO_GROUP(GPIOH_8), + GPIO_GROUP(GPIOH_9), + GPIO_GROUP(GPIOH_10), + GPIO_GROUP(BOOT_0), + GPIO_GROUP(BOOT_1), + GPIO_GROUP(BOOT_2), + GPIO_GROUP(BOOT_3), + GPIO_GROUP(BOOT_4), + GPIO_GROUP(BOOT_5), + GPIO_GROUP(BOOT_6), + GPIO_GROUP(BOOT_7), + GPIO_GROUP(BOOT_8), + GPIO_GROUP(BOOT_9), + GPIO_GROUP(BOOT_10), + GPIO_GROUP(BOOT_11), + GPIO_GROUP(GPIOC_0), + GPIO_GROUP(GPIOC_1), + GPIO_GROUP(GPIOC_2), + GPIO_GROUP(GPIOC_3), + GPIO_GROUP(GPIOC_4), + GPIO_GROUP(GPIOC_5), + GPIO_GROUP(GPIODV_0), + GPIO_GROUP(GPIODV_1), + GPIO_GROUP(GPIODV_2), + GPIO_GROUP(GPIODV_3), + GPIO_GROUP(GPIODV_4), + GPIO_GROUP(GPIODV_5), + GPIO_GROUP(GPIODV_6), + GPIO_GROUP(GPIODV_7), + GPIO_GROUP(GPIODV_8), + GPIO_GROUP(GPIODV_9), + GPIO_GROUP(GPIODV_10), + GPIO_GROUP(GPIOW_0), + GPIO_GROUP(GPIOW_1), + GPIO_GROUP(GPIOW_2), + GPIO_GROUP(GPIOW_3), + GPIO_GROUP(GPIOW_4), + GPIO_GROUP(GPIOW_5), + GPIO_GROUP(GPIOW_6), + GPIO_GROUP(GPIOW_7), + GPIO_GROUP(GPIOW_8), + GPIO_GROUP(GPIOW_9), + GPIO_GROUP(GPIOW_10), + GPIO_GROUP(GPIOW_11), + GPIO_GROUP(GPIOW_12), + GPIO_GROUP(GPIOW_13), + GPIO_GROUP(GPIOW_14), + GPIO_GROUP(GPIOW_15), + GPIO_GROUP(GPIOY_0), + GPIO_GROUP(GPIOY_1), + GPIO_GROUP(GPIOY_2), + GPIO_GROUP(GPIOY_3), + GPIO_GROUP(GPIOY_4), + GPIO_GROUP(GPIOY_5), + GPIO_GROUP(GPIOY_6), + GPIO_GROUP(GPIOY_7), + GPIO_GROUP(GPIOY_8), + GPIO_GROUP(GPIOY_9), + GPIO_GROUP(GPIOY_10), + GPIO_GROUP(GPIOY_11), + GPIO_GROUP(GPIOY_12), + GPIO_GROUP(GPIOY_13), + GPIO_GROUP(GPIOY_14), + GPIO_GROUP(GPIOY_15), + GPIO_GROUP(GPIOY_16), + GPIO_GROUP(GPIOY_17), + GPIO_GROUP(GPIOY_18), + GPIO_GROUP(GPIOY_19), + GPIO_GROUP(GPIOY_20), + GPIO_GROUP(GPIOY_21), + GPIO_GROUP(GPIOY_22), + GPIO_GROUP(GPIOY_23), + GPIO_GROUP(GPIOY_24), + GPIO_GROUP(GPIOY_25), + GPIO_GROUP(GPIOY_26), + GPIO_GROUP(GPIOY_27), /* Bank DV */ GROUP(i2c1_sda, 2, 25), GROUP(i2c1_sck, 2, 24), - GROUP(i2c_s_sda_ao_dv, 9, 17), - GROUP(i2c_s_sck_ao_dv, 9, 16), - GROUP(pwm_d_dv, 2, 20), - GROUP(pwm_vs_dv, 2, 17), - GROUP(pwm_e_dv, 9, 24), - GROUP(pwm_f_dv, 9, 15), - GROUP(tsin_d0_a_dv, 2, 30), + GROUP(i2c_s_sda_ao_dv, 9, 17), + GROUP(i2c_s_sck_ao_dv, 9, 16), + GROUP(pwm_d_dv, 2, 20), + GROUP(pwm_vs_dv, 2, 17), + GROUP(pwm_e_dv, 9, 24), + GROUP(pwm_f_dv, 9, 15), + GROUP(tsin_d0_a_dv, 2, 30), GROUP(tsin_clk_a_dv, 2, 29), GROUP(tsin_sop_a_dv, 2, 28), GROUP(tsin_valid_a_dv, 2, 27), - GROUP(tsin_d1_7_a, 2, 31), + GROUP(tsin_d1_7_a, 2, 31), GROUP(atv_if_agc_dv, 2, 23), GROUP(dtv_if_agc_dv2, 2, 22), GROUP(dtv_if_agc_dv3, 9, 31), GROUP(dtv_rf_agc_dv3, 2, 21), GROUP(spi_miso_b_dv, 9, 29), GROUP(spi_mosi_b_dv, 9, 30), - GROUP(spi_clk_b_dv, 9, 28), - GROUP(spi_ss0_b_dv, 9, 27), - GROUP(spi_ss1_b_dv, 9, 26), - GROUP(spi_ss2_b_dv, 9, 25), - GROUP(pcm_clk_a_dv, 9, 23), - GROUP(pcm_fs_a_dv, 9, 22), - GROUP(pcm_in_a_dv, 9, 21), - GROUP(pcm_out_a_dv, 9, 20), - GROUP(uart_tx_a, 2, 14), - GROUP(uart_rx_a, 2, 13), - GROUP(uart_cts_a, 2, 12), - GROUP(uart_rts_a, 2, 11), - GROUP(spdif_out_dv, 9, 14), + GROUP(spi_clk_b_dv, 9, 28), + GROUP(spi_ss0_b_dv, 9, 27), + GROUP(spi_ss1_b_dv, 9, 26), + GROUP(spi_ss2_b_dv, 9, 25), + GROUP(pcm_clk_a_dv, 9, 23), + GROUP(pcm_fs_a_dv, 9, 22), + GROUP(pcm_in_a_dv, 9, 21), + GROUP(pcm_out_a_dv, 9, 20), + GROUP(uart_tx_a, 2, 14), + GROUP(uart_rx_a, 2, 13), + GROUP(uart_cts_a, 2, 12), + GROUP(uart_rts_a, 2, 11), + GROUP(spdif_out_dv, 9, 14), /* Bank C */ - GROUP(sdcard_d1_c, 6, 5), - GROUP(sdcard_d0_c, 6, 4), - GROUP(sdcard_clk_c, 6, 3), - GROUP(sdcard_cmd_c, 6, 2), - GROUP(sdcard_d3_c, 6, 0), - GROUP(sdcard_d2_c, 6, 1), - GROUP(spi_miso_b_c, 6, 20), - GROUP(spi_mosi_b_c, 6, 18), - GROUP(spi_clk_b_c, 6, 19), - GROUP(spi_ss0_b_c, 6, 21), - GROUP(spi_ss1_b_c, 6, 17), - GROUP(spi_ss2_b_c, 6, 16), + GROUP(sdcard_d1_c, 6, 5), + GROUP(sdcard_d0_c, 6, 4), + GROUP(sdcard_clk_c, 6, 3), + GROUP(sdcard_cmd_c, 6, 2), + GROUP(sdcard_d3_c, 6, 0), + GROUP(sdcard_d2_c, 6, 1), + GROUP(spi_miso_b_c, 6, 20), + GROUP(spi_mosi_b_c, 6, 18), + GROUP(spi_clk_b_c, 6, 19), + GROUP(spi_ss0_b_c, 6, 21), + GROUP(spi_ss1_b_c, 6, 17), + GROUP(spi_ss2_b_c, 6, 16), GROUP(uart_tx_ao_a_c4, 6, 9), GROUP(uart_rx_ao_a_c5, 6, 8), GROUP(uart_rx_ao_a_c4, 6, 11), @@ -667,174 +665,174 @@ static struct meson_pmx_group meson_txlx_periphs_groups[] = { /* Bank H */ GROUP(i2c_s_sda_ao_h, 0, 1), GROUP(i2c_s_sck_ao_h, 0, 2), - GROUP(pwm_e_h, 0, 26), - GROUP(pwm_f_h, 10, 1), - GROUP(atv_if_agc_h, 10, 3), - GROUP(spdif_out_h, 10, 0), - GROUP(spdif_in_h, 0, 20), - GROUP(i2c2_sck, 0, 29), - GROUP(i2c2_sda, 0, 28), - GROUP(hdmitx_hpd, 0, 23), - GROUP(hdmitx_sck, 0, 22), - GROUP(hdmitx_sda, 0, 21), - GROUP(uart_tx_b_h, 0, 25), - GROUP(uart_rx_b_h, 0, 24), + GROUP(pwm_e_h, 0, 26), + GROUP(pwm_f_h, 10, 1), + GROUP(atv_if_agc_h, 10, 3), + GROUP(spdif_out_h, 10, 0), + GROUP(spdif_in_h, 0, 20), + GROUP(i2c2_sck, 0, 29), + GROUP(i2c2_sda, 0, 28), + GROUP(hdmitx_hpd, 0, 23), + GROUP(hdmitx_sck, 0, 22), + GROUP(hdmitx_sda, 0, 21), + GROUP(uart_tx_b_h, 0, 25), + GROUP(uart_rx_b_h, 0, 24), GROUP(audin_lrclk_h7, 0, 5), GROUP(audin_sclk_h8, 0, 4), - GROUP(audin_mclk_h, 0, 3), + GROUP(audin_mclk_h, 0, 3), GROUP(audin_lrclkin_h7, 0, 7), GROUP(audin_sclkin_h8, 0, 6), - GROUP(i2s_lrclk_h, 0, 14), - GROUP(i2s_sclk_h, 0, 13), - GROUP(i2s_mclk_h, 0, 12), + GROUP(i2s_lrclk_h, 0, 14), + GROUP(i2s_sclk_h, 0, 13), + GROUP(i2s_mclk_h, 0, 12), GROUP(i2s_dout01_h6, 0, 15), GROUP(i2s_dout23_h5, 0, 16), GROUP(i2s_dout45_h4, 0, 17), GROUP(i2s_dout67_h0, 0, 18), - GROUP(i2s_din01_h6, 0, 8), - GROUP(i2s_din23_h5, 0, 9), - GROUP(i2s_din45_h4, 0, 10), - GROUP(i2s_din67_h0, 0, 11), - GROUP(pwm_c_h, 10, 2), - GROUP(vx1_lockn, 0, 31), - GROUP(vx1_htpdn, 0, 30), + GROUP(i2s_din01_h6, 0, 8), + GROUP(i2s_din23_h5, 0, 9), + GROUP(i2s_din45_h4, 0, 10), + GROUP(i2s_din67_h0, 0, 11), + GROUP(pwm_c_h, 10, 2), + GROUP(vx1_lockn, 0, 31), + GROUP(vx1_htpdn, 0, 30), /* Bank BOOT */ GROUP(emmc_nand_d07, 7, 31), - GROUP(emmc_clk, 7, 30), - GROUP(emmc_cmd, 7, 29), - GROUP(emmc_ds, 7, 28), - GROUP(nor_d, 7, 13), - GROUP(nor_q, 7, 12), - GROUP(nor_c, 7, 11), - GROUP(nor_cs, 7, 10), + GROUP(emmc_clk, 7, 30), + GROUP(emmc_cmd, 7, 29), + GROUP(emmc_ds, 7, 28), + GROUP(nor_d, 7, 13), + GROUP(nor_q, 7, 12), + GROUP(nor_c, 7, 11), + GROUP(nor_cs, 7, 10), /* Bank Y */ - GROUP(pwm_e_y, 8, 13), - GROUP(tsin_d0_a_y, 1, 17), - GROUP(tsin_clk_a_y, 1, 18), - GROUP(tsin_sop_a_y, 1, 16), + GROUP(pwm_e_y, 8, 13), + GROUP(tsin_d0_a_y, 1, 17), + GROUP(tsin_clk_a_y, 1, 18), + GROUP(tsin_sop_a_y, 1, 16), GROUP(tsin_valid_a_y, 1, 15), - GROUP(tsin_d0_b, 1, 26), - GROUP(tsin_d1_b, 1, 25), - GROUP(tsin_d2_b, 1, 24), - GROUP(tsin_d3_b, 1, 23), - GROUP(tsin_d4_b, 1, 22), - GROUP(tsin_d5_b, 1, 21), - GROUP(tsin_d6_b, 1, 20), - GROUP(tsin_d7_b, 1, 19), - GROUP(tsin_clk_b, 1, 28), - GROUP(tsin_sop_b, 1, 20), - GROUP(tsin_valid_b, 1, 29), - GROUP(tsin_fail_b, 1, 27), - GROUP(lcd_r0_1, 8, 29), - GROUP(lcd_r2_7, 8, 28), - GROUP(lcd_g0_1, 8, 27), - GROUP(lcd_g2_7, 8, 26), - GROUP(lcd_b0_1, 8, 25), - GROUP(lcd_b2_7, 8, 24), - GROUP(lcd_hs, 8, 30), - GROUP(lcd_vs, 8, 31), - GROUP(tcon_oeh, 8, 22), - GROUP(tcon_oev, 8, 21), - GROUP(tcon_cpv, 8, 20), - GROUP(tcon_cph_y24, 8, 23), + GROUP(tsin_d0_b, 1, 26), + GROUP(tsin_d1_b, 1, 25), + GROUP(tsin_d2_b, 1, 24), + GROUP(tsin_d3_b, 1, 23), + GROUP(tsin_d4_b, 1, 22), + GROUP(tsin_d5_b, 1, 21), + GROUP(tsin_d6_b, 1, 20), + GROUP(tsin_d7_b, 1, 19), + GROUP(tsin_clk_b, 1, 28), + GROUP(tsin_sop_b, 1, 20), + GROUP(tsin_valid_b, 1, 29), + GROUP(tsin_fail_b, 1, 27), + GROUP(lcd_r0_1, 8, 29), + GROUP(lcd_r2_7, 8, 28), + GROUP(lcd_g0_1, 8, 27), + GROUP(lcd_g2_7, 8, 26), + GROUP(lcd_b0_1, 8, 25), + GROUP(lcd_b2_7, 8, 24), + GROUP(lcd_hs, 8, 30), + GROUP(lcd_vs, 8, 31), + GROUP(tcon_oeh, 8, 22), + GROUP(tcon_oev, 8, 21), + GROUP(tcon_cpv, 8, 20), + GROUP(tcon_cph_y24, 8, 23), GROUP(tcon_clko_y24, 8, 18), - GROUP(tcon_vcom_y8, 8, 19), + GROUP(tcon_vcom_y8, 8, 19), GROUP(tcon_vcom_y26, 8, 14), - GROUP(tsout_fail, 8, 12), - GROUP(tsout_valid, 8, 11), - GROUP(tsout_sop, 8, 10), - GROUP(tsout_clk, 8, 9), - GROUP(tsout_d0, 8, 8), - GROUP(tsout_d1, 8, 7), - GROUP(tsout_d2, 8, 6), - GROUP(tsout_d3, 8, 5), - GROUP(tsout_d4, 8, 4), - GROUP(tsout_d5, 8, 3), - GROUP(tsout_d6, 8, 2), - GROUP(tsout_d7, 8, 1), - GROUP(eth_mdio, 1, 8), - GROUP(eth_mdc, 1, 7), + GROUP(tsout_fail, 8, 12), + GROUP(tsout_valid, 8, 11), + GROUP(tsout_sop, 8, 10), + GROUP(tsout_clk, 8, 9), + GROUP(tsout_d0, 8, 8), + GROUP(tsout_d1, 8, 7), + GROUP(tsout_d2, 8, 6), + GROUP(tsout_d3, 8, 5), + GROUP(tsout_d4, 8, 4), + GROUP(tsout_d5, 8, 3), + GROUP(tsout_d6, 8, 2), + GROUP(tsout_d7, 8, 1), + GROUP(eth_mdio, 1, 8), + GROUP(eth_mdc, 1, 7), GROUP(eth_rgmii_rx_clk, 1, 14), - GROUP(eth_rx_dv, 1, 13), - GROUP(eth_rxd0, 1, 12), - GROUP(eth_rxd1, 1, 11), - GROUP(eth_rxd2, 1, 10), - GROUP(eth_rxd3, 1, 9), + GROUP(eth_rx_dv, 1, 13), + GROUP(eth_rxd0, 1, 12), + GROUP(eth_rxd1, 1, 11), + GROUP(eth_rxd2, 1, 10), + GROUP(eth_rxd3, 1, 9), GROUP(eth_rgmii_tx_clk, 1, 6), - GROUP(eth_tx_en, 1, 5), - GROUP(eth_txd0, 1, 4), - GROUP(eth_txd1, 1, 3), - GROUP(eth_txd2, 1, 2), - GROUP(eth_txd3, 1, 1), + GROUP(eth_tx_en, 1, 5), + GROUP(eth_txd0, 1, 4), + GROUP(eth_txd1, 1, 3), + GROUP(eth_txd2, 1, 2), + GROUP(eth_txd3, 1, 1), /* Bank Z */ - GROUP(sdcard_d1_z, 10, 22), - GROUP(sdcard_d0_z, 10, 21), - GROUP(sdcard_clk_z, 10, 20), - GROUP(sdcard_cmd_z, 10, 19), - GROUP(sdcard_d3_z, 10, 18), - GROUP(sdcard_d2_z, 10, 17), - GROUP(pwm_d_z, 3, 27), - GROUP(pwm_vs_z6, 4, 15), - GROUP(pwm_vs_z7, 4, 13), - GROUP(pwm_e_z, 4, 19), - GROUP(tsin_d0_a_z, 3, 15), - GROUP(tsin_clk_a_z, 3, 16), - GROUP(tsin_sop_a_z, 3, 14), + GROUP(sdcard_d1_z, 10, 22), + GROUP(sdcard_d0_z, 10, 21), + GROUP(sdcard_clk_z, 10, 20), + GROUP(sdcard_cmd_z, 10, 19), + GROUP(sdcard_d3_z, 10, 18), + GROUP(sdcard_d2_z, 10, 17), + GROUP(pwm_d_z, 3, 27), + GROUP(pwm_vs_z6, 4, 15), + GROUP(pwm_vs_z7, 4, 13), + GROUP(pwm_e_z, 4, 19), + GROUP(tsin_d0_a_z, 3, 15), + GROUP(tsin_clk_a_z, 3, 16), + GROUP(tsin_sop_a_z, 3, 14), GROUP(tsin_valid_a_z, 3, 13), - GROUP(pcm_clk_a_z, 3, 6), - GROUP(pcm_fs_a_z, 3, 5), - GROUP(pcm_in_a_z, 3, 4), - GROUP(pcm_out_a_z, 3, 3), - GROUP(spdif_out_z, 3, 30), - GROUP(spdif_in_z16, 3, 31), - GROUP(spdif_in_z18, 10, 23), - GROUP(uart_tx_b_z, 3, 25), - GROUP(uart_rx_b_z, 3, 24), - GROUP(uart_cts_b, 3, 23), - GROUP(uart_rts_b, 3, 22), + GROUP(pcm_clk_a_z, 3, 6), + GROUP(pcm_fs_a_z, 3, 5), + GROUP(pcm_in_a_z, 3, 4), + GROUP(pcm_out_a_z, 3, 3), + GROUP(spdif_out_z, 3, 30), + GROUP(spdif_in_z16, 3, 31), + GROUP(spdif_in_z18, 10, 23), + GROUP(uart_tx_b_z, 3, 25), + GROUP(uart_rx_b_z, 3, 24), + GROUP(uart_cts_b, 3, 23), + GROUP(uart_rts_b, 3, 22), GROUP(audin_lrclk_z9, 10, 26), GROUP(audin_sclk_z8, 10, 27), - GROUP(audin_mclk_z, 10, 28), + GROUP(audin_mclk_z, 10, 28), GROUP(audin_lrclkin_z9, 10, 24), GROUP(audin_sclkin_z8, 10, 25), - GROUP(i2s_lrclk_z, 4, 8), - GROUP(i2s_sclk_z, 4, 9), - GROUP(i2s_mclk_z, 4, 10), - GROUP(i2s_dout01_z, 4, 7), + GROUP(i2s_lrclk_z, 4, 8), + GROUP(i2s_sclk_z, 4, 9), + GROUP(i2s_mclk_z, 4, 10), + GROUP(i2s_dout01_z, 4, 7), GROUP(i2s_dout23_z15, 4, 6), - GROUP(i2s_dout45_z, 4, 5), + GROUP(i2s_dout45_z, 4, 5), GROUP(i2s_dout67_z19, 4, 4), - GROUP(i2s_din01_z, 4, 1), + GROUP(i2s_din01_z, 4, 1), GROUP(i2s_din23_z15, 3, 0), - GROUP(i2s_din45_z, 3, 2), + GROUP(i2s_din45_z, 3, 2), GROUP(i2s_din67_z19, 3, 1), - GROUP(eth_link_led, 3, 29), - GROUP(eth_act_led, 3, 28), - GROUP(spi_miso_a, 4, 30), - GROUP(spi_mosi_a, 4, 31), - GROUP(spi_clk_a, 4, 29), - GROUP(spi_ss0_a, 4, 28), - GROUP(spi_ss1_a, 4, 27), - GROUP(spi_ss2_a, 4, 26), - GROUP(i2c0_sda, 4, 11), - GROUP(i2c0_sck, 4, 12), - GROUP(uart_tx_c, 4, 25), - GROUP(uart_rx_c, 4, 24), - GROUP(uart_cts_c, 4, 23), - GROUP(uart_rts_c, 4, 22), - GROUP(pwm_a, 4, 17), - GROUP(pwm_b, 4, 16), - GROUP(pwm_c_z, 4, 14), - GROUP(i2c3_sda, 4, 21), - GROUP(i2c3_sck, 4, 20), - GROUP(a_i2s_mclk, 3, 20), - GROUP(a_i2s_sclkin, 3, 19), + GROUP(eth_link_led, 3, 29), + GROUP(eth_act_led, 3, 28), + GROUP(spi_miso_a, 4, 30), + GROUP(spi_mosi_a, 4, 31), + GROUP(spi_clk_a, 4, 29), + GROUP(spi_ss0_a, 4, 28), + GROUP(spi_ss1_a, 4, 27), + GROUP(spi_ss2_a, 4, 26), + GROUP(i2c0_sda, 4, 11), + GROUP(i2c0_sck, 4, 12), + GROUP(uart_tx_c, 4, 25), + GROUP(uart_rx_c, 4, 24), + GROUP(uart_cts_c, 4, 23), + GROUP(uart_rts_c, 4, 22), + GROUP(pwm_a, 4, 17), + GROUP(pwm_b, 4, 16), + GROUP(pwm_c_z, 4, 14), + GROUP(i2c3_sda, 4, 21), + GROUP(i2c3_sck, 4, 20), + GROUP(a_i2s_mclk, 3, 20), + GROUP(a_i2s_sclkin, 3, 19), GROUP(a_i2s_lrclkin, 3, 18), - GROUP(a_i2s_din01, 3, 17), - GROUP(a_i2s_din23, 4, 0), + GROUP(a_i2s_din01, 3, 17), + GROUP(a_i2s_din23, 4, 0), /* Bank W */ GROUP(uart_tx_ao_a_w2, 5, 15), @@ -845,105 +843,105 @@ static struct meson_pmx_group meson_txlx_periphs_groups[] = { GROUP(uart_rx_ao_a_w11, 5, 10), GROUP(uart_tx_ao_a_w14, 5, 9), GROUP(uart_rx_ao_a_w15, 5, 8), - GROUP(hdmirx_hpd_a, 5, 27), - GROUP(hdmirx_det_a, 5, 26), - GROUP(hdmirx_sda_a, 5, 25), - GROUP(hdmirx_sck_a, 5, 24), - GROUP(hdmirx_hpd_b, 5, 19), - GROUP(hdmirx_det_b, 5, 18), - GROUP(hdmirx_sda_b, 5, 17), - GROUP(hdmirx_sck_b, 5, 16), - GROUP(hdmirx_hpd_c, 5, 23), - GROUP(hdmirx_det_c, 5, 22), - GROUP(hdmirx_sda_c, 5, 21), - GROUP(hdmirx_sck_c, 5, 20), - GROUP(hdmirx_hpd_d, 5, 31), - GROUP(hdmirx_det_d, 5, 30), - GROUP(hdmirx_sda_d, 5, 29), - GROUP(hdmirx_sck_d, 5, 28), + GROUP(hdmirx_hpd_a, 5, 27), + GROUP(hdmirx_det_a, 5, 26), + GROUP(hdmirx_sda_a, 5, 25), + GROUP(hdmirx_sck_a, 5, 24), + GROUP(hdmirx_hpd_b, 5, 19), + GROUP(hdmirx_det_b, 5, 18), + GROUP(hdmirx_sda_b, 5, 17), + GROUP(hdmirx_sck_b, 5, 16), + GROUP(hdmirx_hpd_c, 5, 23), + GROUP(hdmirx_det_c, 5, 22), + GROUP(hdmirx_sda_c, 5, 21), + GROUP(hdmirx_sck_c, 5, 20), + GROUP(hdmirx_hpd_d, 5, 31), + GROUP(hdmirx_det_d, 5, 30), + GROUP(hdmirx_sda_d, 5, 29), + GROUP(hdmirx_sck_d, 5, 28), }; static const struct pinctrl_pin_desc meson_txlx_aobus_pins[] = { - MESON_PIN(GPIOAO_0, 0), - MESON_PIN(GPIOAO_1, 0), - MESON_PIN(GPIOAO_2, 0), - MESON_PIN(GPIOAO_3, 0), - MESON_PIN(GPIOAO_4, 0), - MESON_PIN(GPIOAO_5, 0), - MESON_PIN(GPIOAO_6, 0), - MESON_PIN(GPIOAO_7, 0), - MESON_PIN(GPIOAO_8, 0), - MESON_PIN(GPIOAO_9, 0), - MESON_PIN(GPIOAO_10, 0), - MESON_PIN(GPIOAO_11, 0), - MESON_PIN(GPIOAO_12, 0), - MESON_PIN(GPIOAO_13, 0), - MESON_PIN(GPIO_TEST_N, 0), + MESON_PIN(GPIOAO_0), + MESON_PIN(GPIOAO_1), + MESON_PIN(GPIOAO_2), + MESON_PIN(GPIOAO_3), + MESON_PIN(GPIOAO_4), + MESON_PIN(GPIOAO_5), + MESON_PIN(GPIOAO_6), + MESON_PIN(GPIOAO_7), + MESON_PIN(GPIOAO_8), + MESON_PIN(GPIOAO_9), + MESON_PIN(GPIOAO_10), + MESON_PIN(GPIOAO_11), + MESON_PIN(GPIOAO_12), + MESON_PIN(GPIOAO_13), + MESON_PIN(GPIO_TEST_N), }; /* uart_ao_a */ -static const unsigned int uart_tx_ao_a_pins[] = { PIN(GPIOAO_0, 0) }; -static const unsigned int uart_rx_ao_a_pins[] = { PIN(GPIOAO_1, 0) }; -static const unsigned int uart_cts_ao_a_pins[] = { PIN(GPIOAO_2, 0) }; -static const unsigned int uart_rts_ao_a_pins[] = { PIN(GPIOAO_3, 0) }; +static const unsigned int uart_tx_ao_a_pins[] = { GPIOAO_0 }; +static const unsigned int uart_rx_ao_a_pins[] = { GPIOAO_1 }; +static const unsigned int uart_cts_ao_a_pins[] = { GPIOAO_2 }; +static const unsigned int uart_rts_ao_a_pins[] = { GPIOAO_3 }; /* uart_ao_b */ -static const unsigned int uart_tx_ao_b_ao0_pins[] = { PIN(GPIOAO_0, 0) }; -static const unsigned int uart_rx_ao_b_ao1_pins[] = { PIN(GPIOAO_1, 0) }; -static const unsigned int uart_cts_ao_b_pins[] = { PIN(GPIOAO_2, 0) }; -static const unsigned int uart_rts_ao_b_pins[] = { PIN(GPIOAO_3, 0) }; +static const unsigned int uart_tx_ao_b_ao0_pins[] = { GPIOAO_0 }; +static const unsigned int uart_rx_ao_b_ao1_pins[] = { GPIOAO_1 }; +static const unsigned int uart_cts_ao_b_pins[] = { GPIOAO_2 }; +static const unsigned int uart_rts_ao_b_pins[] = { GPIOAO_3 }; -static const unsigned int uart_tx_ao_b_ao4_pins[] = { PIN(GPIOAO_4, 0) }; -static const unsigned int uart_rx_ao_b_ao5_pins[] = { PIN(GPIOAO_5, 0) }; +static const unsigned int uart_tx_ao_b_ao4_pins[] = { GPIOAO_4 }; +static const unsigned int uart_rx_ao_b_ao5_pins[] = { GPIOAO_5 }; -static const unsigned int uart_tx_ao_b_ao10_pins[] = { PIN(GPIOAO_10, 0) }; -static const unsigned int uart_rx_ao_b_ao11_pins[] = { PIN(GPIOAO_11, 0) }; +static const unsigned int uart_tx_ao_b_ao10_pins[] = { GPIOAO_10 }; +static const unsigned int uart_rx_ao_b_ao11_pins[] = { GPIOAO_11 }; /* ir_out */ -static const unsigned int remote_out_ao2_pins[] = { PIN(GPIOAO_2, 0) }; -static const unsigned int remote_out_ao6_pins[] = { PIN(GPIOAO_6, 0) }; +static const unsigned int remote_out_ao2_pins[] = { GPIOAO_2 }; +static const unsigned int remote_out_ao6_pins[] = { GPIOAO_6 }; /* ir_in */ -static const unsigned int remote_in_pins[] = { PIN(GPIOAO_6, 0) }; +static const unsigned int remote_in_pins[] = { GPIOAO_6 }; /* pwm_ao_a */ -static const unsigned int pwm_ao_a_ao3_pins[] = { PIN(GPIOAO_3, 0) }; -static const unsigned int pwm_ao_a_ao7_pins[] = { PIN(GPIOAO_7, 0) }; +static const unsigned int pwm_ao_a_ao3_pins[] = { GPIOAO_3 }; +static const unsigned int pwm_ao_a_ao7_pins[] = { GPIOAO_7 }; /* pwm_ao_b */ -static const unsigned int pwm_ao_b_ao8_pins[] = { PIN(GPIOAO_8, 0) }; -static const unsigned int pwm_ao_b_ao9_pins[] = { PIN(GPIOAO_9, 0) }; +static const unsigned int pwm_ao_b_ao8_pins[] = { GPIOAO_8 }; +static const unsigned int pwm_ao_b_ao9_pins[] = { GPIOAO_9 }; /* pwm_ao_c */ -static const unsigned int pwm_ao_c_ao10_pins[] = { PIN(GPIOAO_10, 0) }; -static const unsigned int pwm_ao_c_ao12_pins[] = { PIN(GPIOAO_12, 0) }; +static const unsigned int pwm_ao_c_ao10_pins[] = { GPIOAO_10 }; +static const unsigned int pwm_ao_c_ao12_pins[] = { GPIOAO_12 }; /* pwm_ao_d */ -static const unsigned int pwm_ao_d_ao2_pins[] = { PIN(GPIOAO_2, 0) }; -static const unsigned int pwm_ao_d_ao11_pins[] = { PIN(GPIOAO_11, 0) }; -static const unsigned int pwm_ao_d_ao13_pins[] = { PIN(GPIOAO_13, 0) }; +static const unsigned int pwm_ao_d_ao2_pins[] = { GPIOAO_2 }; +static const unsigned int pwm_ao_d_ao11_pins[] = { GPIOAO_11 }; +static const unsigned int pwm_ao_d_ao13_pins[] = { GPIOAO_13 }; /* i2c_ao */ -static const unsigned int i2c_sck_ao4_pins[] = {PIN(GPIOAO_4, 0) }; -static const unsigned int i2c_sda_ao5_pins[] = {PIN(GPIOAO_5, 0) }; +static const unsigned int i2c_sck_ao4_pins[] = {GPIOAO_4 }; +static const unsigned int i2c_sda_ao5_pins[] = {GPIOAO_5 }; -static const unsigned int i2c_sck_ao10_pins[] = {PIN(GPIOAO_10, 0) }; -static const unsigned int i2c_sda_ao11_pins[] = {PIN(GPIOAO_11, 0) }; +static const unsigned int i2c_sck_ao10_pins[] = {GPIOAO_10 }; +static const unsigned int i2c_sda_ao11_pins[] = {GPIOAO_11 }; /* i2c_slave_ao */ -static const unsigned int i2c_slave_sck_ao4_pins[] = {PIN(GPIOAO_4, 0) }; -static const unsigned int i2c_slave_sda_ao5_pins[] = {PIN(GPIOAO_5, 0) }; +static const unsigned int i2c_slave_sck_ao4_pins[] = {GPIOAO_4 }; +static const unsigned int i2c_slave_sda_ao5_pins[] = {GPIOAO_5 }; -static const unsigned int i2c_slave_sck_ao10_pins[] = {PIN(GPIOAO_10, 0) }; -static const unsigned int i2c_slave_sda_ao11_pins[] = {PIN(GPIOAO_11, 0) }; +static const unsigned int i2c_slave_sck_ao10_pins[] = {GPIOAO_10 }; +static const unsigned int i2c_slave_sda_ao11_pins[] = {GPIOAO_11 }; /* ao_cec */ -static const unsigned int ao_cec_ao7_pins[] = { PIN(GPIOAO_7, 0) }; -static const unsigned int ao_cec_ao8_pins[] = { PIN(GPIOAO_8, 0) }; +static const unsigned int ao_cec_ao7_pins[] = { GPIOAO_7 }; +static const unsigned int ao_cec_ao8_pins[] = { GPIOAO_8 }; /* ao_cec_b */ -static const unsigned int ao_cec_b_ao7_pins[] = { PIN(GPIOAO_7, 0) }; -static const unsigned int ao_cec_b_ao8_pins[] = { PIN(GPIOAO_8, 0) }; +static const unsigned int ao_cec_b_ao7_pins[] = { GPIOAO_7 }; +static const unsigned int ao_cec_b_ao8_pins[] = { GPIOAO_8 }; /* * Note: The offset of AO_RTI_PIN_MUX_REG register is (0x05 << 2), and @@ -951,51 +949,51 @@ static const unsigned int ao_cec_b_ao8_pins[] = { PIN(GPIOAO_8, 0) }; * register. */ static struct meson_pmx_group meson_txlx_aobus_groups[] = { - GPIO_GROUP(GPIOAO_0, 0), - GPIO_GROUP(GPIOAO_1, 0), - GPIO_GROUP(GPIOAO_2, 0), - GPIO_GROUP(GPIOAO_3, 0), - GPIO_GROUP(GPIOAO_4, 0), - GPIO_GROUP(GPIOAO_5, 0), - GPIO_GROUP(GPIOAO_6, 0), - GPIO_GROUP(GPIOAO_7, 0), - GPIO_GROUP(GPIOAO_8, 0), - GPIO_GROUP(GPIOAO_9, 0), - GPIO_GROUP(GPIOAO_10, 0), - GPIO_GROUP(GPIOAO_11, 0), - GPIO_GROUP(GPIOAO_12, 0), - GPIO_GROUP(GPIOAO_13, 0), - GPIO_GROUP(GPIO_TEST_N, 0), + GPIO_GROUP(GPIOAO_0), + GPIO_GROUP(GPIOAO_1), + GPIO_GROUP(GPIOAO_2), + GPIO_GROUP(GPIOAO_3), + GPIO_GROUP(GPIOAO_4), + GPIO_GROUP(GPIOAO_5), + GPIO_GROUP(GPIOAO_6), + GPIO_GROUP(GPIOAO_7), + GPIO_GROUP(GPIOAO_8), + GPIO_GROUP(GPIOAO_9), + GPIO_GROUP(GPIOAO_10), + GPIO_GROUP(GPIOAO_11), + GPIO_GROUP(GPIOAO_12), + GPIO_GROUP(GPIOAO_13), + GPIO_GROUP(GPIO_TEST_N), /* bank AO */ GROUP(uart_tx_ao_a, 0, 12), GROUP(uart_rx_ao_a, 0, 11), - GROUP(uart_cts_ao_a, 0, 10), - GROUP(uart_rts_ao_a, 0, 9), - GROUP(uart_tx_ao_b_ao0, 0, 26), - GROUP(uart_rx_ao_b_ao1, 0, 25), - GROUP(uart_cts_ao_b, 0, 8), - GROUP(uart_rts_ao_b, 0, 7), - GROUP(uart_tx_ao_b_ao4, 0, 24), - GROUP(uart_rx_ao_b_ao5, 0, 23), + GROUP(uart_cts_ao_a, 0, 10), + GROUP(uart_rts_ao_a, 0, 9), + GROUP(uart_tx_ao_b_ao0, 0, 26), + GROUP(uart_rx_ao_b_ao1, 0, 25), + GROUP(uart_cts_ao_b, 0, 8), + GROUP(uart_rts_ao_b, 0, 7), + GROUP(uart_tx_ao_b_ao4, 0, 24), + GROUP(uart_rx_ao_b_ao5, 0, 23), GROUP(uart_tx_ao_b_ao10, 1, 9), GROUP(uart_rx_ao_b_ao11, 1, 8), - GROUP(remote_out_ao2, 0, 28), - GROUP(remote_out_ao6, 0, 21), + GROUP(remote_out_ao2, 0, 28), + GROUP(remote_out_ao6, 0, 21), GROUP(remote_in, 0, 0), GROUP(pwm_ao_a_ao3, 0, 22), GROUP(pwm_ao_a_ao7, 0, 17), GROUP(pwm_ao_b_ao8, 0, 27), GROUP(pwm_ao_b_ao9, 0, 3), - GROUP(pwm_ao_c_ao10, 1, 5), - GROUP(pwm_ao_c_ao12, 1, 2), + GROUP(pwm_ao_c_ao10, 1, 5), + GROUP(pwm_ao_c_ao12, 1, 2), GROUP(pwm_ao_d_ao2, 1, 10), - GROUP(pwm_ao_d_ao11, 1, 18), - GROUP(pwm_ao_d_ao13, 1, 1), - GROUP(i2c_sck_ao4, 0, 6), - GROUP(i2c_sda_ao5, 0, 5), - GROUP(i2c_sck_ao10, 1, 7), - GROUP(i2c_sda_ao11, 1, 4), + GROUP(pwm_ao_d_ao11, 1, 18), + GROUP(pwm_ao_d_ao13, 1, 1), + GROUP(i2c_sck_ao4, 0, 6), + GROUP(i2c_sda_ao5, 0, 5), + GROUP(i2c_sck_ao10, 1, 7), + GROUP(i2c_sda_ao11, 1, 4), GROUP(i2c_slave_sck_ao4, 0, 2), GROUP(i2c_slave_sda_ao5, 0, 1), GROUP(i2c_slave_sck_ao10, 1, 6), @@ -1378,19 +1376,19 @@ static struct meson_pmx_func meson_txlx_aobus_functions[] = { */ static struct meson_bank meson_txlx_periphs_banks[] = { /* name first last irq pullen pull dir out in */ - BANK("Z", PIN(GPIOZ_0, EE_OFF), PIN(GPIOZ_19, EE_OFF), 14, + BANK("Z", GPIOZ_0, GPIOZ_19, 14, 3, 0, 3, 0, 9, 0, 10, 0, 11, 0), - BANK("H", PIN(GPIOH_0, EE_OFF), PIN(GPIOH_10, EE_OFF), 34, + BANK("H", GPIOH_0, GPIOH_10, 34, 1, 20, 1, 20, 3, 20, 4, 20, 5, 20), - BANK("BOOT", PIN(BOOT_0, EE_OFF), PIN(BOOT_11, EE_OFF), 45, + BANK("BOOT", BOOT_0, BOOT_11, 45, 2, 0, 2, 0, 6, 0, 7, 0, 8, 0), - BANK("C", PIN(GPIOC_0, EE_OFF), PIN(GPIOC_5, EE_OFF), 58, + BANK("C", GPIOC_0, GPIOC_5, 58, 2, 20, 2, 20, 6, 20, 7, 20, 8, 20), - BANK("DV", PIN(GPIODV_0, EE_OFF), PIN(GPIODV_10, EE_OFF), 64, + BANK("DV", GPIODV_0, GPIODV_10, 64, 0, 0, 0, 0, 0, 0, 1, 0, 2, 0), - BANK("W", PIN(GPIOW_0, EE_OFF), PIN(GPIOW_15, EE_OFF), 75, + BANK("W", GPIOW_0, GPIOW_15, 75, 1, 0, 1, 0, 3, 0, 4, 0, 5, 0), - BANK("Y", PIN(GPIOY_0, EE_OFF), PIN(GPIOY_27, EE_OFF), 91, + BANK("Y", GPIOY_0, GPIOY_27, 91, 4, 0, 4, 0, 12, 0, 13, 0, 14, 0), }; @@ -1409,9 +1407,9 @@ static struct meson_bank meson_txlx_periphs_banks[] = { */ static struct meson_bank meson_txlx_aobus_banks[] = { /* name first last irq pullen pull dir out in */ - BANK("AO", PIN(GPIOAO_0, 0), PIN(GPIOAO_13, 0), 0, + BANK("AO", GPIOAO_0, GPIOAO_13, 0, 0, 16, 0, 0, 0, 0, 0, 16, 1, 0), - BANK("TEST", PIN(GPIO_TEST_N, 0), PIN(GPIO_TEST_N, 0), -1, + BANK("TEST", GPIO_TEST_N, GPIO_TEST_N, -1, 0, 30, 0, 14, 0, 14, 0, 31, 1, 31), }; @@ -1419,7 +1417,6 @@ static struct meson_domain_data meson_txlx_periphs_domain_data = { .name = "periphs-banks", .banks = meson_txlx_periphs_banks, .num_banks = ARRAY_SIZE(meson_txlx_periphs_banks), - .pin_base = 15, .num_pins = 104, }; @@ -1427,7 +1424,6 @@ static struct meson_domain_data meson_txlx_aobus_domain_data = { .name = "aobus-banks", .banks = meson_txlx_aobus_banks, .num_banks = ARRAY_SIZE(meson_txlx_aobus_banks), - .pin_base = 0, .num_pins = 15, }; diff --git a/drivers/amlogic/pinctrl/pinctrl-meson.c b/drivers/amlogic/pinctrl/pinctrl-meson.c index 8e8211ad3c4a..b0cba7d0052d 100644 --- a/drivers/amlogic/pinctrl/pinctrl-meson.c +++ b/drivers/amlogic/pinctrl/pinctrl-meson.c @@ -95,33 +95,6 @@ static int meson_get_bank(struct meson_domain *domain, unsigned int pin, return -EINVAL; } -/** - * meson_get_domain_and_bank() - find domain and bank containing a given pin - * - * @pc: Meson pin controller device - * @pin: the pin number - * @domain: the found domain - * @bank: the found bank - * - * Return: 0 on success, a negative value on error - */ -static int meson_get_domain_and_bank(struct meson_pinctrl *pc, unsigned int pin, - struct meson_domain **domain, - struct meson_bank **bank) -{ - struct meson_domain *d; - - d = pc->domain; - - if (pin >= d->data->pin_base && - pin < d->data->pin_base + d->data->num_pins) { - *domain = d; - return meson_get_bank(d, pin, bank); - } - - return -EINVAL; -} - /** * meson_calc_reg_and_bit() - calculate register and bit for a pin * @@ -421,14 +394,14 @@ static int meson_pinconf_set(struct pinctrl_dev *pcdev, unsigned int pin, unsigned long *configs, unsigned int num_configs) { struct meson_pinctrl *pc = pinctrl_dev_get_drvdata(pcdev); - struct meson_domain *domain; + struct meson_domain *domain = pc->domain; struct meson_bank *bank; enum pin_config_param param; unsigned int reg, bit; int i, ret; u16 arg; - ret = meson_get_domain_and_bank(pc, pin, &domain, &bank); + ret = meson_get_bank(domain, pin, &bank); if (ret) return ret; @@ -499,12 +472,12 @@ static int meson_pinconf_set(struct pinctrl_dev *pcdev, unsigned int pin, static int meson_pinconf_get_pull(struct meson_pinctrl *pc, unsigned int pin) { - struct meson_domain *domain; + struct meson_domain *domain = pc->domain; struct meson_bank *bank; unsigned int reg, bit, val; int ret, conf; - ret = meson_get_domain_and_bank(pc, pin, &domain, &bank); + ret = meson_get_bank(domain, pin, &bank); if (ret) return ret; @@ -587,32 +560,18 @@ static inline struct meson_domain *to_meson_domain(struct gpio_chip *chip) { return container_of(chip, struct meson_domain, chip); } - -static int meson_gpio_request(struct gpio_chip *chip, unsigned int gpio) -{ - return pinctrl_request_gpio(chip->base + gpio); -} - -static void meson_gpio_free(struct gpio_chip *chip, unsigned int gpio) -{ - struct meson_domain *domain = to_meson_domain(chip); - - pinctrl_free_gpio(domain->data->pin_base + gpio); -} - static int meson_gpio_direction_input(struct gpio_chip *chip, unsigned int gpio) { struct meson_domain *domain = to_meson_domain(chip); - unsigned int reg, bit, pin; + unsigned int reg, bit; struct meson_bank *bank; int ret; - pin = domain->data->pin_base + gpio; - ret = meson_get_bank(domain, pin, &bank); + ret = meson_get_bank(domain, gpio, &bank); if (ret) return ret; - meson_calc_reg_and_bit(bank, pin, REG_DIR, ®, &bit); + meson_calc_reg_and_bit(bank, gpio, REG_DIR, ®, &bit); return regmap_update_bits(domain->reg_gpio, reg, BIT(bit), BIT(bit)); } @@ -621,21 +580,20 @@ static int meson_gpio_direction_output(struct gpio_chip *chip, unsigned int gpio, int value) { struct meson_domain *domain = to_meson_domain(chip); - unsigned int reg, bit, pin; + unsigned int reg, bit; struct meson_bank *bank; int ret; - pin = domain->data->pin_base + gpio; - ret = meson_get_bank(domain, pin, &bank); + ret = meson_get_bank(domain, gpio, &bank); if (ret) return ret; - meson_calc_reg_and_bit(bank, pin, REG_DIR, ®, &bit); + meson_calc_reg_and_bit(bank, gpio, REG_DIR, ®, &bit); ret = regmap_update_bits(domain->reg_gpio, reg, BIT(bit), 0); if (ret) return ret; - meson_calc_reg_and_bit(bank, pin, REG_OUT, ®, &bit); + meson_calc_reg_and_bit(bank, gpio, REG_OUT, ®, &bit); return regmap_update_bits(domain->reg_gpio, reg, BIT(bit), value ? BIT(bit) : 0); } @@ -644,16 +602,15 @@ static void meson_gpio_set(struct gpio_chip *chip, unsigned int gpio, int value) { struct meson_domain *domain = to_meson_domain(chip); - unsigned int reg, bit, pin; + unsigned int reg, bit; struct meson_bank *bank; int ret; - pin = domain->data->pin_base + gpio; - ret = meson_get_bank(domain, pin, &bank); + ret = meson_get_bank(domain, gpio, &bank); if (ret) return; - meson_calc_reg_and_bit(bank, pin, REG_OUT, ®, &bit); + meson_calc_reg_and_bit(bank, gpio, REG_OUT, ®, &bit); regmap_update_bits(domain->reg_gpio, reg, BIT(bit), value ? BIT(bit) : 0); } @@ -662,7 +619,7 @@ static int meson_gpio_pull_set(struct gpio_chip *chip, unsigned int gpio, int value) { struct meson_domain *domain = to_meson_domain(chip); - unsigned int reg, bit, pin; + unsigned int reg, bit; struct meson_bank *bank; int ret; @@ -670,12 +627,11 @@ static int meson_gpio_pull_set(struct gpio_chip *chip, unsigned int gpio, && (value != GPIOD_PULL_UP)) return -EINVAL; - pin = domain->data->pin_base + gpio; - ret = meson_get_bank(domain, pin, &bank); + ret = meson_get_bank(domain, gpio, &bank); if (ret) return ret; - meson_calc_reg_and_bit(bank, pin, REG_PULLEN, + meson_calc_reg_and_bit(bank, gpio, REG_PULLEN, ®, &bit); ret = regmap_update_bits(domain->reg_pullen, reg, BIT(bit), @@ -683,7 +639,7 @@ static int meson_gpio_pull_set(struct gpio_chip *chip, unsigned int gpio, if (ret) return ret; - meson_calc_reg_and_bit(bank, pin, REG_PULL, ®, &bit); + meson_calc_reg_and_bit(bank, gpio, REG_PULL, ®, &bit); ret = regmap_update_bits(domain->reg_pull, reg, BIT(bit), (value == GPIOD_PULL_DOWN) ? 0 : BIT(bit)); @@ -696,30 +652,26 @@ static int meson_gpio_pull_set(struct gpio_chip *chip, unsigned int gpio, static int meson_gpio_get(struct gpio_chip *chip, unsigned int gpio) { struct meson_domain *domain = to_meson_domain(chip); - unsigned int reg, bit, val, pin; + unsigned int reg, bit, val; struct meson_bank *bank; int ret; - pin = domain->data->pin_base + gpio; - ret = meson_get_bank(domain, pin, &bank); + ret = meson_get_bank(domain, gpio, &bank); if (ret) return ret; - meson_calc_reg_and_bit(bank, pin, REG_IN, ®, &bit); + meson_calc_reg_and_bit(bank, gpio, REG_IN, ®, &bit); regmap_read(domain->reg_gpio, reg, &val); return !!(val & BIT(bit)); } -static int meson_gpio_to_irq(struct gpio_chip *chip, unsigned int offset) +static int meson_gpio_to_irq(struct gpio_chip *chip, unsigned int gpio) { struct meson_domain *domain = to_meson_domain(chip); struct meson_bank *bank; struct irq_fwspec fwspec; int hwirq; - int gpio; - - gpio = chip->base + offset; if (meson_get_bank(domain, gpio, &bank)) return -EINVAL; @@ -840,15 +792,15 @@ static int meson_gpiolib_register(struct meson_pinctrl *pc) domain->chip.label = domain->data->name; /* domain->chip.dev = pc->dev; */ domain->chip.parent = pc->dev; - domain->chip.request = meson_gpio_request; - domain->chip.free = meson_gpio_free; + domain->chip.request = gpiochip_generic_request; + domain->chip.free = gpiochip_generic_free; domain->chip.direction_input = meson_gpio_direction_input; domain->chip.direction_output = meson_gpio_direction_output; domain->chip.get = meson_gpio_get; domain->chip.set = meson_gpio_set; domain->chip.to_irq = meson_gpio_to_irq; domain->chip.set_pull = meson_gpio_pull_set; - domain->chip.base = domain->data->pin_base; + domain->chip.base = -1; domain->chip.ngpio = domain->data->num_pins; domain->chip.can_sleep = false; domain->chip.of_node = domain->of_node; @@ -862,8 +814,7 @@ static int meson_gpiolib_register(struct meson_pinctrl *pc) } ret = gpiochip_add_pin_range(&domain->chip, dev_name(pc->dev), - 0, domain->data->pin_base, - domain->chip.ngpio); + 0, 0, domain->chip.ngpio); if (ret) { dev_err(pc->dev, "can't add pin range\n"); goto fail; diff --git a/drivers/amlogic/pinctrl/pinctrl-meson.h b/drivers/amlogic/pinctrl/pinctrl-meson.h index 8bb56bdd7f6d..509c01689aed 100644 --- a/drivers/amlogic/pinctrl/pinctrl-meson.h +++ b/drivers/amlogic/pinctrl/pinctrl-meson.h @@ -112,7 +112,7 @@ struct meson_domain_data { const char *name; struct meson_bank *banks; unsigned int num_banks; - unsigned int pin_base; + unsigned int num_pins; }; @@ -195,10 +195,9 @@ enum PINMUX_TYPE { #define CMD_TEST_N_DIR 0x82000046 #define TEST_N_OUTPUT 1 -#define PIN(x, b) (b + x) #define MESON_MUX_V2_MASK(x) (0xf << x) #define MESON_MUX_V2_VAL(y, x) ((y & 0xf) << x) -#define MESON_PIN(x, b) PINCTRL_PIN(PIN(x, b), #x) +#define MESON_PIN(x) PINCTRL_PIN(x, #x) #define GROUP(grp, r, b) \ { \ @@ -209,10 +208,10 @@ enum PINMUX_TYPE { .bit = b, \ } -#define GPIO_GROUP(gpio, b) \ +#define GPIO_GROUP(gpio) \ { \ .name = #gpio, \ - .pins = (const unsigned int[]){ PIN(gpio, b) }, \ + .pins = (const unsigned int[]){ gpio }, \ .num_pins = 1, \ .is_gpio = true, \ } diff --git a/drivers/amlogic/pinctrl/pinctrl-meson8b.c b/drivers/amlogic/pinctrl/pinctrl-meson8b.c index 25b1941cda0b..792016a29496 100644 --- a/drivers/amlogic/pinctrl/pinctrl-meson8b.c +++ b/drivers/amlogic/pinctrl/pinctrl-meson8b.c @@ -18,410 +18,408 @@ #include #include "pinctrl-meson.h" -#define EE_OFF 14 - static const struct pinctrl_pin_desc meson8b_cbus_pins[] = { - MESON_PIN(GPIOX_0, EE_OFF), - MESON_PIN(GPIOX_1, EE_OFF), - MESON_PIN(GPIOX_2, EE_OFF), - MESON_PIN(GPIOX_3, EE_OFF), - MESON_PIN(GPIOX_4, EE_OFF), - MESON_PIN(GPIOX_5, EE_OFF), - MESON_PIN(GPIOX_6, EE_OFF), - MESON_PIN(GPIOX_7, EE_OFF), - MESON_PIN(GPIOX_8, EE_OFF), - MESON_PIN(GPIOX_9, EE_OFF), - MESON_PIN(GPIOX_10, EE_OFF), - MESON_PIN(GPIOX_11, EE_OFF), - MESON_PIN(GPIOX_16, EE_OFF), - MESON_PIN(GPIOX_17, EE_OFF), - MESON_PIN(GPIOX_18, EE_OFF), - MESON_PIN(GPIOX_19, EE_OFF), - MESON_PIN(GPIOX_20, EE_OFF), - MESON_PIN(GPIOX_21, EE_OFF), + MESON_PIN(GPIOX_0), + MESON_PIN(GPIOX_1), + MESON_PIN(GPIOX_2), + MESON_PIN(GPIOX_3), + MESON_PIN(GPIOX_4), + MESON_PIN(GPIOX_5), + MESON_PIN(GPIOX_6), + MESON_PIN(GPIOX_7), + MESON_PIN(GPIOX_8), + MESON_PIN(GPIOX_9), + MESON_PIN(GPIOX_10), + MESON_PIN(GPIOX_11), + MESON_PIN(GPIOX_16), + MESON_PIN(GPIOX_17), + MESON_PIN(GPIOX_18), + MESON_PIN(GPIOX_19), + MESON_PIN(GPIOX_20), + MESON_PIN(GPIOX_21), - MESON_PIN(GPIOY_0, EE_OFF), - MESON_PIN(GPIOY_1, EE_OFF), - MESON_PIN(GPIOY_3, EE_OFF), - MESON_PIN(GPIOY_6, EE_OFF), - MESON_PIN(GPIOY_7, EE_OFF), - MESON_PIN(GPIOY_8, EE_OFF), - MESON_PIN(GPIOY_9, EE_OFF), - MESON_PIN(GPIOY_10, EE_OFF), - MESON_PIN(GPIOY_11, EE_OFF), - MESON_PIN(GPIOY_12, EE_OFF), - MESON_PIN(GPIOY_13, EE_OFF), - MESON_PIN(GPIOY_14, EE_OFF), + MESON_PIN(GPIOY_0), + MESON_PIN(GPIOY_1), + MESON_PIN(GPIOY_3), + MESON_PIN(GPIOY_6), + MESON_PIN(GPIOY_7), + MESON_PIN(GPIOY_8), + MESON_PIN(GPIOY_9), + MESON_PIN(GPIOY_10), + MESON_PIN(GPIOY_11), + MESON_PIN(GPIOY_12), + MESON_PIN(GPIOY_13), + MESON_PIN(GPIOY_14), - MESON_PIN(GPIODV_9, EE_OFF), - MESON_PIN(GPIODV_24, EE_OFF), - MESON_PIN(GPIODV_25, EE_OFF), - MESON_PIN(GPIODV_26, EE_OFF), - MESON_PIN(GPIODV_27, EE_OFF), - MESON_PIN(GPIODV_28, EE_OFF), - MESON_PIN(GPIODV_29, EE_OFF), + MESON_PIN(GPIODV_9), + MESON_PIN(GPIODV_24), + MESON_PIN(GPIODV_25), + MESON_PIN(GPIODV_26), + MESON_PIN(GPIODV_27), + MESON_PIN(GPIODV_28), + MESON_PIN(GPIODV_29), - MESON_PIN(GPIOH_0, EE_OFF), - MESON_PIN(GPIOH_1, EE_OFF), - MESON_PIN(GPIOH_2, EE_OFF), - MESON_PIN(GPIOH_3, EE_OFF), - MESON_PIN(GPIOH_4, EE_OFF), - MESON_PIN(GPIOH_5, EE_OFF), - MESON_PIN(GPIOH_6, EE_OFF), - MESON_PIN(GPIOH_7, EE_OFF), - MESON_PIN(GPIOH_8, EE_OFF), - MESON_PIN(GPIOH_9, EE_OFF), + MESON_PIN(GPIOH_0), + MESON_PIN(GPIOH_1), + MESON_PIN(GPIOH_2), + MESON_PIN(GPIOH_3), + MESON_PIN(GPIOH_4), + MESON_PIN(GPIOH_5), + MESON_PIN(GPIOH_6), + MESON_PIN(GPIOH_7), + MESON_PIN(GPIOH_8), + MESON_PIN(GPIOH_9), - MESON_PIN(CARD_0, EE_OFF), - MESON_PIN(CARD_1, EE_OFF), - MESON_PIN(CARD_2, EE_OFF), - MESON_PIN(CARD_3, EE_OFF), - MESON_PIN(CARD_4, EE_OFF), - MESON_PIN(CARD_5, EE_OFF), - MESON_PIN(CARD_6, EE_OFF), + MESON_PIN(CARD_0), + MESON_PIN(CARD_1), + MESON_PIN(CARD_2), + MESON_PIN(CARD_3), + MESON_PIN(CARD_4), + MESON_PIN(CARD_5), + MESON_PIN(CARD_6), - MESON_PIN(BOOT_0, EE_OFF), - MESON_PIN(BOOT_1, EE_OFF), - MESON_PIN(BOOT_2, EE_OFF), - MESON_PIN(BOOT_3, EE_OFF), - MESON_PIN(BOOT_4, EE_OFF), - MESON_PIN(BOOT_5, EE_OFF), - MESON_PIN(BOOT_6, EE_OFF), - MESON_PIN(BOOT_7, EE_OFF), - MESON_PIN(BOOT_8, EE_OFF), - MESON_PIN(BOOT_9, EE_OFF), - MESON_PIN(BOOT_10, EE_OFF), - MESON_PIN(BOOT_11, EE_OFF), - MESON_PIN(BOOT_12, EE_OFF), - MESON_PIN(BOOT_13, EE_OFF), - MESON_PIN(BOOT_14, EE_OFF), - MESON_PIN(BOOT_15, EE_OFF), - MESON_PIN(BOOT_16, EE_OFF), - MESON_PIN(BOOT_17, EE_OFF), - MESON_PIN(BOOT_18, EE_OFF), + MESON_PIN(BOOT_0), + MESON_PIN(BOOT_1), + MESON_PIN(BOOT_2), + MESON_PIN(BOOT_3), + MESON_PIN(BOOT_4), + MESON_PIN(BOOT_5), + MESON_PIN(BOOT_6), + MESON_PIN(BOOT_7), + MESON_PIN(BOOT_8), + MESON_PIN(BOOT_9), + MESON_PIN(BOOT_10), + MESON_PIN(BOOT_11), + MESON_PIN(BOOT_12), + MESON_PIN(BOOT_13), + MESON_PIN(BOOT_14), + MESON_PIN(BOOT_15), + MESON_PIN(BOOT_16), + MESON_PIN(BOOT_17), + MESON_PIN(BOOT_18), - MESON_PIN(DIF_0_P, EE_OFF), - MESON_PIN(DIF_0_N, EE_OFF), - MESON_PIN(DIF_1_P, EE_OFF), - MESON_PIN(DIF_1_N, EE_OFF), - MESON_PIN(DIF_2_P, EE_OFF), - MESON_PIN(DIF_2_N, EE_OFF), - MESON_PIN(DIF_3_P, EE_OFF), - MESON_PIN(DIF_3_N, EE_OFF), - MESON_PIN(DIF_4_P, EE_OFF), - MESON_PIN(DIF_4_N, EE_OFF), + MESON_PIN(DIF_0_P), + MESON_PIN(DIF_0_N), + MESON_PIN(DIF_1_P), + MESON_PIN(DIF_1_N), + MESON_PIN(DIF_2_P), + MESON_PIN(DIF_2_N), + MESON_PIN(DIF_3_P), + MESON_PIN(DIF_3_N), + MESON_PIN(DIF_4_P), + MESON_PIN(DIF_4_N), }; static const struct pinctrl_pin_desc meson8b_aobus_pins[] = { - MESON_PIN(GPIOAO_0, 0), - MESON_PIN(GPIOAO_1, 0), - MESON_PIN(GPIOAO_2, 0), - MESON_PIN(GPIOAO_3, 0), - MESON_PIN(GPIOAO_4, 0), - MESON_PIN(GPIOAO_5, 0), - MESON_PIN(GPIOAO_6, 0), - MESON_PIN(GPIOAO_7, 0), - MESON_PIN(GPIOAO_8, 0), - MESON_PIN(GPIOAO_9, 0), - MESON_PIN(GPIOAO_10, 0), - MESON_PIN(GPIOAO_11, 0), - MESON_PIN(GPIOAO_12, 0), - MESON_PIN(GPIOAO_13, 0), + MESON_PIN(GPIOAO_0), + MESON_PIN(GPIOAO_1), + MESON_PIN(GPIOAO_2), + MESON_PIN(GPIOAO_3), + MESON_PIN(GPIOAO_4), + MESON_PIN(GPIOAO_5), + MESON_PIN(GPIOAO_6), + MESON_PIN(GPIOAO_7), + MESON_PIN(GPIOAO_8), + MESON_PIN(GPIOAO_9), + MESON_PIN(GPIOAO_10), + MESON_PIN(GPIOAO_11), + MESON_PIN(GPIOAO_12), + MESON_PIN(GPIOAO_13), }; /* bank X */ -static const unsigned int sd_d0_a_pins[] = { PIN(GPIOX_0, EE_OFF) }; -static const unsigned int sd_d1_a_pins[] = { PIN(GPIOX_1, EE_OFF) }; -static const unsigned int sd_d2_a_pins[] = { PIN(GPIOX_2, EE_OFF) }; -static const unsigned int sd_d3_a_pins[] = { PIN(GPIOX_3, EE_OFF) }; -static const unsigned int sdxc_d0_0_a_pins[] = { PIN(GPIOX_4, EE_OFF) }; -static const unsigned int sdxc_d47_a_pins[] = { PIN(GPIOX_4, EE_OFF), - PIN(GPIOX_5, EE_OFF), PIN(GPIOX_6, EE_OFF), PIN(GPIOX_7, EE_OFF) }; -static const unsigned int sdxc_d13_0_a_pins[] = { PIN(GPIOX_5, EE_OFF), - PIN(GPIOX_6, EE_OFF), PIN(GPIOX_7, EE_OFF) }; -static const unsigned int sd_clk_a_pins[] = { PIN(GPIOX_8, EE_OFF) }; -static const unsigned int sd_cmd_a_pins[] = { PIN(GPIOX_9, EE_OFF) }; -static const unsigned int xtal_32k_out_pins[] = { PIN(GPIOX_10, EE_OFF) }; -static const unsigned int xtal_24m_out_pins[] = { PIN(GPIOX_11, EE_OFF) }; -static const unsigned int uart_tx_b0_pins[] = { PIN(GPIOX_16, EE_OFF) }; -static const unsigned int uart_rx_b0_pins[] = { PIN(GPIOX_17, EE_OFF) }; -static const unsigned int uart_cts_b0_pins[] = { PIN(GPIOX_18, EE_OFF) }; -static const unsigned int uart_rts_b0_pins[] = { PIN(GPIOX_19, EE_OFF) }; +static const unsigned int sd_d0_a_pins[] = { GPIOX_0 }; +static const unsigned int sd_d1_a_pins[] = { GPIOX_1 }; +static const unsigned int sd_d2_a_pins[] = { GPIOX_2 }; +static const unsigned int sd_d3_a_pins[] = { GPIOX_3 }; +static const unsigned int sdxc_d0_0_a_pins[] = { GPIOX_4 }; +static const unsigned int sdxc_d47_a_pins[] = { GPIOX_4, + GPIOX_5, GPIOX_6, GPIOX_7 }; +static const unsigned int sdxc_d13_0_a_pins[] = { GPIOX_5, + GPIOX_6, GPIOX_7 }; +static const unsigned int sd_clk_a_pins[] = { GPIOX_8 }; +static const unsigned int sd_cmd_a_pins[] = { GPIOX_9 }; +static const unsigned int xtal_32k_out_pins[] = { GPIOX_10 }; +static const unsigned int xtal_24m_out_pins[] = { GPIOX_11 }; +static const unsigned int uart_tx_b0_pins[] = { GPIOX_16 }; +static const unsigned int uart_rx_b0_pins[] = { GPIOX_17 }; +static const unsigned int uart_cts_b0_pins[] = { GPIOX_18 }; +static const unsigned int uart_rts_b0_pins[] = { GPIOX_19 }; -static const unsigned int sdxc_d0_1_a_pins[] = { PIN(GPIOX_0, EE_OFF) }; -static const unsigned int sdxc_d13_1_a_pins[] = { PIN(GPIOX_1, EE_OFF), - PIN(GPIOX_2, EE_OFF), PIN(GPIOX_3, EE_OFF) }; -static const unsigned int pcm_out_a_pins[] = { PIN(GPIOX_4, EE_OFF) }; -static const unsigned int pcm_in_a_pins[] = { PIN(GPIOX_5, EE_OFF) }; -static const unsigned int pcm_fs_a_pins[] = { PIN(GPIOX_6, EE_OFF) }; -static const unsigned int pcm_clk_a_pins[] = { PIN(GPIOX_7, EE_OFF) }; -static const unsigned int sdxc_clk_a_pins[] = { PIN(GPIOX_8, EE_OFF) }; -static const unsigned int sdxc_cmd_a_pins[] = { PIN(GPIOX_9, EE_OFF) }; -static const unsigned int pwm_vs_0_pins[] = { PIN(GPIOX_10, EE_OFF) }; -static const unsigned int pwm_e_pins[] = { PIN(GPIOX_10, EE_OFF) }; -static const unsigned int pwm_vs_1_pins[] = { PIN(GPIOX_11, EE_OFF) }; +static const unsigned int sdxc_d0_1_a_pins[] = { GPIOX_0 }; +static const unsigned int sdxc_d13_1_a_pins[] = { GPIOX_1, + GPIOX_2, GPIOX_3 }; +static const unsigned int pcm_out_a_pins[] = { GPIOX_4 }; +static const unsigned int pcm_in_a_pins[] = { GPIOX_5 }; +static const unsigned int pcm_fs_a_pins[] = { GPIOX_6 }; +static const unsigned int pcm_clk_a_pins[] = { GPIOX_7 }; +static const unsigned int sdxc_clk_a_pins[] = { GPIOX_8 }; +static const unsigned int sdxc_cmd_a_pins[] = { GPIOX_9 }; +static const unsigned int pwm_vs_0_pins[] = { GPIOX_10 }; +static const unsigned int pwm_e_pins[] = { GPIOX_10 }; +static const unsigned int pwm_vs_1_pins[] = { GPIOX_11 }; -static const unsigned int uart_tx_a_pins[] = { PIN(GPIOX_4, EE_OFF) }; -static const unsigned int uart_rx_a_pins[] = { PIN(GPIOX_5, EE_OFF) }; -static const unsigned int uart_cts_a_pins[] = { PIN(GPIOX_6, EE_OFF) }; -static const unsigned int uart_rts_a_pins[] = { PIN(GPIOX_7, EE_OFF) }; -static const unsigned int uart_tx_b1_pins[] = { PIN(GPIOX_8, EE_OFF) }; -static const unsigned int uart_rx_b1_pins[] = { PIN(GPIOX_9, EE_OFF) }; -static const unsigned int uart_cts_b1_pins[] = { PIN(GPIOX_10, EE_OFF) }; -static const unsigned int uart_rts_b1_pins[] = { PIN(GPIOX_20, EE_OFF) }; +static const unsigned int uart_tx_a_pins[] = { GPIOX_4 }; +static const unsigned int uart_rx_a_pins[] = { GPIOX_5 }; +static const unsigned int uart_cts_a_pins[] = { GPIOX_6 }; +static const unsigned int uart_rts_a_pins[] = { GPIOX_7 }; +static const unsigned int uart_tx_b1_pins[] = { GPIOX_8 }; +static const unsigned int uart_rx_b1_pins[] = { GPIOX_9 }; +static const unsigned int uart_cts_b1_pins[] = { GPIOX_10 }; +static const unsigned int uart_rts_b1_pins[] = { GPIOX_20 }; -static const unsigned int iso7816_0_clk_pins[] = { PIN(GPIOX_6, EE_OFF) }; -static const unsigned int iso7816_0_data_pins[] = { PIN(GPIOX_7, EE_OFF) }; -static const unsigned int spi_sclk_0_pins[] = { PIN(GPIOX_8, EE_OFF) }; -static const unsigned int spi_miso_0_pins[] = { PIN(GPIOX_9, EE_OFF) }; -static const unsigned int spi_mosi_0_pins[] = { PIN(GPIOX_10, EE_OFF) }; -static const unsigned int iso7816_det_pins[] = { PIN(GPIOX_16, EE_OFF) }; -static const unsigned int iso7816_reset_pins[] = { PIN(GPIOX_17, EE_OFF) }; -static const unsigned int iso7816_1_clk_pins[] = { PIN(GPIOX_18, EE_OFF) }; -static const unsigned int iso7816_1_data_pins[] = { PIN(GPIOX_19, EE_OFF) }; -static const unsigned int spi_ss0_0_pins[] = { PIN(GPIOX_20, EE_OFF) }; +static const unsigned int iso7816_0_clk_pins[] = { GPIOX_6 }; +static const unsigned int iso7816_0_data_pins[] = { GPIOX_7 }; +static const unsigned int spi_sclk_0_pins[] = { GPIOX_8 }; +static const unsigned int spi_miso_0_pins[] = { GPIOX_9 }; +static const unsigned int spi_mosi_0_pins[] = { GPIOX_10 }; +static const unsigned int iso7816_det_pins[] = { GPIOX_16 }; +static const unsigned int iso7816_reset_pins[] = { GPIOX_17 }; +static const unsigned int iso7816_1_clk_pins[] = { GPIOX_18 }; +static const unsigned int iso7816_1_data_pins[] = { GPIOX_19 }; +static const unsigned int spi_ss0_0_pins[] = { GPIOX_20 }; -static const unsigned int tsin_clk_b_pins[] = { PIN(GPIOX_8, EE_OFF) }; -static const unsigned int tsin_sop_b_pins[] = { PIN(GPIOX_9, EE_OFF) }; -static const unsigned int tsin_d0_b_pins[] = { PIN(GPIOX_10, EE_OFF) }; -static const unsigned int pwm_b_pins[] = { PIN(GPIOX_11, EE_OFF) }; -static const unsigned int i2c_sda_d0_pins[] = { PIN(GPIOX_16, EE_OFF) }; -static const unsigned int i2c_sck_d0_pins[] = { PIN(GPIOX_17, EE_OFF) }; -static const unsigned int tsin_d_valid_b_pins[] = { PIN(GPIOX_20, EE_OFF) }; +static const unsigned int tsin_clk_b_pins[] = { GPIOX_8 }; +static const unsigned int tsin_sop_b_pins[] = { GPIOX_9 }; +static const unsigned int tsin_d0_b_pins[] = { GPIOX_10 }; +static const unsigned int pwm_b_pins[] = { GPIOX_11 }; +static const unsigned int i2c_sda_d0_pins[] = { GPIOX_16 }; +static const unsigned int i2c_sck_d0_pins[] = { GPIOX_17 }; +static const unsigned int tsin_d_valid_b_pins[] = { GPIOX_20 }; /* bank Y */ -static const unsigned int tsin_d_valid_a_pins[] = { PIN(GPIOY_0, EE_OFF) }; -static const unsigned int tsin_sop_a_pins[] = { PIN(GPIOY_1, EE_OFF) }; -static const unsigned int tsin_d17_a_pins[] = { PIN(GPIOY_6, EE_OFF), - PIN(GPIOY_7, EE_OFF), PIN(GPIOY_10, EE_OFF), PIN(GPIOY_11, EE_OFF), - PIN(GPIOY_12, EE_OFF), PIN(GPIOY_13, EE_OFF), PIN(GPIOY_14, EE_OFF) }; -static const unsigned int tsin_clk_a_pins[] = { PIN(GPIOY_8, EE_OFF) }; -static const unsigned int tsin_d0_a_pins[] = { PIN(GPIOY_9, EE_OFF) }; +static const unsigned int tsin_d_valid_a_pins[] = { GPIOY_0 }; +static const unsigned int tsin_sop_a_pins[] = { GPIOY_1 }; +static const unsigned int tsin_d17_a_pins[] = { GPIOY_6, + GPIOY_7, GPIOY_10, GPIOY_11, + GPIOY_12, GPIOY_13, GPIOY_14 }; +static const unsigned int tsin_clk_a_pins[] = { GPIOY_8 }; +static const unsigned int tsin_d0_a_pins[] = { GPIOY_9 }; -static const unsigned int spdif_out_0_pins[] = { PIN(GPIOY_3, EE_OFF) }; +static const unsigned int spdif_out_0_pins[] = { GPIOY_3 }; -static const unsigned int xtal_24m_pins[] = { PIN(GPIOY_3, EE_OFF) }; -static const unsigned int iso7816_2_clk_pins[] = { PIN(GPIOY_13, EE_OFF) }; -static const unsigned int iso7816_2_data_pins[] = { PIN(GPIOY_14, EE_OFF) }; +static const unsigned int xtal_24m_pins[] = { GPIOY_3 }; +static const unsigned int iso7816_2_clk_pins[] = { GPIOY_13 }; +static const unsigned int iso7816_2_data_pins[] = { GPIOY_14 }; /* bank DV */ -static const unsigned int pwm_d_pins[] = { PIN(GPIODV_28, EE_OFF) }; -static const unsigned int pwm_c0_pins[] = { PIN(GPIODV_29, EE_OFF) }; +static const unsigned int pwm_d_pins[] = { GPIODV_28 }; +static const unsigned int pwm_c0_pins[] = { GPIODV_29 }; -static const unsigned int pwm_vs_2_pins[] = { PIN(GPIODV_9, EE_OFF) }; -static const unsigned int pwm_vs_3_pins[] = { PIN(GPIODV_28, EE_OFF) }; -static const unsigned int pwm_vs_4_pins[] = { PIN(GPIODV_29, EE_OFF) }; +static const unsigned int pwm_vs_2_pins[] = { GPIODV_9 }; +static const unsigned int pwm_vs_3_pins[] = { GPIODV_28 }; +static const unsigned int pwm_vs_4_pins[] = { GPIODV_29 }; -static const unsigned int xtal24_out_pins[] = { PIN(GPIODV_29, EE_OFF) }; +static const unsigned int xtal24_out_pins[] = { GPIODV_29 }; -static const unsigned int uart_tx_c_pins[] = { PIN(GPIODV_24, EE_OFF) }; -static const unsigned int uart_rx_c_pins[] = { PIN(GPIODV_25, EE_OFF) }; -static const unsigned int uart_cts_c_pins[] = { PIN(GPIODV_26, EE_OFF) }; -static const unsigned int uart_rts_c_pins[] = { PIN(GPIODV_27, EE_OFF) }; +static const unsigned int uart_tx_c_pins[] = { GPIODV_24 }; +static const unsigned int uart_rx_c_pins[] = { GPIODV_25 }; +static const unsigned int uart_cts_c_pins[] = { GPIODV_26 }; +static const unsigned int uart_rts_c_pins[] = { GPIODV_27 }; -static const unsigned int pwm_c1_pins[] = { PIN(GPIODV_9, EE_OFF) }; +static const unsigned int pwm_c1_pins[] = { GPIODV_9 }; -static const unsigned int i2c_sda_a_pins[] = { PIN(GPIODV_24, EE_OFF) }; -static const unsigned int i2c_sck_a_pins[] = { PIN(GPIODV_25, EE_OFF) }; -static const unsigned int i2c_sda_b0_pins[] = { PIN(GPIODV_26, EE_OFF) }; -static const unsigned int i2c_sck_b0_pins[] = { PIN(GPIODV_27, EE_OFF) }; -static const unsigned int i2c_sda_c0_pins[] = { PIN(GPIODV_28, EE_OFF) }; -static const unsigned int i2c_sck_c0_pins[] = { PIN(GPIODV_29, EE_OFF) }; +static const unsigned int i2c_sda_a_pins[] = { GPIODV_24 }; +static const unsigned int i2c_sck_a_pins[] = { GPIODV_25 }; +static const unsigned int i2c_sda_b0_pins[] = { GPIODV_26 }; +static const unsigned int i2c_sck_b0_pins[] = { GPIODV_27 }; +static const unsigned int i2c_sda_c0_pins[] = { GPIODV_28 }; +static const unsigned int i2c_sck_c0_pins[] = { GPIODV_29 }; /* bank H */ -static const unsigned int hdmi_hpd_pins[] = { PIN(GPIOH_0, EE_OFF) }; -static const unsigned int hdmi_sda_pins[] = { PIN(GPIOH_1, EE_OFF) }; -static const unsigned int hdmi_scl_pins[] = { PIN(GPIOH_2, EE_OFF) }; -static const unsigned int hdmi_cec_0_pins[] = { PIN(GPIOH_3, EE_OFF) }; -static const unsigned int eth_txd1_0_pins[] = { PIN(GPIOH_5, EE_OFF) }; -static const unsigned int eth_txd0_0_pins[] = { PIN(GPIOH_6, EE_OFF) }; -static const unsigned int clk_24m_out_pins[] = { PIN(GPIOH_9, EE_OFF) }; +static const unsigned int hdmi_hpd_pins[] = { GPIOH_0 }; +static const unsigned int hdmi_sda_pins[] = { GPIOH_1 }; +static const unsigned int hdmi_scl_pins[] = { GPIOH_2 }; +static const unsigned int hdmi_cec_0_pins[] = { GPIOH_3 }; +static const unsigned int eth_txd1_0_pins[] = { GPIOH_5 }; +static const unsigned int eth_txd0_0_pins[] = { GPIOH_6 }; +static const unsigned int clk_24m_out_pins[] = { GPIOH_9 }; -static const unsigned int spi_ss1_pins[] = { PIN(GPIOH_0, EE_OFF) }; -static const unsigned int spi_ss2_pins[] = { PIN(GPIOH_1, EE_OFF) }; -static const unsigned int spi_ss0_1_pins[] = { PIN(GPIOH_3, EE_OFF) }; -static const unsigned int spi_miso_1_pins[] = { PIN(GPIOH_4, EE_OFF) }; -static const unsigned int spi_mosi_1_pins[] = { PIN(GPIOH_5, EE_OFF) }; -static const unsigned int spi_sclk_1_pins[] = { PIN(GPIOH_6, EE_OFF) }; +static const unsigned int spi_ss1_pins[] = { GPIOH_0 }; +static const unsigned int spi_ss2_pins[] = { GPIOH_1 }; +static const unsigned int spi_ss0_1_pins[] = { GPIOH_3 }; +static const unsigned int spi_miso_1_pins[] = { GPIOH_4 }; +static const unsigned int spi_mosi_1_pins[] = { GPIOH_5 }; +static const unsigned int spi_sclk_1_pins[] = { GPIOH_6 }; -static const unsigned int eth_txd3_pins[] = { PIN(GPIOH_7, EE_OFF) }; -static const unsigned int eth_txd2_pins[] = { PIN(GPIOH_8, EE_OFF) }; -static const unsigned int eth_tx_clk_pins[] = { PIN(GPIOH_9, EE_OFF) }; +static const unsigned int eth_txd3_pins[] = { GPIOH_7 }; +static const unsigned int eth_txd2_pins[] = { GPIOH_8 }; +static const unsigned int eth_tx_clk_pins[] = { GPIOH_9 }; -static const unsigned int i2c_sda_b1_pins[] = { PIN(GPIOH_3, EE_OFF) }; -static const unsigned int i2c_sck_b1_pins[] = { PIN(GPIOH_4, EE_OFF) }; -static const unsigned int i2c_sda_c1_pins[] = { PIN(GPIOH_5, EE_OFF) }; -static const unsigned int i2c_sck_c1_pins[] = { PIN(GPIOH_6, EE_OFF) }; -static const unsigned int i2c_sda_d1_pins[] = { PIN(GPIOH_7, EE_OFF) }; -static const unsigned int i2c_sck_d1_pins[] = { PIN(GPIOH_8, EE_OFF) }; +static const unsigned int i2c_sda_b1_pins[] = { GPIOH_3 }; +static const unsigned int i2c_sck_b1_pins[] = { GPIOH_4 }; +static const unsigned int i2c_sda_c1_pins[] = { GPIOH_5 }; +static const unsigned int i2c_sck_c1_pins[] = { GPIOH_6 }; +static const unsigned int i2c_sda_d1_pins[] = { GPIOH_7 }; +static const unsigned int i2c_sck_d1_pins[] = { GPIOH_8 }; /* bank BOOT */ -static const unsigned int nand_io_pins[] = { PIN(BOOT_0, EE_OFF), - PIN(BOOT_1, EE_OFF), PIN(BOOT_2, EE_OFF), PIN(BOOT_3, EE_OFF), - PIN(BOOT_4, EE_OFF), PIN(BOOT_5, EE_OFF), PIN(BOOT_6, EE_OFF), - PIN(BOOT_7, EE_OFF) }; -static const unsigned int nand_io_ce0_pins[] = { PIN(BOOT_8, EE_OFF) }; -static const unsigned int nand_io_ce1_pins[] = { PIN(BOOT_9, EE_OFF) }; -static const unsigned int nand_io_rb0_pins[] = { PIN(BOOT_10, EE_OFF) }; -static const unsigned int nand_ale_pins[] = { PIN(BOOT_11, EE_OFF) }; -static const unsigned int nand_cle_pins[] = { PIN(BOOT_12, EE_OFF) }; -static const unsigned int nand_wen_clk_pins[] = { PIN(BOOT_13, EE_OFF) }; -static const unsigned int nand_ren_clk_pins[] = { PIN(BOOT_14, EE_OFF) }; -static const unsigned int nand_dqs_0_pins[] = { PIN(BOOT_15, EE_OFF) }; -static const unsigned int nand_dqs_1_pins[] = { PIN(BOOT_18, EE_OFF) }; +static const unsigned int nand_io_pins[] = { BOOT_0, + BOOT_1, BOOT_2, BOOT_3, + BOOT_4, BOOT_5, BOOT_6, + BOOT_7 }; +static const unsigned int nand_io_ce0_pins[] = { BOOT_8 }; +static const unsigned int nand_io_ce1_pins[] = { BOOT_9 }; +static const unsigned int nand_io_rb0_pins[] = { BOOT_10 }; +static const unsigned int nand_ale_pins[] = { BOOT_11 }; +static const unsigned int nand_cle_pins[] = { BOOT_12 }; +static const unsigned int nand_wen_clk_pins[] = { BOOT_13 }; +static const unsigned int nand_ren_clk_pins[] = { BOOT_14 }; +static const unsigned int nand_dqs_0_pins[] = { BOOT_15 }; +static const unsigned int nand_dqs_1_pins[] = { BOOT_18 }; -static const unsigned int sdxc_d0_c_pins[] = { PIN(BOOT_0, EE_OFF)}; -static const unsigned int sdxc_d13_c_pins[] = { PIN(BOOT_1, EE_OFF), - PIN(BOOT_2, EE_OFF), PIN(BOOT_3, EE_OFF) }; -static const unsigned int sdxc_d47_c_pins[] = { PIN(BOOT_4, EE_OFF), - PIN(BOOT_5, EE_OFF), PIN(BOOT_6, EE_OFF), PIN(BOOT_7, EE_OFF) }; -static const unsigned int sdxc_clk_c_pins[] = { PIN(BOOT_8, EE_OFF) }; -static const unsigned int sdxc_cmd_c_pins[] = { PIN(BOOT_10, EE_OFF) }; -static const unsigned int nor_d_pins[] = { PIN(BOOT_11, EE_OFF) }; -static const unsigned int nor_q_pins[] = { PIN(BOOT_12, EE_OFF) }; -static const unsigned int nor_c_pins[] = { PIN(BOOT_13, EE_OFF) }; -static const unsigned int nor_cs_pins[] = { PIN(BOOT_18, EE_OFF) }; +static const unsigned int sdxc_d0_c_pins[] = { BOOT_0}; +static const unsigned int sdxc_d13_c_pins[] = { BOOT_1, + BOOT_2, BOOT_3 }; +static const unsigned int sdxc_d47_c_pins[] = { BOOT_4, + BOOT_5, BOOT_6, BOOT_7 }; +static const unsigned int sdxc_clk_c_pins[] = { BOOT_8 }; +static const unsigned int sdxc_cmd_c_pins[] = { BOOT_10 }; +static const unsigned int nor_d_pins[] = { BOOT_11 }; +static const unsigned int nor_q_pins[] = { BOOT_12 }; +static const unsigned int nor_c_pins[] = { BOOT_13 }; +static const unsigned int nor_cs_pins[] = { BOOT_18 }; -static const unsigned int sd_d0_c_pins[] = { PIN(BOOT_0, EE_OFF) }; -static const unsigned int sd_d1_c_pins[] = { PIN(BOOT_1, EE_OFF) }; -static const unsigned int sd_d2_c_pins[] = { PIN(BOOT_2, EE_OFF) }; -static const unsigned int sd_d3_c_pins[] = { PIN(BOOT_3, EE_OFF) }; -static const unsigned int sd_cmd_c_pins[] = { PIN(BOOT_8, EE_OFF) }; -static const unsigned int sd_clk_c_pins[] = { PIN(BOOT_10, EE_OFF) }; +static const unsigned int sd_d0_c_pins[] = { BOOT_0 }; +static const unsigned int sd_d1_c_pins[] = { BOOT_1 }; +static const unsigned int sd_d2_c_pins[] = { BOOT_2 }; +static const unsigned int sd_d3_c_pins[] = { BOOT_3 }; +static const unsigned int sd_cmd_c_pins[] = { BOOT_8 }; +static const unsigned int sd_clk_c_pins[] = { BOOT_10 }; /* bank CARD */ -static const unsigned int sd_d1_b_pins[] = { PIN(CARD_0, EE_OFF) }; -static const unsigned int sd_d0_b_pins[] = { PIN(CARD_1, EE_OFF) }; -static const unsigned int sd_clk_b_pins[] = { PIN(CARD_2, EE_OFF) }; -static const unsigned int sd_cmd_b_pins[] = { PIN(CARD_3, EE_OFF) }; -static const unsigned int sd_d3_b_pins[] = { PIN(CARD_4, EE_OFF) }; -static const unsigned int sd_d2_b_pins[] = { PIN(CARD_5, EE_OFF) }; +static const unsigned int sd_d1_b_pins[] = { CARD_0 }; +static const unsigned int sd_d0_b_pins[] = { CARD_1 }; +static const unsigned int sd_clk_b_pins[] = { CARD_2 }; +static const unsigned int sd_cmd_b_pins[] = { CARD_3 }; +static const unsigned int sd_d3_b_pins[] = { CARD_4 }; +static const unsigned int sd_d2_b_pins[] = { CARD_5 }; -static const unsigned int sdxc_d13_b_pins[] = { PIN(CARD_0, EE_OFF), - PIN(CARD_4, EE_OFF), PIN(CARD_5, EE_OFF) }; -static const unsigned int sdxc_d0_b_pins[] = { PIN(CARD_1, EE_OFF) }; -static const unsigned int sdxc_clk_b_pins[] = { PIN(CARD_2, EE_OFF) }; -static const unsigned int sdxc_cmd_b_pins[] = { PIN(CARD_3, EE_OFF) }; +static const unsigned int sdxc_d13_b_pins[] = { CARD_0, + CARD_4, CARD_5 }; +static const unsigned int sdxc_d0_b_pins[] = { CARD_1 }; +static const unsigned int sdxc_clk_b_pins[] = { CARD_2 }; +static const unsigned int sdxc_cmd_b_pins[] = { CARD_3 }; /* bank AO */ -static const unsigned int uart_tx_ao_a_pins[] = { PIN(GPIOAO_0, 0) }; -static const unsigned int uart_rx_ao_a_pins[] = { PIN(GPIOAO_1, 0) }; -static const unsigned int uart_cts_ao_a_pins[] = { PIN(GPIOAO_2, 0) }; -static const unsigned int uart_rts_ao_a_pins[] = { PIN(GPIOAO_3, 0) }; -static const unsigned int i2c_mst_sck_ao_pins[] = { PIN(GPIOAO_4, 0) }; -static const unsigned int i2c_mst_sda_ao_pins[] = { PIN(GPIOAO_5, 0) }; -static const unsigned int clk_32k_in_out_pins[] = { PIN(GPIOAO_6, 0) }; -static const unsigned int remote_input_pins[] = { PIN(GPIOAO_7, 0) }; -static const unsigned int hdmi_cec_1_pins[] = { PIN(GPIOAO_12, 0) }; -static const unsigned int ir_blaster_pins[] = { PIN(GPIOAO_13, 0) }; +static const unsigned int uart_tx_ao_a_pins[] = { GPIOAO_0 }; +static const unsigned int uart_rx_ao_a_pins[] = { GPIOAO_1 }; +static const unsigned int uart_cts_ao_a_pins[] = { GPIOAO_2 }; +static const unsigned int uart_rts_ao_a_pins[] = { GPIOAO_3 }; +static const unsigned int i2c_mst_sck_ao_pins[] = { GPIOAO_4 }; +static const unsigned int i2c_mst_sda_ao_pins[] = { GPIOAO_5 }; +static const unsigned int clk_32k_in_out_pins[] = { GPIOAO_6 }; +static const unsigned int remote_input_pins[] = { GPIOAO_7 }; +static const unsigned int hdmi_cec_1_pins[] = { GPIOAO_12 }; +static const unsigned int ir_blaster_pins[] = { GPIOAO_13 }; -static const unsigned int pwm_c2_pins[] = { PIN(GPIOAO_3, 0) }; -static const unsigned int i2c_sck_ao_pins[] = { PIN(GPIOAO_4, 0) }; -static const unsigned int i2c_sda_ao_pins[] = { PIN(GPIOAO_5, 0) }; -static const unsigned int ir_remote_out_pins[] = { PIN(GPIOAO_7, 0) }; -static const unsigned int i2s_am_clk_out_pins[] = { PIN(GPIOAO_8, 0) }; -static const unsigned int i2s_ao_clk_out_pins[] = { PIN(GPIOAO_9, 0) }; -static const unsigned int i2s_lr_clk_out_pins[] = { PIN(GPIOAO_10, 0) }; -static const unsigned int i2s_out_01_pins[] = { PIN(GPIOAO_11, 0) }; +static const unsigned int pwm_c2_pins[] = { GPIOAO_3 }; +static const unsigned int i2c_sck_ao_pins[] = { GPIOAO_4 }; +static const unsigned int i2c_sda_ao_pins[] = { GPIOAO_5 }; +static const unsigned int ir_remote_out_pins[] = { GPIOAO_7 }; +static const unsigned int i2s_am_clk_out_pins[] = { GPIOAO_8 }; +static const unsigned int i2s_ao_clk_out_pins[] = { GPIOAO_9 }; +static const unsigned int i2s_lr_clk_out_pins[] = { GPIOAO_10 }; +static const unsigned int i2s_out_01_pins[] = { GPIOAO_11 }; -static const unsigned int uart_tx_ao_b0_pins[] = { PIN(GPIOAO_0, 0) }; -static const unsigned int uart_rx_ao_b0_pins[] = { PIN(GPIOAO_1, 0) }; -static const unsigned int uart_cts_ao_b_pins[] = { PIN(GPIOAO_2, 0) }; -static const unsigned int uart_rts_ao_b_pins[] = { PIN(GPIOAO_3, 0) }; -static const unsigned int uart_tx_ao_b1_pins[] = { PIN(GPIOAO_4, 0) }; -static const unsigned int uart_rx_ao_b1_pins[] = { PIN(GPIOAO_5, 0) }; -static const unsigned int spdif_out_1_pins[] = { PIN(GPIOAO_6, 0) }; -static const unsigned int spdif_out_2_pins[] = { PIN(GPIOAO_13, 0) }; +static const unsigned int uart_tx_ao_b0_pins[] = { GPIOAO_0 }; +static const unsigned int uart_rx_ao_b0_pins[] = { GPIOAO_1 }; +static const unsigned int uart_cts_ao_b_pins[] = { GPIOAO_2 }; +static const unsigned int uart_rts_ao_b_pins[] = { GPIOAO_3 }; +static const unsigned int uart_tx_ao_b1_pins[] = { GPIOAO_4 }; +static const unsigned int uart_rx_ao_b1_pins[] = { GPIOAO_5 }; +static const unsigned int spdif_out_1_pins[] = { GPIOAO_6 }; +static const unsigned int spdif_out_2_pins[] = { GPIOAO_13 }; -static const unsigned int i2s_in_ch01_pins[] = { PIN(GPIOAO_6, 0) }; -static const unsigned int i2s_ao_clk_in_pins[] = { PIN(GPIOAO_9, 0) }; -static const unsigned int i2s_lr_clk_in_pins[] = { PIN(GPIOAO_10, 0) }; +static const unsigned int i2s_in_ch01_pins[] = { GPIOAO_6 }; +static const unsigned int i2s_ao_clk_in_pins[] = { GPIOAO_9 }; +static const unsigned int i2s_lr_clk_in_pins[] = { GPIOAO_10 }; /* bank DIF */ -static const unsigned int eth_rxd1_pins[] = { PIN(DIF_0_P, EE_OFF) }; -static const unsigned int eth_rxd0_pins[] = { PIN(DIF_0_N, EE_OFF) }; -static const unsigned int eth_rx_dv_pins[] = { PIN(DIF_1_P, EE_OFF) }; -static const unsigned int eth_rx_clk_pins[] = { PIN(DIF_1_N, EE_OFF) }; -static const unsigned int eth_txd0_1_pins[] = { PIN(DIF_2_P, EE_OFF) }; -static const unsigned int eth_txd1_1_pins[] = { PIN(DIF_2_N, EE_OFF) }; -static const unsigned int eth_tx_en_pins[] = { PIN(DIF_3_P, EE_OFF) }; -static const unsigned int eth_ref_clk_pins[] = { PIN(DIF_3_N, EE_OFF) }; -static const unsigned int eth_mdc_pins[] = { PIN(DIF_4_P, EE_OFF) }; -static const unsigned int eth_mdio_en_pins[] = { PIN(DIF_4_N, EE_OFF) }; +static const unsigned int eth_rxd1_pins[] = { DIF_0_P }; +static const unsigned int eth_rxd0_pins[] = { DIF_0_N }; +static const unsigned int eth_rx_dv_pins[] = { DIF_1_P }; +static const unsigned int eth_rx_clk_pins[] = { DIF_1_N }; +static const unsigned int eth_txd0_1_pins[] = { DIF_2_P }; +static const unsigned int eth_txd1_1_pins[] = { DIF_2_N }; +static const unsigned int eth_tx_en_pins[] = { DIF_3_P }; +static const unsigned int eth_ref_clk_pins[] = { DIF_3_N }; +static const unsigned int eth_mdc_pins[] = { DIF_4_P }; +static const unsigned int eth_mdio_en_pins[] = { DIF_4_N }; static struct meson_pmx_group meson8b_cbus_groups[] = { - GPIO_GROUP(GPIOX_0, EE_OFF), - GPIO_GROUP(GPIOX_1, EE_OFF), - GPIO_GROUP(GPIOX_2, EE_OFF), - GPIO_GROUP(GPIOX_3, EE_OFF), - GPIO_GROUP(GPIOX_4, EE_OFF), - GPIO_GROUP(GPIOX_5, EE_OFF), - GPIO_GROUP(GPIOX_6, EE_OFF), - GPIO_GROUP(GPIOX_7, EE_OFF), - GPIO_GROUP(GPIOX_8, EE_OFF), - GPIO_GROUP(GPIOX_9, EE_OFF), - GPIO_GROUP(GPIOX_10, EE_OFF), - GPIO_GROUP(GPIOX_11, EE_OFF), - GPIO_GROUP(GPIOX_16, EE_OFF), - GPIO_GROUP(GPIOX_17, EE_OFF), - GPIO_GROUP(GPIOX_18, EE_OFF), - GPIO_GROUP(GPIOX_19, EE_OFF), - GPIO_GROUP(GPIOX_20, EE_OFF), - GPIO_GROUP(GPIOX_21, EE_OFF), + GPIO_GROUP(GPIOX_0), + GPIO_GROUP(GPIOX_1), + GPIO_GROUP(GPIOX_2), + GPIO_GROUP(GPIOX_3), + GPIO_GROUP(GPIOX_4), + GPIO_GROUP(GPIOX_5), + GPIO_GROUP(GPIOX_6), + GPIO_GROUP(GPIOX_7), + GPIO_GROUP(GPIOX_8), + GPIO_GROUP(GPIOX_9), + GPIO_GROUP(GPIOX_10), + GPIO_GROUP(GPIOX_11), + GPIO_GROUP(GPIOX_16), + GPIO_GROUP(GPIOX_17), + GPIO_GROUP(GPIOX_18), + GPIO_GROUP(GPIOX_19), + GPIO_GROUP(GPIOX_20), + GPIO_GROUP(GPIOX_21), - GPIO_GROUP(GPIOY_0, EE_OFF), - GPIO_GROUP(GPIOY_1, EE_OFF), - GPIO_GROUP(GPIOY_3, EE_OFF), - GPIO_GROUP(GPIOY_6, EE_OFF), - GPIO_GROUP(GPIOY_7, EE_OFF), - GPIO_GROUP(GPIOY_8, EE_OFF), - GPIO_GROUP(GPIOY_9, EE_OFF), - GPIO_GROUP(GPIOY_10, EE_OFF), - GPIO_GROUP(GPIOY_11, EE_OFF), - GPIO_GROUP(GPIOY_12, EE_OFF), - GPIO_GROUP(GPIOY_13, EE_OFF), - GPIO_GROUP(GPIOY_14, EE_OFF), + GPIO_GROUP(GPIOY_0), + GPIO_GROUP(GPIOY_1), + GPIO_GROUP(GPIOY_3), + GPIO_GROUP(GPIOY_6), + GPIO_GROUP(GPIOY_7), + GPIO_GROUP(GPIOY_8), + GPIO_GROUP(GPIOY_9), + GPIO_GROUP(GPIOY_10), + GPIO_GROUP(GPIOY_11), + GPIO_GROUP(GPIOY_12), + GPIO_GROUP(GPIOY_13), + GPIO_GROUP(GPIOY_14), - GPIO_GROUP(GPIODV_9, EE_OFF), - GPIO_GROUP(GPIODV_24, EE_OFF), - GPIO_GROUP(GPIODV_25, EE_OFF), - GPIO_GROUP(GPIODV_26, EE_OFF), - GPIO_GROUP(GPIODV_27, EE_OFF), - GPIO_GROUP(GPIODV_28, EE_OFF), - GPIO_GROUP(GPIODV_29, EE_OFF), + GPIO_GROUP(GPIODV_9), + GPIO_GROUP(GPIODV_24), + GPIO_GROUP(GPIODV_25), + GPIO_GROUP(GPIODV_26), + GPIO_GROUP(GPIODV_27), + GPIO_GROUP(GPIODV_28), + GPIO_GROUP(GPIODV_29), - GPIO_GROUP(GPIOH_0, EE_OFF), - GPIO_GROUP(GPIOH_1, EE_OFF), - GPIO_GROUP(GPIOH_2, EE_OFF), - GPIO_GROUP(GPIOH_3, EE_OFF), - GPIO_GROUP(GPIOH_4, EE_OFF), - GPIO_GROUP(GPIOH_5, EE_OFF), - GPIO_GROUP(GPIOH_6, EE_OFF), - GPIO_GROUP(GPIOH_7, EE_OFF), - GPIO_GROUP(GPIOH_8, EE_OFF), - GPIO_GROUP(GPIOH_9, EE_OFF), + GPIO_GROUP(GPIOH_0), + GPIO_GROUP(GPIOH_1), + GPIO_GROUP(GPIOH_2), + GPIO_GROUP(GPIOH_3), + GPIO_GROUP(GPIOH_4), + GPIO_GROUP(GPIOH_5), + GPIO_GROUP(GPIOH_6), + GPIO_GROUP(GPIOH_7), + GPIO_GROUP(GPIOH_8), + GPIO_GROUP(GPIOH_9), - GPIO_GROUP(DIF_0_P, EE_OFF), - GPIO_GROUP(DIF_0_N, EE_OFF), - GPIO_GROUP(DIF_1_P, EE_OFF), - GPIO_GROUP(DIF_1_N, EE_OFF), - GPIO_GROUP(DIF_2_P, EE_OFF), - GPIO_GROUP(DIF_2_N, EE_OFF), - GPIO_GROUP(DIF_3_P, EE_OFF), - GPIO_GROUP(DIF_3_N, EE_OFF), - GPIO_GROUP(DIF_4_P, EE_OFF), - GPIO_GROUP(DIF_4_N, EE_OFF), + GPIO_GROUP(DIF_0_P), + GPIO_GROUP(DIF_0_N), + GPIO_GROUP(DIF_1_P), + GPIO_GROUP(DIF_1_N), + GPIO_GROUP(DIF_2_P), + GPIO_GROUP(DIF_2_N), + GPIO_GROUP(DIF_3_P), + GPIO_GROUP(DIF_3_N), + GPIO_GROUP(DIF_4_P), + GPIO_GROUP(DIF_4_N), - GPIO_GROUP(BOOT_0, EE_OFF), - GPIO_GROUP(BOOT_1, EE_OFF), - GPIO_GROUP(BOOT_2, EE_OFF), - GPIO_GROUP(BOOT_3, EE_OFF), - GPIO_GROUP(BOOT_4, EE_OFF), - GPIO_GROUP(BOOT_5, EE_OFF), - GPIO_GROUP(BOOT_6, EE_OFF), - GPIO_GROUP(BOOT_7, EE_OFF), - GPIO_GROUP(BOOT_8, EE_OFF), - GPIO_GROUP(BOOT_10, EE_OFF), + GPIO_GROUP(BOOT_0), + GPIO_GROUP(BOOT_1), + GPIO_GROUP(BOOT_2), + GPIO_GROUP(BOOT_3), + GPIO_GROUP(BOOT_4), + GPIO_GROUP(BOOT_5), + GPIO_GROUP(BOOT_6), + GPIO_GROUP(BOOT_7), + GPIO_GROUP(BOOT_8), + GPIO_GROUP(BOOT_10), /* bank X */ GROUP(sd_d0_a, 8, 5), @@ -583,20 +581,20 @@ static struct meson_pmx_group meson8b_cbus_groups[] = { }; static struct meson_pmx_group meson8b_aobus_groups[] = { - GPIO_GROUP(GPIOAO_0, 0), - GPIO_GROUP(GPIOAO_1, 0), - GPIO_GROUP(GPIOAO_2, 0), - GPIO_GROUP(GPIOAO_3, 0), - GPIO_GROUP(GPIOAO_4, 0), - GPIO_GROUP(GPIOAO_5, 0), - GPIO_GROUP(GPIOAO_6, 0), - GPIO_GROUP(GPIOAO_7, 0), - GPIO_GROUP(GPIOAO_8, 0), - GPIO_GROUP(GPIOAO_9, 0), - GPIO_GROUP(GPIOAO_10, 0), - GPIO_GROUP(GPIOAO_11, 0), - GPIO_GROUP(GPIOAO_12, 0), - GPIO_GROUP(GPIOAO_13, 0), + GPIO_GROUP(GPIOAO_0), + GPIO_GROUP(GPIOAO_1), + GPIO_GROUP(GPIOAO_2), + GPIO_GROUP(GPIOAO_3), + GPIO_GROUP(GPIOAO_4), + GPIO_GROUP(GPIOAO_5), + GPIO_GROUP(GPIOAO_6), + GPIO_GROUP(GPIOAO_7), + GPIO_GROUP(GPIOAO_8), + GPIO_GROUP(GPIOAO_9), + GPIO_GROUP(GPIOAO_10), + GPIO_GROUP(GPIOAO_11), + GPIO_GROUP(GPIOAO_12), + GPIO_GROUP(GPIOAO_13), /* bank AO */ GROUP(uart_tx_ao_a, 0, 12), @@ -921,25 +919,25 @@ static struct meson_pmx_func meson8b_aobus_functions[] = { static struct meson_bank meson8b_cbus_banks[] = { /* name first last irq pullen pull dir out in */ - BANK("X", PIN(GPIOX_0, EE_OFF), PIN(GPIOX_21, EE_OFF), 97, + BANK("X", GPIOX_0, GPIOX_21, 97, 4, 0, 4, 0, 0, 0, 1, 0, 2, 0), - BANK("Y", PIN(GPIOY_0, EE_OFF), PIN(GPIOY_16, EE_OFF), 80, + BANK("Y", GPIOY_0, GPIOY_16, 80, 3, 0, 3, 0, 3, 0, 4, 0, 5, 0), - BANK("DV", PIN(GPIODV_0, EE_OFF), PIN(GPIODV_29, EE_OFF), 50, + BANK("DV", GPIODV_0, GPIODV_29, 50, 0, 0, 0, 0, 6, 0, 7, 0, 8, 0), - BANK("H", PIN(GPIOH_0, EE_OFF), PIN(GPIOH_9, EE_OFF), 14, + BANK("H", GPIOH_0, GPIOH_9, 14, 1, 16, 1, 16, 9, 19, 10, 19, 11, 19), - BANK("CARD", PIN(CARD_0, EE_OFF), PIN(CARD_6, EE_OFF), 43, + BANK("CARD", CARD_0, CARD_6, 43, 2, 20, 2, 20, 0, 22, 1, 22, 2, 22), - BANK("BOOT", PIN(BOOT_0, EE_OFF), PIN(BOOT_18, EE_OFF), 24, + BANK("BOOT", BOOT_0, BOOT_18, 24, 2, 0, 2, 0, 9, 0, 10, 0, 11, 0), - BANK("DIF", PIN(DIF_0_P, EE_OFF), PIN(DIF_4_N, EE_OFF), -1, + BANK("DIF", DIF_0_P, DIF_4_N, -1, 5, 8, 5, 8, 12, 12, 13, 12, 14, 12), }; static struct meson_bank meson8b_aobus_banks[] = { /* name first last irq pullen pull dir out in */ - BANK("AO", PIN(GPIOAO_0, 0), PIN(GPIOAO_13, 0), -1, + BANK("AO", GPIOAO_0, GPIOAO_13, -1, 0, 0, 0, 16, 0, 0, 0, 16, 1, 0), }; @@ -947,7 +945,6 @@ static struct meson_domain_data meson8b_periphs_domain_data = { .name = "cbus-banks", .banks = meson8b_cbus_banks, .num_banks = ARRAY_SIZE(meson8b_cbus_banks), - .pin_base = 14, .num_pins = 115, }; @@ -955,7 +952,6 @@ static struct meson_domain_data meson8b_aobus_domain_data = { .name = "aobus-banks", .banks = meson8b_aobus_banks, .num_banks = ARRAY_SIZE(meson8b_aobus_banks), - .pin_base = 0, .num_pins = 14, }; diff --git a/drivers/amlogic/pinctrl/pinctrl-mesonaxg.c b/drivers/amlogic/pinctrl/pinctrl-mesonaxg.c index 1854bdbeb3ac..f42bf6647c4d 100644 --- a/drivers/amlogic/pinctrl/pinctrl-mesonaxg.c +++ b/drivers/amlogic/pinctrl/pinctrl-mesonaxg.c @@ -19,451 +19,449 @@ #include #include "pinctrl-meson.h" -#define EE_OFF 15 - static const struct meson_desc_pin mesonaxg_periphs_pins[] = { - MESON_PINCTRL_PIN(MESON_PIN(GPIOZ_0, EE_OFF), 0x2, 0, + MESON_PINCTRL_PIN(MESON_PIN(GPIOZ_0), 0x2, 0, MESON_FUNCTION(0x0, "gpio"), MESON_FUNCTION(0x1, "spi_a"), /*SPI_CLK_A*/ MESON_FUNCTION(0x2, "uart_b")), /*UART_RTS_EE_B*/ - MESON_PINCTRL_PIN(MESON_PIN(GPIOZ_1, EE_OFF), 0x2, 4, + MESON_PINCTRL_PIN(MESON_PIN(GPIOZ_1), 0x2, 4, MESON_FUNCTION(0x0, "gpio"), MESON_FUNCTION(0x1, "spi_a"), /*SPI_MOSI_A*/ MESON_FUNCTION(0x2, "uart_b")), /*UART_CTS_EE_B*/ - MESON_PINCTRL_PIN(MESON_PIN(GPIOZ_2, EE_OFF), 0x2, 8, + MESON_PINCTRL_PIN(MESON_PIN(GPIOZ_2), 0x2, 8, MESON_FUNCTION(0x0, "gpio"), MESON_FUNCTION(0x1, "spi_a"), /*SPI_MISO_A*/ MESON_FUNCTION(0x2, "uart_b")), /*UART_TX_EE_B*/ - MESON_PINCTRL_PIN(MESON_PIN(GPIOZ_3, EE_OFF), 0x2, 12, + MESON_PINCTRL_PIN(MESON_PIN(GPIOZ_3), 0x2, 12, MESON_FUNCTION(0x0, "gpio"), MESON_FUNCTION(0x1, "spi_a"), /*SPI_SS0_A*/ MESON_FUNCTION(0x2, "uart_b")), /*UART_RX_EE_B*/ - MESON_PINCTRL_PIN(MESON_PIN(GPIOZ_4, EE_OFF), 0x2, 16, + MESON_PINCTRL_PIN(MESON_PIN(GPIOZ_4), 0x2, 16, MESON_FUNCTION(0x0, "gpio"), MESON_FUNCTION(0x1, "spi_a"), /*SPI_SS1_A*/ MESON_FUNCTION(0x2, "pwm_b"), /*PWM_B*/ MESON_FUNCTION(0x3, "spdif_in")), /*SPDIF_IN*/ - MESON_PINCTRL_PIN(MESON_PIN(GPIOZ_5, EE_OFF), 0x2, 20, + MESON_PINCTRL_PIN(MESON_PIN(GPIOZ_5), 0x2, 20, MESON_FUNCTION(0x0, "gpio"), MESON_FUNCTION(0x1, "spi_a"), /*SPI_SS2_A*/ MESON_FUNCTION(0x2, "pwm_a"), /*PWM_A*/ MESON_FUNCTION(0x3, "spdif_out")), /*SPDIF_OUT*/ - MESON_PINCTRL_PIN(MESON_PIN(GPIOZ_6, EE_OFF), 0x2, 24, + MESON_PINCTRL_PIN(MESON_PIN(GPIOZ_6), 0x2, 24, MESON_FUNCTION(0x0, "gpio"), MESON_FUNCTION(0x1, "i2c_a"), /*I2C_SCK_A*/ MESON_FUNCTION(0x2, "uart_ao_b")), /*UART_CTS_AO_B*/ - MESON_PINCTRL_PIN(MESON_PIN(GPIOZ_7, EE_OFF), 0x2, 28, + MESON_PINCTRL_PIN(MESON_PIN(GPIOZ_7), 0x2, 28, MESON_FUNCTION(0x0, "gpio"), MESON_FUNCTION(0x1, "i2c_a"), /*I2C_SDA_A*/ MESON_FUNCTION(0x2, "uart_ao_b")), /*UART_RTS_AO_B*/ - MESON_PINCTRL_PIN(MESON_PIN(GPIOZ_8, EE_OFF), 0x3, 0, + MESON_PINCTRL_PIN(MESON_PIN(GPIOZ_8), 0x3, 0, MESON_FUNCTION(0x0, "gpio"), MESON_FUNCTION(0x1, "i2c_b"), /*I2C_SCK_B*/ MESON_FUNCTION(0x2, "uart_ao_b")), /*UART_TX_AO_B*/ - MESON_PINCTRL_PIN(MESON_PIN(GPIOZ_9, EE_OFF), 0x3, 4, + MESON_PINCTRL_PIN(MESON_PIN(GPIOZ_9), 0x3, 4, MESON_FUNCTION(0x0, "gpio"), MESON_FUNCTION(0x1, "i2c_b"), /*I2C_SDA_B*/ MESON_FUNCTION(0x2, "uart_ao_b")), /*UART_RX_AO_B*/ - MESON_PINCTRL_PIN(MESON_PIN(GPIOZ_10, EE_OFF), 0x3, 8, + MESON_PINCTRL_PIN(MESON_PIN(GPIOZ_10), 0x3, 8, MESON_FUNCTION(0x0, "gpio")), - MESON_PINCTRL_PIN(MESON_PIN(BOOT_0, EE_OFF), 0x0, 0, + MESON_PINCTRL_PIN(MESON_PIN(BOOT_0), 0x0, 0, MESON_FUNCTION(0x0, "gpio"), MESON_FUNCTION(0x1, "emmc"), /*EMMC_D0*/ MESON_FUNCTION(0x1, "nandflash")), /*EMMC_D0*/ - MESON_PINCTRL_PIN(MESON_PIN(BOOT_1, EE_OFF), 0x0, 4, + MESON_PINCTRL_PIN(MESON_PIN(BOOT_1), 0x0, 4, MESON_FUNCTION(0x0, "gpio"), MESON_FUNCTION(0x1, "emmc"), MESON_FUNCTION(0x1, "nandflash")), /*EMMC_D1*/ - MESON_PINCTRL_PIN(MESON_PIN(BOOT_2, EE_OFF), 0x0, 8, + MESON_PINCTRL_PIN(MESON_PIN(BOOT_2), 0x0, 8, MESON_FUNCTION(0x0, "gpio"), MESON_FUNCTION(0x1, "emmc"), MESON_FUNCTION(0x1, "nandflash")), /*EMMC_D2*/ - MESON_PINCTRL_PIN(MESON_PIN(BOOT_3, EE_OFF), 0x0, 12, + MESON_PINCTRL_PIN(MESON_PIN(BOOT_3), 0x0, 12, MESON_FUNCTION(0x0, "gpio"), MESON_FUNCTION(0x1, "emmc"), /*EMMC_D3*/ MESON_FUNCTION(0x1, "nandflash"), MESON_FUNCTION(0x3, "norflash")), /*NOR_HOLD*/ - MESON_PINCTRL_PIN(MESON_PIN(BOOT_4, EE_OFF), 0x0, 16, + MESON_PINCTRL_PIN(MESON_PIN(BOOT_4), 0x0, 16, MESON_FUNCTION(0x0, "gpio"), MESON_FUNCTION(0x1, "emmc"), /*EMMC_D4*/ MESON_FUNCTION(0x1, "nandflash"), MESON_FUNCTION(0x3, "norflash")), /*NOR_D*/ - MESON_PINCTRL_PIN(MESON_PIN(BOOT_5, EE_OFF), 0x0, 20, + MESON_PINCTRL_PIN(MESON_PIN(BOOT_5), 0x0, 20, MESON_FUNCTION(0x0, "gpio"), MESON_FUNCTION(0x1, "emmc"), /*EMMC_D5*/ MESON_FUNCTION(0x1, "nandflash"), MESON_FUNCTION(0x3, "norflash")), /*NOR_Q*/ - MESON_PINCTRL_PIN(MESON_PIN(BOOT_6, EE_OFF), 0x0, 24, + MESON_PINCTRL_PIN(MESON_PIN(BOOT_6), 0x0, 24, MESON_FUNCTION(0x0, "gpio"), MESON_FUNCTION(0x1, "emmc"), /*EMMC_D6*/ MESON_FUNCTION(0x1, "nandflash"), MESON_FUNCTION(0x3, "norflash")), /*NOR_C*/ - MESON_PINCTRL_PIN(MESON_PIN(BOOT_7, EE_OFF), 0x0, 28, + MESON_PINCTRL_PIN(MESON_PIN(BOOT_7), 0x0, 28, MESON_FUNCTION(0x0, "gpio"), MESON_FUNCTION(0x1, "emmc"), MESON_FUNCTION(0x1, "nandflash")), /*EMMC_D7*/ - MESON_PINCTRL_PIN(MESON_PIN(BOOT_8, EE_OFF), 0x1, 0, + MESON_PINCTRL_PIN(MESON_PIN(BOOT_8), 0x1, 0, MESON_FUNCTION(0x0, "gpio"), MESON_FUNCTION(0x1, "emmc"), /*EMMC_CLK*/ MESON_FUNCTION(0x2, "nandflash")), /*NAND_CE0 */ - MESON_PINCTRL_PIN(MESON_PIN(BOOT_9, EE_OFF), 0x1, 4, + MESON_PINCTRL_PIN(MESON_PIN(BOOT_9), 0x1, 4, MESON_FUNCTION(0x0, "gpio"), MESON_FUNCTION(0x2, "nandflash"), /*NAND_ALE*/ MESON_FUNCTION(0x3, "norflash")), /*NOR_WP*/ - MESON_PINCTRL_PIN(MESON_PIN(BOOT_10, EE_OFF), 0x1, 8, + MESON_PINCTRL_PIN(MESON_PIN(BOOT_10), 0x1, 8, MESON_FUNCTION(0x0, "gpio"), MESON_FUNCTION(0x1, "emmc"), /*EMMC_CMD*/ MESON_FUNCTION(0x2, "nandflash")), /*NAND_CLE */ - MESON_PINCTRL_PIN(MESON_PIN(BOOT_11, EE_OFF), 0x1, 12, + MESON_PINCTRL_PIN(MESON_PIN(BOOT_11), 0x1, 12, MESON_FUNCTION(0x0, "gpio"), MESON_FUNCTION(0x2, "nandflash")), /*NAND_WEN_CLK*/ - MESON_PINCTRL_PIN(MESON_PIN(BOOT_12, EE_OFF), 0x1, 16, + MESON_PINCTRL_PIN(MESON_PIN(BOOT_12), 0x1, 16, MESON_FUNCTION(0x0, "gpio"), MESON_FUNCTION(0x2, "nandflash")), /*NAND_REN_WR */ - MESON_PINCTRL_PIN(MESON_PIN(BOOT_13, EE_OFF), 0x1, 20, + MESON_PINCTRL_PIN(MESON_PIN(BOOT_13), 0x1, 20, MESON_FUNCTION(0x0, "gpio"), MESON_FUNCTION(0x1, "emmc"), /*EMMC_DS*/ MESON_FUNCTION(0x2, "nandflash")), /*NAND_RB0*/ - MESON_PINCTRL_PIN(MESON_PIN(BOOT_14, EE_OFF), 0x1, 24, + MESON_PINCTRL_PIN(MESON_PIN(BOOT_14), 0x1, 24, MESON_FUNCTION(0x0, "gpio"), MESON_FUNCTION(0x3, "norflash")), /*NOR_CS */ - MESON_PINCTRL_PIN(MESON_PIN(GPIOA_0, EE_OFF), 0xb, 0, + MESON_PINCTRL_PIN(MESON_PIN(GPIOA_0), 0xb, 0, MESON_FUNCTION(0x0, "gpio"), MESON_FUNCTION(0x1, "mclk"), /*MCLK_A*/ MESON_FUNCTION(0x2, "pwm_vs"), /*PWM_VS*/ MESON_FUNCTION(0x5, "wifi")), /*WIFI_BEACON*/ - MESON_PINCTRL_PIN(MESON_PIN(GPIOA_1, EE_OFF), 0xb, 4, + MESON_PINCTRL_PIN(MESON_PIN(GPIOA_1), 0xb, 4, MESON_FUNCTION(0x0, "gpio"), MESON_FUNCTION(0x1, "mclk"), /*MCLK_B*/ MESON_FUNCTION(0x3, "spdif_in"), /*SPDIF_IN*/ MESON_FUNCTION(0x4, "spdif_out"), /*SPDIF_OUT*/ MESON_FUNCTION(0x5, "wifi")), /*WIFI_BEACON*/ - MESON_PINCTRL_PIN(MESON_PIN(GPIOA_2, EE_OFF), 0xb, 8, + MESON_PINCTRL_PIN(MESON_PIN(GPIOA_2), 0xb, 8, MESON_FUNCTION(0x0, "gpio"), MESON_FUNCTION(0x1, "tdmc_out"), /*TDMC_SCLK*/ MESON_FUNCTION(0x2, "tdmc_in"), /*TDMC_SLV_SCLK*/ MESON_FUNCTION(0x3, "spi_b")), /*SPI_MOSI_B*/ - MESON_PINCTRL_PIN(MESON_PIN(GPIOA_3, EE_OFF), 0xb, 12, + MESON_PINCTRL_PIN(MESON_PIN(GPIOA_3), 0xb, 12, MESON_FUNCTION(0x0, "gpio"), MESON_FUNCTION(0x1, "tdmc_out"), /*TDMC_FS*/ MESON_FUNCTION(0x2, "tdmc_in"), /*TDMC_SLV_FS*/ MESON_FUNCTION(0x3, "spi_b")), /*SPI_MISO_B*/ - MESON_PINCTRL_PIN(MESON_PIN(GPIOA_4, EE_OFF), 0xb, 16, + MESON_PINCTRL_PIN(MESON_PIN(GPIOA_4), 0xb, 16, MESON_FUNCTION(0x0, "gpio"), MESON_FUNCTION(0x1, "tdmc_out"), /*TDMC_DOUT0*/ MESON_FUNCTION(0x2, "tdmc_in"), /*TDMC_DIN0*/ MESON_FUNCTION(0x3, "spi_b")), /*SPI_CLK_B*/ - MESON_PINCTRL_PIN(MESON_PIN(GPIOA_5, EE_OFF), 0xb, 20, + MESON_PINCTRL_PIN(MESON_PIN(GPIOA_5), 0xb, 20, MESON_FUNCTION(0x0, "gpio"), MESON_FUNCTION(0x1, "tdmc_out"), /*TDMC_DOUT1*/ MESON_FUNCTION(0x2, "tdmc_in"), /*TDMC_DIN1*/ MESON_FUNCTION(0x3, "spi_b")), /*SPI_SS0_B*/ - MESON_PINCTRL_PIN(MESON_PIN(GPIOA_6, EE_OFF), 0xb, 24, + MESON_PINCTRL_PIN(MESON_PIN(GPIOA_6), 0xb, 24, MESON_FUNCTION(0x0, "gpio"), MESON_FUNCTION(0x1, "tdmc_out"), /*TDMC_DOUT2*/ MESON_FUNCTION(0x2, "tdmc_in"), /*TDMC_DIN2*/ MESON_FUNCTION(0x3, "spi_b"), /*SPI_SS1_B*/ MESON_FUNCTION(0x4, "i2c_d")), /*I2C_SDA_D*/ - MESON_PINCTRL_PIN(MESON_PIN(GPIOA_7, EE_OFF), 0xb, 28, + MESON_PINCTRL_PIN(MESON_PIN(GPIOA_7), 0xb, 28, MESON_FUNCTION(0x0, "gpio"), MESON_FUNCTION(0x1, "tdmc_out"), /*TDMC_DOUT3*/ MESON_FUNCTION(0x2, "tdmc_in"), /*TDMC_DIN3*/ MESON_FUNCTION(0x3, "spdif_in"), /*SPDIF_IN*/ MESON_FUNCTION(0x4, "i2c_d")), /*I2C_SCK_D*/ - MESON_PINCTRL_PIN(MESON_PIN(GPIOA_8, EE_OFF), 0xc, 0, + MESON_PINCTRL_PIN(MESON_PIN(GPIOA_8), 0xc, 0, MESON_FUNCTION(0x0, "gpio"), MESON_FUNCTION(0x1, "tdmb_out"), /*TDMB_SCLK*/ MESON_FUNCTION(0x2, "tdmb_in")), /*TDMB_SLV_SCLK*/ - MESON_PINCTRL_PIN(MESON_PIN(GPIOA_9, EE_OFF), 0xc, 4, + MESON_PINCTRL_PIN(MESON_PIN(GPIOA_9), 0xc, 4, MESON_FUNCTION(0x0, "gpio"), MESON_FUNCTION(0x1, "tdmb_out"), /*TDMB_FS*/ MESON_FUNCTION(0x2, "tdmb_in")), /*TDMB_SLV_FS*/ - MESON_PINCTRL_PIN(MESON_PIN(GPIOA_10, EE_OFF), 0xc, 8, + MESON_PINCTRL_PIN(MESON_PIN(GPIOA_10), 0xc, 8, MESON_FUNCTION(0x0, "gpio"), MESON_FUNCTION(0x1, "tdmb_out"), /*TDMB_DOUT0*/ MESON_FUNCTION(0x2, "tdmb_in")), /*TDMB_DIN0*/ - MESON_PINCTRL_PIN(MESON_PIN(GPIOA_11, EE_OFF), 0xc, 12, + MESON_PINCTRL_PIN(MESON_PIN(GPIOA_11), 0xc, 12, MESON_FUNCTION(0x0, "gpio"), MESON_FUNCTION(0x1, "tdmb_out"), /*TDMB_DOUT1*/ MESON_FUNCTION(0x2, "tdmb_in"), /*TDMB_DIN1*/ MESON_FUNCTION(0x3, "spdif_out")), /*SPDIF_OUT*/ - MESON_PINCTRL_PIN(MESON_PIN(GPIOA_12, EE_OFF), 0xc, 16, + MESON_PINCTRL_PIN(MESON_PIN(GPIOA_12), 0xc, 16, MESON_FUNCTION(0x0, "gpio"), MESON_FUNCTION(0x1, "tdmb_out"), /*TDMB_DOUT2*/ MESON_FUNCTION(0x2, "tdmb_in"), /*TDMB_DIN2*/ MESON_FUNCTION(0x4, "i2c_d")), /*I2C_SDA_D*/ - MESON_PINCTRL_PIN(MESON_PIN(GPIOA_13, EE_OFF), 0xc, 20, + MESON_PINCTRL_PIN(MESON_PIN(GPIOA_13), 0xc, 20, MESON_FUNCTION(0x0, "gpio"), MESON_FUNCTION(0x1, "tdmb_out"), /*TDMB_DOUT3*/ MESON_FUNCTION(0x2, "tdmb_in"), /*TDMB_DIN3*/ MESON_FUNCTION(0x4, "i2c_d")), /*I2C_SCK_D*/ - MESON_PINCTRL_PIN(MESON_PIN(GPIOA_14, EE_OFF), 0xc, 24, + MESON_PINCTRL_PIN(MESON_PIN(GPIOA_14), 0xc, 24, MESON_FUNCTION(0x0, "gpio"), MESON_FUNCTION(0x1, "pdm"), /*PDM_DCLK*/ MESON_FUNCTION(0x3, "pwm_a"), /*PWM_A*/ MESON_FUNCTION(0x5, "wifi")), /*WIFI_BEACON*/ - MESON_PINCTRL_PIN(MESON_PIN(GPIOA_15, EE_OFF), 0xc, 28, + MESON_PINCTRL_PIN(MESON_PIN(GPIOA_15), 0xc, 28, MESON_FUNCTION(0x0, "gpio"), MESON_FUNCTION(0x1, "pdm"), /*PDM_DIN0*/ MESON_FUNCTION(0x2, "tdmc_out"), /*TDMC_DOUT2*/ MESON_FUNCTION(0x3, "pwm_b"), /*PWM_B*/ MESON_FUNCTION(0x4, "tdmc_in")), /*TDMC_DIN2*/ - MESON_PINCTRL_PIN(MESON_PIN(GPIOA_16, EE_OFF), 0xd, 0, + MESON_PINCTRL_PIN(MESON_PIN(GPIOA_16), 0xd, 0, MESON_FUNCTION(0x0, "gpio"), MESON_FUNCTION(0x1, "pdm"), /*PDM_DIN1*/ MESON_FUNCTION(0x2, "tdmc_out"), /*TDMC_DOUT3*/ MESON_FUNCTION(0x3, "pwm_c"), /*PWM_C*/ MESON_FUNCTION(0x4, "tdmc_in")), /*TDMC_DIN3*/ - MESON_PINCTRL_PIN(MESON_PIN(GPIOA_17, EE_OFF), 0xd, 4, + MESON_PINCTRL_PIN(MESON_PIN(GPIOA_17), 0xd, 4, MESON_FUNCTION(0x0, "gpio"), MESON_FUNCTION(0x1, "pdm"), /*PDM_DIN2*/ MESON_FUNCTION(0x2, "tdmb_out"), /*TDMB_DOUT2*/ MESON_FUNCTION(0x3, "i2c_c"), /*I2C_SDA_C*/ MESON_FUNCTION(0x4, "tdmb_in"), /*TDMB_DIN2*/ MESON_FUNCTION(0x5, "eth")), /*ETH_MDIO*/ - MESON_PINCTRL_PIN(MESON_PIN(GPIOA_18, EE_OFF), 0xd, 8, + MESON_PINCTRL_PIN(MESON_PIN(GPIOA_18), 0xd, 8, MESON_FUNCTION(0x0, "gpio"), MESON_FUNCTION(0x1, "pdm"), /*PDM_DIN3*/ MESON_FUNCTION(0x2, "tdmb_out"), /*TDMB_DOUT3*/ MESON_FUNCTION(0x3, "i2c_c"), /*I2C_SCK_C*/ MESON_FUNCTION(0x4, "tdmb_in"), /*TDMB_DIN3*/ MESON_FUNCTION(0x5, "eth")), /*ETH_MDC*/ - MESON_PINCTRL_PIN(MESON_PIN(GPIOA_19, EE_OFF), 0xd, 12, + MESON_PINCTRL_PIN(MESON_PIN(GPIOA_19), 0xd, 12, MESON_FUNCTION(0x0, "gpio"), MESON_FUNCTION(0x1, "spdif_in"), /*SPDIF_IN*/ MESON_FUNCTION(0x2, "spdif_out"), /*SPDIF_OUT*/ MESON_FUNCTION(0x3, "pdm"), /*PDM_DCLK*/ MESON_FUNCTION(0x4, "i2c_d")), /*I2C_SDA_D*/ - MESON_PINCTRL_PIN(MESON_PIN(GPIOA_20, EE_OFF), 0xd, 16, + MESON_PINCTRL_PIN(MESON_PIN(GPIOA_20), 0xd, 16, MESON_FUNCTION(0x0, "gpio"), MESON_FUNCTION(0x1, "spdif_out"), /*SPDIF_OUT*/ MESON_FUNCTION(0x2, "spdif_in"), /*SPDIF_IN*/ MESON_FUNCTION(0x4, "i2c_d"), /*I2C_SCK_D*/ MESON_FUNCTION(0x5, "wifi")), /*WIFI_BEACON*/ - MESON_PINCTRL_PIN(MESON_PIN(GPIOX_0, EE_OFF), 0x4, 0, + MESON_PINCTRL_PIN(MESON_PIN(GPIOX_0), 0x4, 0, MESON_FUNCTION(0x0, "gpio"), MESON_FUNCTION(0x1, "sdio"), /*SDIO_D0*/ MESON_FUNCTION(0x2, "jtag")), /*JTAG_TDO*/ - MESON_PINCTRL_PIN(MESON_PIN(GPIOX_1, EE_OFF), 0x4, 4, + MESON_PINCTRL_PIN(MESON_PIN(GPIOX_1), 0x4, 4, MESON_FUNCTION(0x0, "gpio"), MESON_FUNCTION(0x1, "sdio"), /*SDIO_D1*/ MESON_FUNCTION(0x2, "jtag")), /*JTAG_TDI*/ - MESON_PINCTRL_PIN(MESON_PIN(GPIOX_2, EE_OFF), 0x4, 8, + MESON_PINCTRL_PIN(MESON_PIN(GPIOX_2), 0x4, 8, MESON_FUNCTION(0x0, "gpio"), MESON_FUNCTION(0x1, "sdio"), /*SDIO_D2*/ MESON_FUNCTION(0x2, "uart_ao_a")), /*UART_RX_AO_A*/ - MESON_PINCTRL_PIN(MESON_PIN(GPIOX_3, EE_OFF), 0x4, 12, + MESON_PINCTRL_PIN(MESON_PIN(GPIOX_3), 0x4, 12, MESON_FUNCTION(0x0, "gpio"), MESON_FUNCTION(0x1, "sdio"), /*SDIO_D3*/ MESON_FUNCTION(0x2, "uart_ao_a")), /*UART_TX_AO_A*/ - MESON_PINCTRL_PIN(MESON_PIN(GPIOX_4, EE_OFF), 0x4, 16, + MESON_PINCTRL_PIN(MESON_PIN(GPIOX_4), 0x4, 16, MESON_FUNCTION(0x0, "gpio"), MESON_FUNCTION(0x1, "sdio"), /*SDIO_CLK*/ MESON_FUNCTION(0x2, "jtag")), /*JTAG_CLK*/ - MESON_PINCTRL_PIN(MESON_PIN(GPIOX_5, EE_OFF), 0x4, 20, + MESON_PINCTRL_PIN(MESON_PIN(GPIOX_5), 0x4, 20, MESON_FUNCTION(0x0, "gpio"), MESON_FUNCTION(0x1, "sdio"), /*SDIO_CMD*/ MESON_FUNCTION(0x2, "jtag")), /*JTAG_TMS*/ - MESON_PINCTRL_PIN(MESON_PIN(GPIOX_6, EE_OFF), 0x4, 24, + MESON_PINCTRL_PIN(MESON_PIN(GPIOX_6), 0x4, 24, MESON_FUNCTION(0x0, "gpio")), - MESON_PINCTRL_PIN(MESON_PIN(GPIOX_7, EE_OFF), 0x4, 28, + MESON_PINCTRL_PIN(MESON_PIN(GPIOX_7), 0x4, 28, MESON_FUNCTION(0x0, "gpio")), - MESON_PINCTRL_PIN(MESON_PIN(GPIOX_8, EE_OFF), 0x5, 0, + MESON_PINCTRL_PIN(MESON_PIN(GPIOX_8), 0x5, 0, MESON_FUNCTION(0x0, "gpio"), MESON_FUNCTION(0x1, "uart_a"), /*UART_TX_EE_A*/ MESON_FUNCTION(0x4, "eth")), /*ETH_TXD0*/ - MESON_PINCTRL_PIN(MESON_PIN(GPIOX_9, EE_OFF), 0x5, 4, + MESON_PINCTRL_PIN(MESON_PIN(GPIOX_9), 0x5, 4, MESON_FUNCTION(0x0, "gpio"), MESON_FUNCTION(0x1, "uart_a"), /*UART_RX_EE_A*/ MESON_FUNCTION(0x4, "eth")), /*ETH_TXD1*/ - MESON_PINCTRL_PIN(MESON_PIN(GPIOX_10, EE_OFF), 0x5, 8, + MESON_PINCTRL_PIN(MESON_PIN(GPIOX_10), 0x5, 8, MESON_FUNCTION(0x0, "gpio"), MESON_FUNCTION(0x1, "uart_a"), /*UART_CTS_EE_A*/ MESON_FUNCTION(0x3, "pwm_c"), /*PWM_C*/ MESON_FUNCTION(0x4, "eth")), /*ETH_TXEN*/ - MESON_PINCTRL_PIN(MESON_PIN(GPIOX_11, EE_OFF), 0x5, 12, + MESON_PINCTRL_PIN(MESON_PIN(GPIOX_11), 0x5, 12, MESON_FUNCTION(0x0, "gpio"), MESON_FUNCTION(0x1, "uart_a"), /*UART_RTS_EE_A*/ MESON_FUNCTION(0x3, "pwm_d")), /*PWM_D*/ - MESON_PINCTRL_PIN(MESON_PIN(GPIOX_12, EE_OFF), 0x5, 16, + MESON_PINCTRL_PIN(MESON_PIN(GPIOX_12), 0x5, 16, MESON_FUNCTION(0x0, "gpio"), MESON_FUNCTION(0x1, "tdma_out"), /*TDMA_OUT*/ MESON_FUNCTION(0x2, "tdma_in"), /*TDMA_IN*/ MESON_FUNCTION(0x4, "eth")), /*ETH_RGMII_RX_CLK*/ - MESON_PINCTRL_PIN(MESON_PIN(GPIOX_13, EE_OFF), 0x5, 20, + MESON_PINCTRL_PIN(MESON_PIN(GPIOX_13), 0x5, 20, MESON_FUNCTION(0x0, "gpio"), MESON_FUNCTION(0x1, "tdma_out"), /*TDMA_OUT*/ MESON_FUNCTION(0x2, "tdma_in"), /*TDMA_IN*/ MESON_FUNCTION(0x4, "eth")), /*ETH_RXD0*/ - MESON_PINCTRL_PIN(MESON_PIN(GPIOX_14, EE_OFF), 0x5, 24, + MESON_PINCTRL_PIN(MESON_PIN(GPIOX_14), 0x5, 24, MESON_FUNCTION(0x0, "gpio"), MESON_FUNCTION(0x1, "tdma_in"), /*TDMA_IN*/ MESON_FUNCTION(0x2, "tdma_out"), /*TDMA_OUT*/ MESON_FUNCTION(0x4, "eth")), /*ETH_RXD1*/ - MESON_PINCTRL_PIN(MESON_PIN(GPIOX_15, EE_OFF), 0x5, 28, + MESON_PINCTRL_PIN(MESON_PIN(GPIOX_15), 0x5, 28, MESON_FUNCTION(0x0, "gpio"), MESON_FUNCTION(0x1, "tdma_out"), /*TDMA_OUT*/ MESON_FUNCTION(0x2, "tdma_out1"), /*TDMA_OUT1*/ MESON_FUNCTION(0x3, "tdma_in"), /*TDMA_IN*/ MESON_FUNCTION(0x4, "eth")), /*ETH_RX_DV*/ - MESON_PINCTRL_PIN(MESON_PIN(GPIOX_16, EE_OFF), 0x6, 0, + MESON_PINCTRL_PIN(MESON_PIN(GPIOX_16), 0x6, 0, MESON_FUNCTION(0x0, "gpio"), MESON_FUNCTION(0x1, "i2c_b"), /*I2C_SCK_B*/ MESON_FUNCTION(0x2, "uart_b"), /*UART_TX_EE_B*/ MESON_FUNCTION(0x3, "pwm_d"), /*PWM_D*/ MESON_FUNCTION(0x4, "spi_b")), /*SPI_SS0_B*/ - MESON_PINCTRL_PIN(MESON_PIN(GPIOX_17, EE_OFF), 0x6, 4, + MESON_PINCTRL_PIN(MESON_PIN(GPIOX_17), 0x6, 4, MESON_FUNCTION(0x0, "gpio"), MESON_FUNCTION(0x1, "i2c_b"), /*I2C_SDA_B*/ MESON_FUNCTION(0x2, "uart_b"), /*UART_RX_EE_B*/ MESON_FUNCTION(0x3, "pwm_c"), /*PWM_C*/ MESON_FUNCTION(0x4, "spi_b")), /*SPI_MOSI_B*/ - MESON_PINCTRL_PIN(MESON_PIN(GPIOX_18, EE_OFF), 0x6, 8, + MESON_PINCTRL_PIN(MESON_PIN(GPIOX_18), 0x6, 8, MESON_FUNCTION(0x0, "gpio"), MESON_FUNCTION(0x1, "i2c_c"), /*I2C_SCK_C*/ MESON_FUNCTION(0x2, "uart_b"), /*UART_RTS_EE_B*/ MESON_FUNCTION(0x3, "pwm_a"), /*PWM_A*/ MESON_FUNCTION(0x4, "spi_b")), /*SPI_MISO_B*/ - MESON_PINCTRL_PIN(MESON_PIN(GPIOX_19, EE_OFF), 0x6, 12, + MESON_PINCTRL_PIN(MESON_PIN(GPIOX_19), 0x6, 12, MESON_FUNCTION(0x0, "gpio"), MESON_FUNCTION(0x1, "i2c_c"), /*I2C_SDA_C*/ MESON_FUNCTION(0x2, "uart_b"), /*UART_CTS_EE_B*/ MESON_FUNCTION(0x3, "pwm_b"), /*PWM_B*/ MESON_FUNCTION(0x4, "spi_b")), /*SPI_CLK_B*/ - MESON_PINCTRL_PIN(MESON_PIN(GPIOX_20, EE_OFF), 0x6, 16, + MESON_PINCTRL_PIN(MESON_PIN(GPIOX_20), 0x6, 16, MESON_FUNCTION(0x0, "gpio"), MESON_FUNCTION(0x1, "pwm_a")), /*PWM_A*/ - MESON_PINCTRL_PIN(MESON_PIN(GPIOX_21, EE_OFF), 0x6, 20, + MESON_PINCTRL_PIN(MESON_PIN(GPIOX_21), 0x6, 20, MESON_FUNCTION(0x0, "gpio"), MESON_FUNCTION(0x4, "eth")), /*ETH_MDIO*/ - MESON_PINCTRL_PIN(MESON_PIN(GPIOX_22, EE_OFF), 0x6, 24, + MESON_PINCTRL_PIN(MESON_PIN(GPIOX_22), 0x6, 24, MESON_FUNCTION(0x0, "gpio"), MESON_FUNCTION(0x4, "eth")), /*ETH_MDC*/ - MESON_PINCTRL_PIN(MESON_PIN(GPIOY_0, EE_OFF), 0x8, 0, + MESON_PINCTRL_PIN(MESON_PIN(GPIOY_0), 0x8, 0, MESON_FUNCTION(0x0, "gpio"), MESON_FUNCTION(0x1, "eth")), /*ETH_MDIO*/ - MESON_PINCTRL_PIN(MESON_PIN(GPIOY_1, EE_OFF), 0x8, 4, + MESON_PINCTRL_PIN(MESON_PIN(GPIOY_1), 0x8, 4, MESON_FUNCTION(0x0, "gpio"), MESON_FUNCTION(0x1, "eth")), /*ETH_MDC*/ - MESON_PINCTRL_PIN(MESON_PIN(GPIOY_2, EE_OFF), 0x8, 8, + MESON_PINCTRL_PIN(MESON_PIN(GPIOY_2), 0x8, 8, MESON_FUNCTION(0x0, "gpio"), MESON_FUNCTION(0x1, "eth")), /*ETH_RGMII_RX_CLK*/ - MESON_PINCTRL_PIN(MESON_PIN(GPIOY_3, EE_OFF), 0x8, 12, + MESON_PINCTRL_PIN(MESON_PIN(GPIOY_3), 0x8, 12, MESON_FUNCTION(0x0, "gpio"), MESON_FUNCTION(0x1, "eth")), /*ETH_RX_DV*/ - MESON_PINCTRL_PIN(MESON_PIN(GPIOY_4, EE_OFF), 0x8, 16, + MESON_PINCTRL_PIN(MESON_PIN(GPIOY_4), 0x8, 16, MESON_FUNCTION(0x0, "gpio"), MESON_FUNCTION(0x1, "eth")), /*ETH_RXD0*/ - MESON_PINCTRL_PIN(MESON_PIN(GPIOY_5, EE_OFF), 0x8, 20, + MESON_PINCTRL_PIN(MESON_PIN(GPIOY_5), 0x8, 20, MESON_FUNCTION(0x0, "gpio"), MESON_FUNCTION(0x1, "eth")), /*ETH_RXD1*/ - MESON_PINCTRL_PIN(MESON_PIN(GPIOY_6, EE_OFF), 0x8, 24, + MESON_PINCTRL_PIN(MESON_PIN(GPIOY_6), 0x8, 24, MESON_FUNCTION(0x0, "gpio"), MESON_FUNCTION(0x1, "eth")), /*ETH_RXD2_RGMII*/ - MESON_PINCTRL_PIN(MESON_PIN(GPIOY_7, EE_OFF), 0x8, 28, + MESON_PINCTRL_PIN(MESON_PIN(GPIOY_7), 0x8, 28, MESON_FUNCTION(0x0, "gpio"), MESON_FUNCTION(0x1, "eth")), /*ETH_RXD3_RGMII*/ - MESON_PINCTRL_PIN(MESON_PIN(GPIOY_8, EE_OFF), 0x9, 0, + MESON_PINCTRL_PIN(MESON_PIN(GPIOY_8), 0x9, 0, MESON_FUNCTION(0x0, "gpio"), MESON_FUNCTION(0x1, "eth")), /*ETH_RGMII_TX_CLK*/ - MESON_PINCTRL_PIN(MESON_PIN(GPIOY_9, EE_OFF), 0x9, 4, + MESON_PINCTRL_PIN(MESON_PIN(GPIOY_9), 0x9, 4, MESON_FUNCTION(0x0, "gpio"), MESON_FUNCTION(0x1, "eth")), /*ETH_TXEN*/ - MESON_PINCTRL_PIN(MESON_PIN(GPIOY_10, EE_OFF), 0x9, 8, + MESON_PINCTRL_PIN(MESON_PIN(GPIOY_10), 0x9, 8, MESON_FUNCTION(0x0, "gpio"), MESON_FUNCTION(0x1, "eth")), /*ETH_TXD0*/ - MESON_PINCTRL_PIN(MESON_PIN(GPIOY_11, EE_OFF), 0x9, 12, + MESON_PINCTRL_PIN(MESON_PIN(GPIOY_11), 0x9, 12, MESON_FUNCTION(0x0, "gpio"), MESON_FUNCTION(0x1, "eth")), /*ETH_TXD1*/ - MESON_PINCTRL_PIN(MESON_PIN(GPIOY_12, EE_OFF), 0x9, 16, + MESON_PINCTRL_PIN(MESON_PIN(GPIOY_12), 0x9, 16, MESON_FUNCTION(0x0, "gpio"), MESON_FUNCTION(0x1, "eth")), /*ETH_TXD2_RGMII*/ - MESON_PINCTRL_PIN(MESON_PIN(GPIOY_13, EE_OFF), 0x9, 20, + MESON_PINCTRL_PIN(MESON_PIN(GPIOY_13), 0x9, 20, MESON_FUNCTION(0x0, "gpio"), MESON_FUNCTION(0x1, "eth")), /*ETH_TXD3_RGMII*/ - MESON_PINCTRL_PIN(MESON_PIN(GPIOY_14, EE_OFF), 0x9, 24, + MESON_PINCTRL_PIN(MESON_PIN(GPIOY_14), 0x9, 24, MESON_FUNCTION(0x0, "gpio")), - MESON_PINCTRL_PIN(MESON_PIN(GPIOY_15, EE_OFF), 0x9, 28, + MESON_PINCTRL_PIN(MESON_PIN(GPIOY_15), 0x9, 28, MESON_FUNCTION(0x0, "gpio")), }; static const struct meson_desc_pin mesonaxg_aobus_pins[] = { - MESON_PINCTRL_PIN(MESON_PIN(GPIOAO_0, 0), 0x0, 0, + MESON_PINCTRL_PIN(MESON_PIN(GPIOAO_0), 0x0, 0, MESON_FUNCTION(0x0, "gpio_ao"), MESON_FUNCTION(0x1, "uart_ao_a")), /*UART_TX_AO_A*/ - MESON_PINCTRL_PIN(MESON_PIN(GPIOAO_1, 0), 0x0, 4, + MESON_PINCTRL_PIN(MESON_PIN(GPIOAO_1), 0x0, 4, MESON_FUNCTION(0x0, "gpio_ao"), MESON_FUNCTION(0x1, "uart_ao_a")), /*UART_RX_AO_A*/ - MESON_PINCTRL_PIN(MESON_PIN(GPIOAO_2, 0), 0x0, 8, + MESON_PINCTRL_PIN(MESON_PIN(GPIOAO_2), 0x0, 8, MESON_FUNCTION(0x0, "gpio_ao"), MESON_FUNCTION(0x1, "uart_ao_b"), /*UART_CTS_AO_B*/ MESON_FUNCTION(0x2, "uart_ao_a"), /*UART_CTS_AO_A*/ MESON_FUNCTION(0x3, "pwm_ao_b")), /* PWMAO_B */ - MESON_PINCTRL_PIN(MESON_PIN(GPIOAO_3, 0), 0x0, 12, + MESON_PINCTRL_PIN(MESON_PIN(GPIOAO_3), 0x0, 12, MESON_FUNCTION(0x0, "gpio_ao"), MESON_FUNCTION(0x1, "uart_ao_b"), /*UART_RTS_AO_B*/ MESON_FUNCTION(0x2, "uart_ao_a"), /*UART_RTS_AO_A*/ MESON_FUNCTION(0x3, "pwm_ao_a"), /* PWMAO_A */ MESON_FUNCTION(0x4, "jtag")), /*JTAG_TDI */ - MESON_PINCTRL_PIN(MESON_PIN(GPIOAO_4, 0), 0x0, 16, + MESON_PINCTRL_PIN(MESON_PIN(GPIOAO_4), 0x0, 16, MESON_FUNCTION(0x0, "gpio_ao"), MESON_FUNCTION(0x1, "uart_ao_b"), /*UART_TX_AO_B*/ MESON_FUNCTION(0x2, "i2c_ao"), /*I2C_SCK_AO*/ MESON_FUNCTION(0x4, "jtag")), /*JTAG_TDO */ - MESON_PINCTRL_PIN(MESON_PIN(GPIOAO_5, 0), 0x0, 20, + MESON_PINCTRL_PIN(MESON_PIN(GPIOAO_5), 0x0, 20, MESON_FUNCTION(0x0, "gpio_ao"), MESON_FUNCTION(0x1, "uart_ao_b"), /*UART_RX_AO_B*/ MESON_FUNCTION(0x2, "i2c_ao"), /*I2C_SDA_AO*/ MESON_FUNCTION(0x4, "jtag")), /*JTAG_CLK */ - MESON_PINCTRL_PIN(MESON_PIN(GPIOAO_6, 0), 0x0, 24, + MESON_PINCTRL_PIN(MESON_PIN(GPIOAO_6), 0x0, 24, MESON_FUNCTION(0x0, "gpio"), MESON_FUNCTION(0x1, "ir_in")), /*IR_REMOTE_INPUT*/ - MESON_PINCTRL_PIN(MESON_PIN(GPIOAO_7, 0), 0x0, 28, + MESON_PINCTRL_PIN(MESON_PIN(GPIOAO_7), 0x0, 28, MESON_FUNCTION(0x0, "gpio"), MESON_FUNCTION(0x1, "ir_out"), /*IR_REMOTE_OUT*/ MESON_FUNCTION(0x4, "jtag")), /*JTAG_TMS*/ - MESON_PINCTRL_PIN(MESON_PIN(GPIOAO_8, 0), 0x1, 0, + MESON_PINCTRL_PIN(MESON_PIN(GPIOAO_8), 0x1, 0, MESON_FUNCTION(0x0, "gpio_ao"), MESON_FUNCTION(0x1, "clk32"), /*CLK_32K_IN*/ MESON_FUNCTION(0x2, "i2c_ao"), /*I2C_SCK_AO*/ MESON_FUNCTION(0x3, "pwm_ao_c")), /*PWMAO_C */ - MESON_PINCTRL_PIN(MESON_PIN(GPIOAO_9, 0), 0x1, 4, + MESON_PINCTRL_PIN(MESON_PIN(GPIOAO_9), 0x1, 4, MESON_FUNCTION(0x0, "gpio_ao"), MESON_FUNCTION(0x2, "i2c_ao"), /*I2C_SDA_AO*/ MESON_FUNCTION(0x3, "pwm_ao_d")), /*PWMAO_D */ - MESON_PINCTRL_PIN(MESON_PIN(GPIOAO_10, 0), 0x1, 8, + MESON_PINCTRL_PIN(MESON_PIN(GPIOAO_10), 0x1, 8, MESON_FUNCTION(0x0, "gpio_ao"), MESON_FUNCTION(0x1, "i2c_slave_ao"),/*I2C_SLAVE_SCK_AO*/ MESON_FUNCTION(0x2, "i2c_ao")), /*I2C_SCK_AO */ - MESON_PINCTRL_PIN(MESON_PIN(GPIOAO_11, 0), 0x1, 12, + MESON_PINCTRL_PIN(MESON_PIN(GPIOAO_11), 0x1, 12, MESON_FUNCTION(0x0, "gpio_ao"), MESON_FUNCTION(0x1, "i2c_slave_ao"),/*I2C_SLAVE_SDA_AO*/ MESON_FUNCTION(0x2, "i2c_ao")), /*I2C_SDA_AO */ - MESON_PINCTRL_PIN(MESON_PIN(GPIOAO_12, 0), 0x1, 16, + MESON_PINCTRL_PIN(MESON_PIN(GPIOAO_12), 0x1, 16, MESON_FUNCTION(0x0, "gpio_ao"), MESON_FUNCTION(0x1, "clk12"), /*CLK12_24*/ MESON_FUNCTION(0x3, "pwm_ao_b")), /*PWMAO_B */ - MESON_PINCTRL_PIN(MESON_PIN(GPIOAO_13, 0), 0x1, 20, + MESON_PINCTRL_PIN(MESON_PIN(GPIOAO_13), 0x1, 20, MESON_FUNCTION(0x0, "gpio_ao"), MESON_FUNCTION(0x1, "clk25"), /*CLK25_EE*/ MESON_FUNCTION(0x2, "gen_clk_ao"), /*GEN_CLK_AO */ MESON_FUNCTION(0x3, "pwm_ao_c"), /*PWMAO_C */ MESON_FUNCTION(0x4, "gen_clk")), /*GEN_CLK_EE*/ - MESON_PINCTRL_PIN(MESON_PIN(GPIO_TEST_N, 0), 0x1, 24, + MESON_PINCTRL_PIN(MESON_PIN(GPIO_TEST_N), 0x1, 24, MESON_FUNCTION(0x0, "gpio_ao")), }; static struct meson_bank mesonaxg_periphs_banks[] = { /* name first last irq pullen pull dir out in */ - BANK("A", PIN(GPIOA_0, EE_OFF), PIN(GPIOA_20, EE_OFF), 40, + BANK("A", GPIOA_0, GPIOA_20, 40, 0, 0, 0, 0, 0, 0, 1, 0, 2, 0), - BANK("Y", PIN(GPIOY_0, EE_OFF), PIN(GPIOY_15, EE_OFF), 84, + BANK("Y", GPIOY_0, GPIOY_15, 84, 1, 0, 1, 0, 3, 0, 4, 0, 5, 0), - BANK("X", PIN(GPIOX_0, EE_OFF), PIN(GPIOX_22, EE_OFF), 61, + BANK("X", GPIOX_0, GPIOX_22, 61, 2, 0, 2, 0, 6, 0, 7, 0, 8, 0), - BANK("Z", PIN(GPIOZ_0, EE_OFF), PIN(GPIOZ_10, EE_OFF), 14, + BANK("Z", GPIOZ_0, GPIOZ_10, 14, 3, 0, 3, 0, 9, 0, 10, 0, 11, 0), - BANK("BOOT", PIN(BOOT_0, EE_OFF), PIN(BOOT_14, EE_OFF), 25, + BANK("BOOT", BOOT_0, BOOT_14, 25, 4, 0, 4, 0, 12, 0, 13, 0, 14, 0), }; @@ -481,9 +479,9 @@ static struct meson_bank mesonaxg_periphs_banks[] = { */ static struct meson_bank mesonaxg_aobus_banks[] = { /* name first last irq pullen pull dir out in */ - BANK("AO", PIN(GPIOAO_0, 0), PIN(GPIOAO_13, 0), 0, + BANK("AO", GPIOAO_0, GPIOAO_13, 0, 0, 16, 0, 0, 0, 0, 0, 16, 1, 0), - BANK("TEST", PIN(GPIO_TEST_N, 0), PIN(GPIO_TEST_N, 0), -1, + BANK("TEST", GPIO_TEST_N, GPIO_TEST_N, -1, 0, 30, 0, 14, 0, 14, 0, 31, 1, 31), }; @@ -491,7 +489,6 @@ static struct meson_domain_data mesonaxg_periphs_domain_data = { .name = "periphs-banks", .banks = mesonaxg_periphs_banks, .num_banks = ARRAY_SIZE(mesonaxg_periphs_banks), - .pin_base = 15, .num_pins = 86, }; @@ -499,7 +496,6 @@ static struct meson_domain_data mesonaxg_aobus_domain_data = { .name = "aobus-banks", .banks = mesonaxg_aobus_banks, .num_banks = ARRAY_SIZE(mesonaxg_aobus_banks), - .pin_base = 0, .num_pins = 15, }; diff --git a/drivers/amlogic/pinctrl/pinctrl_gxl.c b/drivers/amlogic/pinctrl/pinctrl_gxl.c index 1fc91516993b..8cbe9271e644 100644 --- a/drivers/amlogic/pinctrl/pinctrl_gxl.c +++ b/drivers/amlogic/pinctrl/pinctrl_gxl.c @@ -19,535 +19,534 @@ #include #include -#define EE_OFF 11 #define HHI_XTAL_DIVN_CNTL_GPIO (0xc883c000 + (0x2f << 2)) static const struct pinctrl_pin_desc meson_gxl_periphs_pins[] = { - MESON_PIN(GPIOZ_0, EE_OFF), - MESON_PIN(GPIOZ_1, EE_OFF), - MESON_PIN(GPIOZ_2, EE_OFF), - MESON_PIN(GPIOZ_3, EE_OFF), - MESON_PIN(GPIOZ_4, EE_OFF), - MESON_PIN(GPIOZ_5, EE_OFF), - MESON_PIN(GPIOZ_6, EE_OFF), - MESON_PIN(GPIOZ_7, EE_OFF), - MESON_PIN(GPIOZ_8, EE_OFF), - MESON_PIN(GPIOZ_9, EE_OFF), - MESON_PIN(GPIOZ_10, EE_OFF), - MESON_PIN(GPIOZ_11, EE_OFF), - MESON_PIN(GPIOZ_12, EE_OFF), - MESON_PIN(GPIOZ_13, EE_OFF), - MESON_PIN(GPIOZ_14, EE_OFF), - MESON_PIN(GPIOZ_15, EE_OFF), - MESON_PIN(GPIOH_0, EE_OFF), - MESON_PIN(GPIOH_1, EE_OFF), - MESON_PIN(GPIOH_2, EE_OFF), - MESON_PIN(GPIOH_3, EE_OFF), - MESON_PIN(GPIOH_4, EE_OFF), - MESON_PIN(GPIOH_5, EE_OFF), - MESON_PIN(GPIOH_6, EE_OFF), - MESON_PIN(GPIOH_7, EE_OFF), - MESON_PIN(GPIOH_8, EE_OFF), - MESON_PIN(GPIOH_9, EE_OFF), - MESON_PIN(BOOT_0, EE_OFF), - MESON_PIN(BOOT_1, EE_OFF), - MESON_PIN(BOOT_2, EE_OFF), - MESON_PIN(BOOT_3, EE_OFF), - MESON_PIN(BOOT_4, EE_OFF), - MESON_PIN(BOOT_5, EE_OFF), - MESON_PIN(BOOT_6, EE_OFF), - MESON_PIN(BOOT_7, EE_OFF), - MESON_PIN(BOOT_8, EE_OFF), - MESON_PIN(BOOT_9, EE_OFF), - MESON_PIN(BOOT_10, EE_OFF), - MESON_PIN(BOOT_11, EE_OFF), - MESON_PIN(BOOT_12, EE_OFF), - MESON_PIN(BOOT_13, EE_OFF), - MESON_PIN(BOOT_14, EE_OFF), - MESON_PIN(BOOT_15, EE_OFF), - MESON_PIN(CARD_0, EE_OFF), - MESON_PIN(CARD_1, EE_OFF), - MESON_PIN(CARD_2, EE_OFF), - MESON_PIN(CARD_3, EE_OFF), - MESON_PIN(CARD_4, EE_OFF), - MESON_PIN(CARD_5, EE_OFF), - MESON_PIN(CARD_6, EE_OFF), - MESON_PIN(GPIODV_0, EE_OFF), - MESON_PIN(GPIODV_1, EE_OFF), - MESON_PIN(GPIODV_2, EE_OFF), - MESON_PIN(GPIODV_3, EE_OFF), - MESON_PIN(GPIODV_4, EE_OFF), - MESON_PIN(GPIODV_5, EE_OFF), - MESON_PIN(GPIODV_6, EE_OFF), - MESON_PIN(GPIODV_7, EE_OFF), - MESON_PIN(GPIODV_8, EE_OFF), - MESON_PIN(GPIODV_9, EE_OFF), - MESON_PIN(GPIODV_10, EE_OFF), - MESON_PIN(GPIODV_11, EE_OFF), - MESON_PIN(GPIODV_12, EE_OFF), - MESON_PIN(GPIODV_13, EE_OFF), - MESON_PIN(GPIODV_14, EE_OFF), - MESON_PIN(GPIODV_15, EE_OFF), - MESON_PIN(GPIODV_16, EE_OFF), - MESON_PIN(GPIODV_17, EE_OFF), - MESON_PIN(GPIODV_18, EE_OFF), - MESON_PIN(GPIODV_19, EE_OFF), - MESON_PIN(GPIODV_20, EE_OFF), - MESON_PIN(GPIODV_21, EE_OFF), - MESON_PIN(GPIODV_22, EE_OFF), - MESON_PIN(GPIODV_23, EE_OFF), - MESON_PIN(GPIODV_24, EE_OFF), - MESON_PIN(GPIODV_25, EE_OFF), - MESON_PIN(GPIODV_26, EE_OFF), - MESON_PIN(GPIODV_27, EE_OFF), - MESON_PIN(GPIODV_28, EE_OFF), - MESON_PIN(GPIODV_29, EE_OFF), - MESON_PIN(GPIOX_0, EE_OFF), - MESON_PIN(GPIOX_1, EE_OFF), - MESON_PIN(GPIOX_2, EE_OFF), - MESON_PIN(GPIOX_3, EE_OFF), - MESON_PIN(GPIOX_4, EE_OFF), - MESON_PIN(GPIOX_5, EE_OFF), - MESON_PIN(GPIOX_6, EE_OFF), - MESON_PIN(GPIOX_7, EE_OFF), - MESON_PIN(GPIOX_8, EE_OFF), - MESON_PIN(GPIOX_9, EE_OFF), - MESON_PIN(GPIOX_10, EE_OFF), - MESON_PIN(GPIOX_11, EE_OFF), - MESON_PIN(GPIOX_12, EE_OFF), - MESON_PIN(GPIOX_13, EE_OFF), - MESON_PIN(GPIOX_14, EE_OFF), - MESON_PIN(GPIOX_15, EE_OFF), - MESON_PIN(GPIOX_16, EE_OFF), - MESON_PIN(GPIOX_17, EE_OFF), - MESON_PIN(GPIOX_18, EE_OFF), - MESON_PIN(GPIOCLK_0, EE_OFF), - MESON_PIN(GPIOCLK_1, EE_OFF), + MESON_PIN(GPIOZ_0), + MESON_PIN(GPIOZ_1), + MESON_PIN(GPIOZ_2), + MESON_PIN(GPIOZ_3), + MESON_PIN(GPIOZ_4), + MESON_PIN(GPIOZ_5), + MESON_PIN(GPIOZ_6), + MESON_PIN(GPIOZ_7), + MESON_PIN(GPIOZ_8), + MESON_PIN(GPIOZ_9), + MESON_PIN(GPIOZ_10), + MESON_PIN(GPIOZ_11), + MESON_PIN(GPIOZ_12), + MESON_PIN(GPIOZ_13), + MESON_PIN(GPIOZ_14), + MESON_PIN(GPIOZ_15), + MESON_PIN(GPIOH_0), + MESON_PIN(GPIOH_1), + MESON_PIN(GPIOH_2), + MESON_PIN(GPIOH_3), + MESON_PIN(GPIOH_4), + MESON_PIN(GPIOH_5), + MESON_PIN(GPIOH_6), + MESON_PIN(GPIOH_7), + MESON_PIN(GPIOH_8), + MESON_PIN(GPIOH_9), + MESON_PIN(BOOT_0), + MESON_PIN(BOOT_1), + MESON_PIN(BOOT_2), + MESON_PIN(BOOT_3), + MESON_PIN(BOOT_4), + MESON_PIN(BOOT_5), + MESON_PIN(BOOT_6), + MESON_PIN(BOOT_7), + MESON_PIN(BOOT_8), + MESON_PIN(BOOT_9), + MESON_PIN(BOOT_10), + MESON_PIN(BOOT_11), + MESON_PIN(BOOT_12), + MESON_PIN(BOOT_13), + MESON_PIN(BOOT_14), + MESON_PIN(BOOT_15), + MESON_PIN(CARD_0), + MESON_PIN(CARD_1), + MESON_PIN(CARD_2), + MESON_PIN(CARD_3), + MESON_PIN(CARD_4), + MESON_PIN(CARD_5), + MESON_PIN(CARD_6), + MESON_PIN(GPIODV_0), + MESON_PIN(GPIODV_1), + MESON_PIN(GPIODV_2), + MESON_PIN(GPIODV_3), + MESON_PIN(GPIODV_4), + MESON_PIN(GPIODV_5), + MESON_PIN(GPIODV_6), + MESON_PIN(GPIODV_7), + MESON_PIN(GPIODV_8), + MESON_PIN(GPIODV_9), + MESON_PIN(GPIODV_10), + MESON_PIN(GPIODV_11), + MESON_PIN(GPIODV_12), + MESON_PIN(GPIODV_13), + MESON_PIN(GPIODV_14), + MESON_PIN(GPIODV_15), + MESON_PIN(GPIODV_16), + MESON_PIN(GPIODV_17), + MESON_PIN(GPIODV_18), + MESON_PIN(GPIODV_19), + MESON_PIN(GPIODV_20), + MESON_PIN(GPIODV_21), + MESON_PIN(GPIODV_22), + MESON_PIN(GPIODV_23), + MESON_PIN(GPIODV_24), + MESON_PIN(GPIODV_25), + MESON_PIN(GPIODV_26), + MESON_PIN(GPIODV_27), + MESON_PIN(GPIODV_28), + MESON_PIN(GPIODV_29), + MESON_PIN(GPIOX_0), + MESON_PIN(GPIOX_1), + MESON_PIN(GPIOX_2), + MESON_PIN(GPIOX_3), + MESON_PIN(GPIOX_4), + MESON_PIN(GPIOX_5), + MESON_PIN(GPIOX_6), + MESON_PIN(GPIOX_7), + MESON_PIN(GPIOX_8), + MESON_PIN(GPIOX_9), + MESON_PIN(GPIOX_10), + MESON_PIN(GPIOX_11), + MESON_PIN(GPIOX_12), + MESON_PIN(GPIOX_13), + MESON_PIN(GPIOX_14), + MESON_PIN(GPIOX_15), + MESON_PIN(GPIOX_16), + MESON_PIN(GPIOX_17), + MESON_PIN(GPIOX_18), + MESON_PIN(GPIOCLK_0), + MESON_PIN(GPIOCLK_1), }; /*emmc & nand*/ static const unsigned int emmc_nand_d07_pins[] = { - PIN(BOOT_0, EE_OFF), PIN(BOOT_1, EE_OFF), PIN(BOOT_2, EE_OFF), - PIN(BOOT_3, EE_OFF), PIN(BOOT_4, EE_OFF), PIN(BOOT_5, EE_OFF), - PIN(BOOT_6, EE_OFF), PIN(BOOT_7, EE_OFF), + BOOT_0, BOOT_1, BOOT_2, + BOOT_3, BOOT_4, BOOT_5, + BOOT_6, BOOT_7, }; /*nand*/ -static const unsigned int nand_ce0_pins[] = { PIN(BOOT_8, EE_OFF) }; -static const unsigned int nand_ce1_pins[] = { PIN(BOOT_9, EE_OFF) }; -static const unsigned int nand_rb0_pins[] = { PIN(BOOT_10, EE_OFF) }; -static const unsigned int nand_ale_pins[] = { PIN(BOOT_11, EE_OFF) }; -static const unsigned int nand_cle_pins[] = { PIN(BOOT_12, EE_OFF) }; -static const unsigned int nand_wen_clk_pins[] = { PIN(BOOT_13, EE_OFF) }; -static const unsigned int nand_ren_wr_pins[] = { PIN(BOOT_14, EE_OFF) }; -static const unsigned int nand_dqs_pins[] = { PIN(BOOT_15, EE_OFF) }; +static const unsigned int nand_ce0_pins[] = { BOOT_8 }; +static const unsigned int nand_ce1_pins[] = { BOOT_9 }; +static const unsigned int nand_rb0_pins[] = { BOOT_10 }; +static const unsigned int nand_ale_pins[] = { BOOT_11 }; +static const unsigned int nand_cle_pins[] = { BOOT_12 }; +static const unsigned int nand_wen_clk_pins[] = { BOOT_13 }; +static const unsigned int nand_ren_wr_pins[] = { BOOT_14 }; +static const unsigned int nand_dqs_pins[] = { BOOT_15 }; /*emmc*/ -static const unsigned int emmc_clk_pins[] = { PIN(BOOT_8, EE_OFF) }; -static const unsigned int emmc_cmd_pins[] = { PIN(BOOT_10, EE_OFF) }; -static const unsigned int emmc_ds_pins[] = { PIN(BOOT_15, EE_OFF) }; +static const unsigned int emmc_clk_pins[] = { BOOT_8 }; +static const unsigned int emmc_cmd_pins[] = { BOOT_10 }; +static const unsigned int emmc_ds_pins[] = { BOOT_15 }; /*nor*/ -static const unsigned int nor_d_pins[] = { PIN(BOOT_11, EE_OFF) }; -static const unsigned int nor_q_pins[] = { PIN(BOOT_12, EE_OFF) }; -static const unsigned int nor_c_pins[] = { PIN(BOOT_13, EE_OFF) }; -static const unsigned int nor_cs_pins[] = { PIN(BOOT_15, EE_OFF) }; +static const unsigned int nor_d_pins[] = { BOOT_11 }; +static const unsigned int nor_q_pins[] = { BOOT_12 }; +static const unsigned int nor_c_pins[] = { BOOT_13 }; +static const unsigned int nor_cs_pins[] = { BOOT_15 }; /*sacard*/ -static const unsigned int sdcard_d1_pins[] = { PIN(CARD_0, EE_OFF) }; -static const unsigned int sdcard_d0_pins[] = { PIN(CARD_1, EE_OFF) }; -static const unsigned int sdcard_clk_pins[] = { PIN(CARD_2, EE_OFF) }; -static const unsigned int sdcard_cmd_pins[] = { PIN(CARD_3, EE_OFF) }; -static const unsigned int sdcard_d3_pins[] = { PIN(CARD_4, EE_OFF) }; -static const unsigned int sdcard_d2_pins[] = { PIN(CARD_5, EE_OFF) }; +static const unsigned int sdcard_d1_pins[] = { CARD_0 }; +static const unsigned int sdcard_d0_pins[] = { CARD_1 }; +static const unsigned int sdcard_clk_pins[] = { CARD_2 }; +static const unsigned int sdcard_cmd_pins[] = { CARD_3 }; +static const unsigned int sdcard_d3_pins[] = { CARD_4 }; +static const unsigned int sdcard_d2_pins[] = { CARD_5 }; /*sdio*/ -static const unsigned int sdio_d0_pins[] = { PIN(GPIOX_0, EE_OFF) }; -static const unsigned int sdio_d1_pins[] = { PIN(GPIOX_1, EE_OFF) }; -static const unsigned int sdio_d2_pins[] = { PIN(GPIOX_2, EE_OFF) }; -static const unsigned int sdio_d3_pins[] = { PIN(GPIOX_3, EE_OFF) }; -static const unsigned int sdio_clk_pins[] = { PIN(GPIOX_4, EE_OFF) }; -static const unsigned int sdio_cmd_pins[] = { PIN(GPIOX_5, EE_OFF) }; -static const unsigned int sdio_irq_pins[] = { PIN(GPIOX_7, EE_OFF) }; +static const unsigned int sdio_d0_pins[] = { GPIOX_0 }; +static const unsigned int sdio_d1_pins[] = { GPIOX_1 }; +static const unsigned int sdio_d2_pins[] = { GPIOX_2 }; +static const unsigned int sdio_d3_pins[] = { GPIOX_3 }; +static const unsigned int sdio_clk_pins[] = { GPIOX_4 }; +static const unsigned int sdio_cmd_pins[] = { GPIOX_5 }; +static const unsigned int sdio_irq_pins[] = { GPIOX_7 }; /*jtag*/ -static const unsigned int jtag_clk_0_pins[] = { PIN(GPIOH_6, EE_OFF) }; -static const unsigned int jtag_tms_0_pins[] = { PIN(GPIOH_7, EE_OFF) }; -static const unsigned int jtag_tdi_0_pins[] = { PIN(GPIOH_8, EE_OFF) }; -static const unsigned int jtag_tdo_0_pins[] = { PIN(GPIOH_9, EE_OFF) }; +static const unsigned int jtag_clk_0_pins[] = { GPIOH_6 }; +static const unsigned int jtag_tms_0_pins[] = { GPIOH_7 }; +static const unsigned int jtag_tdi_0_pins[] = { GPIOH_8 }; +static const unsigned int jtag_tdo_0_pins[] = { GPIOH_9 }; -static const unsigned int jtag_tdi_1_pins[] = { PIN(CARD_0, EE_OFF) }; -static const unsigned int jtag_tdo_1_pins[] = { PIN(CARD_1, EE_OFF) }; -static const unsigned int jtag_clk_1_pins[] = { PIN(CARD_2, EE_OFF) }; -static const unsigned int jtag_tms_1_pins[] = { PIN(CARD_3, EE_OFF) }; +static const unsigned int jtag_tdi_1_pins[] = { CARD_0 }; +static const unsigned int jtag_tdo_1_pins[] = { CARD_1 }; +static const unsigned int jtag_clk_1_pins[] = { CARD_2 }; +static const unsigned int jtag_tms_1_pins[] = { CARD_3 }; /*pwm_a*/ -static const unsigned int pwm_a_pins[] = { PIN(GPIOX_6, EE_OFF) }; +static const unsigned int pwm_a_pins[] = { GPIOX_6 }; /*pwm_b*/ -static const unsigned int pwm_b_pins[] = { PIN(GPIODV_29, EE_OFF) }; +static const unsigned int pwm_b_pins[] = { GPIODV_29 }; /*pwm_c*/ -static const unsigned int pwm_c_pins[] = { PIN(GPIOZ_15, EE_OFF) }; +static const unsigned int pwm_c_pins[] = { GPIOZ_15 }; /*pwm_d*/ -static const unsigned int pwm_d_pins[] = { PIN(GPIODV_28, EE_OFF) }; +static const unsigned int pwm_d_pins[] = { GPIODV_28 }; /*pwm_e*/ -static const unsigned int pwm_e_pins[] = { PIN(GPIOX_16, EE_OFF) }; +static const unsigned int pwm_e_pins[] = { GPIOX_16 }; /*pwm_f*/ -static const unsigned int pwm_f_x7_pins[] = { PIN(GPIOX_7, EE_OFF) }; -static const unsigned int pwm_f_clk1_pins[] = { PIN(GPIOCLK_1, EE_OFF) }; +static const unsigned int pwm_f_x7_pins[] = { GPIOX_7 }; +static const unsigned int pwm_f_clk1_pins[] = { GPIOCLK_1 }; /*pcm*/ -static const unsigned int pcm_out_a_pins[] = { PIN(GPIOX_8, EE_OFF) }; -static const unsigned int pcm_in_a_pins[] = { PIN(GPIOX_9, EE_OFF) }; -static const unsigned int pcm_fs_a_pins[] = { PIN(GPIOX_10, EE_OFF) }; -static const unsigned int pcm_clk_a_pins[] = { PIN(GPIOX_11, EE_OFF) }; +static const unsigned int pcm_out_a_pins[] = { GPIOX_8 }; +static const unsigned int pcm_in_a_pins[] = { GPIOX_9 }; +static const unsigned int pcm_fs_a_pins[] = { GPIOX_10 }; +static const unsigned int pcm_clk_a_pins[] = { GPIOX_11 }; /*spi*/ -static const unsigned int spi_sclk_0_pins[] = { PIN(GPIOZ_11, EE_OFF) }; -static const unsigned int spi_miso_0_pins[] = { PIN(GPIOZ_12, EE_OFF) }; -static const unsigned int spi_mosi_0_pins[] = { PIN(GPIOZ_13, EE_OFF) }; +static const unsigned int spi_sclk_0_pins[] = { GPIOZ_11 }; +static const unsigned int spi_miso_0_pins[] = { GPIOZ_12 }; +static const unsigned int spi_mosi_0_pins[] = { GPIOZ_13 }; -static const unsigned int spi_mosi_1_pins[] = { PIN(GPIOX_8, EE_OFF) }; -static const unsigned int spi_miso_1_pins[] = { PIN(GPIOX_9, EE_OFF) }; -static const unsigned int spi_sclk_1_pins[] = { PIN(GPIOX_11, EE_OFF) }; +static const unsigned int spi_mosi_1_pins[] = { GPIOX_8 }; +static const unsigned int spi_miso_1_pins[] = { GPIOX_9 }; +static const unsigned int spi_sclk_1_pins[] = { GPIOX_11 }; /*hdmi_hpd*/ -static const unsigned int hdmi_hpd_pins[] = { PIN(GPIOH_0, EE_OFF) }; +static const unsigned int hdmi_hpd_pins[] = { GPIOH_0 }; /*hdmi_ddc*/ -static const unsigned int hdmi_sda_pins[] = { PIN(GPIOH_1, EE_OFF) }; -static const unsigned int hdmi_scl_pins[] = { PIN(GPIOH_2, EE_OFF) }; +static const unsigned int hdmi_sda_pins[] = { GPIOH_1 }; +static const unsigned int hdmi_scl_pins[] = { GPIOH_2 }; /*spdif_out*/ -static const unsigned int spdif_out_pins[] = { PIN(GPIOH_4, EE_OFF) }; +static const unsigned int spdif_out_pins[] = { GPIOH_4 }; /*spdif_in*/ -static const unsigned int spdif_in_h4_pins[] = { PIN(GPIOH_4, EE_OFF) }; -static const unsigned int spdif_in_z14_pins[] = { PIN(GPIOZ_14, EE_OFF) }; +static const unsigned int spdif_in_h4_pins[] = { GPIOH_4 }; +static const unsigned int spdif_in_z14_pins[] = { GPIOZ_14 }; /*i2s*/ -static const unsigned int i2s_am_clk_pins[] = { PIN(GPIOH_6, EE_OFF) }; -static const unsigned int i2s_ao_clk_out_pins[] = { PIN(GPIOH_7, EE_OFF) }; -static const unsigned int i2s_lr_clk_out_pins[] = { PIN(GPIOH_8, EE_OFF) }; -static const unsigned int i2sout_ch01_pins[] = { PIN(GPIOH_9, EE_OFF) }; -static const unsigned int i2sout_ch23_z5_pins[] = { PIN(GPIOZ_5, EE_OFF) }; -static const unsigned int i2sout_ch45_z6_pins[] = { PIN(GPIOZ_6, EE_OFF) }; -static const unsigned int i2sout_ch67_z7_pins[] = { PIN(GPIOZ_7, EE_OFF) }; +static const unsigned int i2s_am_clk_pins[] = { GPIOH_6 }; +static const unsigned int i2s_ao_clk_out_pins[] = { GPIOH_7 }; +static const unsigned int i2s_lr_clk_out_pins[] = { GPIOH_8 }; +static const unsigned int i2sout_ch01_pins[] = { GPIOH_9 }; +static const unsigned int i2sout_ch23_z5_pins[] = { GPIOZ_5 }; +static const unsigned int i2sout_ch45_z6_pins[] = { GPIOZ_6 }; +static const unsigned int i2sout_ch67_z7_pins[] = { GPIOZ_7 }; -static const unsigned int i2sin_ch23_pins[] = { PIN(GPIOZ_2, EE_OFF) }; -static const unsigned int i2sin_ch45_pins[] = { PIN(GPIOZ_3, EE_OFF) }; -static const unsigned int i2sin_ch67_pins[] = { PIN(GPIOZ_4, EE_OFF) }; +static const unsigned int i2sin_ch23_pins[] = { GPIOZ_2 }; +static const unsigned int i2sin_ch45_pins[] = { GPIOZ_3 }; +static const unsigned int i2sin_ch67_pins[] = { GPIOZ_4 }; /*tsin_a*/ -static const unsigned int tsin_sop_a_x8_pins[] = { PIN(GPIOX_8, EE_OFF) }; -static const unsigned int tsin_d_valid_a_x9_pins[] = { PIN(GPIOX_9, EE_OFF) }; -static const unsigned int tsin_d0_a_x10_pins[] = { PIN(GPIOX_10, EE_OFF) }; -static const unsigned int tsin_clk_a_x11_pins[] = { PIN(GPIOX_11, EE_OFF) }; +static const unsigned int tsin_sop_a_x8_pins[] = { GPIOX_8 }; +static const unsigned int tsin_d_valid_a_x9_pins[] = { GPIOX_9 }; +static const unsigned int tsin_d0_a_x10_pins[] = { GPIOX_10 }; +static const unsigned int tsin_clk_a_x11_pins[] = { GPIOX_11 }; -static const unsigned int tsin_d0_a_dv0_pins[] = { PIN(GPIODV_0, EE_OFF) }; -static const unsigned int tsin_clk_a_dv8_pins[] = { PIN(GPIODV_8, EE_OFF) }; -static const unsigned int tsin_sop_a_dv9_pins[] = { PIN(GPIODV_9, EE_OFF) }; +static const unsigned int tsin_d0_a_dv0_pins[] = { GPIODV_0 }; +static const unsigned int tsin_clk_a_dv8_pins[] = { GPIODV_8 }; +static const unsigned int tsin_sop_a_dv9_pins[] = { GPIODV_9 }; static const unsigned int tsin_d_valid_a_dv10_pins[] = { - PIN(GPIODV_10, EE_OFF) + GPIODV_10 }; -static const unsigned int tsin_fail_a_dv11_pins[] = { PIN(GPIODV_11, EE_OFF) }; +static const unsigned int tsin_fail_a_dv11_pins[] = { GPIODV_11 }; static const unsigned int tsin_d1_7_a_dv1_7_pins[] = { - PIN(GPIODV_1, EE_OFF), PIN(GPIODV_2, EE_OFF), - PIN(GPIODV_3, EE_OFF), PIN(GPIODV_4, EE_OFF), - PIN(GPIODV_5, EE_OFF), PIN(GPIODV_6, EE_OFF), - PIN(GPIODV_7, EE_OFF) + GPIODV_1, GPIODV_2, + GPIODV_3, GPIODV_4, + GPIODV_5, GPIODV_6, + GPIODV_7 }; /*tsin_b*/ -static const unsigned int tsin_clk_b_h6_pins[] = { PIN(GPIOH_6, EE_OFF) }; -static const unsigned int tsin_d0_b_h7_pins[] = { PIN(GPIOH_7, EE_OFF) }; -static const unsigned int tsin_sop_b_h8_pins[] = { PIN(GPIOH_8, EE_OFF) }; -static const unsigned int tsin_d_valid_b_h9_pins[] = { PIN(GPIOH_9, EE_OFF) }; +static const unsigned int tsin_clk_b_h6_pins[] = { GPIOH_6 }; +static const unsigned int tsin_d0_b_h7_pins[] = { GPIOH_7 }; +static const unsigned int tsin_sop_b_h8_pins[] = { GPIOH_8 }; +static const unsigned int tsin_d_valid_b_h9_pins[] = { GPIOH_9 }; -static const unsigned int tsin_d_valid_b_z0_pins[] = { PIN(GPIOZ_0, EE_OFF) }; -static const unsigned int tsin_sop_b_z1_pins[] = { PIN(GPIOZ_1, EE_OFF) }; -static const unsigned int tsin_d0_b_z2_pins[] = { PIN(GPIOZ_2, EE_OFF) }; -static const unsigned int tsin_clk_b_z3_pins[] = { PIN(GPIOZ_3, EE_OFF) }; +static const unsigned int tsin_d_valid_b_z0_pins[] = { GPIOZ_0 }; +static const unsigned int tsin_sop_b_z1_pins[] = { GPIOZ_1 }; +static const unsigned int tsin_d0_b_z2_pins[] = { GPIOZ_2 }; +static const unsigned int tsin_clk_b_z3_pins[] = { GPIOZ_3 }; -static const unsigned int tsin_fail_b_z4_pins[] = { PIN(GPIOZ_4, EE_OFF) }; +static const unsigned int tsin_fail_b_z4_pins[] = { GPIOZ_4 }; /*lcd*/ static const unsigned int lcd_r0_1_pins[] = { - PIN(GPIODV_0, EE_OFF), PIN(GPIODV_1, EE_OFF), + GPIODV_0, GPIODV_1, }; static const unsigned int lcd_r2_7_pins[] = { - PIN(GPIODV_2, EE_OFF), PIN(GPIODV_3, EE_OFF), - PIN(GPIODV_4, EE_OFF), PIN(GPIODV_5, EE_OFF), - PIN(GPIODV_6, EE_OFF), PIN(GPIODV_7, EE_OFF), + GPIODV_2, GPIODV_3, + GPIODV_4, GPIODV_5, + GPIODV_6, GPIODV_7, }; static const unsigned int lcd_g0_1_pins[] = { - PIN(GPIODV_8, EE_OFF), PIN(GPIODV_9, EE_OFF), + GPIODV_8, GPIODV_9, }; static const unsigned int lcd_g2_7_pins[] = { - PIN(GPIODV_10, EE_OFF), PIN(GPIODV_11, EE_OFF), - PIN(GPIODV_12, EE_OFF), PIN(GPIODV_13, EE_OFF), - PIN(GPIODV_14, EE_OFF), PIN(GPIODV_15, EE_OFF), + GPIODV_10, GPIODV_11, + GPIODV_12, GPIODV_13, + GPIODV_14, GPIODV_15, }; static const unsigned int lcd_b0_1_pins[] = { - PIN(GPIODV_16, EE_OFF), PIN(GPIODV_17, EE_OFF), + GPIODV_16, GPIODV_17, }; static const unsigned int lcd_b2_7_pins[] = { - PIN(GPIODV_18, EE_OFF), PIN(GPIODV_19, EE_OFF), - PIN(GPIODV_20, EE_OFF), PIN(GPIODV_21, EE_OFF), - PIN(GPIODV_22, EE_OFF), PIN(GPIODV_23, EE_OFF), + GPIODV_18, GPIODV_19, + GPIODV_20, GPIODV_21, + GPIODV_22, GPIODV_23, }; -static const unsigned int lcd_vs_pins[] = { PIN(GPIODV_24, EE_OFF) }; -static const unsigned int lcd_hs_pins[] = { PIN(GPIODV_25, EE_OFF) }; +static const unsigned int lcd_vs_pins[] = { GPIODV_24 }; +static const unsigned int lcd_hs_pins[] = { GPIODV_25 }; /*tsout*/ -static const unsigned int tsout_fail_pins[] = { PIN(GPIODV_12, EE_OFF) }; -static const unsigned int tsout_d_valid_pins[] = { PIN(GPIODV_13, EE_OFF) }; -static const unsigned int tsout_sop_pins[] = { PIN(GPIODV_14, EE_OFF) }; -static const unsigned int tsout_clk_pins[] = { PIN(GPIODV_15, EE_OFF) }; -static const unsigned int tsout_d0_pins[] = { PIN(GPIODV_16, EE_OFF) }; +static const unsigned int tsout_fail_pins[] = { GPIODV_12 }; +static const unsigned int tsout_d_valid_pins[] = { GPIODV_13 }; +static const unsigned int tsout_sop_pins[] = { GPIODV_14 }; +static const unsigned int tsout_clk_pins[] = { GPIODV_15 }; +static const unsigned int tsout_d0_pins[] = { GPIODV_16 }; static const unsigned int tsout_d1_7_pins[] = { - PIN(GPIODV_17, EE_OFF), PIN(GPIODV_18, EE_OFF), - PIN(GPIODV_19, EE_OFF), PIN(GPIODV_20, EE_OFF), - PIN(GPIODV_21, EE_OFF), PIN(GPIODV_22, EE_OFF), - PIN(GPIODV_23, EE_OFF) + GPIODV_17, GPIODV_18, + GPIODV_19, GPIODV_20, + GPIODV_21, GPIODV_22, + GPIODV_23 }; /*uart_ao_a*/ -static const unsigned int uart_tx_ao_a_card4_pins[] = { PIN(CARD_4, EE_OFF) }; -static const unsigned int uart_rx_ao_a_card4_pins[] = { PIN(CARD_4, EE_OFF) }; -static const unsigned int uart_rx_ao_a_card5_pins[] = { PIN(CARD_5, EE_OFF) }; -static const unsigned int uart_tx_ao_a_card5_pins[] = { PIN(CARD_5, EE_OFF) }; +static const unsigned int uart_tx_ao_a_card4_pins[] = { CARD_4 }; +static const unsigned int uart_rx_ao_a_card4_pins[] = { CARD_4 }; +static const unsigned int uart_rx_ao_a_card5_pins[] = { CARD_5 }; +static const unsigned int uart_tx_ao_a_card5_pins[] = { CARD_5 }; /*uart_a*/ -static const unsigned int uart_tx_a_pins[] = { PIN(GPIOX_12, EE_OFF) }; -static const unsigned int uart_rx_a_pins[] = { PIN(GPIOX_13, EE_OFF) }; -static const unsigned int uart_cts_a_pins[] = { PIN(GPIOX_14, EE_OFF) }; -static const unsigned int uart_rts_a_pins[] = { PIN(GPIOX_15, EE_OFF) }; +static const unsigned int uart_tx_a_pins[] = { GPIOX_12 }; +static const unsigned int uart_rx_a_pins[] = { GPIOX_13 }; +static const unsigned int uart_cts_a_pins[] = { GPIOX_14 }; +static const unsigned int uart_rts_a_pins[] = { GPIOX_15 }; /*uart_b*/ -static const unsigned int uart_tx_b_pins[] = { PIN(GPIODV_24, EE_OFF) }; -static const unsigned int uart_rx_b_pins[] = { PIN(GPIODV_25, EE_OFF) }; -static const unsigned int uart_cts_b_pins[] = { PIN(GPIODV_26, EE_OFF) }; -static const unsigned int uart_rts_b_pins[] = { PIN(GPIODV_27, EE_OFF) }; +static const unsigned int uart_tx_b_pins[] = { GPIODV_24 }; +static const unsigned int uart_rx_b_pins[] = { GPIODV_25 }; +static const unsigned int uart_cts_b_pins[] = { GPIODV_26 }; +static const unsigned int uart_rts_b_pins[] = { GPIODV_27 }; /*uart_c*/ -static const unsigned int uart_tx_c_pins[] = { PIN(GPIOX_8, EE_OFF) }; -static const unsigned int uart_rx_c_pins[] = { PIN(GPIOX_9, EE_OFF) }; -static const unsigned int uart_cts_c_pins[] = { PIN(GPIOX_10, EE_OFF) }; -static const unsigned int uart_rts_c_pins[] = { PIN(GPIOX_11, EE_OFF) }; +static const unsigned int uart_tx_c_pins[] = { GPIOX_8 }; +static const unsigned int uart_rx_c_pins[] = { GPIOX_9 }; +static const unsigned int uart_cts_c_pins[] = { GPIOX_10 }; +static const unsigned int uart_rts_c_pins[] = { GPIOX_11 }; /*dmic*/ -static const unsigned int dmic_in_dv24_pins[] = { PIN(GPIODV_24, EE_OFF) }; -static const unsigned int dmic_clk_dv25_pins[] = { PIN(GPIODV_25, EE_OFF) }; +static const unsigned int dmic_in_dv24_pins[] = { GPIODV_24 }; +static const unsigned int dmic_clk_dv25_pins[] = { GPIODV_25 }; -static const unsigned int dmic_in_z8_pins[] = { PIN(GPIOZ_8, EE_OFF) }; -static const unsigned int dmic_clk_z9_pins[] = { PIN(GPIOZ_9, EE_OFF)}; +static const unsigned int dmic_in_z8_pins[] = { GPIOZ_8 }; +static const unsigned int dmic_clk_z9_pins[] = { GPIOZ_9}; /*tcon*/ -static const unsigned int tcon_stv1_pins[] = { PIN(GPIODV_24, EE_OFF) }; -static const unsigned int tcon_sth1_pins[] = { PIN(GPIODV_25, EE_OFF) }; -static const unsigned int tcon_cph_pins[] = { PIN(GPIODV_26, EE_OFF) }; -static const unsigned int tcon_vcom_pins[] = { PIN(GPIODV_27, EE_OFF) }; -static const unsigned int tcon_oeh_pins[] = { PIN(GPIODV_27, EE_OFF) }; +static const unsigned int tcon_stv1_pins[] = { GPIODV_24 }; +static const unsigned int tcon_sth1_pins[] = { GPIODV_25 }; +static const unsigned int tcon_cph_pins[] = { GPIODV_26 }; +static const unsigned int tcon_vcom_pins[] = { GPIODV_27 }; +static const unsigned int tcon_oeh_pins[] = { GPIODV_27 }; /*i2c_a*/ -static const unsigned int i2c_sda_a_pins[] = { PIN(GPIODV_24, EE_OFF) }; -static const unsigned int i2c_scl_a_pins[] = { PIN(GPIODV_25, EE_OFF) }; +static const unsigned int i2c_sda_a_pins[] = { GPIODV_24 }; +static const unsigned int i2c_scl_a_pins[] = { GPIODV_25 }; /*i2c_b*/ -static const unsigned int i2c_sda_b_pins[] = { PIN(GPIODV_26, EE_OFF) }; -static const unsigned int i2c_scl_b_pins[] = { PIN(GPIODV_27, EE_OFF) }; +static const unsigned int i2c_sda_b_pins[] = { GPIODV_26 }; +static const unsigned int i2c_scl_b_pins[] = { GPIODV_27 }; /*i2c_c*/ -static const unsigned int i2c_sda_c_dv28_pins[] = { PIN(GPIODV_28, EE_OFF) }; -static const unsigned int i2c_scl_c_dv29_pins[] = { PIN(GPIODV_29, EE_OFF) }; +static const unsigned int i2c_sda_c_dv28_pins[] = { GPIODV_28 }; +static const unsigned int i2c_scl_c_dv29_pins[] = { GPIODV_29 }; -static const unsigned int i2c_sda_c_dv18_pins[] = { PIN(GPIODV_18, EE_OFF) }; -static const unsigned int i2c_scl_c_dv19_pins[] = { PIN(GPIODV_19, EE_OFF) }; +static const unsigned int i2c_sda_c_dv18_pins[] = { GPIODV_18 }; +static const unsigned int i2c_scl_c_dv19_pins[] = { GPIODV_19 }; /*i2c_d*/ -static const unsigned int i2c_sda_d_pins[] = { PIN(GPIOX_10, EE_OFF) }; -static const unsigned int i2c_scl_d_pins[] = { PIN(GPIOX_11, EE_OFF) }; +static const unsigned int i2c_sda_d_pins[] = { GPIOX_10 }; +static const unsigned int i2c_scl_d_pins[] = { GPIOX_11 }; /*eth*/ -static const unsigned int eth_mdio_pins[] = { PIN(GPIOZ_0, EE_OFF) }; -static const unsigned int eth_mdc_pins[] = { PIN(GPIOZ_1, EE_OFF) }; -static const unsigned int eth_clk_rx_clk_pins[] = { PIN(GPIOZ_2, EE_OFF) }; -static const unsigned int eth_rx_dv_pins[] = { PIN(GPIOZ_3, EE_OFF) }; -static const unsigned int eth_rxd0_pins[] = { PIN(GPIOZ_4, EE_OFF) }; -static const unsigned int eth_rxd1_pins[] = { PIN(GPIOZ_5, EE_OFF) }; -static const unsigned int eth_rxd2_pins[] = { PIN(GPIOZ_6, EE_OFF) }; -static const unsigned int eth_rxd3_pins[] = { PIN(GPIOZ_7, EE_OFF) }; -static const unsigned int eth_rgmii_tx_clk_pins[] = { PIN(GPIOZ_8, EE_OFF) }; -static const unsigned int eth_tx_en_pins[] = { PIN(GPIOZ_9, EE_OFF) }; -static const unsigned int eth_txd0_pins[] = { PIN(GPIOZ_10, EE_OFF) }; -static const unsigned int eth_txd1_pins[] = { PIN(GPIOZ_11, EE_OFF) }; -static const unsigned int eth_txd2_pins[] = { PIN(GPIOZ_12, EE_OFF) }; -static const unsigned int eth_txd3_pins[] = { PIN(GPIOZ_13, EE_OFF) }; -static const unsigned int eth_link_led_pins[] = { PIN(GPIOZ_14, EE_OFF) }; -static const unsigned int eth_act_led_pins[] = { PIN(GPIOZ_15, EE_OFF) }; +static const unsigned int eth_mdio_pins[] = { GPIOZ_0 }; +static const unsigned int eth_mdc_pins[] = { GPIOZ_1 }; +static const unsigned int eth_clk_rx_clk_pins[] = { GPIOZ_2 }; +static const unsigned int eth_rx_dv_pins[] = { GPIOZ_3 }; +static const unsigned int eth_rxd0_pins[] = { GPIOZ_4 }; +static const unsigned int eth_rxd1_pins[] = { GPIOZ_5 }; +static const unsigned int eth_rxd2_pins[] = { GPIOZ_6 }; +static const unsigned int eth_rxd3_pins[] = { GPIOZ_7 }; +static const unsigned int eth_rgmii_tx_clk_pins[] = { GPIOZ_8 }; +static const unsigned int eth_tx_en_pins[] = { GPIOZ_9 }; +static const unsigned int eth_txd0_pins[] = { GPIOZ_10 }; +static const unsigned int eth_txd1_pins[] = { GPIOZ_11 }; +static const unsigned int eth_txd2_pins[] = { GPIOZ_12 }; +static const unsigned int eth_txd3_pins[] = { GPIOZ_13 }; +static const unsigned int eth_link_led_pins[] = { GPIOZ_14 }; +static const unsigned int eth_act_led_pins[] = { GPIOZ_15 }; /*dvp*/ -static const unsigned int dvp_vs_pins[] = { PIN(GPIOZ_0, EE_OFF) }; -static const unsigned int dvp_hs_pins[] = { PIN(GPIOZ_1, EE_OFF) }; -static const unsigned int dvp_clk_pins[] = { PIN(GPIOZ_3, EE_OFF) }; +static const unsigned int dvp_vs_pins[] = { GPIOZ_0 }; +static const unsigned int dvp_hs_pins[] = { GPIOZ_1 }; +static const unsigned int dvp_clk_pins[] = { GPIOZ_3 }; static const unsigned int dvp_d2_9_pins[] = { - PIN(GPIOZ_4, EE_OFF), PIN(GPIOZ_5, EE_OFF), - PIN(GPIOZ_6, EE_OFF), PIN(GPIOZ_7, EE_OFF), - PIN(GPIOZ_8, EE_OFF), PIN(GPIOZ_9, EE_OFF), - PIN(GPIOZ_10, EE_OFF), PIN(GPIOZ_11, EE_OFF) + GPIOZ_4, GPIOZ_5, + GPIOZ_6, GPIOZ_7, + GPIOZ_8, GPIOZ_9, + GPIOZ_10, GPIOZ_11 }; /*iso7816*/ -static const unsigned int iso7816_clk_pins[] = { PIN(GPIOZ_6, EE_OFF) }; -static const unsigned int iso7816_data_pins[] = { PIN(GPIOZ_7, EE_OFF) }; +static const unsigned int iso7816_clk_pins[] = { GPIOZ_6 }; +static const unsigned int iso7816_data_pins[] = { GPIOZ_7 }; static struct meson_pmx_group meson_gxl_periphs_groups[] = { - GPIO_GROUP(GPIOZ_0, EE_OFF), - GPIO_GROUP(GPIOZ_1, EE_OFF), - GPIO_GROUP(GPIOZ_2, EE_OFF), - GPIO_GROUP(GPIOZ_3, EE_OFF), - GPIO_GROUP(GPIOZ_4, EE_OFF), - GPIO_GROUP(GPIOZ_5, EE_OFF), - GPIO_GROUP(GPIOZ_6, EE_OFF), - GPIO_GROUP(GPIOZ_7, EE_OFF), - GPIO_GROUP(GPIOZ_8, EE_OFF), - GPIO_GROUP(GPIOZ_9, EE_OFF), - GPIO_GROUP(GPIOZ_10, EE_OFF), - GPIO_GROUP(GPIOZ_11, EE_OFF), - GPIO_GROUP(GPIOZ_12, EE_OFF), - GPIO_GROUP(GPIOZ_13, EE_OFF), - GPIO_GROUP(GPIOZ_14, EE_OFF), - GPIO_GROUP(GPIOZ_15, EE_OFF), - GPIO_GROUP(GPIOH_0, EE_OFF), - GPIO_GROUP(GPIOH_1, EE_OFF), - GPIO_GROUP(GPIOH_2, EE_OFF), - GPIO_GROUP(GPIOH_3, EE_OFF), - GPIO_GROUP(GPIOH_4, EE_OFF), - GPIO_GROUP(GPIOH_5, EE_OFF), - GPIO_GROUP(GPIOH_6, EE_OFF), - GPIO_GROUP(GPIOH_7, EE_OFF), - GPIO_GROUP(GPIOH_8, EE_OFF), - GPIO_GROUP(GPIOH_9, EE_OFF), - GPIO_GROUP(BOOT_0, EE_OFF), - GPIO_GROUP(BOOT_1, EE_OFF), - GPIO_GROUP(BOOT_2, EE_OFF), - GPIO_GROUP(BOOT_3, EE_OFF), - GPIO_GROUP(BOOT_4, EE_OFF), - GPIO_GROUP(BOOT_5, EE_OFF), - GPIO_GROUP(BOOT_6, EE_OFF), - GPIO_GROUP(BOOT_7, EE_OFF), - GPIO_GROUP(BOOT_8, EE_OFF), - GPIO_GROUP(BOOT_9, EE_OFF), - GPIO_GROUP(BOOT_10, EE_OFF), - GPIO_GROUP(BOOT_11, EE_OFF), - GPIO_GROUP(BOOT_12, EE_OFF), - GPIO_GROUP(BOOT_13, EE_OFF), - GPIO_GROUP(BOOT_14, EE_OFF), - GPIO_GROUP(BOOT_15, EE_OFF), - GPIO_GROUP(CARD_0, EE_OFF), - GPIO_GROUP(CARD_1, EE_OFF), - GPIO_GROUP(CARD_2, EE_OFF), - GPIO_GROUP(CARD_3, EE_OFF), - GPIO_GROUP(CARD_4, EE_OFF), - GPIO_GROUP(CARD_5, EE_OFF), - GPIO_GROUP(CARD_6, EE_OFF), - GPIO_GROUP(GPIODV_0, EE_OFF), - GPIO_GROUP(GPIODV_1, EE_OFF), - GPIO_GROUP(GPIODV_2, EE_OFF), - GPIO_GROUP(GPIODV_3, EE_OFF), - GPIO_GROUP(GPIODV_4, EE_OFF), - GPIO_GROUP(GPIODV_5, EE_OFF), - GPIO_GROUP(GPIODV_6, EE_OFF), - GPIO_GROUP(GPIODV_7, EE_OFF), - GPIO_GROUP(GPIODV_8, EE_OFF), - GPIO_GROUP(GPIODV_9, EE_OFF), - GPIO_GROUP(GPIODV_10, EE_OFF), - GPIO_GROUP(GPIODV_11, EE_OFF), - GPIO_GROUP(GPIODV_12, EE_OFF), - GPIO_GROUP(GPIODV_13, EE_OFF), - GPIO_GROUP(GPIODV_14, EE_OFF), - GPIO_GROUP(GPIODV_15, EE_OFF), - GPIO_GROUP(GPIODV_16, EE_OFF), - GPIO_GROUP(GPIODV_17, EE_OFF), - GPIO_GROUP(GPIODV_18, EE_OFF), - GPIO_GROUP(GPIODV_19, EE_OFF), - GPIO_GROUP(GPIODV_20, EE_OFF), - GPIO_GROUP(GPIODV_21, EE_OFF), - GPIO_GROUP(GPIODV_22, EE_OFF), - GPIO_GROUP(GPIODV_23, EE_OFF), - GPIO_GROUP(GPIODV_24, EE_OFF), - GPIO_GROUP(GPIODV_25, EE_OFF), - GPIO_GROUP(GPIODV_26, EE_OFF), - GPIO_GROUP(GPIODV_27, EE_OFF), - GPIO_GROUP(GPIODV_28, EE_OFF), - GPIO_GROUP(GPIODV_29, EE_OFF), - GPIO_GROUP(GPIOX_0, EE_OFF), - GPIO_GROUP(GPIOX_1, EE_OFF), - GPIO_GROUP(GPIOX_2, EE_OFF), - GPIO_GROUP(GPIOX_3, EE_OFF), - GPIO_GROUP(GPIOX_4, EE_OFF), - GPIO_GROUP(GPIOX_5, EE_OFF), - GPIO_GROUP(GPIOX_6, EE_OFF), - GPIO_GROUP(GPIOX_7, EE_OFF), - GPIO_GROUP(GPIOX_8, EE_OFF), - GPIO_GROUP(GPIOX_9, EE_OFF), - GPIO_GROUP(GPIOX_10, EE_OFF), - GPIO_GROUP(GPIOX_11, EE_OFF), - GPIO_GROUP(GPIOX_12, EE_OFF), - GPIO_GROUP(GPIOX_13, EE_OFF), - GPIO_GROUP(GPIOX_14, EE_OFF), - GPIO_GROUP(GPIOX_15, EE_OFF), - GPIO_GROUP(GPIOX_16, EE_OFF), - GPIO_GROUP(GPIOX_17, EE_OFF), - GPIO_GROUP(GPIOX_18, EE_OFF), - GPIO_GROUP(GPIOCLK_0, EE_OFF), - GPIO_GROUP(GPIOCLK_1, EE_OFF), + GPIO_GROUP(GPIOZ_0), + GPIO_GROUP(GPIOZ_1), + GPIO_GROUP(GPIOZ_2), + GPIO_GROUP(GPIOZ_3), + GPIO_GROUP(GPIOZ_4), + GPIO_GROUP(GPIOZ_5), + GPIO_GROUP(GPIOZ_6), + GPIO_GROUP(GPIOZ_7), + GPIO_GROUP(GPIOZ_8), + GPIO_GROUP(GPIOZ_9), + GPIO_GROUP(GPIOZ_10), + GPIO_GROUP(GPIOZ_11), + GPIO_GROUP(GPIOZ_12), + GPIO_GROUP(GPIOZ_13), + GPIO_GROUP(GPIOZ_14), + GPIO_GROUP(GPIOZ_15), + GPIO_GROUP(GPIOH_0), + GPIO_GROUP(GPIOH_1), + GPIO_GROUP(GPIOH_2), + GPIO_GROUP(GPIOH_3), + GPIO_GROUP(GPIOH_4), + GPIO_GROUP(GPIOH_5), + GPIO_GROUP(GPIOH_6), + GPIO_GROUP(GPIOH_7), + GPIO_GROUP(GPIOH_8), + GPIO_GROUP(GPIOH_9), + GPIO_GROUP(BOOT_0), + GPIO_GROUP(BOOT_1), + GPIO_GROUP(BOOT_2), + GPIO_GROUP(BOOT_3), + GPIO_GROUP(BOOT_4), + GPIO_GROUP(BOOT_5), + GPIO_GROUP(BOOT_6), + GPIO_GROUP(BOOT_7), + GPIO_GROUP(BOOT_8), + GPIO_GROUP(BOOT_9), + GPIO_GROUP(BOOT_10), + GPIO_GROUP(BOOT_11), + GPIO_GROUP(BOOT_12), + GPIO_GROUP(BOOT_13), + GPIO_GROUP(BOOT_14), + GPIO_GROUP(BOOT_15), + GPIO_GROUP(CARD_0), + GPIO_GROUP(CARD_1), + GPIO_GROUP(CARD_2), + GPIO_GROUP(CARD_3), + GPIO_GROUP(CARD_4), + GPIO_GROUP(CARD_5), + GPIO_GROUP(CARD_6), + GPIO_GROUP(GPIODV_0), + GPIO_GROUP(GPIODV_1), + GPIO_GROUP(GPIODV_2), + GPIO_GROUP(GPIODV_3), + GPIO_GROUP(GPIODV_4), + GPIO_GROUP(GPIODV_5), + GPIO_GROUP(GPIODV_6), + GPIO_GROUP(GPIODV_7), + GPIO_GROUP(GPIODV_8), + GPIO_GROUP(GPIODV_9), + GPIO_GROUP(GPIODV_10), + GPIO_GROUP(GPIODV_11), + GPIO_GROUP(GPIODV_12), + GPIO_GROUP(GPIODV_13), + GPIO_GROUP(GPIODV_14), + GPIO_GROUP(GPIODV_15), + GPIO_GROUP(GPIODV_16), + GPIO_GROUP(GPIODV_17), + GPIO_GROUP(GPIODV_18), + GPIO_GROUP(GPIODV_19), + GPIO_GROUP(GPIODV_20), + GPIO_GROUP(GPIODV_21), + GPIO_GROUP(GPIODV_22), + GPIO_GROUP(GPIODV_23), + GPIO_GROUP(GPIODV_24), + GPIO_GROUP(GPIODV_25), + GPIO_GROUP(GPIODV_26), + GPIO_GROUP(GPIODV_27), + GPIO_GROUP(GPIODV_28), + GPIO_GROUP(GPIODV_29), + GPIO_GROUP(GPIOX_0), + GPIO_GROUP(GPIOX_1), + GPIO_GROUP(GPIOX_2), + GPIO_GROUP(GPIOX_3), + GPIO_GROUP(GPIOX_4), + GPIO_GROUP(GPIOX_5), + GPIO_GROUP(GPIOX_6), + GPIO_GROUP(GPIOX_7), + GPIO_GROUP(GPIOX_8), + GPIO_GROUP(GPIOX_9), + GPIO_GROUP(GPIOX_10), + GPIO_GROUP(GPIOX_11), + GPIO_GROUP(GPIOX_12), + GPIO_GROUP(GPIOX_13), + GPIO_GROUP(GPIOX_14), + GPIO_GROUP(GPIOX_15), + GPIO_GROUP(GPIOX_16), + GPIO_GROUP(GPIOX_17), + GPIO_GROUP(GPIOX_18), + GPIO_GROUP(GPIOCLK_0), + GPIO_GROUP(GPIOCLK_1), /* Bank X */ - GROUP(uart_tx_a, 5, 19), - GROUP(uart_rx_a, 5, 18), - GROUP(uart_cts_a, 5, 17), - GROUP(uart_rts_a, 5, 16), - GROUP(uart_tx_c, 5, 13), - GROUP(uart_rx_c, 5, 12), - GROUP(uart_cts_c, 5, 11), - GROUP(uart_rts_c, 5, 10), - GROUP(pcm_out_a, 5, 23), - GROUP(pcm_in_a, 5, 22), - GROUP(pcm_fs_a, 5, 21), - GROUP(pcm_clk_a, 5, 20), - GROUP(pwm_e, 5, 15), - GROUP(sdio_d0, 5, 31), /*x0*/ - GROUP(sdio_d1, 5, 30), /*x1*/ - GROUP(sdio_d2, 5, 29), /*x2*/ - GROUP(sdio_d3, 5, 28), /*x3*/ - GROUP(sdio_clk, 5, 27), /*x4*/ - GROUP(sdio_cmd, 5, 26), /*x5*/ - GROUP(pwm_a, 5, 25), /*x6*/ - GROUP(sdio_irq, 5, 24), /*x7*/ - GROUP(pwm_f_x7, 5, 14), /*x7*/ - GROUP(tsin_sop_a_x8, 6, 3), /*x8*/ - GROUP(tsin_d_valid_a_x9, 6, 2), /*x9*/ - GROUP(tsin_d0_a_x10, 6, 1), /*x10*/ - GROUP(tsin_clk_a_x11, 6, 0), /*x11*/ + GROUP(uart_tx_a, 5, 19), + GROUP(uart_rx_a, 5, 18), + GROUP(uart_cts_a, 5, 17), + GROUP(uart_rts_a, 5, 16), + GROUP(uart_tx_c, 5, 13), + GROUP(uart_rx_c, 5, 12), + GROUP(uart_cts_c, 5, 11), + GROUP(uart_rts_c, 5, 10), + GROUP(pcm_out_a, 5, 23), + GROUP(pcm_in_a, 5, 22), + GROUP(pcm_fs_a, 5, 21), + GROUP(pcm_clk_a, 5, 20), + GROUP(pwm_e, 5, 15), + GROUP(sdio_d0, 5, 31), /*x0*/ + GROUP(sdio_d1, 5, 30), /*x1*/ + GROUP(sdio_d2, 5, 29), /*x2*/ + GROUP(sdio_d3, 5, 28), /*x3*/ + GROUP(sdio_clk, 5, 27), /*x4*/ + GROUP(sdio_cmd, 5, 26), /*x5*/ + GROUP(pwm_a, 5, 25), /*x6*/ + GROUP(sdio_irq, 5, 24), /*x7*/ + GROUP(pwm_f_x7, 5, 14), /*x7*/ + GROUP(tsin_sop_a_x8, 6, 3), /*x8*/ + GROUP(tsin_d_valid_a_x9, 6, 2), /*x9*/ + GROUP(tsin_d0_a_x10, 6, 1), /*x10*/ + GROUP(tsin_clk_a_x11, 6, 0), /*x11*/ GROUP(i2c_sda_d, 5, 5), /*x10*/ GROUP(i2c_scl_d, 5, 4), /*x11*/ - GROUP(spi_sclk_1, 5, 3),/*x8*/ - GROUP(spi_miso_1, 5, 2),/*x9*/ - GROUP(spi_mosi_1, 5, 0),/*x11*/ + GROUP(spi_sclk_1, 5, 3), /*x8*/ + GROUP(spi_miso_1, 5, 2), /*x9*/ + GROUP(spi_mosi_1, 5, 0), /*x11*/ /* Bank H */ - GROUP(hdmi_hpd, 6, 31), /*H0*/ - GROUP(hdmi_sda, 6, 30), /*H1*/ - GROUP(hdmi_scl, 6, 29), /*H2*/ + GROUP(hdmi_hpd, 6, 31), /*H0*/ + GROUP(hdmi_sda, 6, 30), /*H1*/ + GROUP(hdmi_scl, 6, 29), /*H2*/ GROUP(spdif_out, 6, 28), /*H4*/ GROUP(spdif_in_h4, 6, 27), /*H4*/ GROUP(i2s_am_clk, 6, 26), /*H6*/ @@ -557,221 +556,221 @@ static struct meson_pmx_group meson_gxl_periphs_groups[] = { GROUP(tsin_clk_b_h6, 6, 20), /*H6*/ GROUP(tsin_d0_b_h7, 6, 19), /*H7*/ GROUP(tsin_sop_b_h8, 6, 18), /*H8*/ - GROUP(tsin_d_valid_b_h9, 6, 17), /*H9*/ + GROUP(tsin_d_valid_b_h9, 6, 17), /*H9*/ /* Bank Z */ - GROUP(eth_mdio, 4, 23), /*z0*/ - GROUP(eth_mdc, 4, 22), /*z1*/ - GROUP(eth_clk_rx_clk, 4, 21), /*z2*/ - GROUP(eth_rx_dv, 4, 20), /*z3*/ - GROUP(eth_rxd0, 4, 19), /*z4*/ - GROUP(eth_rxd1, 4, 18), /*z5*/ - GROUP(eth_rxd2, 4, 17), /*z6*/ - GROUP(eth_rxd3, 4, 16), /*z7*/ - GROUP(eth_rgmii_tx_clk, 4, 15), /*z8*/ + GROUP(eth_mdio, 4, 23), /*z0*/ + GROUP(eth_mdc, 4, 22), /*z1*/ + GROUP(eth_clk_rx_clk, 4, 21), /*z2*/ + GROUP(eth_rx_dv, 4, 20), /*z3*/ + GROUP(eth_rxd0, 4, 19), /*z4*/ + GROUP(eth_rxd1, 4, 18), /*z5*/ + GROUP(eth_rxd2, 4, 17), /*z6*/ + GROUP(eth_rxd3, 4, 16), /*z7*/ + GROUP(eth_rgmii_tx_clk, 4, 15), /*z8*/ GROUP(eth_tx_en, 4, 14), /*z9*/ - GROUP(eth_txd0, 4, 13),/*z10*/ - GROUP(eth_txd1, 4, 12),/*z11*/ - GROUP(eth_txd2, 4, 11),/*z12*/ - GROUP(eth_txd3, 4, 10),/*z13*/ + GROUP(eth_txd0, 4, 13), /*z10*/ + GROUP(eth_txd1, 4, 12), /*z11*/ + GROUP(eth_txd2, 4, 11), /*z12*/ + GROUP(eth_txd3, 4, 10), /*z13*/ GROUP(tsin_d_valid_b_z0, 3, 19), /*z0*/ - GROUP(dvp_vs, 3, 14), /*z0*/ - GROUP(tsin_sop_b_z1, 3, 18), /*z1*/ - GROUP(dvp_hs, 3, 13), /*z1*/ - GROUP(i2sin_ch23, 3, 29), /*z2*/ - GROUP(tsin_d0_b_z2, 3, 17), /*z2*/ - GROUP(i2sin_ch45, 3, 28), /*z3*/ - GROUP(tsin_clk_b_z3, 3, 16), /*z3*/ - GROUP(dvp_clk, 3, 12), /*z3*/ - GROUP(i2sin_ch67, 3, 27), /*z4*/ - GROUP(tsin_fail_b_z4, 3, 15), /*z4*/ - GROUP(dvp_d2_9, 3, 11), /*z4*/ - GROUP(i2sout_ch23_z5, 3, 26), /*z5*/ - GROUP(iso7816_clk, 4, 9), /*z6*/ - GROUP(i2sout_ch45_z6, 3, 25), /*z6*/ - GROUP(i2sout_ch67_z7, 3, 24), /*z7*/ - GROUP(spi_sclk_0, 4, 4),/*z11*/ - GROUP(spi_miso_0, 4, 3),/*z12*/ - GROUP(spi_mosi_0, 4, 2),/*z13*/ + GROUP(dvp_vs, 3, 14), /*z0*/ + GROUP(tsin_sop_b_z1, 3, 18), /*z1*/ + GROUP(dvp_hs, 3, 13), /*z1*/ + GROUP(i2sin_ch23, 3, 29), /*z2*/ + GROUP(tsin_d0_b_z2, 3, 17), /*z2*/ + GROUP(i2sin_ch45, 3, 28), /*z3*/ + GROUP(tsin_clk_b_z3, 3, 16), /*z3*/ + GROUP(dvp_clk, 3, 12), /*z3*/ + GROUP(i2sin_ch67, 3, 27), /*z4*/ + GROUP(tsin_fail_b_z4, 3, 15), /*z4*/ + GROUP(dvp_d2_9, 3, 11), /*z4*/ + GROUP(i2sout_ch23_z5, 3, 26), /*z5*/ + GROUP(iso7816_clk, 4, 9), /*z6*/ + GROUP(i2sout_ch45_z6, 3, 25), /*z6*/ + GROUP(i2sout_ch67_z7, 3, 24), /*z7*/ + GROUP(spi_sclk_0, 4, 4), /*z11*/ + GROUP(spi_miso_0, 4, 3), /*z12*/ + GROUP(spi_mosi_0, 4, 2), /*z13*/ GROUP(spdif_in_z14, 3, 21), - GROUP(eth_link_led, 4, 25), - GROUP(pwm_c, 3, 20), /*z15*/ - GROUP(dmic_in_z8, 3, 23), /*z8*/ - GROUP(dmic_clk_z9, 3, 22), /*z9*/ + GROUP(eth_link_led, 4, 25), + GROUP(pwm_c, 3, 20), /*z15*/ + GROUP(dmic_in_z8, 3, 23), /*z8*/ + GROUP(dmic_clk_z9, 3, 22), /*z9*/ /* Bank DV */ - GROUP(tsin_d0_a_dv0, 2, 4), /*dv0*/ - GROUP(tsin_d1_7_a_dv1_7, 2, 3), /*dv1-7*/ - GROUP(tsin_clk_a_dv8, 2, 2), /*dv8*/ - GROUP(tsin_sop_a_dv9, 2, 1), /*dv9*/ - GROUP(tsin_d_valid_a_dv10, 2, 0), /*dv10*/ - GROUP(tsin_fail_a_dv11, 1, 31), /*dv11*/ - GROUP(tsout_fail, 1, 30), /*dv12*/ - GROUP(tsout_d_valid, 1, 29), /*dv13*/ - GROUP(tsout_sop, 1, 28), /*dv14*/ - GROUP(tsout_clk, 1, 27), /*dv15*/ - GROUP(tsout_d0, 1, 26), /*dv16*/ - GROUP(tsout_d1_7, 1, 25), /*dv17-23*/ - GROUP(lcd_r0_1, 3, 10), /*dv0-1*/ - GROUP(lcd_r2_7, 3, 9), /*dv2-7*/ - GROUP(lcd_g0_1, 3, 8), /*dv8-9*/ - GROUP(lcd_g2_7, 3, 7), /*dv10-15*/ - GROUP(lcd_b0_1, 3, 6), /*dv16-17*/ - GROUP(lcd_b2_7, 3, 5), /*dv18-23*/ - GROUP(lcd_vs, 3, 4), /*dv24*/ - GROUP(lcd_hs, 3, 3), /*dv25*/ - GROUP(tcon_stv1, 1, 22), /*dv24*/ - GROUP(tcon_sth1, 1, 21), /*dv25*/ - GROUP(tcon_cph, 1, 20), /*dv26*/ - GROUP(tcon_vcom, 1, 19), /*dv27*/ - GROUP(tcon_oeh, 1, 18), /*dv27*/ - GROUP(uart_tx_b, 2, 16), - GROUP(uart_rx_b, 2, 15), - GROUP(uart_cts_b, 2, 14), - GROUP(uart_rts_b, 2, 13), - GROUP(i2c_sda_a, 1, 15), /*dv24*/ - GROUP(i2c_scl_a, 1, 14), /*dv25*/ - GROUP(dmic_in_dv24, 2, 7), /*dv24*/ - GROUP(dmic_clk_dv25, 2, 6), /* dv25 */ - GROUP(i2c_sda_b, 1, 13), /*dv26*/ - GROUP(i2c_scl_b, 1, 12), /*dv27*/ - GROUP(i2c_sda_c_dv28, 1, 11), /*dv28*/ - GROUP(i2c_scl_c_dv29, 1, 10), /*dv29*/ - GROUP(i2c_sda_c_dv18, 1, 17), /*dv18*/ - GROUP(i2c_scl_c_dv19, 1, 16), /*dv19*/ - GROUP(pwm_b, 2, 11), /*dv29*/ - GROUP(pwm_d, 2, 12), /*dv28*/ + GROUP(tsin_d0_a_dv0, 2, 4), /*dv0*/ + GROUP(tsin_d1_7_a_dv1_7, 2, 3), /*dv1-7*/ + GROUP(tsin_clk_a_dv8, 2, 2), /*dv8*/ + GROUP(tsin_sop_a_dv9, 2, 1), /*dv9*/ + GROUP(tsin_d_valid_a_dv10, 2, 0), /*dv10*/ + GROUP(tsin_fail_a_dv11, 1, 31), /*dv11*/ + GROUP(tsout_fail, 1, 30), /*dv12*/ + GROUP(tsout_d_valid, 1, 29), /*dv13*/ + GROUP(tsout_sop, 1, 28), /*dv14*/ + GROUP(tsout_clk, 1, 27), /*dv15*/ + GROUP(tsout_d0, 1, 26), /*dv16*/ + GROUP(tsout_d1_7, 1, 25), /*dv17-23*/ + GROUP(lcd_r0_1, 3, 10), /*dv0-1*/ + GROUP(lcd_r2_7, 3, 9), /*dv2-7*/ + GROUP(lcd_g0_1, 3, 8), /*dv8-9*/ + GROUP(lcd_g2_7, 3, 7), /*dv10-15*/ + GROUP(lcd_b0_1, 3, 6), /*dv16-17*/ + GROUP(lcd_b2_7, 3, 5), /*dv18-23*/ + GROUP(lcd_vs, 3, 4), /*dv24*/ + GROUP(lcd_hs, 3, 3), /*dv25*/ + GROUP(tcon_stv1, 1, 22), /*dv24*/ + GROUP(tcon_sth1, 1, 21), /*dv25*/ + GROUP(tcon_cph, 1, 20), /*dv26*/ + GROUP(tcon_vcom, 1, 19), /*dv27*/ + GROUP(tcon_oeh, 1, 18), /*dv27*/ + GROUP(uart_tx_b, 2, 16), + GROUP(uart_rx_b, 2, 15), + GROUP(uart_cts_b, 2, 14), + GROUP(uart_rts_b, 2, 13), + GROUP(i2c_sda_a, 1, 15), /*dv24*/ + GROUP(i2c_scl_a, 1, 14), /*dv25*/ + GROUP(dmic_in_dv24, 2, 7), /*dv24*/ + GROUP(dmic_clk_dv25, 2, 6), /* dv25 */ + GROUP(i2c_sda_b, 1, 13), /*dv26*/ + GROUP(i2c_scl_b, 1, 12), /*dv27*/ + GROUP(i2c_sda_c_dv28, 1, 11), /*dv28*/ + GROUP(i2c_scl_c_dv29, 1, 10), /*dv29*/ + GROUP(i2c_sda_c_dv18, 1, 17), /*dv18*/ + GROUP(i2c_scl_c_dv19, 1, 16), /*dv19*/ + GROUP(pwm_b, 2, 11), /*dv29*/ + GROUP(pwm_d, 2, 12), /*dv28*/ /* Bank BOOT */ - GROUP(emmc_nand_d07, 7, 31), - GROUP(emmc_clk, 7, 30), - GROUP(emmc_cmd, 7, 29), - GROUP(emmc_ds, 7, 28), - GROUP(nor_d, 7, 13), - GROUP(nor_q, 7, 12), - GROUP(nor_c, 7, 11), - GROUP(nor_cs, 7, 10), - GROUP(nand_ce0, 7, 7), /*boot8*/ - GROUP(nand_ce1, 7, 6), /*boot9*/ - GROUP(nand_rb0, 7, 5), /*boot10*/ - GROUP(nand_ale, 7, 4), /*boot11*/ - GROUP(nand_cle, 7, 3), /*boot12*/ - GROUP(nand_wen_clk, 7, 2), /*boot13*/ - GROUP(nand_ren_wr, 7, 1), /*boot14*/ - GROUP(nand_dqs, 7, 0), /*boot15*/ + GROUP(emmc_nand_d07, 7, 31), + GROUP(emmc_clk, 7, 30), + GROUP(emmc_cmd, 7, 29), + GROUP(emmc_ds, 7, 28), + GROUP(nor_d, 7, 13), + GROUP(nor_q, 7, 12), + GROUP(nor_c, 7, 11), + GROUP(nor_cs, 7, 10), + GROUP(nand_ce0, 7, 7), /*boot8*/ + GROUP(nand_ce1, 7, 6), /*boot9*/ + GROUP(nand_rb0, 7, 5), /*boot10*/ + GROUP(nand_ale, 7, 4), /*boot11*/ + GROUP(nand_cle, 7, 3), /*boot12*/ + GROUP(nand_wen_clk, 7, 2), /*boot13*/ + GROUP(nand_ren_wr, 7, 1), /*boot14*/ + GROUP(nand_dqs, 7, 0), /*boot15*/ /* Bank CARD */ - GROUP(sdcard_d1, 6, 5), /*card0*/ - GROUP(sdcard_d0, 6, 4), /*card1*/ - GROUP(sdcard_clk, 6, 3), /*card2*/ - GROUP(sdcard_cmd, 6, 2), /*card3*/ - GROUP(sdcard_d3, 6, 1), /*card4*/ - GROUP(sdcard_d2, 6, 0), /*card5*/ + GROUP(sdcard_d1, 6, 5), /*card0*/ + GROUP(sdcard_d0, 6, 4), /*card1*/ + GROUP(sdcard_clk, 6, 3), /*card2*/ + GROUP(sdcard_cmd, 6, 2), /*card3*/ + GROUP(sdcard_d3, 6, 1), /*card4*/ + GROUP(sdcard_d2, 6, 0), /*card5*/ GROUP(uart_tx_ao_a_card4, 6, 9), /*card4*/ GROUP(uart_rx_ao_a_card5, 6, 8), /*card5*/ - GROUP(uart_rx_ao_a_card4, 6, 11),/*card4*/ - GROUP(uart_tx_ao_a_card5, 6, 10),/*card5*/ + GROUP(uart_rx_ao_a_card4, 6, 11), /*card4*/ + GROUP(uart_tx_ao_a_card5, 6, 10), /*card5*/ #if 0 GROUP(jtag_tdi_0, 0, 0xff), - GROUP(jtag_tdo_0, 0, 0xff), + GROUP(jtag_tdo_0, 0, 0xff), GROUP(jtag_clk_0, 0, 0xff), - GROUP(jtag_tms_0, 0, 0xff), + GROUP(jtag_tms_0, 0, 0xff), GROUP(jtag_tdi_1, 0, 0xff), - GROUP(jtag_tdo_1, 0, 0xff), + GROUP(jtag_tdo_1, 0, 0xff), GROUP(jtag_clk_1, 0, 0xff), - GROUP(jtag_tms_1, 0, 0xff), + GROUP(jtag_tms_1, 0, 0xff), #endif /*Bank CLK*/ - GROUP(pwm_f_clk1, 8, 30), + GROUP(pwm_f_clk1, 8, 30), }; static const struct pinctrl_pin_desc meson_gxl_aobus_pins[] = { - MESON_PIN(GPIOAO_0, 0), - MESON_PIN(GPIOAO_1, 0), - MESON_PIN(GPIOAO_2, 0), - MESON_PIN(GPIOAO_3, 0), - MESON_PIN(GPIOAO_4, 0), - MESON_PIN(GPIOAO_5, 0), - MESON_PIN(GPIOAO_6, 0), - MESON_PIN(GPIOAO_7, 0), - MESON_PIN(GPIOAO_8, 0), - MESON_PIN(GPIOAO_9, 0), - MESON_PIN(GPIO_TEST_N, 0), + MESON_PIN(GPIOAO_0), + MESON_PIN(GPIOAO_1), + MESON_PIN(GPIOAO_2), + MESON_PIN(GPIOAO_3), + MESON_PIN(GPIOAO_4), + MESON_PIN(GPIOAO_5), + MESON_PIN(GPIOAO_6), + MESON_PIN(GPIOAO_7), + MESON_PIN(GPIOAO_8), + MESON_PIN(GPIOAO_9), + MESON_PIN(GPIO_TEST_N), }; /*uart_ao_a*/ -static const unsigned int uart_tx_ao_a_0_pins[] = { PIN(GPIOAO_0, 0) }; -static const unsigned int uart_rx_ao_a_0_pins[] = { PIN(GPIOAO_1, 0) }; -static const unsigned int uart_cts_ao_a_pins[] = { PIN(GPIOAO_2, 0) }; -static const unsigned int uart_rts_ao_a_pins[] = { PIN(GPIOAO_3, 0) }; +static const unsigned int uart_tx_ao_a_0_pins[] = { GPIOAO_0 }; +static const unsigned int uart_rx_ao_a_0_pins[] = { GPIOAO_1 }; +static const unsigned int uart_cts_ao_a_pins[] = { GPIOAO_2 }; +static const unsigned int uart_rts_ao_a_pins[] = { GPIOAO_3 }; /*uart_ao_b*/ -static const unsigned int uart_tx_ao_b_0_pins[] = { PIN(GPIOAO_4, 0) }; -static const unsigned int uart_rx_ao_b_0_pins[] = { PIN(GPIOAO_5, 0) }; +static const unsigned int uart_tx_ao_b_0_pins[] = { GPIOAO_4 }; +static const unsigned int uart_rx_ao_b_0_pins[] = { GPIOAO_5 }; -static const unsigned int uart_tx_ao_b_1_pins[] = { PIN(GPIOAO_0, 0) }; -static const unsigned int uart_rx_ao_b_1_pins[] = { PIN(GPIOAO_1, 0) }; +static const unsigned int uart_tx_ao_b_1_pins[] = { GPIOAO_0 }; +static const unsigned int uart_rx_ao_b_1_pins[] = { GPIOAO_1 }; -static const unsigned int uart_cts_ao_b_pins[] = { PIN(GPIOAO_2, 0) }; -static const unsigned int uart_rts_ao_b_pins[] = { PIN(GPIOAO_3, 0) }; +static const unsigned int uart_cts_ao_b_pins[] = { GPIOAO_2 }; +static const unsigned int uart_rts_ao_b_pins[] = { GPIOAO_3 }; /*pwm_ao_a*/ -static const unsigned int pwm_ao_a_ao3_pins[] = { PIN(GPIOAO_3, 0) }; -static const unsigned int pwm_ao_a_ao8_pins[] = { PIN(GPIOAO_8, 0) }; +static const unsigned int pwm_ao_a_ao3_pins[] = { GPIOAO_3 }; +static const unsigned int pwm_ao_a_ao8_pins[] = { GPIOAO_8 }; /*pwm_ao_b*/ -static const unsigned int pwm_ao_b_ao6_pins[] = { PIN(GPIOAO_6, 0) }; -static const unsigned int pwm_ao_b_ao9_pins[] = { PIN(GPIOAO_9, 0) }; +static const unsigned int pwm_ao_b_ao6_pins[] = { GPIOAO_6 }; +static const unsigned int pwm_ao_b_ao9_pins[] = { GPIOAO_9 }; /*i2c_ao*/ -static const unsigned int i2c_sck_ao_pins[] = {PIN(GPIOAO_4, 0) }; -static const unsigned int i2c_sda_ao_pins[] = {PIN(GPIOAO_5, 0) }; +static const unsigned int i2c_sck_ao_pins[] = {GPIOAO_4 }; +static const unsigned int i2c_sda_ao_pins[] = {GPIOAO_5 }; /*i2c_slave_ao*/ -static const unsigned int i2c_slave_sck_ao_pins[] = {PIN(GPIOAO_4, 0) }; -static const unsigned int i2c_slave_sda_ao_pins[] = {PIN(GPIOAO_5, 0) }; +static const unsigned int i2c_slave_sck_ao_pins[] = {GPIOAO_4 }; +static const unsigned int i2c_slave_sda_ao_pins[] = {GPIOAO_5 }; /*spdif_out_ao*/ -static const unsigned int spdid_out_ao6_pins[] = { PIN(GPIOAO_6, 0) }; +static const unsigned int spdid_out_ao6_pins[] = { GPIOAO_6 }; /*remote input*/ -static const unsigned int remote_input_pins[] = { PIN(GPIOAO_7, 0) }; +static const unsigned int remote_input_pins[] = { GPIOAO_7 }; /*ir out*/ -static const unsigned int ir_out_ao7_pins[] = { PIN(GPIOAO_7, 0) }; -static const unsigned int ir_out_ao9_pins[] = { PIN(GPIOAO_9, 0) }; +static const unsigned int ir_out_ao7_pins[] = { GPIOAO_7 }; +static const unsigned int ir_out_ao9_pins[] = { GPIOAO_9 }; /*ao_cec*/ -static const unsigned int ao_cec_pins[] = { PIN(GPIOAO_8, 0) }; +static const unsigned int ao_cec_pins[] = { GPIOAO_8 }; /*ee_cec*/ -static const unsigned int ee_cec_pins[] = { PIN(GPIOAO_8, 0) }; +static const unsigned int ee_cec_pins[] = { GPIOAO_8 }; /*i2s_out_ao*/ -static const unsigned int i2sout_ch23_ao8_pins[] = { PIN(GPIOAO_8, 0) }; -static const unsigned int i2sout_ch45_ao9_pins[] = { PIN(GPIOAO_9, 0) }; +static const unsigned int i2sout_ch23_ao8_pins[] = { GPIOAO_8 }; +static const unsigned int i2sout_ch45_ao9_pins[] = { GPIOAO_9 }; /*spdif_out_ao*/ -static const unsigned int spdid_out_ao9_pins[] = { PIN(GPIOAO_9, 0) }; +static const unsigned int spdid_out_ao9_pins[] = { GPIOAO_9 }; static struct meson_pmx_group meson_gxl_aobus_groups[] = { - GPIO_GROUP(GPIOAO_0, 0), - GPIO_GROUP(GPIOAO_1, 0), - GPIO_GROUP(GPIOAO_2, 0), - GPIO_GROUP(GPIOAO_3, 0), - GPIO_GROUP(GPIOAO_4, 0), - GPIO_GROUP(GPIOAO_5, 0), - GPIO_GROUP(GPIOAO_6, 0), - GPIO_GROUP(GPIOAO_7, 0), - GPIO_GROUP(GPIOAO_8, 0), - GPIO_GROUP(GPIOAO_9, 0), - GPIO_GROUP(GPIO_TEST_N, 0), + GPIO_GROUP(GPIOAO_0), + GPIO_GROUP(GPIOAO_1), + GPIO_GROUP(GPIOAO_2), + GPIO_GROUP(GPIOAO_3), + GPIO_GROUP(GPIOAO_4), + GPIO_GROUP(GPIOAO_5), + GPIO_GROUP(GPIOAO_6), + GPIO_GROUP(GPIOAO_7), + GPIO_GROUP(GPIOAO_8), + GPIO_GROUP(GPIOAO_9), + GPIO_GROUP(GPIO_TEST_N), /* bank AO */ - GROUP(uart_tx_ao_b_1, 0, 26), + GROUP(uart_tx_ao_b_1, 0, 26), GROUP(uart_rx_ao_b_1, 0, 25), GROUP(uart_tx_ao_a_0, 0, 12), GROUP(uart_rx_ao_a_0, 0, 11), @@ -781,23 +780,23 @@ static struct meson_pmx_group meson_gxl_aobus_groups[] = { GROUP(uart_rts_ao_b, 0, 7), GROUP(i2c_sck_ao, 0, 6), GROUP(i2c_sda_ao, 0, 5), - GROUP(i2c_slave_sck_ao, 0, 2), - GROUP(i2c_slave_sda_ao, 0, 1), - GROUP(pwm_ao_a_ao3, 0, 22), - GROUP(uart_tx_ao_b_0, 0, 24), - GROUP(uart_rx_ao_b_0, 0, 23), - GROUP(pwm_ao_b_ao6, 0, 18), - GROUP(remote_input, 0, 0), - GROUP(ir_out_ao7, 0, 21), - GROUP(ao_cec, 0, 15), - GROUP(ee_cec, 0, 14), - GROUP(i2sout_ch23_ao8, 2, 0), - GROUP(pwm_ao_a_ao8, 0, 17), - GROUP(ir_out_ao9, 0, 31), - GROUP(spdid_out_ao6, 0, 16), - GROUP(spdid_out_ao9, 0, 4), - GROUP(i2sout_ch45_ao9, 2, 1), - GROUP(pwm_ao_b_ao9, 0, 3), + GROUP(i2c_slave_sck_ao, 0, 2), + GROUP(i2c_slave_sda_ao, 0, 1), + GROUP(pwm_ao_a_ao3, 0, 22), + GROUP(uart_tx_ao_b_0, 0, 24), + GROUP(uart_rx_ao_b_0, 0, 23), + GROUP(pwm_ao_b_ao6, 0, 18), + GROUP(remote_input, 0, 0), + GROUP(ir_out_ao7, 0, 21), + GROUP(ao_cec, 0, 15), + GROUP(ee_cec, 0, 14), + GROUP(i2sout_ch23_ao8, 2, 0), + GROUP(pwm_ao_a_ao8, 0, 17), + GROUP(ir_out_ao9, 0, 31), + GROUP(spdid_out_ao6, 0, 16), + GROUP(spdid_out_ao9, 0, 4), + GROUP(i2sout_ch45_ao9, 2, 1), + GROUP(pwm_ao_b_ao9, 0, 3), }; static const char * const gpio_periphs_groups[] = { @@ -1116,20 +1115,19 @@ static struct meson_pmx_func meson_gxl_aobus_functions[] = { */ static struct meson_bank meson_gxl_periphs_banks[] = { /* name first last irq pullen pull dir out in */ - BANK("X", PIN(GPIOX_0, EE_OFF), PIN(GPIOX_18, EE_OFF), 89, + BANK("X", GPIOX_0, GPIOX_18, 89, 4, 0, 4, 0, 12, 0, 13, 0, 14, 0), - - BANK("DV", PIN(GPIODV_0, EE_OFF), PIN(GPIODV_29, EE_OFF), 59, + BANK("DV", GPIODV_0, GPIODV_29, 59, 0, 0, 0, 0, 0, 0, 1, 0, 2, 0), - BANK("H", PIN(GPIOH_0, EE_OFF), PIN(GPIOH_9, EE_OFF), 26, + BANK("H", GPIOH_0, GPIOH_9, 26, 1, 20, 1, 20, 3, 20, 4, 20, 5, 20), - BANK("Z", PIN(GPIOZ_0, EE_OFF), PIN(GPIOZ_15, EE_OFF), 10, + BANK("Z", GPIOZ_0, GPIOZ_15, 10, 3, 0, 3, 0, 9, 0, 10, 0, 11, 0), - BANK("CARD", PIN(CARD_0, EE_OFF), PIN(CARD_6, EE_OFF), 52, + BANK("CARD", CARD_0, CARD_6, 52, 2, 20, 2, 20, 6, 20, 7, 20, 8, 20), - BANK("BOOT", PIN(BOOT_0, EE_OFF), PIN(BOOT_15, EE_OFF), 36, + BANK("BOOT", BOOT_0, BOOT_15, 36, 2, 0, 2, 0, 6, 0, 7, 0, 8, 0), - BANK("CLK", PIN(GPIOCLK_0, EE_OFF), PIN(GPIOCLK_1, EE_OFF), 108, + BANK("CLK", GPIOCLK_0, GPIOCLK_1, 108, 3, 28, 3, 28, 9, 28, 10, 28, 11, 28), }; @@ -1147,9 +1145,9 @@ static struct meson_bank meson_gxl_periphs_banks[] = { */ static struct meson_bank meson_gxl_aobus_banks[] = { /* name first last irq pullen pull dir out in */ - BANK("AO", PIN(GPIOAO_0, 0), PIN(GPIOAO_9, 0), 0, + BANK("AO", GPIOAO_0, GPIOAO_9, 0, 0, 16, 0, 0, 0, 0, 0, 16, 1, 0), - BANK("TEST", PIN(GPIO_TEST_N, 0), PIN(GPIO_TEST_N, 0), -1, + BANK("TEST", GPIO_TEST_N, GPIO_TEST_N, -1, 0, 30, 0, 14, 0, 14, 0, 31, 1, 31), }; @@ -1157,7 +1155,6 @@ static struct meson_domain_data meson_gxl_periphs_domain_data = { .name = "periphs-banks", .banks = meson_gxl_periphs_banks, .num_banks = ARRAY_SIZE(meson_gxl_periphs_banks), - .pin_base = 11, .num_pins = 100, }; @@ -1165,7 +1162,6 @@ static struct meson_domain_data meson_gxl_aobus_domain_data = { .name = "aobus-banks", .banks = meson_gxl_aobus_banks, .num_banks = ARRAY_SIZE(meson_gxl_aobus_banks), - .pin_base = 0, .num_pins = 11, };