pinctrl: meson: remove offset from pinctrl
Offset on meson pinctrl and gpios is something that was carried from the vendor driver, where there is a weird link between the 2 controllers. Since these 2 controllers are independent, this offset adds an unnecessary complexity. This patch remove this manually set offset and rely on pinctrl to figure out the gpio base offset Tested-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com> Signed-off-by: Jerome Brunet <jbrunet@baylibre.com> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
This commit is contained in:
parent
505485a83c
commit
634e40b0c2
@ -15,417 +15,413 @@
|
||||
#include <dt-bindings/gpio/meson-gxbb-gpio.h>
|
||||
#include "pinctrl-meson.h"
|
||||
|
||||
#define EE_OFF 14
|
||||
|
||||
static const struct pinctrl_pin_desc meson_gxbb_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_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, EE_OFF),
|
||||
MESON_PIN(GPIOH_1, EE_OFF),
|
||||
MESON_PIN(GPIOH_2, EE_OFF),
|
||||
MESON_PIN(GPIOH_3, EE_OFF),
|
||||
MESON_PIN(GPIOH_0),
|
||||
MESON_PIN(GPIOH_1),
|
||||
MESON_PIN(GPIOH_2),
|
||||
MESON_PIN(GPIOH_3),
|
||||
|
||||
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_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(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(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(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(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_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(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(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_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(GPIOX_19),
|
||||
MESON_PIN(GPIOX_20),
|
||||
MESON_PIN(GPIOX_21),
|
||||
|
||||
MESON_PIN(GPIOCLK_0, EE_OFF),
|
||||
MESON_PIN(GPIOCLK_1, EE_OFF),
|
||||
MESON_PIN(GPIOCLK_2, EE_OFF),
|
||||
MESON_PIN(GPIOCLK_3, EE_OFF),
|
||||
MESON_PIN(GPIOCLK_0),
|
||||
MESON_PIN(GPIOCLK_1),
|
||||
MESON_PIN(GPIOCLK_2),
|
||||
MESON_PIN(GPIOCLK_3),
|
||||
|
||||
MESON_PIN(GPIO_TEST_N, EE_OFF),
|
||||
MESON_PIN(GPIO_TEST_N),
|
||||
};
|
||||
|
||||
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,
|
||||
};
|
||||
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 };
|
||||
|
||||
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 };
|
||||
|
||||
static const unsigned int spi_sclk_pins[] = { PIN(GPIOZ_6, EE_OFF) };
|
||||
static const unsigned int spi_ss0_pins[] = { PIN(GPIOZ_7, EE_OFF) };
|
||||
static const unsigned int spi_miso_pins[] = { PIN(GPIOZ_12, EE_OFF) };
|
||||
static const unsigned int spi_mosi_pins[] = { PIN(GPIOZ_13, EE_OFF) };
|
||||
static const unsigned int spi_sclk_pins[] = { GPIOZ_6 };
|
||||
static const unsigned int spi_ss0_pins[] = { GPIOZ_7 };
|
||||
static const unsigned int spi_miso_pins[] = { GPIOZ_12 };
|
||||
static const unsigned int spi_mosi_pins[] = { GPIOZ_13 };
|
||||
|
||||
static const unsigned int sdcard_d0_pins[] = { PIN(CARD_1, EE_OFF) };
|
||||
static const unsigned int sdcard_d1_pins[] = { PIN(CARD_0, EE_OFF) };
|
||||
static const unsigned int sdcard_d2_pins[] = { PIN(CARD_5, EE_OFF) };
|
||||
static const unsigned int sdcard_d3_pins[] = { PIN(CARD_4, EE_OFF) };
|
||||
static const unsigned int sdcard_cmd_pins[] = { PIN(CARD_3, EE_OFF) };
|
||||
static const unsigned int sdcard_clk_pins[] = { PIN(CARD_2, EE_OFF) };
|
||||
static const unsigned int sdcard_d0_pins[] = { CARD_1 };
|
||||
static const unsigned int sdcard_d1_pins[] = { CARD_0 };
|
||||
static const unsigned int sdcard_d2_pins[] = { CARD_5 };
|
||||
static const unsigned int sdcard_d3_pins[] = { CARD_4 };
|
||||
static const unsigned int sdcard_cmd_pins[] = { CARD_3 };
|
||||
static const unsigned int sdcard_clk_pins[] = { CARD_2 };
|
||||
|
||||
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_cmd_pins[] = { PIN(GPIOX_4, EE_OFF) };
|
||||
static const unsigned int sdio_clk_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_cmd_pins[] = { GPIOX_4 };
|
||||
static const unsigned int sdio_clk_pins[] = { GPIOX_5 };
|
||||
static const unsigned int sdio_irq_pins[] = { GPIOX_7 };
|
||||
|
||||
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 };
|
||||
|
||||
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 };
|
||||
|
||||
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 };
|
||||
|
||||
static const unsigned int uart_tx_c_pins[] = { PIN(GPIOY_13, EE_OFF) };
|
||||
static const unsigned int uart_rx_c_pins[] = { PIN(GPIOY_14, EE_OFF) };
|
||||
static const unsigned int uart_cts_c_pins[] = { PIN(GPIOX_11, EE_OFF) };
|
||||
static const unsigned int uart_rts_c_pins[] = { PIN(GPIOX_12, EE_OFF) };
|
||||
static const unsigned int uart_tx_c_pins[] = { GPIOY_13 };
|
||||
static const unsigned int uart_rx_c_pins[] = { GPIOY_14 };
|
||||
static const unsigned int uart_cts_c_pins[] = { GPIOX_11 };
|
||||
static const unsigned int uart_rts_c_pins[] = { GPIOX_12 };
|
||||
|
||||
static const unsigned int i2c_sck_a_pins[] = { PIN(GPIODV_25, EE_OFF) };
|
||||
static const unsigned int i2c_sda_a_pins[] = { PIN(GPIODV_24, EE_OFF) };
|
||||
static const unsigned int i2c_sck_a_pins[] = { GPIODV_25 };
|
||||
static const unsigned int i2c_sda_a_pins[] = { GPIODV_24 };
|
||||
|
||||
static const unsigned int i2c_sck_b_pins[] = { PIN(GPIODV_27, EE_OFF) };
|
||||
static const unsigned int i2c_sda_b_pins[] = { PIN(GPIODV_26, EE_OFF) };
|
||||
static const unsigned int i2c_sck_b_pins[] = { GPIODV_27 };
|
||||
static const unsigned int i2c_sda_b_pins[] = { GPIODV_26 };
|
||||
|
||||
static const unsigned int i2c_sck_c_pins[] = { PIN(GPIODV_29, EE_OFF) };
|
||||
static const unsigned int i2c_sda_c_pins[] = { PIN(GPIODV_28, EE_OFF) };
|
||||
static const unsigned int i2c_sck_c_pins[] = { GPIODV_29 };
|
||||
static const unsigned int i2c_sda_c_pins[] = { GPIODV_28 };
|
||||
|
||||
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_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 pwm_a_x_pins[] = { PIN(GPIOX_6, EE_OFF) };
|
||||
static const unsigned int pwm_a_y_pins[] = { PIN(GPIOY_16, EE_OFF) };
|
||||
static const unsigned int pwm_b_pins[] = { PIN(GPIODV_29, EE_OFF) };
|
||||
static const unsigned int pwm_d_pins[] = { PIN(GPIODV_28, EE_OFF) };
|
||||
static const unsigned int pwm_e_pins[] = { PIN(GPIOX_19, EE_OFF) };
|
||||
static const unsigned int pwm_f_x_pins[] = { PIN(GPIOX_7, EE_OFF) };
|
||||
static const unsigned int pwm_f_y_pins[] = { PIN(GPIOY_15, EE_OFF) };
|
||||
static const unsigned int pwm_a_x_pins[] = { GPIOX_6 };
|
||||
static const unsigned int pwm_a_y_pins[] = { GPIOY_16 };
|
||||
static const unsigned int pwm_b_pins[] = { GPIODV_29 };
|
||||
static const unsigned int pwm_d_pins[] = { GPIODV_28 };
|
||||
static const unsigned int pwm_e_pins[] = { GPIOX_19 };
|
||||
static const unsigned int pwm_f_x_pins[] = { GPIOX_7 };
|
||||
static const unsigned int pwm_f_y_pins[] = { GPIOY_15 };
|
||||
|
||||
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_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 i2s_out_ch23_y_pins[] = { PIN(GPIOY_8, EE_OFF) };
|
||||
static const unsigned int i2s_out_ch45_y_pins[] = { PIN(GPIOY_9, EE_OFF) };
|
||||
static const unsigned int i2s_out_ch67_y_pins[] = { PIN(GPIOY_10, EE_OFF) };
|
||||
static const unsigned int i2s_out_ch23_y_pins[] = { GPIOY_8 };
|
||||
static const unsigned int i2s_out_ch45_y_pins[] = { GPIOY_9 };
|
||||
static const unsigned int i2s_out_ch67_y_pins[] = { GPIOY_10 };
|
||||
|
||||
static const unsigned int spdif_out_y_pins[] = { PIN(GPIOY_12, EE_OFF) };
|
||||
static const unsigned int spdif_out_y_pins[] = { GPIOY_12 };
|
||||
|
||||
static const struct pinctrl_pin_desc meson_gxbb_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),
|
||||
};
|
||||
|
||||
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_b_pins[] = { PIN(GPIOAO_4, 0) };
|
||||
static const unsigned int uart_rx_ao_b_pins[] = { PIN(GPIOAO_5, 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_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 uart_tx_ao_b_pins[] = { GPIOAO_4 };
|
||||
static const unsigned int uart_rx_ao_b_pins[] = { GPIOAO_5 };
|
||||
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 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_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_sck_ao_pins[] = { GPIOAO_4 };
|
||||
static const unsigned int i2c_sda_ao_pins[] = { GPIOAO_5 };
|
||||
static const unsigned int i2c_slave_sck_ao_pins[] = {GPIOAO_4 };
|
||||
static const unsigned int i2c_slave_sda_ao_pins[] = {GPIOAO_5 };
|
||||
|
||||
static const unsigned int remote_input_ao_pins[] = {PIN(GPIOAO_7, 0) };
|
||||
static const unsigned int remote_input_ao_pins[] = { GPIOAO_7 };
|
||||
|
||||
static const unsigned int pwm_ao_a_3_pins[] = { PIN(GPIOAO_3, 0) };
|
||||
static const unsigned int pwm_ao_a_6_pins[] = { PIN(GPIOAO_6, 0) };
|
||||
static const unsigned int pwm_ao_a_12_pins[] = { PIN(GPIOAO_12, 0) };
|
||||
static const unsigned int pwm_ao_b_pins[] = { PIN(GPIOAO_13, 0) };
|
||||
static const unsigned int pwm_ao_a_3_pins[] = { GPIOAO_3 };
|
||||
static const unsigned int pwm_ao_a_6_pins[] = { GPIOAO_6 };
|
||||
static const unsigned int pwm_ao_a_12_pins[] = { GPIOAO_12 };
|
||||
static const unsigned int pwm_ao_b_pins[] = { GPIOAO_13 };
|
||||
|
||||
static const unsigned int i2s_am_clk_pins[] = { PIN(GPIOAO_8, 0) };
|
||||
static const unsigned int i2s_out_ao_clk_pins[] = { PIN(GPIOAO_9, 0) };
|
||||
static const unsigned int i2s_out_lr_clk_pins[] = { PIN(GPIOAO_10, 0) };
|
||||
static const unsigned int i2s_out_ch01_ao_pins[] = { PIN(GPIOAO_11, 0) };
|
||||
static const unsigned int i2s_out_ch23_ao_pins[] = { PIN(GPIOAO_12, 0) };
|
||||
static const unsigned int i2s_out_ch45_ao_pins[] = { PIN(GPIOAO_13, 0) };
|
||||
static const unsigned int i2s_am_clk_pins[] = { GPIOAO_8 };
|
||||
static const unsigned int i2s_out_ao_clk_pins[] = { GPIOAO_9 };
|
||||
static const unsigned int i2s_out_lr_clk_pins[] = { GPIOAO_10 };
|
||||
static const unsigned int i2s_out_ch01_ao_pins[] = { GPIOAO_11 };
|
||||
static const unsigned int i2s_out_ch23_ao_pins[] = { GPIOAO_12 };
|
||||
static const unsigned int i2s_out_ch45_ao_pins[] = { GPIOAO_13 };
|
||||
|
||||
static const unsigned int spdif_out_ao_6_pins[] = { PIN(GPIOAO_6, 0) };
|
||||
static const unsigned int spdif_out_ao_13_pins[] = { PIN(GPIOAO_13, 0) };
|
||||
static const unsigned int spdif_out_ao_6_pins[] = { GPIOAO_6 };
|
||||
static const unsigned int spdif_out_ao_13_pins[] = { GPIOAO_13 };
|
||||
|
||||
static const unsigned int ao_cec_pins[] = { PIN(GPIOAO_12, 0) };
|
||||
static const unsigned int ee_cec_pins[] = { PIN(GPIOAO_12, 0) };
|
||||
static const unsigned int ao_cec_pins[] = { GPIOAO_12 };
|
||||
static const unsigned int ee_cec_pins[] = { GPIOAO_12 };
|
||||
|
||||
static struct meson_pmx_group meson_gxbb_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_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, EE_OFF),
|
||||
GPIO_GROUP(GPIOH_1, EE_OFF),
|
||||
GPIO_GROUP(GPIOH_2, EE_OFF),
|
||||
GPIO_GROUP(GPIOH_3, EE_OFF),
|
||||
GPIO_GROUP(GPIOH_0),
|
||||
GPIO_GROUP(GPIOH_1),
|
||||
GPIO_GROUP(GPIOH_2),
|
||||
GPIO_GROUP(GPIOH_3),
|
||||
|
||||
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(BOOT_16, EE_OFF),
|
||||
GPIO_GROUP(BOOT_17, 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_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(BOOT_16),
|
||||
GPIO_GROUP(BOOT_17),
|
||||
|
||||
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(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, 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_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(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_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(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_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(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(GPIOX_19, EE_OFF),
|
||||
GPIO_GROUP(GPIOX_20, EE_OFF),
|
||||
GPIO_GROUP(GPIOX_21, EE_OFF),
|
||||
GPIO_GROUP(GPIOX_22, 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_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(GPIOX_19),
|
||||
GPIO_GROUP(GPIOX_20),
|
||||
GPIO_GROUP(GPIOX_21),
|
||||
GPIO_GROUP(GPIOX_22),
|
||||
|
||||
GPIO_GROUP(GPIOCLK_0, EE_OFF),
|
||||
GPIO_GROUP(GPIOCLK_1, EE_OFF),
|
||||
GPIO_GROUP(GPIOCLK_2, EE_OFF),
|
||||
GPIO_GROUP(GPIOCLK_3, EE_OFF),
|
||||
GPIO_GROUP(GPIOCLK_0),
|
||||
GPIO_GROUP(GPIOCLK_1),
|
||||
GPIO_GROUP(GPIOCLK_2),
|
||||
GPIO_GROUP(GPIOCLK_3),
|
||||
|
||||
GPIO_GROUP(GPIO_TEST_N, EE_OFF),
|
||||
GPIO_GROUP(GPIO_TEST_N),
|
||||
|
||||
/* Bank X */
|
||||
GROUP(sdio_d0, 8, 5),
|
||||
@ -522,20 +518,20 @@ static struct meson_pmx_group meson_gxbb_periphs_groups[] = {
|
||||
};
|
||||
|
||||
static struct meson_pmx_group meson_gxbb_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_b, 0, 24),
|
||||
@ -806,25 +802,25 @@ static struct meson_pmx_func meson_gxbb_aobus_functions[] = {
|
||||
};
|
||||
|
||||
static struct meson_bank meson_gxbb_periphs_banks[] = {
|
||||
/* name first last irq pullen pull dir out in */
|
||||
BANK("X", PIN(GPIOX_0, EE_OFF), PIN(GPIOX_22, EE_OFF), 106, 128, 4, 0, 4, 0, 12, 0, 13, 0, 14, 0),
|
||||
BANK("Y", PIN(GPIOY_0, EE_OFF), PIN(GPIOY_16, EE_OFF), 89, 105, 1, 0, 1, 0, 3, 0, 4, 0, 5, 0),
|
||||
BANK("DV", PIN(GPIODV_0, EE_OFF), PIN(GPIODV_29, EE_OFF), 59, 88, 0, 0, 0, 0, 0, 0, 1, 0, 2, 0),
|
||||
BANK("H", PIN(GPIOH_0, EE_OFF), PIN(GPIOH_3, EE_OFF), 30, 33, 1, 20, 1, 20, 3, 20, 4, 20, 5, 20),
|
||||
BANK("Z", PIN(GPIOZ_0, EE_OFF), PIN(GPIOZ_15, EE_OFF), 14, 29, 3, 0, 3, 0, 9, 0, 10, 0, 11, 0),
|
||||
BANK("CARD", PIN(CARD_0, EE_OFF), PIN(CARD_6, EE_OFF), 52, 58, 2, 20, 2, 20, 6, 20, 7, 20, 8, 20),
|
||||
BANK("BOOT", PIN(BOOT_0, EE_OFF), PIN(BOOT_17, EE_OFF), 34, 51, 2, 0, 2, 0, 6, 0, 7, 0, 8, 0),
|
||||
BANK("CLK", PIN(GPIOCLK_0, EE_OFF), PIN(GPIOCLK_3, EE_OFF), 129, 132, 3, 28, 3, 28, 9, 28, 10, 28, 11, 28),
|
||||
/* name first last irq pullen pull dir out in */
|
||||
BANK("X", GPIOX_0, GPIOX_22, 106, 128, 4, 0, 4, 0, 12, 0, 13, 0, 14, 0),
|
||||
BANK("Y", GPIOY_0, GPIOY_16, 89, 105, 1, 0, 1, 0, 3, 0, 4, 0, 5, 0),
|
||||
BANK("DV", GPIODV_0, GPIODV_29, 59, 88, 0, 0, 0, 0, 0, 0, 1, 0, 2, 0),
|
||||
BANK("H", GPIOH_0, GPIOH_3, 30, 33, 1, 20, 1, 20, 3, 20, 4, 20, 5, 20),
|
||||
BANK("Z", GPIOZ_0, GPIOZ_15, 14, 29, 3, 0, 3, 0, 9, 0, 10, 0, 11, 0),
|
||||
BANK("CARD", CARD_0, CARD_6, 52, 58, 2, 20, 2, 20, 6, 20, 7, 20, 8, 20),
|
||||
BANK("BOOT", BOOT_0, BOOT_17, 34, 51, 2, 0, 2, 0, 6, 0, 7, 0, 8, 0),
|
||||
BANK("CLK", GPIOCLK_0, GPIOCLK_3, 129, 132, 3, 28, 3, 28, 9, 28, 10, 28, 11, 28),
|
||||
};
|
||||
|
||||
static struct meson_bank meson_gxbb_aobus_banks[] = {
|
||||
/* name first last irq pullen pull dir out in */
|
||||
BANK("AO", PIN(GPIOAO_0, 0), PIN(GPIOAO_13, 0), 0, 13, 0, 0, 0, 16, 0, 0, 0, 16, 1, 0),
|
||||
/* name first last irq pullen pull dir out in */
|
||||
BANK("AO", GPIOAO_0, GPIOAO_13, 0, 13, 0, 0, 0, 16, 0, 0, 0, 16, 1, 0),
|
||||
};
|
||||
|
||||
struct meson_pinctrl_data meson_gxbb_periphs_pinctrl_data = {
|
||||
.name = "periphs-banks",
|
||||
.pin_base = 14,
|
||||
.pin_base = 0,
|
||||
.pins = meson_gxbb_periphs_pins,
|
||||
.groups = meson_gxbb_periphs_groups,
|
||||
.funcs = meson_gxbb_periphs_functions,
|
||||
|
@ -15,407 +15,397 @@
|
||||
#include <dt-bindings/gpio/meson-gxl-gpio.h>
|
||||
#include "pinctrl-meson.h"
|
||||
|
||||
#define EE_OFF 10
|
||||
|
||||
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(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, 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(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_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, 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(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(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, 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(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, EE_OFF),
|
||||
MESON_PIN(GPIOCLK_1, EE_OFF),
|
||||
MESON_PIN(GPIOCLK_0),
|
||||
MESON_PIN(GPIOCLK_1),
|
||||
|
||||
MESON_PIN(GPIO_TEST_N, EE_OFF),
|
||||
MESON_PIN(GPIO_TEST_N),
|
||||
};
|
||||
|
||||
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,
|
||||
};
|
||||
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 };
|
||||
|
||||
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 };
|
||||
|
||||
static const unsigned int spi_mosi_pins[] = { PIN(GPIOX_8, EE_OFF) };
|
||||
static const unsigned int spi_miso_pins[] = { PIN(GPIOX_9, EE_OFF) };
|
||||
static const unsigned int spi_ss0_pins[] = { PIN(GPIOX_10, EE_OFF) };
|
||||
static const unsigned int spi_sclk_pins[] = { PIN(GPIOX_11, EE_OFF) };
|
||||
static const unsigned int spi_mosi_pins[] = { GPIOX_8 };
|
||||
static const unsigned int spi_miso_pins[] = { GPIOX_9 };
|
||||
static const unsigned int spi_ss0_pins[] = { GPIOX_10 };
|
||||
static const unsigned int spi_sclk_pins[] = { GPIOX_11 };
|
||||
|
||||
static const unsigned int sdcard_d0_pins[] = { PIN(CARD_1, EE_OFF) };
|
||||
static const unsigned int sdcard_d1_pins[] = { PIN(CARD_0, EE_OFF) };
|
||||
static const unsigned int sdcard_d2_pins[] = { PIN(CARD_5, EE_OFF) };
|
||||
static const unsigned int sdcard_d3_pins[] = { PIN(CARD_4, EE_OFF) };
|
||||
static const unsigned int sdcard_cmd_pins[] = { PIN(CARD_3, EE_OFF) };
|
||||
static const unsigned int sdcard_clk_pins[] = { PIN(CARD_2, EE_OFF) };
|
||||
static const unsigned int sdcard_d0_pins[] = { CARD_1 };
|
||||
static const unsigned int sdcard_d1_pins[] = { CARD_0 };
|
||||
static const unsigned int sdcard_d2_pins[] = { CARD_5 };
|
||||
static const unsigned int sdcard_d3_pins[] = { CARD_4 };
|
||||
static const unsigned int sdcard_cmd_pins[] = { CARD_3 };
|
||||
static const unsigned int sdcard_clk_pins[] = { CARD_2 };
|
||||
|
||||
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_cmd_pins[] = { PIN(GPIOX_4, EE_OFF) };
|
||||
static const unsigned int sdio_clk_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_cmd_pins[] = { GPIOX_4 };
|
||||
static const unsigned int sdio_clk_pins[] = { GPIOX_5 };
|
||||
static const unsigned int sdio_irq_pins[] = { GPIOX_7 };
|
||||
|
||||
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 };
|
||||
|
||||
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 };
|
||||
|
||||
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 };
|
||||
|
||||
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 };
|
||||
|
||||
static const unsigned int i2c_sck_a_pins[] = { PIN(GPIODV_25, EE_OFF) };
|
||||
static const unsigned int i2c_sda_a_pins[] = { PIN(GPIODV_24, EE_OFF) };
|
||||
static const unsigned int i2c_sck_a_pins[] = { GPIODV_25 };
|
||||
static const unsigned int i2c_sda_a_pins[] = { GPIODV_24 };
|
||||
|
||||
static const unsigned int i2c_sck_b_pins[] = { PIN(GPIODV_27, EE_OFF) };
|
||||
static const unsigned int i2c_sda_b_pins[] = { PIN(GPIODV_26, EE_OFF) };
|
||||
static const unsigned int i2c_sck_b_pins[] = { GPIODV_27 };
|
||||
static const unsigned int i2c_sda_b_pins[] = { GPIODV_26 };
|
||||
|
||||
static const unsigned int i2c_sck_c_pins[] = { PIN(GPIODV_29, EE_OFF) };
|
||||
static const unsigned int i2c_sda_c_pins[] = { PIN(GPIODV_28, EE_OFF) };
|
||||
static const unsigned int i2c_sck_c_pins[] = { GPIODV_29 };
|
||||
static const unsigned int i2c_sda_c_pins[] = { GPIODV_28 };
|
||||
|
||||
static const unsigned int i2c_sck_c_dv19_pins[] = { PIN(GPIODV_19, EE_OFF) };
|
||||
static const unsigned int i2c_sda_c_dv18_pins[] = { PIN(GPIODV_18, EE_OFF) };
|
||||
static const unsigned int i2c_sck_c_dv19_pins[] = { GPIODV_19 };
|
||||
static const unsigned int i2c_sda_c_dv18_pins[] = { GPIODV_18 };
|
||||
|
||||
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_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 pwm_a_pins[] = { PIN(GPIOX_6, EE_OFF) };
|
||||
static const unsigned int pwm_a_pins[] = { GPIOX_6 };
|
||||
|
||||
static const unsigned int pwm_b_pins[] = { PIN(GPIODV_29, EE_OFF) };
|
||||
static const unsigned int pwm_b_pins[] = { GPIODV_29 };
|
||||
|
||||
static const unsigned int pwm_c_pins[] = { PIN(GPIOZ_15, EE_OFF) };
|
||||
static const unsigned int pwm_c_pins[] = { GPIOZ_15 };
|
||||
|
||||
static const unsigned int pwm_d_pins[] = { PIN(GPIODV_28, EE_OFF) };
|
||||
static const unsigned int pwm_d_pins[] = { GPIODV_28 };
|
||||
|
||||
static const unsigned int pwm_e_pins[] = { PIN(GPIOX_16, EE_OFF) };
|
||||
static const unsigned int pwm_e_pins[] = { GPIOX_16 };
|
||||
|
||||
static const unsigned int pwm_f_clk_pins[] = { PIN(GPIOCLK_1, EE_OFF) };
|
||||
static const unsigned int pwm_f_x_pins[] = { PIN(GPIOX_7, EE_OFF) };
|
||||
static const unsigned int pwm_f_clk_pins[] = { GPIOCLK_1 };
|
||||
static const unsigned int pwm_f_x_pins[] = { GPIOX_7 };
|
||||
|
||||
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_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 i2s_am_clk_pins[] = { PIN(GPIOH_6, EE_OFF) };
|
||||
static const unsigned int i2s_out_ao_clk_pins[] = { PIN(GPIOH_7, EE_OFF) };
|
||||
static const unsigned int i2s_out_lr_clk_pins[] = { PIN(GPIOH_8, EE_OFF) };
|
||||
static const unsigned int i2s_out_ch01_pins[] = { PIN(GPIOH_9, EE_OFF) };
|
||||
static const unsigned int i2s_out_ch23_z_pins[] = { PIN(GPIOZ_5, EE_OFF) };
|
||||
static const unsigned int i2s_out_ch45_z_pins[] = { PIN(GPIOZ_6, EE_OFF) };
|
||||
static const unsigned int i2s_out_ch67_z_pins[] = { PIN(GPIOZ_7, EE_OFF) };
|
||||
static const unsigned int i2s_am_clk_pins[] = { GPIOH_6 };
|
||||
static const unsigned int i2s_out_ao_clk_pins[] = { GPIOH_7 };
|
||||
static const unsigned int i2s_out_lr_clk_pins[] = { GPIOH_8 };
|
||||
static const unsigned int i2s_out_ch01_pins[] = { GPIOH_9 };
|
||||
static const unsigned int i2s_out_ch23_z_pins[] = { GPIOZ_5 };
|
||||
static const unsigned int i2s_out_ch45_z_pins[] = { GPIOZ_6 };
|
||||
static const unsigned int i2s_out_ch67_z_pins[] = { GPIOZ_7 };
|
||||
|
||||
static const unsigned int spdif_out_h_pins[] = { PIN(GPIOH_4, EE_OFF) };
|
||||
static const unsigned int spdif_out_h_pins[] = { GPIOH_4 };
|
||||
|
||||
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_link_led_pins[] = { GPIOZ_14 };
|
||||
static const unsigned int eth_act_led_pins[] = { GPIOZ_15 };
|
||||
|
||||
static const unsigned int tsin_a_d0_pins[] = { PIN(GPIODV_0, EE_OFF) };
|
||||
static const unsigned int tsin_a_d0_x_pins[] = { PIN(GPIOX_10, EE_OFF) };
|
||||
static const unsigned int tsin_a_clk_pins[] = { PIN(GPIODV_8, EE_OFF) };
|
||||
static const unsigned int tsin_a_clk_x_pins[] = { PIN(GPIOX_11, EE_OFF) };
|
||||
static const unsigned int tsin_a_sop_pins[] = { PIN(GPIODV_9, EE_OFF) };
|
||||
static const unsigned int tsin_a_sop_x_pins[] = { PIN(GPIOX_8, EE_OFF) };
|
||||
static const unsigned int tsin_a_d_valid_pins[] = { PIN(GPIODV_10, EE_OFF) };
|
||||
static const unsigned int tsin_a_d_valid_x_pins[] = { PIN(GPIOX_9, EE_OFF) };
|
||||
static const unsigned int tsin_a_fail_pins[] = { PIN(GPIODV_11, EE_OFF) };
|
||||
static const unsigned int tsin_a_d0_pins[] = { GPIODV_0 };
|
||||
static const unsigned int tsin_a_d0_x_pins[] = { GPIOX_10 };
|
||||
static const unsigned int tsin_a_clk_pins[] = { GPIODV_8 };
|
||||
static const unsigned int tsin_a_clk_x_pins[] = { GPIOX_11 };
|
||||
static const unsigned int tsin_a_sop_pins[] = { GPIODV_9 };
|
||||
static const unsigned int tsin_a_sop_x_pins[] = { GPIOX_8 };
|
||||
static const unsigned int tsin_a_d_valid_pins[] = { GPIODV_10 };
|
||||
static const unsigned int tsin_a_d_valid_x_pins[] = { GPIOX_9 };
|
||||
static const unsigned int tsin_a_fail_pins[] = { GPIODV_11 };
|
||||
static const unsigned int tsin_a_dp_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,
|
||||
};
|
||||
|
||||
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(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),
|
||||
};
|
||||
|
||||
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_tx_ao_b_0_pins[] = { PIN(GPIOAO_0, 0) };
|
||||
static const unsigned int uart_rx_ao_b_1_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_b_pins[] = { PIN(GPIOAO_4, 0) };
|
||||
static const unsigned int uart_rx_ao_b_pins[] = { PIN(GPIOAO_5, 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_a_pins[] = { GPIOAO_0 };
|
||||
static const unsigned int uart_rx_ao_a_pins[] = { GPIOAO_1 };
|
||||
static const unsigned int uart_tx_ao_b_0_pins[] = { GPIOAO_0 };
|
||||
static const unsigned int uart_rx_ao_b_1_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 uart_tx_ao_b_pins[] = { GPIOAO_4 };
|
||||
static const unsigned int uart_rx_ao_b_pins[] = { GPIOAO_5 };
|
||||
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 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_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_sck_ao_pins[] = {GPIOAO_4 };
|
||||
static const unsigned int i2c_sda_ao_pins[] = {GPIOAO_5 };
|
||||
static const unsigned int i2c_slave_sck_ao_pins[] = {GPIOAO_4 };
|
||||
static const unsigned int i2c_slave_sda_ao_pins[] = {GPIOAO_5 };
|
||||
|
||||
static const unsigned int remote_input_ao_pins[] = {PIN(GPIOAO_7, 0) };
|
||||
static const unsigned int remote_input_ao_pins[] = {GPIOAO_7 };
|
||||
|
||||
static const unsigned int pwm_ao_a_3_pins[] = { PIN(GPIOAO_3, 0) };
|
||||
static const unsigned int pwm_ao_a_8_pins[] = { PIN(GPIOAO_8, 0) };
|
||||
static const unsigned int pwm_ao_a_3_pins[] = { GPIOAO_3 };
|
||||
static const unsigned int pwm_ao_a_8_pins[] = { GPIOAO_8 };
|
||||
|
||||
static const unsigned int pwm_ao_b_pins[] = { PIN(GPIOAO_9, 0) };
|
||||
static const unsigned int pwm_ao_b_6_pins[] = { PIN(GPIOAO_6, 0) };
|
||||
static const unsigned int pwm_ao_b_pins[] = { GPIOAO_9 };
|
||||
static const unsigned int pwm_ao_b_6_pins[] = { GPIOAO_6 };
|
||||
|
||||
static const unsigned int i2s_out_ch23_ao_pins[] = { PIN(GPIOAO_8, 0) };
|
||||
static const unsigned int i2s_out_ch45_ao_pins[] = { PIN(GPIOAO_9, 0) };
|
||||
static const unsigned int i2s_out_ch23_ao_pins[] = { GPIOAO_8 };
|
||||
static const unsigned int i2s_out_ch45_ao_pins[] = { GPIOAO_9 };
|
||||
|
||||
static const unsigned int spdif_out_ao_6_pins[] = { PIN(GPIOAO_6, 0) };
|
||||
static const unsigned int spdif_out_ao_9_pins[] = { PIN(GPIOAO_9, 0) };
|
||||
static const unsigned int spdif_out_ao_6_pins[] = { GPIOAO_6 };
|
||||
static const unsigned int spdif_out_ao_9_pins[] = { GPIOAO_9 };
|
||||
|
||||
static const unsigned int ao_cec_pins[] = { PIN(GPIOAO_8, 0) };
|
||||
static const unsigned int ee_cec_pins[] = { PIN(GPIOAO_8, 0) };
|
||||
static const unsigned int ao_cec_pins[] = { GPIOAO_8 };
|
||||
static const unsigned int ee_cec_pins[] = { GPIOAO_8 };
|
||||
|
||||
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(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, 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(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(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, 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(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, 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_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(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_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, 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(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, EE_OFF),
|
||||
GPIO_GROUP(GPIOCLK_1, EE_OFF),
|
||||
GPIO_GROUP(GPIOCLK_0),
|
||||
GPIO_GROUP(GPIOCLK_1),
|
||||
|
||||
GPIO_GROUP(GPIO_TEST_N, EE_OFF),
|
||||
GPIO_GROUP(GPIO_TEST_N),
|
||||
|
||||
/* Bank X */
|
||||
GROUP(sdio_d0, 5, 31),
|
||||
@ -530,16 +520,16 @@ static struct meson_pmx_group meson_gxl_periphs_groups[] = {
|
||||
};
|
||||
|
||||
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(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),
|
||||
|
||||
/* bank AO */
|
||||
GROUP(uart_tx_ao_b_0, 0, 26),
|
||||
@ -800,24 +790,24 @@ 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, 107, 4, 0, 4, 0, 12, 0, 13, 0, 14, 0),
|
||||
BANK("DV", PIN(GPIODV_0, EE_OFF), PIN(GPIODV_29, EE_OFF), 83, 88, 0, 0, 0, 0, 0, 0, 1, 0, 2, 0),
|
||||
BANK("H", PIN(GPIOH_0, EE_OFF), PIN(GPIOH_9, EE_OFF), 26, 35, 1, 20, 1, 20, 3, 20, 4, 20, 5, 20),
|
||||
BANK("Z", PIN(GPIOZ_0, EE_OFF), PIN(GPIOZ_15, EE_OFF), 10, 25, 3, 0, 3, 0, 9, 0, 10, 0, 11, 0),
|
||||
BANK("CARD", PIN(CARD_0, EE_OFF), PIN(CARD_6, EE_OFF), 52, 58, 2, 20, 2, 20, 6, 20, 7, 20, 8, 20),
|
||||
BANK("BOOT", PIN(BOOT_0, EE_OFF), PIN(BOOT_15, EE_OFF), 36, 51, 2, 0, 2, 0, 6, 0, 7, 0, 8, 0),
|
||||
BANK("CLK", PIN(GPIOCLK_0, EE_OFF), PIN(GPIOCLK_1, EE_OFF), 108, 109, 3, 28, 3, 28, 9, 28, 10, 28, 11, 28),
|
||||
/* name first last irq pullen pull dir out in */
|
||||
BANK("X", GPIOX_0, GPIOX_18, 89, 107, 4, 0, 4, 0, 12, 0, 13, 0, 14, 0),
|
||||
BANK("DV", GPIODV_0, GPIODV_29, 83, 88, 0, 0, 0, 0, 0, 0, 1, 0, 2, 0),
|
||||
BANK("H", GPIOH_0, GPIOH_9, 26, 35, 1, 20, 1, 20, 3, 20, 4, 20, 5, 20),
|
||||
BANK("Z", GPIOZ_0, GPIOZ_15, 10, 25, 3, 0, 3, 0, 9, 0, 10, 0, 11, 0),
|
||||
BANK("CARD", CARD_0, CARD_6, 52, 58, 2, 20, 2, 20, 6, 20, 7, 20, 8, 20),
|
||||
BANK("BOOT", BOOT_0, BOOT_15, 36, 51, 2, 0, 2, 0, 6, 0, 7, 0, 8, 0),
|
||||
BANK("CLK", GPIOCLK_0, GPIOCLK_1, 108, 109, 3, 28, 3, 28, 9, 28, 10, 28, 11, 28),
|
||||
};
|
||||
|
||||
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, 9, 0, 0, 0, 16, 0, 0, 0, 16, 1, 0),
|
||||
/* name first last irq pullen pull dir out in */
|
||||
BANK("AO", GPIOAO_0, GPIOAO_9, 0, 9, 0, 0, 0, 16, 0, 0, 0, 16, 1, 0),
|
||||
};
|
||||
|
||||
struct meson_pinctrl_data meson_gxl_periphs_pinctrl_data = {
|
||||
.name = "periphs-banks",
|
||||
.pin_base = 10,
|
||||
.pin_base = 0,
|
||||
.pins = meson_gxl_periphs_pins,
|
||||
.groups = meson_gxl_periphs_groups,
|
||||
.funcs = meson_gxl_periphs_functions,
|
||||
|
@ -410,18 +410,6 @@ static const struct pinconf_ops meson_pinconf_ops = {
|
||||
.is_generic = true,
|
||||
};
|
||||
|
||||
static int meson_gpio_request(struct gpio_chip *chip, unsigned gpio)
|
||||
{
|
||||
return pinctrl_request_gpio(chip->base + gpio);
|
||||
}
|
||||
|
||||
static void meson_gpio_free(struct gpio_chip *chip, unsigned gpio)
|
||||
{
|
||||
struct meson_pinctrl *pc = gpiochip_get_data(chip);
|
||||
|
||||
pinctrl_free_gpio(pc->data->pin_base + gpio);
|
||||
}
|
||||
|
||||
static int meson_gpio_direction_input(struct gpio_chip *chip, unsigned gpio)
|
||||
{
|
||||
struct meson_pinctrl *pc = gpiochip_get_data(chip);
|
||||
@ -539,13 +527,13 @@ static int meson_gpiolib_register(struct meson_pinctrl *pc)
|
||||
|
||||
pc->chip.label = pc->data->name;
|
||||
pc->chip.parent = pc->dev;
|
||||
pc->chip.request = meson_gpio_request;
|
||||
pc->chip.free = meson_gpio_free;
|
||||
pc->chip.request = gpiochip_generic_request;
|
||||
pc->chip.free = gpiochip_generic_free;
|
||||
pc->chip.direction_input = meson_gpio_direction_input;
|
||||
pc->chip.direction_output = meson_gpio_direction_output;
|
||||
pc->chip.get = meson_gpio_get;
|
||||
pc->chip.set = meson_gpio_set;
|
||||
pc->chip.base = pc->data->pin_base;
|
||||
pc->chip.base = -1;
|
||||
pc->chip.ngpio = pc->data->num_pins;
|
||||
pc->chip.can_sleep = false;
|
||||
pc->chip.of_node = pc->of_node;
|
||||
|
@ -124,8 +124,6 @@ struct meson_pinctrl {
|
||||
struct device_node *of_node;
|
||||
};
|
||||
|
||||
#define PIN(x, b) (b + x)
|
||||
|
||||
#define GROUP(grp, r, b) \
|
||||
{ \
|
||||
.name = #grp, \
|
||||
@ -135,10 +133,10 @@ struct meson_pinctrl {
|
||||
.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, \
|
||||
}
|
||||
@ -166,7 +164,7 @@ struct meson_pinctrl {
|
||||
}, \
|
||||
}
|
||||
|
||||
#define MESON_PIN(x, b) PINCTRL_PIN(PIN(x, b), #x)
|
||||
#define MESON_PIN(x) PINCTRL_PIN(x, #x)
|
||||
|
||||
extern struct meson_pinctrl_data meson8_cbus_pinctrl_data;
|
||||
extern struct meson_pinctrl_data meson8_aobus_pinctrl_data;
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -15,407 +15,403 @@
|
||||
#include <dt-bindings/gpio/meson8b-gpio.h>
|
||||
#include "pinctrl-meson.h"
|
||||
|
||||
#define AO_OFF 130
|
||||
|
||||
static const struct pinctrl_pin_desc meson8b_cbus_pins[] = {
|
||||
MESON_PIN(GPIOX_0, 0),
|
||||
MESON_PIN(GPIOX_1, 0),
|
||||
MESON_PIN(GPIOX_2, 0),
|
||||
MESON_PIN(GPIOX_3, 0),
|
||||
MESON_PIN(GPIOX_4, 0),
|
||||
MESON_PIN(GPIOX_5, 0),
|
||||
MESON_PIN(GPIOX_6, 0),
|
||||
MESON_PIN(GPIOX_7, 0),
|
||||
MESON_PIN(GPIOX_8, 0),
|
||||
MESON_PIN(GPIOX_9, 0),
|
||||
MESON_PIN(GPIOX_10, 0),
|
||||
MESON_PIN(GPIOX_11, 0),
|
||||
MESON_PIN(GPIOX_16, 0),
|
||||
MESON_PIN(GPIOX_17, 0),
|
||||
MESON_PIN(GPIOX_18, 0),
|
||||
MESON_PIN(GPIOX_19, 0),
|
||||
MESON_PIN(GPIOX_20, 0),
|
||||
MESON_PIN(GPIOX_21, 0),
|
||||
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, 0),
|
||||
MESON_PIN(GPIOY_1, 0),
|
||||
MESON_PIN(GPIOY_3, 0),
|
||||
MESON_PIN(GPIOY_6, 0),
|
||||
MESON_PIN(GPIOY_7, 0),
|
||||
MESON_PIN(GPIOY_8, 0),
|
||||
MESON_PIN(GPIOY_9, 0),
|
||||
MESON_PIN(GPIOY_10, 0),
|
||||
MESON_PIN(GPIOY_11, 0),
|
||||
MESON_PIN(GPIOY_12, 0),
|
||||
MESON_PIN(GPIOY_13, 0),
|
||||
MESON_PIN(GPIOY_14, 0),
|
||||
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, 0),
|
||||
MESON_PIN(GPIODV_24, 0),
|
||||
MESON_PIN(GPIODV_25, 0),
|
||||
MESON_PIN(GPIODV_26, 0),
|
||||
MESON_PIN(GPIODV_27, 0),
|
||||
MESON_PIN(GPIODV_28, 0),
|
||||
MESON_PIN(GPIODV_29, 0),
|
||||
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, 0),
|
||||
MESON_PIN(GPIOH_1, 0),
|
||||
MESON_PIN(GPIOH_2, 0),
|
||||
MESON_PIN(GPIOH_3, 0),
|
||||
MESON_PIN(GPIOH_4, 0),
|
||||
MESON_PIN(GPIOH_5, 0),
|
||||
MESON_PIN(GPIOH_6, 0),
|
||||
MESON_PIN(GPIOH_7, 0),
|
||||
MESON_PIN(GPIOH_8, 0),
|
||||
MESON_PIN(GPIOH_9, 0),
|
||||
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, 0),
|
||||
MESON_PIN(CARD_1, 0),
|
||||
MESON_PIN(CARD_2, 0),
|
||||
MESON_PIN(CARD_3, 0),
|
||||
MESON_PIN(CARD_4, 0),
|
||||
MESON_PIN(CARD_5, 0),
|
||||
MESON_PIN(CARD_6, 0),
|
||||
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, 0),
|
||||
MESON_PIN(BOOT_1, 0),
|
||||
MESON_PIN(BOOT_2, 0),
|
||||
MESON_PIN(BOOT_3, 0),
|
||||
MESON_PIN(BOOT_4, 0),
|
||||
MESON_PIN(BOOT_5, 0),
|
||||
MESON_PIN(BOOT_6, 0),
|
||||
MESON_PIN(BOOT_7, 0),
|
||||
MESON_PIN(BOOT_8, 0),
|
||||
MESON_PIN(BOOT_9, 0),
|
||||
MESON_PIN(BOOT_10, 0),
|
||||
MESON_PIN(BOOT_11, 0),
|
||||
MESON_PIN(BOOT_12, 0),
|
||||
MESON_PIN(BOOT_13, 0),
|
||||
MESON_PIN(BOOT_14, 0),
|
||||
MESON_PIN(BOOT_15, 0),
|
||||
MESON_PIN(BOOT_16, 0),
|
||||
MESON_PIN(BOOT_17, 0),
|
||||
MESON_PIN(BOOT_18, 0),
|
||||
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, 0),
|
||||
MESON_PIN(DIF_0_N, 0),
|
||||
MESON_PIN(DIF_1_P, 0),
|
||||
MESON_PIN(DIF_1_N, 0),
|
||||
MESON_PIN(DIF_2_P, 0),
|
||||
MESON_PIN(DIF_2_N, 0),
|
||||
MESON_PIN(DIF_3_P, 0),
|
||||
MESON_PIN(DIF_3_N, 0),
|
||||
MESON_PIN(DIF_4_P, 0),
|
||||
MESON_PIN(DIF_4_N, 0),
|
||||
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, AO_OFF),
|
||||
MESON_PIN(GPIOAO_1, AO_OFF),
|
||||
MESON_PIN(GPIOAO_2, AO_OFF),
|
||||
MESON_PIN(GPIOAO_3, AO_OFF),
|
||||
MESON_PIN(GPIOAO_4, AO_OFF),
|
||||
MESON_PIN(GPIOAO_5, AO_OFF),
|
||||
MESON_PIN(GPIOAO_6, AO_OFF),
|
||||
MESON_PIN(GPIOAO_7, AO_OFF),
|
||||
MESON_PIN(GPIOAO_8, AO_OFF),
|
||||
MESON_PIN(GPIOAO_9, AO_OFF),
|
||||
MESON_PIN(GPIOAO_10, AO_OFF),
|
||||
MESON_PIN(GPIOAO_11, AO_OFF),
|
||||
MESON_PIN(GPIOAO_12, AO_OFF),
|
||||
MESON_PIN(GPIOAO_13, AO_OFF),
|
||||
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),
|
||||
|
||||
/*
|
||||
* The following 2 pins are not mentionned in the public datasheet
|
||||
* According to this datasheet, they can't be used with the gpio
|
||||
* interrupt controller
|
||||
*/
|
||||
MESON_PIN(GPIO_BSD_EN, AO_OFF),
|
||||
MESON_PIN(GPIO_TEST_N, AO_OFF),
|
||||
MESON_PIN(GPIO_BSD_EN),
|
||||
MESON_PIN(GPIO_TEST_N),
|
||||
};
|
||||
|
||||
/* bank X */
|
||||
static const unsigned int sd_d0_a_pins[] = { PIN(GPIOX_0, 0) };
|
||||
static const unsigned int sd_d1_a_pins[] = { PIN(GPIOX_1, 0) };
|
||||
static const unsigned int sd_d2_a_pins[] = { PIN(GPIOX_2, 0) };
|
||||
static const unsigned int sd_d3_a_pins[] = { PIN(GPIOX_3, 0) };
|
||||
static const unsigned int sdxc_d0_0_a_pins[] = { PIN(GPIOX_4, 0) };
|
||||
static const unsigned int sdxc_d47_a_pins[] = { PIN(GPIOX_4, 0), PIN(GPIOX_5, 0),
|
||||
PIN(GPIOX_6, 0), PIN(GPIOX_7, 0) };
|
||||
static const unsigned int sdxc_d13_0_a_pins[] = { PIN(GPIOX_5, 0), PIN(GPIOX_6, 0),
|
||||
PIN(GPIOX_7, 0) };
|
||||
static const unsigned int sd_clk_a_pins[] = { PIN(GPIOX_8, 0) };
|
||||
static const unsigned int sd_cmd_a_pins[] = { PIN(GPIOX_9, 0) };
|
||||
static const unsigned int xtal_32k_out_pins[] = { PIN(GPIOX_10, 0) };
|
||||
static const unsigned int xtal_24m_out_pins[] = { PIN(GPIOX_11, 0) };
|
||||
static const unsigned int uart_tx_b0_pins[] = { PIN(GPIOX_16, 0) };
|
||||
static const unsigned int uart_rx_b0_pins[] = { PIN(GPIOX_17, 0) };
|
||||
static const unsigned int uart_cts_b0_pins[] = { PIN(GPIOX_18, 0) };
|
||||
static const unsigned int uart_rts_b0_pins[] = { PIN(GPIOX_19, 0) };
|
||||
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, 0) };
|
||||
static const unsigned int sdxc_d13_1_a_pins[] = { PIN(GPIOX_1, 0), PIN(GPIOX_2, 0),
|
||||
PIN(GPIOX_3, 0) };
|
||||
static const unsigned int pcm_out_a_pins[] = { PIN(GPIOX_4, 0) };
|
||||
static const unsigned int pcm_in_a_pins[] = { PIN(GPIOX_5, 0) };
|
||||
static const unsigned int pcm_fs_a_pins[] = { PIN(GPIOX_6, 0) };
|
||||
static const unsigned int pcm_clk_a_pins[] = { PIN(GPIOX_7, 0) };
|
||||
static const unsigned int sdxc_clk_a_pins[] = { PIN(GPIOX_8, 0) };
|
||||
static const unsigned int sdxc_cmd_a_pins[] = { PIN(GPIOX_9, 0) };
|
||||
static const unsigned int pwm_vs_0_pins[] = { PIN(GPIOX_10, 0) };
|
||||
static const unsigned int pwm_e_pins[] = { PIN(GPIOX_10, 0) };
|
||||
static const unsigned int pwm_vs_1_pins[] = { PIN(GPIOX_11, 0) };
|
||||
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, 0) };
|
||||
static const unsigned int uart_rx_a_pins[] = { PIN(GPIOX_5, 0) };
|
||||
static const unsigned int uart_cts_a_pins[] = { PIN(GPIOX_6, 0) };
|
||||
static const unsigned int uart_rts_a_pins[] = { PIN(GPIOX_7, 0) };
|
||||
static const unsigned int uart_tx_b1_pins[] = { PIN(GPIOX_8, 0) };
|
||||
static const unsigned int uart_rx_b1_pins[] = { PIN(GPIOX_9, 0) };
|
||||
static const unsigned int uart_cts_b1_pins[] = { PIN(GPIOX_10, 0) };
|
||||
static const unsigned int uart_rts_b1_pins[] = { PIN(GPIOX_20, 0) };
|
||||
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, 0) };
|
||||
static const unsigned int iso7816_0_data_pins[] = { PIN(GPIOX_7, 0) };
|
||||
static const unsigned int spi_sclk_0_pins[] = { PIN(GPIOX_8, 0) };
|
||||
static const unsigned int spi_miso_0_pins[] = { PIN(GPIOX_9, 0) };
|
||||
static const unsigned int spi_mosi_0_pins[] = { PIN(GPIOX_10, 0) };
|
||||
static const unsigned int iso7816_det_pins[] = { PIN(GPIOX_16, 0) };
|
||||
static const unsigned int iso7816_reset_pins[] = { PIN(GPIOX_17, 0) };
|
||||
static const unsigned int iso7816_1_clk_pins[] = { PIN(GPIOX_18, 0) };
|
||||
static const unsigned int iso7816_1_data_pins[] = { PIN(GPIOX_19, 0) };
|
||||
static const unsigned int spi_ss0_0_pins[] = { PIN(GPIOX_20, 0) };
|
||||
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, 0) };
|
||||
static const unsigned int tsin_sop_b_pins[] = { PIN(GPIOX_9, 0) };
|
||||
static const unsigned int tsin_d0_b_pins[] = { PIN(GPIOX_10, 0) };
|
||||
static const unsigned int pwm_b_pins[] = { PIN(GPIOX_11, 0) };
|
||||
static const unsigned int i2c_sda_d0_pins[] = { PIN(GPIOX_16, 0) };
|
||||
static const unsigned int i2c_sck_d0_pins[] = { PIN(GPIOX_17, 0) };
|
||||
static const unsigned int tsin_d_valid_b_pins[] = { PIN(GPIOX_20, 0) };
|
||||
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, 0) };
|
||||
static const unsigned int tsin_sop_a_pins[] = { PIN(GPIOY_1, 0) };
|
||||
static const unsigned int tsin_d17_a_pins[] = { PIN(GPIOY_6, 0), PIN(GPIOY_7, 0),
|
||||
PIN(GPIOY_10, 0), PIN(GPIOY_11, 0),
|
||||
PIN(GPIOY_12, 0), PIN(GPIOY_13, 0),
|
||||
PIN(GPIOY_14, 0) };
|
||||
static const unsigned int tsin_clk_a_pins[] = { PIN(GPIOY_8, 0) };
|
||||
static const unsigned int tsin_d0_a_pins[] = { PIN(GPIOY_9, 0) };
|
||||
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, 0) };
|
||||
static const unsigned int spdif_out_0_pins[] = { GPIOY_3 };
|
||||
|
||||
static const unsigned int xtal_24m_pins[] = { PIN(GPIOY_3, 0) };
|
||||
static const unsigned int iso7816_2_clk_pins[] = { PIN(GPIOY_13, 0) };
|
||||
static const unsigned int iso7816_2_data_pins[] = { PIN(GPIOY_14, 0) };
|
||||
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, 0) };
|
||||
static const unsigned int pwm_c0_pins[] = { PIN(GPIODV_29, 0) };
|
||||
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, 0) };
|
||||
static const unsigned int pwm_vs_3_pins[] = { PIN(GPIODV_28, 0) };
|
||||
static const unsigned int pwm_vs_4_pins[] = { PIN(GPIODV_29, 0) };
|
||||
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, 0) };
|
||||
static const unsigned int xtal24_out_pins[] = { GPIODV_29 };
|
||||
|
||||
static const unsigned int uart_tx_c_pins[] = { PIN(GPIODV_24, 0) };
|
||||
static const unsigned int uart_rx_c_pins[] = { PIN(GPIODV_25, 0) };
|
||||
static const unsigned int uart_cts_c_pins[] = { PIN(GPIODV_26, 0) };
|
||||
static const unsigned int uart_rts_c_pins[] = { PIN(GPIODV_27, 0) };
|
||||
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, 0) };
|
||||
static const unsigned int pwm_c1_pins[] = { GPIODV_9 };
|
||||
|
||||
static const unsigned int i2c_sda_a_pins[] = { PIN(GPIODV_24, 0) };
|
||||
static const unsigned int i2c_sck_a_pins[] = { PIN(GPIODV_25, 0) };
|
||||
static const unsigned int i2c_sda_b0_pins[] = { PIN(GPIODV_26, 0) };
|
||||
static const unsigned int i2c_sck_b0_pins[] = { PIN(GPIODV_27, 0) };
|
||||
static const unsigned int i2c_sda_c0_pins[] = { PIN(GPIODV_28, 0) };
|
||||
static const unsigned int i2c_sck_c0_pins[] = { PIN(GPIODV_29, 0) };
|
||||
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, 0) };
|
||||
static const unsigned int hdmi_sda_pins[] = { PIN(GPIOH_1, 0) };
|
||||
static const unsigned int hdmi_scl_pins[] = { PIN(GPIOH_2, 0) };
|
||||
static const unsigned int hdmi_cec_0_pins[] = { PIN(GPIOH_3, 0) };
|
||||
static const unsigned int eth_txd1_0_pins[] = { PIN(GPIOH_5, 0) };
|
||||
static const unsigned int eth_txd0_0_pins[] = { PIN(GPIOH_6, 0) };
|
||||
static const unsigned int clk_24m_out_pins[] = { PIN(GPIOH_9, 0) };
|
||||
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, 0) };
|
||||
static const unsigned int spi_ss2_pins[] = { PIN(GPIOH_1, 0) };
|
||||
static const unsigned int spi_ss0_1_pins[] = { PIN(GPIOH_3, 0) };
|
||||
static const unsigned int spi_miso_1_pins[] = { PIN(GPIOH_4, 0) };
|
||||
static const unsigned int spi_mosi_1_pins[] = { PIN(GPIOH_5, 0) };
|
||||
static const unsigned int spi_sclk_1_pins[] = { PIN(GPIOH_6, 0) };
|
||||
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, 0) };
|
||||
static const unsigned int eth_txd2_pins[] = { PIN(GPIOH_8, 0) };
|
||||
static const unsigned int eth_tx_clk_pins[] = { PIN(GPIOH_9, 0) };
|
||||
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, 0) };
|
||||
static const unsigned int i2c_sck_b1_pins[] = { PIN(GPIOH_4, 0) };
|
||||
static const unsigned int i2c_sda_c1_pins[] = { PIN(GPIOH_5, 0) };
|
||||
static const unsigned int i2c_sck_c1_pins[] = { PIN(GPIOH_6, 0) };
|
||||
static const unsigned int i2c_sda_d1_pins[] = { PIN(GPIOH_7, 0) };
|
||||
static const unsigned int i2c_sck_d1_pins[] = { PIN(GPIOH_8, 0) };
|
||||
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, 0), PIN(BOOT_1, 0),
|
||||
PIN(BOOT_2, 0), PIN(BOOT_3, 0),
|
||||
PIN(BOOT_4, 0), PIN(BOOT_5, 0),
|
||||
PIN(BOOT_6, 0), PIN(BOOT_7, 0) };
|
||||
static const unsigned int nand_io_ce0_pins[] = { PIN(BOOT_8, 0) };
|
||||
static const unsigned int nand_io_ce1_pins[] = { PIN(BOOT_9, 0) };
|
||||
static const unsigned int nand_io_rb0_pins[] = { PIN(BOOT_10, 0) };
|
||||
static const unsigned int nand_ale_pins[] = { PIN(BOOT_11, 0) };
|
||||
static const unsigned int nand_cle_pins[] = { PIN(BOOT_12, 0) };
|
||||
static const unsigned int nand_wen_clk_pins[] = { PIN(BOOT_13, 0) };
|
||||
static const unsigned int nand_ren_clk_pins[] = { PIN(BOOT_14, 0) };
|
||||
static const unsigned int nand_dqs_15_pins[] = { PIN(BOOT_15, 0) };
|
||||
static const unsigned int nand_dqs_18_pins[] = { PIN(BOOT_18, 0) };
|
||||
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_15_pins[] = { BOOT_15 };
|
||||
static const unsigned int nand_dqs_18_pins[] = { BOOT_18 };
|
||||
|
||||
static const unsigned int sdxc_d0_c_pins[] = { PIN(BOOT_0, 0)};
|
||||
static const unsigned int sdxc_d13_c_pins[] = { PIN(BOOT_1, 0), PIN(BOOT_2, 0),
|
||||
PIN(BOOT_3, 0) };
|
||||
static const unsigned int sdxc_d47_c_pins[] = { PIN(BOOT_4, 0), PIN(BOOT_5, 0),
|
||||
PIN(BOOT_6, 0), PIN(BOOT_7, 0) };
|
||||
static const unsigned int sdxc_clk_c_pins[] = { PIN(BOOT_8, 0) };
|
||||
static const unsigned int sdxc_cmd_c_pins[] = { PIN(BOOT_10, 0) };
|
||||
static const unsigned int nor_d_pins[] = { PIN(BOOT_11, 0) };
|
||||
static const unsigned int nor_q_pins[] = { PIN(BOOT_12, 0) };
|
||||
static const unsigned int nor_c_pins[] = { PIN(BOOT_13, 0) };
|
||||
static const unsigned int nor_cs_pins[] = { PIN(BOOT_18, 0) };
|
||||
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, 0) };
|
||||
static const unsigned int sd_d1_c_pins[] = { PIN(BOOT_1, 0) };
|
||||
static const unsigned int sd_d2_c_pins[] = { PIN(BOOT_2, 0) };
|
||||
static const unsigned int sd_d3_c_pins[] = { PIN(BOOT_3, 0) };
|
||||
static const unsigned int sd_cmd_c_pins[] = { PIN(BOOT_8, 0) };
|
||||
static const unsigned int sd_clk_c_pins[] = { PIN(BOOT_10, 0) };
|
||||
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, 0) };
|
||||
static const unsigned int sd_d0_b_pins[] = { PIN(CARD_1, 0) };
|
||||
static const unsigned int sd_clk_b_pins[] = { PIN(CARD_2, 0) };
|
||||
static const unsigned int sd_cmd_b_pins[] = { PIN(CARD_3, 0) };
|
||||
static const unsigned int sd_d3_b_pins[] = { PIN(CARD_4, 0) };
|
||||
static const unsigned int sd_d2_b_pins[] = { PIN(CARD_5, 0) };
|
||||
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, 0), PIN(CARD_4, 0),
|
||||
PIN(CARD_5, 0) };
|
||||
static const unsigned int sdxc_d0_b_pins[] = { PIN(CARD_1, 0) };
|
||||
static const unsigned int sdxc_clk_b_pins[] = { PIN(CARD_2, 0) };
|
||||
static const unsigned int sdxc_cmd_b_pins[] = { PIN(CARD_3, 0) };
|
||||
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, AO_OFF) };
|
||||
static const unsigned int uart_rx_ao_a_pins[] = { PIN(GPIOAO_1, AO_OFF) };
|
||||
static const unsigned int uart_cts_ao_a_pins[] = { PIN(GPIOAO_2, AO_OFF) };
|
||||
static const unsigned int uart_rts_ao_a_pins[] = { PIN(GPIOAO_3, AO_OFF) };
|
||||
static const unsigned int i2c_mst_sck_ao_pins[] = { PIN(GPIOAO_4, AO_OFF) };
|
||||
static const unsigned int i2c_mst_sda_ao_pins[] = { PIN(GPIOAO_5, AO_OFF) };
|
||||
static const unsigned int clk_32k_in_out_pins[] = { PIN(GPIOAO_6, AO_OFF) };
|
||||
static const unsigned int remote_input_pins[] = { PIN(GPIOAO_7, AO_OFF) };
|
||||
static const unsigned int hdmi_cec_1_pins[] = { PIN(GPIOAO_12, AO_OFF) };
|
||||
static const unsigned int ir_blaster_pins[] = { PIN(GPIOAO_13, AO_OFF) };
|
||||
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, AO_OFF) };
|
||||
static const unsigned int i2c_sck_ao_pins[] = { PIN(GPIOAO_4, AO_OFF) };
|
||||
static const unsigned int i2c_sda_ao_pins[] = { PIN(GPIOAO_5, AO_OFF) };
|
||||
static const unsigned int ir_remote_out_pins[] = { PIN(GPIOAO_7, AO_OFF) };
|
||||
static const unsigned int i2s_am_clk_out_pins[] = { PIN(GPIOAO_8, AO_OFF) };
|
||||
static const unsigned int i2s_ao_clk_out_pins[] = { PIN(GPIOAO_9, AO_OFF) };
|
||||
static const unsigned int i2s_lr_clk_out_pins[] = { PIN(GPIOAO_10, AO_OFF) };
|
||||
static const unsigned int i2s_out_01_pins[] = { PIN(GPIOAO_11, AO_OFF) };
|
||||
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, AO_OFF) };
|
||||
static const unsigned int uart_rx_ao_b0_pins[] = { PIN(GPIOAO_1, AO_OFF) };
|
||||
static const unsigned int uart_cts_ao_b_pins[] = { PIN(GPIOAO_2, AO_OFF) };
|
||||
static const unsigned int uart_rts_ao_b_pins[] = { PIN(GPIOAO_3, AO_OFF) };
|
||||
static const unsigned int uart_tx_ao_b1_pins[] = { PIN(GPIOAO_4, AO_OFF) };
|
||||
static const unsigned int uart_rx_ao_b1_pins[] = { PIN(GPIOAO_5, AO_OFF) };
|
||||
static const unsigned int spdif_out_1_pins[] = { PIN(GPIOAO_6, AO_OFF) };
|
||||
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 i2s_in_ch01_pins[] = { PIN(GPIOAO_6, AO_OFF) };
|
||||
static const unsigned int i2s_ao_clk_in_pins[] = { PIN(GPIOAO_9, AO_OFF) };
|
||||
static const unsigned int i2s_lr_clk_in_pins[] = { PIN(GPIOAO_10, AO_OFF) };
|
||||
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, 0) };
|
||||
static const unsigned int eth_rxd0_pins[] = { PIN(DIF_0_N, 0) };
|
||||
static const unsigned int eth_rx_dv_pins[] = { PIN(DIF_1_P, 0) };
|
||||
static const unsigned int eth_rx_clk_pins[] = { PIN(DIF_1_N, 0) };
|
||||
static const unsigned int eth_txd0_1_pins[] = { PIN(DIF_2_P, 0) };
|
||||
static const unsigned int eth_txd1_1_pins[] = { PIN(DIF_2_N, 0) };
|
||||
static const unsigned int eth_tx_en_pins[] = { PIN(DIF_3_P, 0) };
|
||||
static const unsigned int eth_ref_clk_pins[] = { PIN(DIF_3_N, 0) };
|
||||
static const unsigned int eth_mdc_pins[] = { PIN(DIF_4_P, 0) };
|
||||
static const unsigned int eth_mdio_en_pins[] = { PIN(DIF_4_N, 0) };
|
||||
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, 0),
|
||||
GPIO_GROUP(GPIOX_1, 0),
|
||||
GPIO_GROUP(GPIOX_2, 0),
|
||||
GPIO_GROUP(GPIOX_3, 0),
|
||||
GPIO_GROUP(GPIOX_4, 0),
|
||||
GPIO_GROUP(GPIOX_5, 0),
|
||||
GPIO_GROUP(GPIOX_6, 0),
|
||||
GPIO_GROUP(GPIOX_7, 0),
|
||||
GPIO_GROUP(GPIOX_8, 0),
|
||||
GPIO_GROUP(GPIOX_9, 0),
|
||||
GPIO_GROUP(GPIOX_10, 0),
|
||||
GPIO_GROUP(GPIOX_11, 0),
|
||||
GPIO_GROUP(GPIOX_16, 0),
|
||||
GPIO_GROUP(GPIOX_17, 0),
|
||||
GPIO_GROUP(GPIOX_18, 0),
|
||||
GPIO_GROUP(GPIOX_19, 0),
|
||||
GPIO_GROUP(GPIOX_20, 0),
|
||||
GPIO_GROUP(GPIOX_21, 0),
|
||||
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, 0),
|
||||
GPIO_GROUP(GPIOY_1, 0),
|
||||
GPIO_GROUP(GPIOY_3, 0),
|
||||
GPIO_GROUP(GPIOY_6, 0),
|
||||
GPIO_GROUP(GPIOY_7, 0),
|
||||
GPIO_GROUP(GPIOY_8, 0),
|
||||
GPIO_GROUP(GPIOY_9, 0),
|
||||
GPIO_GROUP(GPIOY_10, 0),
|
||||
GPIO_GROUP(GPIOY_11, 0),
|
||||
GPIO_GROUP(GPIOY_12, 0),
|
||||
GPIO_GROUP(GPIOY_13, 0),
|
||||
GPIO_GROUP(GPIOY_14, 0),
|
||||
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, 0),
|
||||
GPIO_GROUP(GPIODV_24, 0),
|
||||
GPIO_GROUP(GPIODV_25, 0),
|
||||
GPIO_GROUP(GPIODV_26, 0),
|
||||
GPIO_GROUP(GPIODV_27, 0),
|
||||
GPIO_GROUP(GPIODV_28, 0),
|
||||
GPIO_GROUP(GPIODV_29, 0),
|
||||
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, 0),
|
||||
GPIO_GROUP(GPIOH_1, 0),
|
||||
GPIO_GROUP(GPIOH_2, 0),
|
||||
GPIO_GROUP(GPIOH_3, 0),
|
||||
GPIO_GROUP(GPIOH_4, 0),
|
||||
GPIO_GROUP(GPIOH_5, 0),
|
||||
GPIO_GROUP(GPIOH_6, 0),
|
||||
GPIO_GROUP(GPIOH_7, 0),
|
||||
GPIO_GROUP(GPIOH_8, 0),
|
||||
GPIO_GROUP(GPIOH_9, 0),
|
||||
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, 0),
|
||||
GPIO_GROUP(DIF_0_N, 0),
|
||||
GPIO_GROUP(DIF_1_P, 0),
|
||||
GPIO_GROUP(DIF_1_N, 0),
|
||||
GPIO_GROUP(DIF_2_P, 0),
|
||||
GPIO_GROUP(DIF_2_N, 0),
|
||||
GPIO_GROUP(DIF_3_P, 0),
|
||||
GPIO_GROUP(DIF_3_N, 0),
|
||||
GPIO_GROUP(DIF_4_P, 0),
|
||||
GPIO_GROUP(DIF_4_N, 0),
|
||||
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),
|
||||
|
||||
/* bank X */
|
||||
GROUP(sd_d0_a, 8, 5),
|
||||
@ -577,22 +573,22 @@ static struct meson_pmx_group meson8b_cbus_groups[] = {
|
||||
};
|
||||
|
||||
static struct meson_pmx_group meson8b_aobus_groups[] = {
|
||||
GPIO_GROUP(GPIOAO_0, AO_OFF),
|
||||
GPIO_GROUP(GPIOAO_1, AO_OFF),
|
||||
GPIO_GROUP(GPIOAO_2, AO_OFF),
|
||||
GPIO_GROUP(GPIOAO_3, AO_OFF),
|
||||
GPIO_GROUP(GPIOAO_4, AO_OFF),
|
||||
GPIO_GROUP(GPIOAO_5, AO_OFF),
|
||||
GPIO_GROUP(GPIOAO_6, AO_OFF),
|
||||
GPIO_GROUP(GPIOAO_7, AO_OFF),
|
||||
GPIO_GROUP(GPIOAO_8, AO_OFF),
|
||||
GPIO_GROUP(GPIOAO_9, AO_OFF),
|
||||
GPIO_GROUP(GPIOAO_10, AO_OFF),
|
||||
GPIO_GROUP(GPIOAO_11, AO_OFF),
|
||||
GPIO_GROUP(GPIOAO_12, AO_OFF),
|
||||
GPIO_GROUP(GPIOAO_13, AO_OFF),
|
||||
GPIO_GROUP(GPIO_BSD_EN, AO_OFF),
|
||||
GPIO_GROUP(GPIO_TEST_N, AO_OFF),
|
||||
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_BSD_EN),
|
||||
GPIO_GROUP(GPIO_TEST_N),
|
||||
|
||||
/* bank AO */
|
||||
GROUP(uart_tx_ao_a, 0, 12),
|
||||
@ -887,25 +883,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, 0), PIN(GPIOX_21, 0), 97, 118, 4, 0, 4, 0, 0, 0, 1, 0, 2, 0),
|
||||
BANK("Y", PIN(GPIOY_0, 0), PIN(GPIOY_14, 0), 80, 96, 3, 0, 3, 0, 3, 0, 4, 0, 5, 0),
|
||||
BANK("DV", PIN(GPIODV_9, 0), PIN(GPIODV_29, 0), 59, 79, 0, 0, 0, 0, 7, 0, 8, 0, 9, 0),
|
||||
BANK("H", PIN(GPIOH_0, 0), PIN(GPIOH_9, 0), 14, 23, 1, 16, 1, 16, 9, 19, 10, 19, 11, 19),
|
||||
BANK("CARD", PIN(CARD_0, 0), PIN(CARD_6, 0), 43, 49, 2, 20, 2, 20, 0, 22, 1, 22, 2, 22),
|
||||
BANK("BOOT", PIN(BOOT_0, 0), PIN(BOOT_18, 0), 24, 42, 2, 0, 2, 0, 9, 0, 10, 0, 11, 0),
|
||||
/* name first last irq pullen pull dir out in */
|
||||
BANK("X", GPIOX_0, GPIOX_21, 97, 118, 4, 0, 4, 0, 0, 0, 1, 0, 2, 0),
|
||||
BANK("Y", GPIOY_0, GPIOY_14, 80, 96, 3, 0, 3, 0, 3, 0, 4, 0, 5, 0),
|
||||
BANK("DV", GPIODV_9, GPIODV_29, 59, 79, 0, 0, 0, 0, 7, 0, 8, 0, 9, 0),
|
||||
BANK("H", GPIOH_0, GPIOH_9, 14, 23, 1, 16, 1, 16, 9, 19, 10, 19, 11, 19),
|
||||
BANK("CARD", CARD_0, CARD_6, 43, 49, 2, 20, 2, 20, 0, 22, 1, 22, 2, 22),
|
||||
BANK("BOOT", BOOT_0, BOOT_18, 24, 42, 2, 0, 2, 0, 9, 0, 10, 0, 11, 0),
|
||||
|
||||
/*
|
||||
* The following bank is not mentionned in the public datasheet
|
||||
* There is no information whether it can be used with the gpio
|
||||
* interrupt controller
|
||||
*/
|
||||
BANK("DIF", PIN(DIF_0_P, 0), PIN(DIF_4_N, 0), -1, -1, 5, 8, 5, 8, 12, 12, 13, 12, 14, 12),
|
||||
BANK("DIF", DIF_0_P, DIF_4_N, -1, -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, AO_OFF), PIN(GPIO_TEST_N, AO_OFF), 0, 13, 0, 0, 0, 16, 0, 0, 0, 16, 1, 0),
|
||||
/* name first lastc irq pullen pull dir out in */
|
||||
BANK("AO", GPIOAO_0, GPIO_TEST_N, 0, 13, 0, 0, 0, 16, 0, 0, 0, 16, 1, 0),
|
||||
};
|
||||
|
||||
struct meson_pinctrl_data meson8b_cbus_pinctrl_data = {
|
||||
@ -923,7 +919,7 @@ struct meson_pinctrl_data meson8b_cbus_pinctrl_data = {
|
||||
|
||||
struct meson_pinctrl_data meson8b_aobus_pinctrl_data = {
|
||||
.name = "aobus-banks",
|
||||
.pin_base = 130,
|
||||
.pin_base = 0,
|
||||
.pins = meson8b_aobus_pins,
|
||||
.groups = meson8b_aobus_groups,
|
||||
.funcs = meson8b_aobus_functions,
|
||||
|
Loading…
Reference in New Issue
Block a user