18c2ecf20Sopenharmony_ci// SPDX-License-Identifier: GPL-2.0-only
28c2ecf20Sopenharmony_ci/*
38c2ecf20Sopenharmony_ci * Pin controller and GPIO driver for Amlogic Meson8 and Meson8m2.
48c2ecf20Sopenharmony_ci *
58c2ecf20Sopenharmony_ci * Copyright (C) 2014 Beniamino Galvani <b.galvani@gmail.com>
68c2ecf20Sopenharmony_ci */
78c2ecf20Sopenharmony_ci
88c2ecf20Sopenharmony_ci#include <dt-bindings/gpio/meson8-gpio.h>
98c2ecf20Sopenharmony_ci#include "pinctrl-meson.h"
108c2ecf20Sopenharmony_ci#include "pinctrl-meson8-pmx.h"
118c2ecf20Sopenharmony_ci
128c2ecf20Sopenharmony_cistatic const struct pinctrl_pin_desc meson8_cbus_pins[] = {
138c2ecf20Sopenharmony_ci	MESON_PIN(GPIOX_0),
148c2ecf20Sopenharmony_ci	MESON_PIN(GPIOX_1),
158c2ecf20Sopenharmony_ci	MESON_PIN(GPIOX_2),
168c2ecf20Sopenharmony_ci	MESON_PIN(GPIOX_3),
178c2ecf20Sopenharmony_ci	MESON_PIN(GPIOX_4),
188c2ecf20Sopenharmony_ci	MESON_PIN(GPIOX_5),
198c2ecf20Sopenharmony_ci	MESON_PIN(GPIOX_6),
208c2ecf20Sopenharmony_ci	MESON_PIN(GPIOX_7),
218c2ecf20Sopenharmony_ci	MESON_PIN(GPIOX_8),
228c2ecf20Sopenharmony_ci	MESON_PIN(GPIOX_9),
238c2ecf20Sopenharmony_ci	MESON_PIN(GPIOX_10),
248c2ecf20Sopenharmony_ci	MESON_PIN(GPIOX_11),
258c2ecf20Sopenharmony_ci	MESON_PIN(GPIOX_12),
268c2ecf20Sopenharmony_ci	MESON_PIN(GPIOX_13),
278c2ecf20Sopenharmony_ci	MESON_PIN(GPIOX_14),
288c2ecf20Sopenharmony_ci	MESON_PIN(GPIOX_15),
298c2ecf20Sopenharmony_ci	MESON_PIN(GPIOX_16),
308c2ecf20Sopenharmony_ci	MESON_PIN(GPIOX_17),
318c2ecf20Sopenharmony_ci	MESON_PIN(GPIOX_18),
328c2ecf20Sopenharmony_ci	MESON_PIN(GPIOX_19),
338c2ecf20Sopenharmony_ci	MESON_PIN(GPIOX_20),
348c2ecf20Sopenharmony_ci	MESON_PIN(GPIOX_21),
358c2ecf20Sopenharmony_ci	MESON_PIN(GPIOY_0),
368c2ecf20Sopenharmony_ci	MESON_PIN(GPIOY_1),
378c2ecf20Sopenharmony_ci	MESON_PIN(GPIOY_2),
388c2ecf20Sopenharmony_ci	MESON_PIN(GPIOY_3),
398c2ecf20Sopenharmony_ci	MESON_PIN(GPIOY_4),
408c2ecf20Sopenharmony_ci	MESON_PIN(GPIOY_5),
418c2ecf20Sopenharmony_ci	MESON_PIN(GPIOY_6),
428c2ecf20Sopenharmony_ci	MESON_PIN(GPIOY_7),
438c2ecf20Sopenharmony_ci	MESON_PIN(GPIOY_8),
448c2ecf20Sopenharmony_ci	MESON_PIN(GPIOY_9),
458c2ecf20Sopenharmony_ci	MESON_PIN(GPIOY_10),
468c2ecf20Sopenharmony_ci	MESON_PIN(GPIOY_11),
478c2ecf20Sopenharmony_ci	MESON_PIN(GPIOY_12),
488c2ecf20Sopenharmony_ci	MESON_PIN(GPIOY_13),
498c2ecf20Sopenharmony_ci	MESON_PIN(GPIOY_14),
508c2ecf20Sopenharmony_ci	MESON_PIN(GPIOY_15),
518c2ecf20Sopenharmony_ci	MESON_PIN(GPIOY_16),
528c2ecf20Sopenharmony_ci	MESON_PIN(GPIODV_0),
538c2ecf20Sopenharmony_ci	MESON_PIN(GPIODV_1),
548c2ecf20Sopenharmony_ci	MESON_PIN(GPIODV_2),
558c2ecf20Sopenharmony_ci	MESON_PIN(GPIODV_3),
568c2ecf20Sopenharmony_ci	MESON_PIN(GPIODV_4),
578c2ecf20Sopenharmony_ci	MESON_PIN(GPIODV_5),
588c2ecf20Sopenharmony_ci	MESON_PIN(GPIODV_6),
598c2ecf20Sopenharmony_ci	MESON_PIN(GPIODV_7),
608c2ecf20Sopenharmony_ci	MESON_PIN(GPIODV_8),
618c2ecf20Sopenharmony_ci	MESON_PIN(GPIODV_9),
628c2ecf20Sopenharmony_ci	MESON_PIN(GPIODV_10),
638c2ecf20Sopenharmony_ci	MESON_PIN(GPIODV_11),
648c2ecf20Sopenharmony_ci	MESON_PIN(GPIODV_12),
658c2ecf20Sopenharmony_ci	MESON_PIN(GPIODV_13),
668c2ecf20Sopenharmony_ci	MESON_PIN(GPIODV_14),
678c2ecf20Sopenharmony_ci	MESON_PIN(GPIODV_15),
688c2ecf20Sopenharmony_ci	MESON_PIN(GPIODV_16),
698c2ecf20Sopenharmony_ci	MESON_PIN(GPIODV_17),
708c2ecf20Sopenharmony_ci	MESON_PIN(GPIODV_18),
718c2ecf20Sopenharmony_ci	MESON_PIN(GPIODV_19),
728c2ecf20Sopenharmony_ci	MESON_PIN(GPIODV_20),
738c2ecf20Sopenharmony_ci	MESON_PIN(GPIODV_21),
748c2ecf20Sopenharmony_ci	MESON_PIN(GPIODV_22),
758c2ecf20Sopenharmony_ci	MESON_PIN(GPIODV_23),
768c2ecf20Sopenharmony_ci	MESON_PIN(GPIODV_24),
778c2ecf20Sopenharmony_ci	MESON_PIN(GPIODV_25),
788c2ecf20Sopenharmony_ci	MESON_PIN(GPIODV_26),
798c2ecf20Sopenharmony_ci	MESON_PIN(GPIODV_27),
808c2ecf20Sopenharmony_ci	MESON_PIN(GPIODV_28),
818c2ecf20Sopenharmony_ci	MESON_PIN(GPIODV_29),
828c2ecf20Sopenharmony_ci	MESON_PIN(GPIOH_0),
838c2ecf20Sopenharmony_ci	MESON_PIN(GPIOH_1),
848c2ecf20Sopenharmony_ci	MESON_PIN(GPIOH_2),
858c2ecf20Sopenharmony_ci	MESON_PIN(GPIOH_3),
868c2ecf20Sopenharmony_ci	MESON_PIN(GPIOH_4),
878c2ecf20Sopenharmony_ci	MESON_PIN(GPIOH_5),
888c2ecf20Sopenharmony_ci	MESON_PIN(GPIOH_6),
898c2ecf20Sopenharmony_ci	MESON_PIN(GPIOH_7),
908c2ecf20Sopenharmony_ci	MESON_PIN(GPIOH_8),
918c2ecf20Sopenharmony_ci	MESON_PIN(GPIOH_9),
928c2ecf20Sopenharmony_ci	MESON_PIN(GPIOZ_0),
938c2ecf20Sopenharmony_ci	MESON_PIN(GPIOZ_1),
948c2ecf20Sopenharmony_ci	MESON_PIN(GPIOZ_2),
958c2ecf20Sopenharmony_ci	MESON_PIN(GPIOZ_3),
968c2ecf20Sopenharmony_ci	MESON_PIN(GPIOZ_4),
978c2ecf20Sopenharmony_ci	MESON_PIN(GPIOZ_5),
988c2ecf20Sopenharmony_ci	MESON_PIN(GPIOZ_6),
998c2ecf20Sopenharmony_ci	MESON_PIN(GPIOZ_7),
1008c2ecf20Sopenharmony_ci	MESON_PIN(GPIOZ_8),
1018c2ecf20Sopenharmony_ci	MESON_PIN(GPIOZ_9),
1028c2ecf20Sopenharmony_ci	MESON_PIN(GPIOZ_10),
1038c2ecf20Sopenharmony_ci	MESON_PIN(GPIOZ_11),
1048c2ecf20Sopenharmony_ci	MESON_PIN(GPIOZ_12),
1058c2ecf20Sopenharmony_ci	MESON_PIN(GPIOZ_13),
1068c2ecf20Sopenharmony_ci	MESON_PIN(GPIOZ_14),
1078c2ecf20Sopenharmony_ci	MESON_PIN(CARD_0),
1088c2ecf20Sopenharmony_ci	MESON_PIN(CARD_1),
1098c2ecf20Sopenharmony_ci	MESON_PIN(CARD_2),
1108c2ecf20Sopenharmony_ci	MESON_PIN(CARD_3),
1118c2ecf20Sopenharmony_ci	MESON_PIN(CARD_4),
1128c2ecf20Sopenharmony_ci	MESON_PIN(CARD_5),
1138c2ecf20Sopenharmony_ci	MESON_PIN(CARD_6),
1148c2ecf20Sopenharmony_ci	MESON_PIN(BOOT_0),
1158c2ecf20Sopenharmony_ci	MESON_PIN(BOOT_1),
1168c2ecf20Sopenharmony_ci	MESON_PIN(BOOT_2),
1178c2ecf20Sopenharmony_ci	MESON_PIN(BOOT_3),
1188c2ecf20Sopenharmony_ci	MESON_PIN(BOOT_4),
1198c2ecf20Sopenharmony_ci	MESON_PIN(BOOT_5),
1208c2ecf20Sopenharmony_ci	MESON_PIN(BOOT_6),
1218c2ecf20Sopenharmony_ci	MESON_PIN(BOOT_7),
1228c2ecf20Sopenharmony_ci	MESON_PIN(BOOT_8),
1238c2ecf20Sopenharmony_ci	MESON_PIN(BOOT_9),
1248c2ecf20Sopenharmony_ci	MESON_PIN(BOOT_10),
1258c2ecf20Sopenharmony_ci	MESON_PIN(BOOT_11),
1268c2ecf20Sopenharmony_ci	MESON_PIN(BOOT_12),
1278c2ecf20Sopenharmony_ci	MESON_PIN(BOOT_13),
1288c2ecf20Sopenharmony_ci	MESON_PIN(BOOT_14),
1298c2ecf20Sopenharmony_ci	MESON_PIN(BOOT_15),
1308c2ecf20Sopenharmony_ci	MESON_PIN(BOOT_16),
1318c2ecf20Sopenharmony_ci	MESON_PIN(BOOT_17),
1328c2ecf20Sopenharmony_ci	MESON_PIN(BOOT_18),
1338c2ecf20Sopenharmony_ci};
1348c2ecf20Sopenharmony_ci
1358c2ecf20Sopenharmony_cistatic const struct pinctrl_pin_desc meson8_aobus_pins[] = {
1368c2ecf20Sopenharmony_ci	MESON_PIN(GPIOAO_0),
1378c2ecf20Sopenharmony_ci	MESON_PIN(GPIOAO_1),
1388c2ecf20Sopenharmony_ci	MESON_PIN(GPIOAO_2),
1398c2ecf20Sopenharmony_ci	MESON_PIN(GPIOAO_3),
1408c2ecf20Sopenharmony_ci	MESON_PIN(GPIOAO_4),
1418c2ecf20Sopenharmony_ci	MESON_PIN(GPIOAO_5),
1428c2ecf20Sopenharmony_ci	MESON_PIN(GPIOAO_6),
1438c2ecf20Sopenharmony_ci	MESON_PIN(GPIOAO_7),
1448c2ecf20Sopenharmony_ci	MESON_PIN(GPIOAO_8),
1458c2ecf20Sopenharmony_ci	MESON_PIN(GPIOAO_9),
1468c2ecf20Sopenharmony_ci	MESON_PIN(GPIOAO_10),
1478c2ecf20Sopenharmony_ci	MESON_PIN(GPIOAO_11),
1488c2ecf20Sopenharmony_ci	MESON_PIN(GPIOAO_12),
1498c2ecf20Sopenharmony_ci	MESON_PIN(GPIOAO_13),
1508c2ecf20Sopenharmony_ci	MESON_PIN(GPIO_BSD_EN),
1518c2ecf20Sopenharmony_ci	MESON_PIN(GPIO_TEST_N),
1528c2ecf20Sopenharmony_ci};
1538c2ecf20Sopenharmony_ci
1548c2ecf20Sopenharmony_ci/* bank X */
1558c2ecf20Sopenharmony_cistatic const unsigned int sd_d0_a_pins[]	= { GPIOX_0 };
1568c2ecf20Sopenharmony_cistatic const unsigned int sd_d1_a_pins[]	= { GPIOX_1 };
1578c2ecf20Sopenharmony_cistatic const unsigned int sd_d2_a_pins[]	= { GPIOX_2 };
1588c2ecf20Sopenharmony_cistatic const unsigned int sd_d3_a_pins[]	= { GPIOX_3 };
1598c2ecf20Sopenharmony_cistatic const unsigned int sd_clk_a_pins[]	= { GPIOX_8 };
1608c2ecf20Sopenharmony_cistatic const unsigned int sd_cmd_a_pins[]	= { GPIOX_9 };
1618c2ecf20Sopenharmony_ci
1628c2ecf20Sopenharmony_cistatic const unsigned int sdxc_d0_a_pins[]	= { GPIOX_0 };
1638c2ecf20Sopenharmony_cistatic const unsigned int sdxc_d13_a_pins[]	= { GPIOX_1, GPIOX_2, GPIOX_3 };
1648c2ecf20Sopenharmony_cistatic const unsigned int sdxc_d47_a_pins[]	= { GPIOX_4, GPIOX_5, GPIOX_6,
1658c2ecf20Sopenharmony_ci						    GPIOX_7 };
1668c2ecf20Sopenharmony_cistatic const unsigned int sdxc_clk_a_pins[]	= { GPIOX_8 };
1678c2ecf20Sopenharmony_cistatic const unsigned int sdxc_cmd_a_pins[]	= { GPIOX_9 };
1688c2ecf20Sopenharmony_ci
1698c2ecf20Sopenharmony_cistatic const unsigned int pcm_out_a_pins[]	= { GPIOX_4 };
1708c2ecf20Sopenharmony_cistatic const unsigned int pcm_in_a_pins[]	= { GPIOX_5 };
1718c2ecf20Sopenharmony_cistatic const unsigned int pcm_fs_a_pins[]	= { GPIOX_6 };
1728c2ecf20Sopenharmony_cistatic const unsigned int pcm_clk_a_pins[]	= { GPIOX_7 };
1738c2ecf20Sopenharmony_ci
1748c2ecf20Sopenharmony_cistatic const unsigned int uart_tx_a0_pins[]	= { GPIOX_4 };
1758c2ecf20Sopenharmony_cistatic const unsigned int uart_rx_a0_pins[]	= { GPIOX_5 };
1768c2ecf20Sopenharmony_cistatic const unsigned int uart_cts_a0_pins[]	= { GPIOX_6 };
1778c2ecf20Sopenharmony_cistatic const unsigned int uart_rts_a0_pins[]	= { GPIOX_7 };
1788c2ecf20Sopenharmony_ci
1798c2ecf20Sopenharmony_cistatic const unsigned int uart_tx_a1_pins[]	= { GPIOX_12 };
1808c2ecf20Sopenharmony_cistatic const unsigned int uart_rx_a1_pins[]	= { GPIOX_13 };
1818c2ecf20Sopenharmony_cistatic const unsigned int uart_cts_a1_pins[]	= { GPIOX_14 };
1828c2ecf20Sopenharmony_cistatic const unsigned int uart_rts_a1_pins[]	= { GPIOX_15 };
1838c2ecf20Sopenharmony_ci
1848c2ecf20Sopenharmony_cistatic const unsigned int uart_tx_b0_pins[]	= { GPIOX_16 };
1858c2ecf20Sopenharmony_cistatic const unsigned int uart_rx_b0_pins[]	= { GPIOX_17 };
1868c2ecf20Sopenharmony_cistatic const unsigned int uart_cts_b0_pins[]	= { GPIOX_18 };
1878c2ecf20Sopenharmony_cistatic const unsigned int uart_rts_b0_pins[]	= { GPIOX_19 };
1888c2ecf20Sopenharmony_ci
1898c2ecf20Sopenharmony_cistatic const unsigned int iso7816_det_pins[]	= { GPIOX_16 };
1908c2ecf20Sopenharmony_cistatic const unsigned int iso7816_reset_pins[]	= { GPIOX_17 };
1918c2ecf20Sopenharmony_cistatic const unsigned int iso7816_clk_pins[]	= { GPIOX_18 };
1928c2ecf20Sopenharmony_cistatic const unsigned int iso7816_data_pins[]	= { GPIOX_19 };
1938c2ecf20Sopenharmony_ci
1948c2ecf20Sopenharmony_cistatic const unsigned int i2c_sda_d0_pins[]	= { GPIOX_16 };
1958c2ecf20Sopenharmony_cistatic const unsigned int i2c_sck_d0_pins[]	= { GPIOX_17 };
1968c2ecf20Sopenharmony_ci
1978c2ecf20Sopenharmony_cistatic const unsigned int xtal_32k_out_pins[]	= { GPIOX_10 };
1988c2ecf20Sopenharmony_cistatic const unsigned int xtal_24m_out_pins[]	= { GPIOX_11 };
1998c2ecf20Sopenharmony_ci
2008c2ecf20Sopenharmony_cistatic const unsigned int pwm_e_pins[]		= { GPIOX_10 };
2018c2ecf20Sopenharmony_cistatic const unsigned int pwm_b_x_pins[]	= { GPIOX_11 };
2028c2ecf20Sopenharmony_ci
2038c2ecf20Sopenharmony_ci/* bank Y */
2048c2ecf20Sopenharmony_cistatic const unsigned int uart_tx_c_pins[]	= { GPIOY_0 };
2058c2ecf20Sopenharmony_cistatic const unsigned int uart_rx_c_pins[]	= { GPIOY_1 };
2068c2ecf20Sopenharmony_cistatic const unsigned int uart_cts_c_pins[]	= { GPIOY_2 };
2078c2ecf20Sopenharmony_cistatic const unsigned int uart_rts_c_pins[]	= { GPIOY_3 };
2088c2ecf20Sopenharmony_ci
2098c2ecf20Sopenharmony_cistatic const unsigned int pcm_out_b_pins[]	= { GPIOY_4 };
2108c2ecf20Sopenharmony_cistatic const unsigned int pcm_in_b_pins[]	= { GPIOY_5 };
2118c2ecf20Sopenharmony_cistatic const unsigned int pcm_fs_b_pins[]	= { GPIOY_6 };
2128c2ecf20Sopenharmony_cistatic const unsigned int pcm_clk_b_pins[]	= { GPIOY_7 };
2138c2ecf20Sopenharmony_ci
2148c2ecf20Sopenharmony_cistatic const unsigned int i2c_sda_c0_pins[]	= { GPIOY_0 };
2158c2ecf20Sopenharmony_cistatic const unsigned int i2c_sck_c0_pins[]	= { GPIOY_1 };
2168c2ecf20Sopenharmony_ci
2178c2ecf20Sopenharmony_cistatic const unsigned int pwm_a_y_pins[]	= { GPIOY_16 };
2188c2ecf20Sopenharmony_ci
2198c2ecf20Sopenharmony_cistatic const unsigned int i2s_out_ch45_pins[]	= { GPIOY_0 };
2208c2ecf20Sopenharmony_cistatic const unsigned int i2s_out_ch23_pins[]	= { GPIOY_1 };
2218c2ecf20Sopenharmony_cistatic const unsigned int i2s_out_ch01_pins[]	= { GPIOY_4 };
2228c2ecf20Sopenharmony_cistatic const unsigned int i2s_in_ch01_pins[]	= { GPIOY_5 };
2238c2ecf20Sopenharmony_cistatic const unsigned int i2s_lr_clk_in_pins[]	= { GPIOY_6 };
2248c2ecf20Sopenharmony_cistatic const unsigned int i2s_ao_clk_in_pins[]	= { GPIOY_7 };
2258c2ecf20Sopenharmony_cistatic const unsigned int i2s_am_clk_pins[]	= { GPIOY_8 };
2268c2ecf20Sopenharmony_cistatic const unsigned int i2s_out_ch78_pins[]	= { GPIOY_9 };
2278c2ecf20Sopenharmony_ci
2288c2ecf20Sopenharmony_cistatic const unsigned int spdif_in_pins[]	= { GPIOY_2 };
2298c2ecf20Sopenharmony_cistatic const unsigned int spdif_out_pins[]	= { GPIOY_3 };
2308c2ecf20Sopenharmony_ci
2318c2ecf20Sopenharmony_ci/* bank DV */
2328c2ecf20Sopenharmony_cistatic const unsigned int dvin_rgb_pins[] = {
2338c2ecf20Sopenharmony_ci	GPIODV_0, GPIODV_1, GPIODV_2, GPIODV_3, GPIODV_4, GPIODV_5,
2348c2ecf20Sopenharmony_ci	GPIODV_6, GPIODV_7, GPIODV_8, GPIODV_9, GPIODV_10, GPIODV_11,
2358c2ecf20Sopenharmony_ci	GPIODV_12, GPIODV_13, GPIODV_14, GPIODV_15, GPIODV_16, GPIODV_17,
2368c2ecf20Sopenharmony_ci	GPIODV_18, GPIODV_19, GPIODV_20, GPIODV_21, GPIODV_22, GPIODV_23
2378c2ecf20Sopenharmony_ci};
2388c2ecf20Sopenharmony_cistatic const unsigned int dvin_vs_pins[]	= { GPIODV_24 };
2398c2ecf20Sopenharmony_cistatic const unsigned int dvin_hs_pins[]	= { GPIODV_25 };
2408c2ecf20Sopenharmony_cistatic const unsigned int dvin_clk_pins[]	= { GPIODV_26 };
2418c2ecf20Sopenharmony_cistatic const unsigned int dvin_de_pins[]	= { GPIODV_27 };
2428c2ecf20Sopenharmony_ci
2438c2ecf20Sopenharmony_cistatic const unsigned int enc_0_pins[]		= { GPIODV_0 };
2448c2ecf20Sopenharmony_cistatic const unsigned int enc_1_pins[]		= { GPIODV_1 };
2458c2ecf20Sopenharmony_cistatic const unsigned int enc_2_pins[]		= { GPIODV_2 };
2468c2ecf20Sopenharmony_cistatic const unsigned int enc_3_pins[]		= { GPIODV_3 };
2478c2ecf20Sopenharmony_cistatic const unsigned int enc_4_pins[]		= { GPIODV_4 };
2488c2ecf20Sopenharmony_cistatic const unsigned int enc_5_pins[]		= { GPIODV_5 };
2498c2ecf20Sopenharmony_cistatic const unsigned int enc_6_pins[]		= { GPIODV_6 };
2508c2ecf20Sopenharmony_cistatic const unsigned int enc_7_pins[]		= { GPIODV_7 };
2518c2ecf20Sopenharmony_cistatic const unsigned int enc_8_pins[]		= { GPIODV_8 };
2528c2ecf20Sopenharmony_cistatic const unsigned int enc_9_pins[]		= { GPIODV_9 };
2538c2ecf20Sopenharmony_cistatic const unsigned int enc_10_pins[]		= { GPIODV_10 };
2548c2ecf20Sopenharmony_cistatic const unsigned int enc_11_pins[]		= { GPIODV_11 };
2558c2ecf20Sopenharmony_cistatic const unsigned int enc_12_pins[]		= { GPIODV_12 };
2568c2ecf20Sopenharmony_cistatic const unsigned int enc_13_pins[]		= { GPIODV_13 };
2578c2ecf20Sopenharmony_cistatic const unsigned int enc_14_pins[]		= { GPIODV_14 };
2588c2ecf20Sopenharmony_cistatic const unsigned int enc_15_pins[]		= { GPIODV_15 };
2598c2ecf20Sopenharmony_cistatic const unsigned int enc_16_pins[]		= { GPIODV_16 };
2608c2ecf20Sopenharmony_cistatic const unsigned int enc_17_pins[]		= { GPIODV_17 };
2618c2ecf20Sopenharmony_ci
2628c2ecf20Sopenharmony_cistatic const unsigned int uart_tx_b1_pins[]	= { GPIODV_24 };
2638c2ecf20Sopenharmony_cistatic const unsigned int uart_rx_b1_pins[]	= { GPIODV_25 };
2648c2ecf20Sopenharmony_cistatic const unsigned int uart_cts_b1_pins[]	= { GPIODV_26 };
2658c2ecf20Sopenharmony_cistatic const unsigned int uart_rts_b1_pins[]	= { GPIODV_27 };
2668c2ecf20Sopenharmony_ci
2678c2ecf20Sopenharmony_cistatic const unsigned int vga_vs_pins[]		= { GPIODV_24 };
2688c2ecf20Sopenharmony_cistatic const unsigned int vga_hs_pins[]		= { GPIODV_25 };
2698c2ecf20Sopenharmony_ci
2708c2ecf20Sopenharmony_cistatic const unsigned int pwm_c_dv9_pins[]	= { GPIODV_9 };
2718c2ecf20Sopenharmony_cistatic const unsigned int pwm_c_dv29_pins[]	= { GPIODV_29 };
2728c2ecf20Sopenharmony_cistatic const unsigned int pwm_d_pins[]		= { GPIODV_28 };
2738c2ecf20Sopenharmony_ci
2748c2ecf20Sopenharmony_ci/* bank H */
2758c2ecf20Sopenharmony_cistatic const unsigned int hdmi_hpd_pins[]	= { GPIOH_0 };
2768c2ecf20Sopenharmony_cistatic const unsigned int hdmi_sda_pins[]	= { GPIOH_1 };
2778c2ecf20Sopenharmony_cistatic const unsigned int hdmi_scl_pins[]	= { GPIOH_2 };
2788c2ecf20Sopenharmony_cistatic const unsigned int hdmi_cec_pins[]	= { GPIOH_3 };
2798c2ecf20Sopenharmony_ci
2808c2ecf20Sopenharmony_cistatic const unsigned int spi_ss0_0_pins[]	= { GPIOH_3 };
2818c2ecf20Sopenharmony_cistatic const unsigned int spi_miso_0_pins[]	= { GPIOH_4 };
2828c2ecf20Sopenharmony_cistatic const unsigned int spi_mosi_0_pins[]	= { GPIOH_5 };
2838c2ecf20Sopenharmony_cistatic const unsigned int spi_sclk_0_pins[]	= { GPIOH_6 };
2848c2ecf20Sopenharmony_ci
2858c2ecf20Sopenharmony_cistatic const unsigned int i2c_sda_d1_pins[]	= { GPIOH_7 };
2868c2ecf20Sopenharmony_cistatic const unsigned int i2c_sck_d1_pins[]	= { GPIOH_8 };
2878c2ecf20Sopenharmony_ci
2888c2ecf20Sopenharmony_ci/* bank Z */
2898c2ecf20Sopenharmony_cistatic const unsigned int spi_ss0_1_pins[]	= { GPIOZ_9 };
2908c2ecf20Sopenharmony_cistatic const unsigned int spi_ss1_1_pins[]	= { GPIOZ_10 };
2918c2ecf20Sopenharmony_cistatic const unsigned int spi_sclk_1_pins[]	= { GPIOZ_11 };
2928c2ecf20Sopenharmony_cistatic const unsigned int spi_mosi_1_pins[]	= { GPIOZ_12 };
2938c2ecf20Sopenharmony_cistatic const unsigned int spi_miso_1_pins[]	= { GPIOZ_13 };
2948c2ecf20Sopenharmony_cistatic const unsigned int spi_ss2_1_pins[]	= { GPIOZ_14 };
2958c2ecf20Sopenharmony_ci
2968c2ecf20Sopenharmony_cistatic const unsigned int eth_txd3_pins[]	= { GPIOZ_0 };
2978c2ecf20Sopenharmony_cistatic const unsigned int eth_txd2_pins[]	= { GPIOZ_1 };
2988c2ecf20Sopenharmony_cistatic const unsigned int eth_rxd3_pins[]	= { GPIOZ_2 };
2998c2ecf20Sopenharmony_cistatic const unsigned int eth_rxd2_pins[]	= { GPIOZ_3 };
3008c2ecf20Sopenharmony_cistatic const unsigned int eth_tx_clk_50m_pins[]	= { GPIOZ_4 };
3018c2ecf20Sopenharmony_cistatic const unsigned int eth_tx_en_pins[]	= { GPIOZ_5 };
3028c2ecf20Sopenharmony_cistatic const unsigned int eth_txd1_pins[]	= { GPIOZ_6 };
3038c2ecf20Sopenharmony_cistatic const unsigned int eth_txd0_pins[]	= { GPIOZ_7 };
3048c2ecf20Sopenharmony_cistatic const unsigned int eth_rx_clk_in_pins[]	= { GPIOZ_8 };
3058c2ecf20Sopenharmony_cistatic const unsigned int eth_rx_dv_pins[]	= { GPIOZ_9 };
3068c2ecf20Sopenharmony_cistatic const unsigned int eth_rxd1_pins[]	= { GPIOZ_10 };
3078c2ecf20Sopenharmony_cistatic const unsigned int eth_rxd0_pins[]	= { GPIOZ_11 };
3088c2ecf20Sopenharmony_cistatic const unsigned int eth_mdio_pins[]	= { GPIOZ_12 };
3098c2ecf20Sopenharmony_cistatic const unsigned int eth_mdc_pins[]	= { GPIOZ_13 };
3108c2ecf20Sopenharmony_ci
3118c2ecf20Sopenharmony_cistatic const unsigned int i2c_sda_a0_pins[]	= { GPIOZ_0 };
3128c2ecf20Sopenharmony_cistatic const unsigned int i2c_sck_a0_pins[]	= { GPIOZ_1 };
3138c2ecf20Sopenharmony_ci
3148c2ecf20Sopenharmony_cistatic const unsigned int i2c_sda_b_pins[]	= { GPIOZ_2 };
3158c2ecf20Sopenharmony_cistatic const unsigned int i2c_sck_b_pins[]	= { GPIOZ_3 };
3168c2ecf20Sopenharmony_ci
3178c2ecf20Sopenharmony_cistatic const unsigned int i2c_sda_c1_pins[]	= { GPIOZ_4 };
3188c2ecf20Sopenharmony_cistatic const unsigned int i2c_sck_c1_pins[]	= { GPIOZ_5 };
3198c2ecf20Sopenharmony_ci
3208c2ecf20Sopenharmony_cistatic const unsigned int i2c_sda_a1_pins[]	= { GPIOZ_0 };
3218c2ecf20Sopenharmony_cistatic const unsigned int i2c_sck_a1_pins[]	= { GPIOZ_1 };
3228c2ecf20Sopenharmony_ci
3238c2ecf20Sopenharmony_cistatic const unsigned int i2c_sda_a2_pins[]	= { GPIOZ_0 };
3248c2ecf20Sopenharmony_cistatic const unsigned int i2c_sck_a2_pins[]	= { GPIOZ_1 };
3258c2ecf20Sopenharmony_ci
3268c2ecf20Sopenharmony_cistatic const unsigned int pwm_a_z0_pins[]	= { GPIOZ_0 };
3278c2ecf20Sopenharmony_cistatic const unsigned int pwm_a_z7_pins[]	= { GPIOZ_7 };
3288c2ecf20Sopenharmony_cistatic const unsigned int pwm_b_z_pins[]	= { GPIOZ_1 };
3298c2ecf20Sopenharmony_cistatic const unsigned int pwm_c_z_pins[]	= { GPIOZ_8 };
3308c2ecf20Sopenharmony_ci
3318c2ecf20Sopenharmony_ci/* bank BOOT */
3328c2ecf20Sopenharmony_cistatic const unsigned int sd_d0_c_pins[]	= { BOOT_0 };
3338c2ecf20Sopenharmony_cistatic const unsigned int sd_d1_c_pins[]	= { BOOT_1 };
3348c2ecf20Sopenharmony_cistatic const unsigned int sd_d2_c_pins[]	= { BOOT_2 };
3358c2ecf20Sopenharmony_cistatic const unsigned int sd_d3_c_pins[]	= { BOOT_3 };
3368c2ecf20Sopenharmony_cistatic const unsigned int sd_cmd_c_pins[]	= { BOOT_16 };
3378c2ecf20Sopenharmony_cistatic const unsigned int sd_clk_c_pins[]	= { BOOT_17 };
3388c2ecf20Sopenharmony_ci
3398c2ecf20Sopenharmony_cistatic const unsigned int sdxc_d0_c_pins[]	= { BOOT_0};
3408c2ecf20Sopenharmony_cistatic const unsigned int sdxc_d13_c_pins[]	= { BOOT_1, BOOT_2, BOOT_3 };
3418c2ecf20Sopenharmony_cistatic const unsigned int sdxc_d47_c_pins[]	= { BOOT_4, BOOT_5, BOOT_6,
3428c2ecf20Sopenharmony_ci						    BOOT_7 };
3438c2ecf20Sopenharmony_cistatic const unsigned int sdxc_cmd_c_pins[]	= { BOOT_16 };
3448c2ecf20Sopenharmony_cistatic const unsigned int sdxc_clk_c_pins[]	= { BOOT_17 };
3458c2ecf20Sopenharmony_ci
3468c2ecf20Sopenharmony_cistatic const unsigned int nand_io_pins[] = {
3478c2ecf20Sopenharmony_ci	BOOT_0, BOOT_1, BOOT_2, BOOT_3, BOOT_4, BOOT_5, BOOT_6, BOOT_7
3488c2ecf20Sopenharmony_ci};
3498c2ecf20Sopenharmony_cistatic const unsigned int nand_io_ce0_pins[]	= { BOOT_8 };
3508c2ecf20Sopenharmony_cistatic const unsigned int nand_io_ce1_pins[]	= { BOOT_9 };
3518c2ecf20Sopenharmony_cistatic const unsigned int nand_io_rb0_pins[]	= { BOOT_10 };
3528c2ecf20Sopenharmony_cistatic const unsigned int nand_ale_pins[]	= { BOOT_11 };
3538c2ecf20Sopenharmony_cistatic const unsigned int nand_cle_pins[]	= { BOOT_12 };
3548c2ecf20Sopenharmony_cistatic const unsigned int nand_wen_clk_pins[]	= { BOOT_13 };
3558c2ecf20Sopenharmony_cistatic const unsigned int nand_ren_clk_pins[]	= { BOOT_14 };
3568c2ecf20Sopenharmony_cistatic const unsigned int nand_dqs_pins[]	= { BOOT_15 };
3578c2ecf20Sopenharmony_cistatic const unsigned int nand_ce2_pins[]	= { BOOT_16 };
3588c2ecf20Sopenharmony_cistatic const unsigned int nand_ce3_pins[]	= { BOOT_17 };
3598c2ecf20Sopenharmony_ci
3608c2ecf20Sopenharmony_cistatic const unsigned int nor_d_pins[]		= { BOOT_11 };
3618c2ecf20Sopenharmony_cistatic const unsigned int nor_q_pins[]		= { BOOT_12 };
3628c2ecf20Sopenharmony_cistatic const unsigned int nor_c_pins[]		= { BOOT_13 };
3638c2ecf20Sopenharmony_cistatic const unsigned int nor_cs_pins[]		= { BOOT_18 };
3648c2ecf20Sopenharmony_ci
3658c2ecf20Sopenharmony_ci/* bank CARD */
3668c2ecf20Sopenharmony_cistatic const unsigned int sd_d1_b_pins[]	= { CARD_0 };
3678c2ecf20Sopenharmony_cistatic const unsigned int sd_d0_b_pins[]	= { CARD_1 };
3688c2ecf20Sopenharmony_cistatic const unsigned int sd_clk_b_pins[]	= { CARD_2 };
3698c2ecf20Sopenharmony_cistatic const unsigned int sd_cmd_b_pins[]	= { CARD_3 };
3708c2ecf20Sopenharmony_cistatic const unsigned int sd_d3_b_pins[]	= { CARD_4 };
3718c2ecf20Sopenharmony_cistatic const unsigned int sd_d2_b_pins[]	= { CARD_5 };
3728c2ecf20Sopenharmony_ci
3738c2ecf20Sopenharmony_cistatic const unsigned int sdxc_d13_b_pins[]	= { CARD_0, CARD_4, CARD_5 };
3748c2ecf20Sopenharmony_cistatic const unsigned int sdxc_d0_b_pins[]	= { CARD_1 };
3758c2ecf20Sopenharmony_cistatic const unsigned int sdxc_clk_b_pins[]	= { CARD_2 };
3768c2ecf20Sopenharmony_cistatic const unsigned int sdxc_cmd_b_pins[]	= { CARD_3 };
3778c2ecf20Sopenharmony_ci
3788c2ecf20Sopenharmony_ci/* bank AO */
3798c2ecf20Sopenharmony_cistatic const unsigned int uart_tx_ao_a_pins[]	= { GPIOAO_0 };
3808c2ecf20Sopenharmony_cistatic const unsigned int uart_rx_ao_a_pins[]	= { GPIOAO_1 };
3818c2ecf20Sopenharmony_cistatic const unsigned int uart_cts_ao_a_pins[]	= { GPIOAO_2 };
3828c2ecf20Sopenharmony_cistatic const unsigned int uart_rts_ao_a_pins[]	= { GPIOAO_3 };
3838c2ecf20Sopenharmony_ci
3848c2ecf20Sopenharmony_cistatic const unsigned int remote_input_pins[]	= { GPIOAO_7 };
3858c2ecf20Sopenharmony_cistatic const unsigned int remote_output_ao_pins[] = { GPIOAO_13 };
3868c2ecf20Sopenharmony_ci
3878c2ecf20Sopenharmony_cistatic const unsigned int i2c_slave_sck_ao_pins[] = { GPIOAO_4 };
3888c2ecf20Sopenharmony_cistatic const unsigned int i2c_slave_sda_ao_pins[] = { GPIOAO_5 };
3898c2ecf20Sopenharmony_ci
3908c2ecf20Sopenharmony_cistatic const unsigned int uart_tx_ao_b0_pins[]	= { GPIOAO_0 };
3918c2ecf20Sopenharmony_cistatic const unsigned int uart_rx_ao_b0_pins[]	= { GPIOAO_1 };
3928c2ecf20Sopenharmony_ci
3938c2ecf20Sopenharmony_cistatic const unsigned int uart_tx_ao_b1_pins[]	= { GPIOAO_4 };
3948c2ecf20Sopenharmony_cistatic const unsigned int uart_rx_ao_b1_pins[]	= { GPIOAO_5 };
3958c2ecf20Sopenharmony_ci
3968c2ecf20Sopenharmony_cistatic const unsigned int i2c_mst_sck_ao_pins[]	= { GPIOAO_4 };
3978c2ecf20Sopenharmony_cistatic const unsigned int i2c_mst_sda_ao_pins[]	= { GPIOAO_5 };
3988c2ecf20Sopenharmony_ci
3998c2ecf20Sopenharmony_cistatic const unsigned int pwm_f_ao_pins[]	= { GPIO_TEST_N };
4008c2ecf20Sopenharmony_ci
4018c2ecf20Sopenharmony_cistatic const unsigned int i2s_am_clk_out_ao_pins[] = { GPIOAO_8 };
4028c2ecf20Sopenharmony_cistatic const unsigned int i2s_ao_clk_out_ao_pins[] = { GPIOAO_9 };
4038c2ecf20Sopenharmony_cistatic const unsigned int i2s_lr_clk_out_ao_pins[] = { GPIOAO_10 };
4048c2ecf20Sopenharmony_cistatic const unsigned int i2s_out_ch01_ao_pins[] = { GPIOAO_11 };
4058c2ecf20Sopenharmony_ci
4068c2ecf20Sopenharmony_cistatic const unsigned int hdmi_cec_ao_pins[]	= { GPIOAO_12 };
4078c2ecf20Sopenharmony_ci
4088c2ecf20Sopenharmony_cistatic struct meson_pmx_group meson8_cbus_groups[] = {
4098c2ecf20Sopenharmony_ci	GPIO_GROUP(GPIOX_0),
4108c2ecf20Sopenharmony_ci	GPIO_GROUP(GPIOX_1),
4118c2ecf20Sopenharmony_ci	GPIO_GROUP(GPIOX_2),
4128c2ecf20Sopenharmony_ci	GPIO_GROUP(GPIOX_3),
4138c2ecf20Sopenharmony_ci	GPIO_GROUP(GPIOX_4),
4148c2ecf20Sopenharmony_ci	GPIO_GROUP(GPIOX_5),
4158c2ecf20Sopenharmony_ci	GPIO_GROUP(GPIOX_6),
4168c2ecf20Sopenharmony_ci	GPIO_GROUP(GPIOX_7),
4178c2ecf20Sopenharmony_ci	GPIO_GROUP(GPIOX_8),
4188c2ecf20Sopenharmony_ci	GPIO_GROUP(GPIOX_9),
4198c2ecf20Sopenharmony_ci	GPIO_GROUP(GPIOX_10),
4208c2ecf20Sopenharmony_ci	GPIO_GROUP(GPIOX_11),
4218c2ecf20Sopenharmony_ci	GPIO_GROUP(GPIOX_12),
4228c2ecf20Sopenharmony_ci	GPIO_GROUP(GPIOX_13),
4238c2ecf20Sopenharmony_ci	GPIO_GROUP(GPIOX_14),
4248c2ecf20Sopenharmony_ci	GPIO_GROUP(GPIOX_15),
4258c2ecf20Sopenharmony_ci	GPIO_GROUP(GPIOX_16),
4268c2ecf20Sopenharmony_ci	GPIO_GROUP(GPIOX_17),
4278c2ecf20Sopenharmony_ci	GPIO_GROUP(GPIOX_18),
4288c2ecf20Sopenharmony_ci	GPIO_GROUP(GPIOX_19),
4298c2ecf20Sopenharmony_ci	GPIO_GROUP(GPIOX_20),
4308c2ecf20Sopenharmony_ci	GPIO_GROUP(GPIOX_21),
4318c2ecf20Sopenharmony_ci	GPIO_GROUP(GPIOY_0),
4328c2ecf20Sopenharmony_ci	GPIO_GROUP(GPIOY_1),
4338c2ecf20Sopenharmony_ci	GPIO_GROUP(GPIOY_2),
4348c2ecf20Sopenharmony_ci	GPIO_GROUP(GPIOY_3),
4358c2ecf20Sopenharmony_ci	GPIO_GROUP(GPIOY_4),
4368c2ecf20Sopenharmony_ci	GPIO_GROUP(GPIOY_5),
4378c2ecf20Sopenharmony_ci	GPIO_GROUP(GPIOY_6),
4388c2ecf20Sopenharmony_ci	GPIO_GROUP(GPIOY_7),
4398c2ecf20Sopenharmony_ci	GPIO_GROUP(GPIOY_8),
4408c2ecf20Sopenharmony_ci	GPIO_GROUP(GPIOY_9),
4418c2ecf20Sopenharmony_ci	GPIO_GROUP(GPIOY_10),
4428c2ecf20Sopenharmony_ci	GPIO_GROUP(GPIOY_11),
4438c2ecf20Sopenharmony_ci	GPIO_GROUP(GPIOY_12),
4448c2ecf20Sopenharmony_ci	GPIO_GROUP(GPIOY_13),
4458c2ecf20Sopenharmony_ci	GPIO_GROUP(GPIOY_14),
4468c2ecf20Sopenharmony_ci	GPIO_GROUP(GPIOY_15),
4478c2ecf20Sopenharmony_ci	GPIO_GROUP(GPIOY_16),
4488c2ecf20Sopenharmony_ci	GPIO_GROUP(GPIODV_0),
4498c2ecf20Sopenharmony_ci	GPIO_GROUP(GPIODV_1),
4508c2ecf20Sopenharmony_ci	GPIO_GROUP(GPIODV_2),
4518c2ecf20Sopenharmony_ci	GPIO_GROUP(GPIODV_3),
4528c2ecf20Sopenharmony_ci	GPIO_GROUP(GPIODV_4),
4538c2ecf20Sopenharmony_ci	GPIO_GROUP(GPIODV_5),
4548c2ecf20Sopenharmony_ci	GPIO_GROUP(GPIODV_6),
4558c2ecf20Sopenharmony_ci	GPIO_GROUP(GPIODV_7),
4568c2ecf20Sopenharmony_ci	GPIO_GROUP(GPIODV_8),
4578c2ecf20Sopenharmony_ci	GPIO_GROUP(GPIODV_9),
4588c2ecf20Sopenharmony_ci	GPIO_GROUP(GPIODV_10),
4598c2ecf20Sopenharmony_ci	GPIO_GROUP(GPIODV_11),
4608c2ecf20Sopenharmony_ci	GPIO_GROUP(GPIODV_12),
4618c2ecf20Sopenharmony_ci	GPIO_GROUP(GPIODV_13),
4628c2ecf20Sopenharmony_ci	GPIO_GROUP(GPIODV_14),
4638c2ecf20Sopenharmony_ci	GPIO_GROUP(GPIODV_15),
4648c2ecf20Sopenharmony_ci	GPIO_GROUP(GPIODV_16),
4658c2ecf20Sopenharmony_ci	GPIO_GROUP(GPIODV_17),
4668c2ecf20Sopenharmony_ci	GPIO_GROUP(GPIODV_18),
4678c2ecf20Sopenharmony_ci	GPIO_GROUP(GPIODV_19),
4688c2ecf20Sopenharmony_ci	GPIO_GROUP(GPIODV_20),
4698c2ecf20Sopenharmony_ci	GPIO_GROUP(GPIODV_21),
4708c2ecf20Sopenharmony_ci	GPIO_GROUP(GPIODV_22),
4718c2ecf20Sopenharmony_ci	GPIO_GROUP(GPIODV_23),
4728c2ecf20Sopenharmony_ci	GPIO_GROUP(GPIODV_24),
4738c2ecf20Sopenharmony_ci	GPIO_GROUP(GPIODV_25),
4748c2ecf20Sopenharmony_ci	GPIO_GROUP(GPIODV_26),
4758c2ecf20Sopenharmony_ci	GPIO_GROUP(GPIODV_27),
4768c2ecf20Sopenharmony_ci	GPIO_GROUP(GPIODV_28),
4778c2ecf20Sopenharmony_ci	GPIO_GROUP(GPIODV_29),
4788c2ecf20Sopenharmony_ci	GPIO_GROUP(GPIOH_0),
4798c2ecf20Sopenharmony_ci	GPIO_GROUP(GPIOH_1),
4808c2ecf20Sopenharmony_ci	GPIO_GROUP(GPIOH_2),
4818c2ecf20Sopenharmony_ci	GPIO_GROUP(GPIOH_3),
4828c2ecf20Sopenharmony_ci	GPIO_GROUP(GPIOH_4),
4838c2ecf20Sopenharmony_ci	GPIO_GROUP(GPIOH_5),
4848c2ecf20Sopenharmony_ci	GPIO_GROUP(GPIOH_6),
4858c2ecf20Sopenharmony_ci	GPIO_GROUP(GPIOH_7),
4868c2ecf20Sopenharmony_ci	GPIO_GROUP(GPIOH_8),
4878c2ecf20Sopenharmony_ci	GPIO_GROUP(GPIOH_9),
4888c2ecf20Sopenharmony_ci	GPIO_GROUP(GPIOZ_0),
4898c2ecf20Sopenharmony_ci	GPIO_GROUP(GPIOZ_1),
4908c2ecf20Sopenharmony_ci	GPIO_GROUP(GPIOZ_2),
4918c2ecf20Sopenharmony_ci	GPIO_GROUP(GPIOZ_3),
4928c2ecf20Sopenharmony_ci	GPIO_GROUP(GPIOZ_4),
4938c2ecf20Sopenharmony_ci	GPIO_GROUP(GPIOZ_5),
4948c2ecf20Sopenharmony_ci	GPIO_GROUP(GPIOZ_6),
4958c2ecf20Sopenharmony_ci	GPIO_GROUP(GPIOZ_7),
4968c2ecf20Sopenharmony_ci	GPIO_GROUP(GPIOZ_8),
4978c2ecf20Sopenharmony_ci	GPIO_GROUP(GPIOZ_9),
4988c2ecf20Sopenharmony_ci	GPIO_GROUP(GPIOZ_10),
4998c2ecf20Sopenharmony_ci	GPIO_GROUP(GPIOZ_11),
5008c2ecf20Sopenharmony_ci	GPIO_GROUP(GPIOZ_12),
5018c2ecf20Sopenharmony_ci	GPIO_GROUP(GPIOZ_13),
5028c2ecf20Sopenharmony_ci	GPIO_GROUP(GPIOZ_14),
5038c2ecf20Sopenharmony_ci	GPIO_GROUP(CARD_0),
5048c2ecf20Sopenharmony_ci	GPIO_GROUP(CARD_1),
5058c2ecf20Sopenharmony_ci	GPIO_GROUP(CARD_2),
5068c2ecf20Sopenharmony_ci	GPIO_GROUP(CARD_3),
5078c2ecf20Sopenharmony_ci	GPIO_GROUP(CARD_4),
5088c2ecf20Sopenharmony_ci	GPIO_GROUP(CARD_5),
5098c2ecf20Sopenharmony_ci	GPIO_GROUP(CARD_6),
5108c2ecf20Sopenharmony_ci	GPIO_GROUP(BOOT_0),
5118c2ecf20Sopenharmony_ci	GPIO_GROUP(BOOT_1),
5128c2ecf20Sopenharmony_ci	GPIO_GROUP(BOOT_2),
5138c2ecf20Sopenharmony_ci	GPIO_GROUP(BOOT_3),
5148c2ecf20Sopenharmony_ci	GPIO_GROUP(BOOT_4),
5158c2ecf20Sopenharmony_ci	GPIO_GROUP(BOOT_5),
5168c2ecf20Sopenharmony_ci	GPIO_GROUP(BOOT_6),
5178c2ecf20Sopenharmony_ci	GPIO_GROUP(BOOT_7),
5188c2ecf20Sopenharmony_ci	GPIO_GROUP(BOOT_8),
5198c2ecf20Sopenharmony_ci	GPIO_GROUP(BOOT_9),
5208c2ecf20Sopenharmony_ci	GPIO_GROUP(BOOT_10),
5218c2ecf20Sopenharmony_ci	GPIO_GROUP(BOOT_11),
5228c2ecf20Sopenharmony_ci	GPIO_GROUP(BOOT_12),
5238c2ecf20Sopenharmony_ci	GPIO_GROUP(BOOT_13),
5248c2ecf20Sopenharmony_ci	GPIO_GROUP(BOOT_14),
5258c2ecf20Sopenharmony_ci	GPIO_GROUP(BOOT_15),
5268c2ecf20Sopenharmony_ci	GPIO_GROUP(BOOT_16),
5278c2ecf20Sopenharmony_ci	GPIO_GROUP(BOOT_17),
5288c2ecf20Sopenharmony_ci	GPIO_GROUP(BOOT_18),
5298c2ecf20Sopenharmony_ci
5308c2ecf20Sopenharmony_ci	/* bank X */
5318c2ecf20Sopenharmony_ci	GROUP(sd_d0_a,		8,	5),
5328c2ecf20Sopenharmony_ci	GROUP(sd_d1_a,		8,	4),
5338c2ecf20Sopenharmony_ci	GROUP(sd_d2_a,		8,	3),
5348c2ecf20Sopenharmony_ci	GROUP(sd_d3_a,		8,	2),
5358c2ecf20Sopenharmony_ci	GROUP(sd_clk_a,		8,	1),
5368c2ecf20Sopenharmony_ci	GROUP(sd_cmd_a,		8,	0),
5378c2ecf20Sopenharmony_ci
5388c2ecf20Sopenharmony_ci	GROUP(sdxc_d0_a,	5,	14),
5398c2ecf20Sopenharmony_ci	GROUP(sdxc_d13_a,	5,	13),
5408c2ecf20Sopenharmony_ci	GROUP(sdxc_d47_a,	5,	12),
5418c2ecf20Sopenharmony_ci	GROUP(sdxc_clk_a,	5,	11),
5428c2ecf20Sopenharmony_ci	GROUP(sdxc_cmd_a,	5,	10),
5438c2ecf20Sopenharmony_ci
5448c2ecf20Sopenharmony_ci	GROUP(pcm_out_a,	3,	30),
5458c2ecf20Sopenharmony_ci	GROUP(pcm_in_a,		3,	29),
5468c2ecf20Sopenharmony_ci	GROUP(pcm_fs_a,		3,	28),
5478c2ecf20Sopenharmony_ci	GROUP(pcm_clk_a,	3,	27),
5488c2ecf20Sopenharmony_ci
5498c2ecf20Sopenharmony_ci	GROUP(uart_tx_a0,	4,	17),
5508c2ecf20Sopenharmony_ci	GROUP(uart_rx_a0,	4,	16),
5518c2ecf20Sopenharmony_ci	GROUP(uart_cts_a0,	4,	15),
5528c2ecf20Sopenharmony_ci	GROUP(uart_rts_a0,	4,	14),
5538c2ecf20Sopenharmony_ci
5548c2ecf20Sopenharmony_ci	GROUP(uart_tx_a1,	4,	13),
5558c2ecf20Sopenharmony_ci	GROUP(uart_rx_a1,	4,	12),
5568c2ecf20Sopenharmony_ci	GROUP(uart_cts_a1,	4,	11),
5578c2ecf20Sopenharmony_ci	GROUP(uart_rts_a1,	4,	10),
5588c2ecf20Sopenharmony_ci
5598c2ecf20Sopenharmony_ci	GROUP(uart_tx_b0,	4,	9),
5608c2ecf20Sopenharmony_ci	GROUP(uart_rx_b0,	4,	8),
5618c2ecf20Sopenharmony_ci	GROUP(uart_cts_b0,	4,	7),
5628c2ecf20Sopenharmony_ci	GROUP(uart_rts_b0,	4,	6),
5638c2ecf20Sopenharmony_ci
5648c2ecf20Sopenharmony_ci	GROUP(iso7816_det,	4,	21),
5658c2ecf20Sopenharmony_ci	GROUP(iso7816_reset,	4,	20),
5668c2ecf20Sopenharmony_ci	GROUP(iso7816_clk,	4,	19),
5678c2ecf20Sopenharmony_ci	GROUP(iso7816_data,	4,	18),
5688c2ecf20Sopenharmony_ci
5698c2ecf20Sopenharmony_ci	GROUP(i2c_sda_d0,	4,	5),
5708c2ecf20Sopenharmony_ci	GROUP(i2c_sck_d0,	4,	4),
5718c2ecf20Sopenharmony_ci
5728c2ecf20Sopenharmony_ci	GROUP(xtal_32k_out,	3,	22),
5738c2ecf20Sopenharmony_ci	GROUP(xtal_24m_out,	3,	23),
5748c2ecf20Sopenharmony_ci
5758c2ecf20Sopenharmony_ci	GROUP(pwm_e,		9,	19),
5768c2ecf20Sopenharmony_ci	GROUP(pwm_b_x,		2,	3),
5778c2ecf20Sopenharmony_ci
5788c2ecf20Sopenharmony_ci	/* bank Y */
5798c2ecf20Sopenharmony_ci	GROUP(uart_tx_c,	1,	19),
5808c2ecf20Sopenharmony_ci	GROUP(uart_rx_c,	1,	18),
5818c2ecf20Sopenharmony_ci	GROUP(uart_cts_c,	1,	17),
5828c2ecf20Sopenharmony_ci	GROUP(uart_rts_c,	1,	16),
5838c2ecf20Sopenharmony_ci
5848c2ecf20Sopenharmony_ci	GROUP(pcm_out_b,	4,	25),
5858c2ecf20Sopenharmony_ci	GROUP(pcm_in_b,		4,	24),
5868c2ecf20Sopenharmony_ci	GROUP(pcm_fs_b,		4,	23),
5878c2ecf20Sopenharmony_ci	GROUP(pcm_clk_b,	4,	22),
5888c2ecf20Sopenharmony_ci
5898c2ecf20Sopenharmony_ci	GROUP(i2c_sda_c0,	1,	15),
5908c2ecf20Sopenharmony_ci	GROUP(i2c_sck_c0,	1,	14),
5918c2ecf20Sopenharmony_ci
5928c2ecf20Sopenharmony_ci	GROUP(pwm_a_y,		9,	14),
5938c2ecf20Sopenharmony_ci
5948c2ecf20Sopenharmony_ci	GROUP(i2s_out_ch45,	1,	10),
5958c2ecf20Sopenharmony_ci	GROUP(i2s_out_ch23,	1,	19),
5968c2ecf20Sopenharmony_ci	GROUP(i2s_out_ch01,	1,	6),
5978c2ecf20Sopenharmony_ci	GROUP(i2s_in_ch01,	1,	5),
5988c2ecf20Sopenharmony_ci	GROUP(i2s_lr_clk_in,	1,	4),
5998c2ecf20Sopenharmony_ci	GROUP(i2s_ao_clk_in,	1,	2),
6008c2ecf20Sopenharmony_ci	GROUP(i2s_am_clk,	1,	0),
6018c2ecf20Sopenharmony_ci	GROUP(i2s_out_ch78,	1,	11),
6028c2ecf20Sopenharmony_ci
6038c2ecf20Sopenharmony_ci	GROUP(spdif_in,		1,	8),
6048c2ecf20Sopenharmony_ci	GROUP(spdif_out,	1,	7),
6058c2ecf20Sopenharmony_ci
6068c2ecf20Sopenharmony_ci	/* bank DV */
6078c2ecf20Sopenharmony_ci	GROUP(dvin_rgb,		0,	6),
6088c2ecf20Sopenharmony_ci	GROUP(dvin_vs,		0,	9),
6098c2ecf20Sopenharmony_ci	GROUP(dvin_hs,		0,	8),
6108c2ecf20Sopenharmony_ci	GROUP(dvin_clk,		0,	7),
6118c2ecf20Sopenharmony_ci	GROUP(dvin_de,		0,	10),
6128c2ecf20Sopenharmony_ci
6138c2ecf20Sopenharmony_ci	GROUP(enc_0,		7,	0),
6148c2ecf20Sopenharmony_ci	GROUP(enc_1,		7,	1),
6158c2ecf20Sopenharmony_ci	GROUP(enc_2,		7,	2),
6168c2ecf20Sopenharmony_ci	GROUP(enc_3,		7,	3),
6178c2ecf20Sopenharmony_ci	GROUP(enc_4,		7,	4),
6188c2ecf20Sopenharmony_ci	GROUP(enc_5,		7,	5),
6198c2ecf20Sopenharmony_ci	GROUP(enc_6,		7,	6),
6208c2ecf20Sopenharmony_ci	GROUP(enc_7,		7,	7),
6218c2ecf20Sopenharmony_ci	GROUP(enc_8,		7,	8),
6228c2ecf20Sopenharmony_ci	GROUP(enc_9,		7,	9),
6238c2ecf20Sopenharmony_ci	GROUP(enc_10,		7,	10),
6248c2ecf20Sopenharmony_ci	GROUP(enc_11,		7,	11),
6258c2ecf20Sopenharmony_ci	GROUP(enc_12,		7,	12),
6268c2ecf20Sopenharmony_ci	GROUP(enc_13,		7,	13),
6278c2ecf20Sopenharmony_ci	GROUP(enc_14,		7,	14),
6288c2ecf20Sopenharmony_ci	GROUP(enc_15,		7,	15),
6298c2ecf20Sopenharmony_ci	GROUP(enc_16,		7,	16),
6308c2ecf20Sopenharmony_ci	GROUP(enc_17,		7,	17),
6318c2ecf20Sopenharmony_ci
6328c2ecf20Sopenharmony_ci	GROUP(uart_tx_b1,	6,	23),
6338c2ecf20Sopenharmony_ci	GROUP(uart_rx_b1,	6,	22),
6348c2ecf20Sopenharmony_ci	GROUP(uart_cts_b1,	6,	21),
6358c2ecf20Sopenharmony_ci	GROUP(uart_rts_b1,	6,	20),
6368c2ecf20Sopenharmony_ci
6378c2ecf20Sopenharmony_ci	GROUP(vga_vs,		0,	21),
6388c2ecf20Sopenharmony_ci	GROUP(vga_hs,		0,	20),
6398c2ecf20Sopenharmony_ci
6408c2ecf20Sopenharmony_ci	GROUP(pwm_c_dv9,	3,	24),
6418c2ecf20Sopenharmony_ci	GROUP(pwm_c_dv29,	3,	25),
6428c2ecf20Sopenharmony_ci	GROUP(pwm_d,		3,	26),
6438c2ecf20Sopenharmony_ci
6448c2ecf20Sopenharmony_ci	/* bank H */
6458c2ecf20Sopenharmony_ci	GROUP(hdmi_hpd,		1,	26),
6468c2ecf20Sopenharmony_ci	GROUP(hdmi_sda,		1,	25),
6478c2ecf20Sopenharmony_ci	GROUP(hdmi_scl,		1,	24),
6488c2ecf20Sopenharmony_ci	GROUP(hdmi_cec,		1,	23),
6498c2ecf20Sopenharmony_ci
6508c2ecf20Sopenharmony_ci	GROUP(spi_ss0_0,	9,	13),
6518c2ecf20Sopenharmony_ci	GROUP(spi_miso_0,	9,	12),
6528c2ecf20Sopenharmony_ci	GROUP(spi_mosi_0,	9,	11),
6538c2ecf20Sopenharmony_ci	GROUP(spi_sclk_0,	9,	10),
6548c2ecf20Sopenharmony_ci
6558c2ecf20Sopenharmony_ci	GROUP(i2c_sda_d1,	4,	3),
6568c2ecf20Sopenharmony_ci	GROUP(i2c_sck_d1,	4,	2),
6578c2ecf20Sopenharmony_ci
6588c2ecf20Sopenharmony_ci	/* bank Z */
6598c2ecf20Sopenharmony_ci	GROUP(spi_ss0_1,	8,	16),
6608c2ecf20Sopenharmony_ci	GROUP(spi_ss1_1,	8,	12),
6618c2ecf20Sopenharmony_ci	GROUP(spi_sclk_1,	8,	15),
6628c2ecf20Sopenharmony_ci	GROUP(spi_mosi_1,	8,	14),
6638c2ecf20Sopenharmony_ci	GROUP(spi_miso_1,	8,	13),
6648c2ecf20Sopenharmony_ci	GROUP(spi_ss2_1,	8,	17),
6658c2ecf20Sopenharmony_ci
6668c2ecf20Sopenharmony_ci	GROUP(eth_tx_clk_50m,	6,	15),
6678c2ecf20Sopenharmony_ci	GROUP(eth_tx_en,	6,	14),
6688c2ecf20Sopenharmony_ci	GROUP(eth_txd1,		6,	13),
6698c2ecf20Sopenharmony_ci	GROUP(eth_txd0,		6,	12),
6708c2ecf20Sopenharmony_ci	GROUP(eth_rx_clk_in,	6,	10),
6718c2ecf20Sopenharmony_ci	GROUP(eth_rx_dv,	6,	11),
6728c2ecf20Sopenharmony_ci	GROUP(eth_rxd1,		6,	8),
6738c2ecf20Sopenharmony_ci	GROUP(eth_rxd0,		6,	7),
6748c2ecf20Sopenharmony_ci	GROUP(eth_mdio,		6,	6),
6758c2ecf20Sopenharmony_ci	GROUP(eth_mdc,		6,	5),
6768c2ecf20Sopenharmony_ci
6778c2ecf20Sopenharmony_ci	/* NOTE: the following four groups are only available on Meson8m2: */
6788c2ecf20Sopenharmony_ci	GROUP(eth_rxd2,		6,	3),
6798c2ecf20Sopenharmony_ci	GROUP(eth_rxd3,		6,	2),
6808c2ecf20Sopenharmony_ci	GROUP(eth_txd2,		6,	1),
6818c2ecf20Sopenharmony_ci	GROUP(eth_txd3,		6,	0),
6828c2ecf20Sopenharmony_ci
6838c2ecf20Sopenharmony_ci	GROUP(i2c_sda_a0,	5,	31),
6848c2ecf20Sopenharmony_ci	GROUP(i2c_sck_a0,	5,	30),
6858c2ecf20Sopenharmony_ci
6868c2ecf20Sopenharmony_ci	GROUP(i2c_sda_b,	5,	27),
6878c2ecf20Sopenharmony_ci	GROUP(i2c_sck_b,	5,	26),
6888c2ecf20Sopenharmony_ci
6898c2ecf20Sopenharmony_ci	GROUP(i2c_sda_c1,	5,	25),
6908c2ecf20Sopenharmony_ci	GROUP(i2c_sck_c1,	5,	24),
6918c2ecf20Sopenharmony_ci
6928c2ecf20Sopenharmony_ci	GROUP(i2c_sda_a1,	5,	9),
6938c2ecf20Sopenharmony_ci	GROUP(i2c_sck_a1,	5,	8),
6948c2ecf20Sopenharmony_ci
6958c2ecf20Sopenharmony_ci	GROUP(i2c_sda_a2,	5,	7),
6968c2ecf20Sopenharmony_ci	GROUP(i2c_sck_a2,	5,	6),
6978c2ecf20Sopenharmony_ci
6988c2ecf20Sopenharmony_ci	GROUP(pwm_a_z0,		9,	16),
6998c2ecf20Sopenharmony_ci	GROUP(pwm_a_z7,		2,	0),
7008c2ecf20Sopenharmony_ci	GROUP(pwm_b_z,		9,	15),
7018c2ecf20Sopenharmony_ci	GROUP(pwm_c_z,		2,	1),
7028c2ecf20Sopenharmony_ci
7038c2ecf20Sopenharmony_ci	/* bank BOOT */
7048c2ecf20Sopenharmony_ci	GROUP(sd_d0_c,		6,	29),
7058c2ecf20Sopenharmony_ci	GROUP(sd_d1_c,		6,	28),
7068c2ecf20Sopenharmony_ci	GROUP(sd_d2_c,		6,	27),
7078c2ecf20Sopenharmony_ci	GROUP(sd_d3_c,		6,	26),
7088c2ecf20Sopenharmony_ci	GROUP(sd_cmd_c,		6,	25),
7098c2ecf20Sopenharmony_ci	GROUP(sd_clk_c,		6,	24),
7108c2ecf20Sopenharmony_ci
7118c2ecf20Sopenharmony_ci	GROUP(sdxc_d0_c,	4,	30),
7128c2ecf20Sopenharmony_ci	GROUP(sdxc_d13_c,	4,	29),
7138c2ecf20Sopenharmony_ci	GROUP(sdxc_d47_c,	4,	28),
7148c2ecf20Sopenharmony_ci	GROUP(sdxc_cmd_c,	4,	27),
7158c2ecf20Sopenharmony_ci	GROUP(sdxc_clk_c,	4,	26),
7168c2ecf20Sopenharmony_ci
7178c2ecf20Sopenharmony_ci	GROUP(nand_io,		2,	26),
7188c2ecf20Sopenharmony_ci	GROUP(nand_io_ce0,	2,	25),
7198c2ecf20Sopenharmony_ci	GROUP(nand_io_ce1,	2,	24),
7208c2ecf20Sopenharmony_ci	GROUP(nand_io_rb0,	2,	17),
7218c2ecf20Sopenharmony_ci	GROUP(nand_ale,		2,	21),
7228c2ecf20Sopenharmony_ci	GROUP(nand_cle,		2,	20),
7238c2ecf20Sopenharmony_ci	GROUP(nand_wen_clk,	2,	19),
7248c2ecf20Sopenharmony_ci	GROUP(nand_ren_clk,	2,	18),
7258c2ecf20Sopenharmony_ci	GROUP(nand_dqs,		2,	27),
7268c2ecf20Sopenharmony_ci	GROUP(nand_ce2,		2,	23),
7278c2ecf20Sopenharmony_ci	GROUP(nand_ce3,		2,	22),
7288c2ecf20Sopenharmony_ci
7298c2ecf20Sopenharmony_ci	GROUP(nor_d,		5,	1),
7308c2ecf20Sopenharmony_ci	GROUP(nor_q,		5,	3),
7318c2ecf20Sopenharmony_ci	GROUP(nor_c,		5,	2),
7328c2ecf20Sopenharmony_ci	GROUP(nor_cs,		5,	0),
7338c2ecf20Sopenharmony_ci
7348c2ecf20Sopenharmony_ci	/* bank CARD */
7358c2ecf20Sopenharmony_ci	GROUP(sd_d1_b,		2,	14),
7368c2ecf20Sopenharmony_ci	GROUP(sd_d0_b,		2,	15),
7378c2ecf20Sopenharmony_ci	GROUP(sd_clk_b,		2,	11),
7388c2ecf20Sopenharmony_ci	GROUP(sd_cmd_b,		2,	10),
7398c2ecf20Sopenharmony_ci	GROUP(sd_d3_b,		2,	12),
7408c2ecf20Sopenharmony_ci	GROUP(sd_d2_b,		2,	13),
7418c2ecf20Sopenharmony_ci
7428c2ecf20Sopenharmony_ci	GROUP(sdxc_d13_b,	2,	6),
7438c2ecf20Sopenharmony_ci	GROUP(sdxc_d0_b,	2,	7),
7448c2ecf20Sopenharmony_ci	GROUP(sdxc_clk_b,	2,	5),
7458c2ecf20Sopenharmony_ci	GROUP(sdxc_cmd_b,	2,	4),
7468c2ecf20Sopenharmony_ci};
7478c2ecf20Sopenharmony_ci
7488c2ecf20Sopenharmony_cistatic struct meson_pmx_group meson8_aobus_groups[] = {
7498c2ecf20Sopenharmony_ci	GPIO_GROUP(GPIOAO_0),
7508c2ecf20Sopenharmony_ci	GPIO_GROUP(GPIOAO_1),
7518c2ecf20Sopenharmony_ci	GPIO_GROUP(GPIOAO_2),
7528c2ecf20Sopenharmony_ci	GPIO_GROUP(GPIOAO_3),
7538c2ecf20Sopenharmony_ci	GPIO_GROUP(GPIOAO_4),
7548c2ecf20Sopenharmony_ci	GPIO_GROUP(GPIOAO_5),
7558c2ecf20Sopenharmony_ci	GPIO_GROUP(GPIOAO_6),
7568c2ecf20Sopenharmony_ci	GPIO_GROUP(GPIOAO_7),
7578c2ecf20Sopenharmony_ci	GPIO_GROUP(GPIOAO_8),
7588c2ecf20Sopenharmony_ci	GPIO_GROUP(GPIOAO_9),
7598c2ecf20Sopenharmony_ci	GPIO_GROUP(GPIOAO_10),
7608c2ecf20Sopenharmony_ci	GPIO_GROUP(GPIOAO_11),
7618c2ecf20Sopenharmony_ci	GPIO_GROUP(GPIOAO_12),
7628c2ecf20Sopenharmony_ci	GPIO_GROUP(GPIOAO_13),
7638c2ecf20Sopenharmony_ci	GPIO_GROUP(GPIO_BSD_EN),
7648c2ecf20Sopenharmony_ci	GPIO_GROUP(GPIO_TEST_N),
7658c2ecf20Sopenharmony_ci
7668c2ecf20Sopenharmony_ci	/* bank AO */
7678c2ecf20Sopenharmony_ci	GROUP(uart_tx_ao_a,		0,	12),
7688c2ecf20Sopenharmony_ci	GROUP(uart_rx_ao_a,		0,	11),
7698c2ecf20Sopenharmony_ci	GROUP(uart_cts_ao_a,		0,	10),
7708c2ecf20Sopenharmony_ci	GROUP(uart_rts_ao_a,		0,	9),
7718c2ecf20Sopenharmony_ci
7728c2ecf20Sopenharmony_ci	GROUP(remote_input,		0,	0),
7738c2ecf20Sopenharmony_ci	GROUP(remote_output_ao,		0,	31),
7748c2ecf20Sopenharmony_ci
7758c2ecf20Sopenharmony_ci	GROUP(i2c_slave_sck_ao,		0,	2),
7768c2ecf20Sopenharmony_ci	GROUP(i2c_slave_sda_ao,		0,	1),
7778c2ecf20Sopenharmony_ci
7788c2ecf20Sopenharmony_ci	GROUP(uart_tx_ao_b0,		0,	26),
7798c2ecf20Sopenharmony_ci	GROUP(uart_rx_ao_b0,		0,	25),
7808c2ecf20Sopenharmony_ci
7818c2ecf20Sopenharmony_ci	GROUP(uart_tx_ao_b1,		0,	24),
7828c2ecf20Sopenharmony_ci	GROUP(uart_rx_ao_b1,		0,	23),
7838c2ecf20Sopenharmony_ci
7848c2ecf20Sopenharmony_ci	GROUP(i2c_mst_sck_ao,		0,	6),
7858c2ecf20Sopenharmony_ci	GROUP(i2c_mst_sda_ao,		0,	5),
7868c2ecf20Sopenharmony_ci
7878c2ecf20Sopenharmony_ci	GROUP(pwm_f_ao,			0,	19),
7888c2ecf20Sopenharmony_ci
7898c2ecf20Sopenharmony_ci	GROUP(i2s_am_clk_out_ao,	0,	30),
7908c2ecf20Sopenharmony_ci	GROUP(i2s_ao_clk_out_ao,	0,	29),
7918c2ecf20Sopenharmony_ci	GROUP(i2s_lr_clk_out_ao,	0,	28),
7928c2ecf20Sopenharmony_ci	GROUP(i2s_out_ch01_ao,		0,	27),
7938c2ecf20Sopenharmony_ci
7948c2ecf20Sopenharmony_ci	GROUP(hdmi_cec_ao,		0,	17),
7958c2ecf20Sopenharmony_ci};
7968c2ecf20Sopenharmony_ci
7978c2ecf20Sopenharmony_cistatic const char * const gpio_periphs_groups[] = {
7988c2ecf20Sopenharmony_ci	"GPIOX_0", "GPIOX_1", "GPIOX_2", "GPIOX_3", "GPIOX_4",
7998c2ecf20Sopenharmony_ci	"GPIOX_5", "GPIOX_6", "GPIOX_7", "GPIOX_8", "GPIOX_9",
8008c2ecf20Sopenharmony_ci	"GPIOX_10", "GPIOX_11", "GPIOX_12", "GPIOX_13", "GPIOX_14",
8018c2ecf20Sopenharmony_ci	"GPIOX_15", "GPIOX_16", "GPIOX_17", "GPIOX_18", "GPIOX_19",
8028c2ecf20Sopenharmony_ci	"GPIOX_20", "GPIOX_21",
8038c2ecf20Sopenharmony_ci
8048c2ecf20Sopenharmony_ci	"GPIOY_0", "GPIOY_1", "GPIOY_2", "GPIOY_3", "GPIOY_4",
8058c2ecf20Sopenharmony_ci	"GPIOY_5", "GPIOY_6", "GPIOY_7", "GPIOY_8", "GPIOY_9",
8068c2ecf20Sopenharmony_ci	"GPIOY_10", "GPIOY_11", "GPIOY_12", "GPIOY_13", "GPIOY_14",
8078c2ecf20Sopenharmony_ci	"GPIOY_15", "GPIOY_16",
8088c2ecf20Sopenharmony_ci
8098c2ecf20Sopenharmony_ci	"GPIODV_0", "GPIODV_1", "GPIODV_2", "GPIODV_3", "GPIODV_4",
8108c2ecf20Sopenharmony_ci	"GPIODV_5", "GPIODV_6", "GPIODV_7", "GPIODV_8", "GPIODV_9",
8118c2ecf20Sopenharmony_ci	"GPIODV_10", "GPIODV_11", "GPIODV_12", "GPIODV_13", "GPIODV_14",
8128c2ecf20Sopenharmony_ci	"GPIODV_15", "GPIODV_16", "GPIODV_17", "GPIODV_18", "GPIODV_19",
8138c2ecf20Sopenharmony_ci	"GPIODV_20", "GPIODV_21", "GPIODV_22", "GPIODV_23", "GPIODV_24",
8148c2ecf20Sopenharmony_ci	"GPIODV_25", "GPIODV_26", "GPIODV_27", "GPIODV_28", "GPIODV_29",
8158c2ecf20Sopenharmony_ci
8168c2ecf20Sopenharmony_ci	"GPIOH_0", "GPIOH_1", "GPIOH_2", "GPIOH_3", "GPIOH_4",
8178c2ecf20Sopenharmony_ci	"GPIOH_5", "GPIOH_6", "GPIOH_7", "GPIOH_8", "GPIOH_9",
8188c2ecf20Sopenharmony_ci
8198c2ecf20Sopenharmony_ci	"GPIOZ_0", "GPIOZ_1", "GPIOZ_2", "GPIOZ_3", "GPIOZ_4",
8208c2ecf20Sopenharmony_ci	"GPIOZ_5", "GPIOZ_6", "GPIOZ_7", "GPIOZ_8", "GPIOZ_9",
8218c2ecf20Sopenharmony_ci	"GPIOZ_10", "GPIOZ_11", "GPIOZ_12", "GPIOZ_13", "GPIOZ_14",
8228c2ecf20Sopenharmony_ci
8238c2ecf20Sopenharmony_ci	"CARD_0", "CARD_1", "CARD_2", "CARD_3", "CARD_4",
8248c2ecf20Sopenharmony_ci	"CARD_5", "CARD_6",
8258c2ecf20Sopenharmony_ci
8268c2ecf20Sopenharmony_ci	"BOOT_0", "BOOT_1", "BOOT_2", "BOOT_3", "BOOT_4",
8278c2ecf20Sopenharmony_ci	"BOOT_5", "BOOT_6", "BOOT_7", "BOOT_8", "BOOT_9",
8288c2ecf20Sopenharmony_ci	"BOOT_10", "BOOT_11", "BOOT_12", "BOOT_13", "BOOT_14",
8298c2ecf20Sopenharmony_ci	"BOOT_15", "BOOT_16", "BOOT_17", "BOOT_18",
8308c2ecf20Sopenharmony_ci};
8318c2ecf20Sopenharmony_ci
8328c2ecf20Sopenharmony_cistatic const char * const gpio_aobus_groups[] = {
8338c2ecf20Sopenharmony_ci	"GPIOAO_0", "GPIOAO_1", "GPIOAO_2", "GPIOAO_3",
8348c2ecf20Sopenharmony_ci	"GPIOAO_4", "GPIOAO_5", "GPIOAO_6", "GPIOAO_7",
8358c2ecf20Sopenharmony_ci	"GPIOAO_8", "GPIOAO_9", "GPIOAO_10", "GPIOAO_11",
8368c2ecf20Sopenharmony_ci	"GPIOAO_12", "GPIOAO_13", "GPIO_BSD_EN", "GPIO_TEST_N"
8378c2ecf20Sopenharmony_ci};
8388c2ecf20Sopenharmony_ci
8398c2ecf20Sopenharmony_cistatic const char * const sd_a_groups[] = {
8408c2ecf20Sopenharmony_ci	"sd_d0_a", "sd_d1_a", "sd_d2_a", "sd_d3_a", "sd_clk_a", "sd_cmd_a"
8418c2ecf20Sopenharmony_ci};
8428c2ecf20Sopenharmony_ci
8438c2ecf20Sopenharmony_cistatic const char * const sdxc_a_groups[] = {
8448c2ecf20Sopenharmony_ci	"sdxc_d0_a", "sdxc_d13_a", "sdxc_d47_a", "sdxc_clk_a", "sdxc_cmd_a"
8458c2ecf20Sopenharmony_ci};
8468c2ecf20Sopenharmony_ci
8478c2ecf20Sopenharmony_cistatic const char * const pcm_a_groups[] = {
8488c2ecf20Sopenharmony_ci	"pcm_out_a", "pcm_in_a", "pcm_fs_a", "pcm_clk_a"
8498c2ecf20Sopenharmony_ci};
8508c2ecf20Sopenharmony_ci
8518c2ecf20Sopenharmony_cistatic const char * const uart_a_groups[] = {
8528c2ecf20Sopenharmony_ci	"uart_tx_a0", "uart_rx_a0", "uart_cts_a0", "uart_rts_a0",
8538c2ecf20Sopenharmony_ci	"uart_tx_a1", "uart_rx_a1", "uart_cts_a1", "uart_rts_a1"
8548c2ecf20Sopenharmony_ci};
8558c2ecf20Sopenharmony_ci
8568c2ecf20Sopenharmony_cistatic const char * const uart_b_groups[] = {
8578c2ecf20Sopenharmony_ci	"uart_tx_b0", "uart_rx_b0", "uart_cts_b0", "uart_rts_b0",
8588c2ecf20Sopenharmony_ci	"uart_tx_b1", "uart_rx_b1", "uart_cts_b1", "uart_rts_b1"
8598c2ecf20Sopenharmony_ci};
8608c2ecf20Sopenharmony_ci
8618c2ecf20Sopenharmony_cistatic const char * const iso7816_groups[] = {
8628c2ecf20Sopenharmony_ci	"iso7816_det", "iso7816_reset", "iso7816_clk", "iso7816_data"
8638c2ecf20Sopenharmony_ci};
8648c2ecf20Sopenharmony_ci
8658c2ecf20Sopenharmony_cistatic const char * const i2c_d_groups[] = {
8668c2ecf20Sopenharmony_ci	"i2c_sda_d0", "i2c_sck_d0", "i2c_sda_d1", "i2c_sck_d1"
8678c2ecf20Sopenharmony_ci};
8688c2ecf20Sopenharmony_ci
8698c2ecf20Sopenharmony_cistatic const char * const xtal_groups[] = {
8708c2ecf20Sopenharmony_ci	"xtal_32k_out", "xtal_24m_out"
8718c2ecf20Sopenharmony_ci};
8728c2ecf20Sopenharmony_ci
8738c2ecf20Sopenharmony_cistatic const char * const uart_c_groups[] = {
8748c2ecf20Sopenharmony_ci	"uart_tx_c", "uart_rx_c", "uart_cts_c", "uart_rts_c"
8758c2ecf20Sopenharmony_ci};
8768c2ecf20Sopenharmony_ci
8778c2ecf20Sopenharmony_cistatic const char * const pcm_b_groups[] = {
8788c2ecf20Sopenharmony_ci	"pcm_out_b", "pcm_in_b", "pcm_fs_b", "pcm_clk_b"
8798c2ecf20Sopenharmony_ci};
8808c2ecf20Sopenharmony_ci
8818c2ecf20Sopenharmony_cistatic const char * const i2c_c_groups[] = {
8828c2ecf20Sopenharmony_ci	"i2c_sda_c0", "i2c_sck_c0", "i2c_sda_c1", "i2c_sck_c1"
8838c2ecf20Sopenharmony_ci};
8848c2ecf20Sopenharmony_ci
8858c2ecf20Sopenharmony_cistatic const char * const dvin_groups[] = {
8868c2ecf20Sopenharmony_ci	"dvin_rgb", "dvin_vs", "dvin_hs", "dvin_clk", "dvin_de"
8878c2ecf20Sopenharmony_ci};
8888c2ecf20Sopenharmony_ci
8898c2ecf20Sopenharmony_cistatic const char * const enc_groups[] = {
8908c2ecf20Sopenharmony_ci	"enc_0", "enc_1", "enc_2", "enc_3", "enc_4", "enc_5",
8918c2ecf20Sopenharmony_ci	"enc_6", "enc_7", "enc_8", "enc_9", "enc_10", "enc_11",
8928c2ecf20Sopenharmony_ci	"enc_12", "enc_13", "enc_14", "enc_15", "enc_16", "enc_17"
8938c2ecf20Sopenharmony_ci};
8948c2ecf20Sopenharmony_ci
8958c2ecf20Sopenharmony_cistatic const char * const vga_groups[] = {
8968c2ecf20Sopenharmony_ci	"vga_vs", "vga_hs"
8978c2ecf20Sopenharmony_ci};
8988c2ecf20Sopenharmony_ci
8998c2ecf20Sopenharmony_cistatic const char * const hdmi_groups[] = {
9008c2ecf20Sopenharmony_ci	"hdmi_hpd", "hdmi_sda", "hdmi_scl", "hdmi_cec"
9018c2ecf20Sopenharmony_ci};
9028c2ecf20Sopenharmony_ci
9038c2ecf20Sopenharmony_cistatic const char * const spi_groups[] = {
9048c2ecf20Sopenharmony_ci	"spi_ss0_0", "spi_miso_0", "spi_mosi_0", "spi_sclk_0",
9058c2ecf20Sopenharmony_ci	"spi_ss0_1", "spi_ss1_1", "spi_sclk_1", "spi_mosi_1",
9068c2ecf20Sopenharmony_ci	"spi_miso_1", "spi_ss2_1"
9078c2ecf20Sopenharmony_ci};
9088c2ecf20Sopenharmony_ci
9098c2ecf20Sopenharmony_cistatic const char * const ethernet_groups[] = {
9108c2ecf20Sopenharmony_ci	"eth_tx_clk_50m", "eth_tx_en", "eth_txd1",
9118c2ecf20Sopenharmony_ci	"eth_txd0", "eth_rx_clk_in", "eth_rx_dv",
9128c2ecf20Sopenharmony_ci	"eth_rxd1", "eth_rxd0", "eth_mdio", "eth_mdc", "eth_rxd2",
9138c2ecf20Sopenharmony_ci	"eth_rxd3", "eth_txd2", "eth_txd3"
9148c2ecf20Sopenharmony_ci};
9158c2ecf20Sopenharmony_ci
9168c2ecf20Sopenharmony_cistatic const char * const i2c_a_groups[] = {
9178c2ecf20Sopenharmony_ci	"i2c_sda_a0", "i2c_sck_a0", "i2c_sda_a1", "i2c_sck_a1",
9188c2ecf20Sopenharmony_ci	"i2c_sda_a2", "i2c_sck_a2"
9198c2ecf20Sopenharmony_ci};
9208c2ecf20Sopenharmony_ci
9218c2ecf20Sopenharmony_cistatic const char * const i2c_b_groups[] = {
9228c2ecf20Sopenharmony_ci	"i2c_sda_b", "i2c_sck_b"
9238c2ecf20Sopenharmony_ci};
9248c2ecf20Sopenharmony_ci
9258c2ecf20Sopenharmony_cistatic const char * const i2s_groups[] = {
9268c2ecf20Sopenharmony_ci	"i2s_out_ch45", "i2s_out_ch23_pins", "i2s_out_ch01_pins",
9278c2ecf20Sopenharmony_ci	"i2s_in_ch01_pins", "i2s_lr_clk_in_pins", "i2s_ao_clk_in_pins",
9288c2ecf20Sopenharmony_ci	"i2s_am_clk_pins", "i2s_out_ch78_pins"
9298c2ecf20Sopenharmony_ci};
9308c2ecf20Sopenharmony_ci
9318c2ecf20Sopenharmony_cistatic const char * const sd_c_groups[] = {
9328c2ecf20Sopenharmony_ci	"sd_d0_c", "sd_d1_c", "sd_d2_c", "sd_d3_c",
9338c2ecf20Sopenharmony_ci	"sd_cmd_c", "sd_clk_c"
9348c2ecf20Sopenharmony_ci};
9358c2ecf20Sopenharmony_ci
9368c2ecf20Sopenharmony_cistatic const char * const sdxc_c_groups[] = {
9378c2ecf20Sopenharmony_ci	"sdxc_d0_c", "sdxc_d13_c", "sdxc_d47_c", "sdxc_cmd_c",
9388c2ecf20Sopenharmony_ci	"sdxc_clk_c"
9398c2ecf20Sopenharmony_ci};
9408c2ecf20Sopenharmony_ci
9418c2ecf20Sopenharmony_cistatic const char * const nand_groups[] = {
9428c2ecf20Sopenharmony_ci	"nand_io", "nand_io_ce0", "nand_io_ce1",
9438c2ecf20Sopenharmony_ci	"nand_io_rb0", "nand_ale", "nand_cle",
9448c2ecf20Sopenharmony_ci	"nand_wen_clk", "nand_ren_clk", "nand_dqs",
9458c2ecf20Sopenharmony_ci	"nand_ce2", "nand_ce3"
9468c2ecf20Sopenharmony_ci};
9478c2ecf20Sopenharmony_ci
9488c2ecf20Sopenharmony_cistatic const char * const nor_groups[] = {
9498c2ecf20Sopenharmony_ci	"nor_d", "nor_q", "nor_c", "nor_cs"
9508c2ecf20Sopenharmony_ci};
9518c2ecf20Sopenharmony_ci
9528c2ecf20Sopenharmony_cistatic const char * const pwm_a_groups[] = {
9538c2ecf20Sopenharmony_ci	"pwm_a_y", "pwm_a_z0", "pwm_a_z7"
9548c2ecf20Sopenharmony_ci};
9558c2ecf20Sopenharmony_ci
9568c2ecf20Sopenharmony_cistatic const char * const pwm_b_groups[] = {
9578c2ecf20Sopenharmony_ci	"pwm_b_x", "pwm_b_z"
9588c2ecf20Sopenharmony_ci};
9598c2ecf20Sopenharmony_ci
9608c2ecf20Sopenharmony_cistatic const char * const pwm_c_groups[] = {
9618c2ecf20Sopenharmony_ci	"pwm_c_dv9", "pwm_c_dv29", "pwm_c_z"
9628c2ecf20Sopenharmony_ci};
9638c2ecf20Sopenharmony_ci
9648c2ecf20Sopenharmony_cistatic const char * const pwm_d_groups[] = {
9658c2ecf20Sopenharmony_ci	"pwm_d"
9668c2ecf20Sopenharmony_ci};
9678c2ecf20Sopenharmony_ci
9688c2ecf20Sopenharmony_cistatic const char * const pwm_e_groups[] = {
9698c2ecf20Sopenharmony_ci	"pwm_e"
9708c2ecf20Sopenharmony_ci};
9718c2ecf20Sopenharmony_ci
9728c2ecf20Sopenharmony_cistatic const char * const sd_b_groups[] = {
9738c2ecf20Sopenharmony_ci	"sd_d1_b", "sd_d0_b", "sd_clk_b", "sd_cmd_b",
9748c2ecf20Sopenharmony_ci	"sd_d3_b", "sd_d2_b"
9758c2ecf20Sopenharmony_ci};
9768c2ecf20Sopenharmony_ci
9778c2ecf20Sopenharmony_cistatic const char * const sdxc_b_groups[] = {
9788c2ecf20Sopenharmony_ci	"sdxc_d13_b", "sdxc_d0_b", "sdxc_clk_b", "sdxc_cmd_b"
9798c2ecf20Sopenharmony_ci};
9808c2ecf20Sopenharmony_ci
9818c2ecf20Sopenharmony_cistatic const char * const spdif_groups[] = {
9828c2ecf20Sopenharmony_ci	"spdif_in", "spdif_out"
9838c2ecf20Sopenharmony_ci};
9848c2ecf20Sopenharmony_ci
9858c2ecf20Sopenharmony_cistatic const char * const uart_ao_groups[] = {
9868c2ecf20Sopenharmony_ci	"uart_tx_ao_a", "uart_rx_ao_a", "uart_cts_ao_a", "uart_rts_ao_a"
9878c2ecf20Sopenharmony_ci};
9888c2ecf20Sopenharmony_ci
9898c2ecf20Sopenharmony_cistatic const char * const remote_groups[] = {
9908c2ecf20Sopenharmony_ci	"remote_input", "remote_output_ao"
9918c2ecf20Sopenharmony_ci};
9928c2ecf20Sopenharmony_ci
9938c2ecf20Sopenharmony_cistatic const char * const i2c_slave_ao_groups[] = {
9948c2ecf20Sopenharmony_ci	"i2c_slave_sck_ao", "i2c_slave_sda_ao"
9958c2ecf20Sopenharmony_ci};
9968c2ecf20Sopenharmony_ci
9978c2ecf20Sopenharmony_cistatic const char * const uart_ao_b_groups[] = {
9988c2ecf20Sopenharmony_ci	"uart_tx_ao_b0", "uart_rx_ao_b0", "uart_tx_ao_b1", "uart_rx_ao_b1"
9998c2ecf20Sopenharmony_ci};
10008c2ecf20Sopenharmony_ci
10018c2ecf20Sopenharmony_cistatic const char * const i2c_mst_ao_groups[] = {
10028c2ecf20Sopenharmony_ci	"i2c_mst_sck_ao", "i2c_mst_sda_ao"
10038c2ecf20Sopenharmony_ci};
10048c2ecf20Sopenharmony_ci
10058c2ecf20Sopenharmony_cistatic const char * const pwm_f_ao_groups[] = {
10068c2ecf20Sopenharmony_ci	"pwm_f_ao"
10078c2ecf20Sopenharmony_ci};
10088c2ecf20Sopenharmony_ci
10098c2ecf20Sopenharmony_cistatic const char * const i2s_ao_groups[] = {
10108c2ecf20Sopenharmony_ci	"i2s_am_clk_out_ao", "i2s_ao_clk_out_ao", "i2s_lr_clk_out_ao",
10118c2ecf20Sopenharmony_ci	"i2s_out_ch01_ao"
10128c2ecf20Sopenharmony_ci};
10138c2ecf20Sopenharmony_ci
10148c2ecf20Sopenharmony_cistatic const char * const hdmi_cec_ao_groups[] = {
10158c2ecf20Sopenharmony_ci	"hdmi_cec_ao"
10168c2ecf20Sopenharmony_ci};
10178c2ecf20Sopenharmony_ci
10188c2ecf20Sopenharmony_cistatic struct meson_pmx_func meson8_cbus_functions[] = {
10198c2ecf20Sopenharmony_ci	FUNCTION(gpio_periphs),
10208c2ecf20Sopenharmony_ci	FUNCTION(sd_a),
10218c2ecf20Sopenharmony_ci	FUNCTION(sdxc_a),
10228c2ecf20Sopenharmony_ci	FUNCTION(pcm_a),
10238c2ecf20Sopenharmony_ci	FUNCTION(uart_a),
10248c2ecf20Sopenharmony_ci	FUNCTION(uart_b),
10258c2ecf20Sopenharmony_ci	FUNCTION(iso7816),
10268c2ecf20Sopenharmony_ci	FUNCTION(i2c_d),
10278c2ecf20Sopenharmony_ci	FUNCTION(xtal),
10288c2ecf20Sopenharmony_ci	FUNCTION(uart_c),
10298c2ecf20Sopenharmony_ci	FUNCTION(pcm_b),
10308c2ecf20Sopenharmony_ci	FUNCTION(i2c_c),
10318c2ecf20Sopenharmony_ci	FUNCTION(dvin),
10328c2ecf20Sopenharmony_ci	FUNCTION(enc),
10338c2ecf20Sopenharmony_ci	FUNCTION(vga),
10348c2ecf20Sopenharmony_ci	FUNCTION(hdmi),
10358c2ecf20Sopenharmony_ci	FUNCTION(spi),
10368c2ecf20Sopenharmony_ci	FUNCTION(ethernet),
10378c2ecf20Sopenharmony_ci	FUNCTION(i2c_a),
10388c2ecf20Sopenharmony_ci	FUNCTION(i2c_b),
10398c2ecf20Sopenharmony_ci	FUNCTION(sd_c),
10408c2ecf20Sopenharmony_ci	FUNCTION(sdxc_c),
10418c2ecf20Sopenharmony_ci	FUNCTION(nand),
10428c2ecf20Sopenharmony_ci	FUNCTION(nor),
10438c2ecf20Sopenharmony_ci	FUNCTION(sd_b),
10448c2ecf20Sopenharmony_ci	FUNCTION(sdxc_b),
10458c2ecf20Sopenharmony_ci	FUNCTION(pwm_a),
10468c2ecf20Sopenharmony_ci	FUNCTION(pwm_b),
10478c2ecf20Sopenharmony_ci	FUNCTION(pwm_c),
10488c2ecf20Sopenharmony_ci	FUNCTION(pwm_d),
10498c2ecf20Sopenharmony_ci	FUNCTION(pwm_e),
10508c2ecf20Sopenharmony_ci	FUNCTION(i2s),
10518c2ecf20Sopenharmony_ci	FUNCTION(spdif),
10528c2ecf20Sopenharmony_ci};
10538c2ecf20Sopenharmony_ci
10548c2ecf20Sopenharmony_cistatic struct meson_pmx_func meson8_aobus_functions[] = {
10558c2ecf20Sopenharmony_ci	FUNCTION(gpio_aobus),
10568c2ecf20Sopenharmony_ci	FUNCTION(uart_ao),
10578c2ecf20Sopenharmony_ci	FUNCTION(remote),
10588c2ecf20Sopenharmony_ci	FUNCTION(i2c_slave_ao),
10598c2ecf20Sopenharmony_ci	FUNCTION(uart_ao_b),
10608c2ecf20Sopenharmony_ci	FUNCTION(i2c_mst_ao),
10618c2ecf20Sopenharmony_ci	FUNCTION(pwm_f_ao),
10628c2ecf20Sopenharmony_ci	FUNCTION(i2s_ao),
10638c2ecf20Sopenharmony_ci	FUNCTION(hdmi_cec_ao),
10648c2ecf20Sopenharmony_ci};
10658c2ecf20Sopenharmony_ci
10668c2ecf20Sopenharmony_cistatic struct meson_bank meson8_cbus_banks[] = {
10678c2ecf20Sopenharmony_ci	/*   name    first     last         irq       pullen  pull    dir     out     in  */
10688c2ecf20Sopenharmony_ci	BANK("X",    GPIOX_0,  GPIOX_21,    112, 133, 4,  0,  4,  0,  0,  0,  1,  0,  2,  0),
10698c2ecf20Sopenharmony_ci	BANK("Y",    GPIOY_0,  GPIOY_16,    95,  111, 3,  0,  3,  0,  3,  0,  4,  0,  5,  0),
10708c2ecf20Sopenharmony_ci	BANK("DV",   GPIODV_0, GPIODV_29,   65,   94, 0,  0,  0,  0,  7,  0,  8,  0,  9,  0),
10718c2ecf20Sopenharmony_ci	BANK("H",    GPIOH_0,  GPIOH_9,     29,   38, 1, 16,  1, 16,  9, 19, 10, 19, 11, 19),
10728c2ecf20Sopenharmony_ci	BANK("Z",    GPIOZ_0,  GPIOZ_14,    14,   28, 1,  0,  1,  0,  3, 17,  4, 17,  5, 17),
10738c2ecf20Sopenharmony_ci	BANK("CARD", CARD_0,   CARD_6,      58,   64, 2, 20,  2, 20,  0, 22,  1, 22,  2, 22),
10748c2ecf20Sopenharmony_ci	BANK("BOOT", BOOT_0,   BOOT_18,     39,   57, 2,  0,  2,  0,  9,  0, 10,  0, 11,  0),
10758c2ecf20Sopenharmony_ci};
10768c2ecf20Sopenharmony_ci
10778c2ecf20Sopenharmony_cistatic struct meson_bank meson8_aobus_banks[] = {
10788c2ecf20Sopenharmony_ci	/*   name    first     last         irq    pullen  pull    dir     out     in  */
10798c2ecf20Sopenharmony_ci	BANK("AO",   GPIOAO_0, GPIO_TEST_N, 0, 13, 0, 16,  0,  0,  0,  0,  0, 16,  1,  0),
10808c2ecf20Sopenharmony_ci};
10818c2ecf20Sopenharmony_ci
10828c2ecf20Sopenharmony_cistatic struct meson_pinctrl_data meson8_cbus_pinctrl_data = {
10838c2ecf20Sopenharmony_ci	.name		= "cbus-banks",
10848c2ecf20Sopenharmony_ci	.pins		= meson8_cbus_pins,
10858c2ecf20Sopenharmony_ci	.groups		= meson8_cbus_groups,
10868c2ecf20Sopenharmony_ci	.funcs		= meson8_cbus_functions,
10878c2ecf20Sopenharmony_ci	.banks		= meson8_cbus_banks,
10888c2ecf20Sopenharmony_ci	.num_pins	= ARRAY_SIZE(meson8_cbus_pins),
10898c2ecf20Sopenharmony_ci	.num_groups	= ARRAY_SIZE(meson8_cbus_groups),
10908c2ecf20Sopenharmony_ci	.num_funcs	= ARRAY_SIZE(meson8_cbus_functions),
10918c2ecf20Sopenharmony_ci	.num_banks	= ARRAY_SIZE(meson8_cbus_banks),
10928c2ecf20Sopenharmony_ci	.pmx_ops	= &meson8_pmx_ops,
10938c2ecf20Sopenharmony_ci};
10948c2ecf20Sopenharmony_ci
10958c2ecf20Sopenharmony_cistatic struct meson_pinctrl_data meson8_aobus_pinctrl_data = {
10968c2ecf20Sopenharmony_ci	.name		= "ao-bank",
10978c2ecf20Sopenharmony_ci	.pins		= meson8_aobus_pins,
10988c2ecf20Sopenharmony_ci	.groups		= meson8_aobus_groups,
10998c2ecf20Sopenharmony_ci	.funcs		= meson8_aobus_functions,
11008c2ecf20Sopenharmony_ci	.banks		= meson8_aobus_banks,
11018c2ecf20Sopenharmony_ci	.num_pins	= ARRAY_SIZE(meson8_aobus_pins),
11028c2ecf20Sopenharmony_ci	.num_groups	= ARRAY_SIZE(meson8_aobus_groups),
11038c2ecf20Sopenharmony_ci	.num_funcs	= ARRAY_SIZE(meson8_aobus_functions),
11048c2ecf20Sopenharmony_ci	.num_banks	= ARRAY_SIZE(meson8_aobus_banks),
11058c2ecf20Sopenharmony_ci	.pmx_ops	= &meson8_pmx_ops,
11068c2ecf20Sopenharmony_ci	.parse_dt	= &meson8_aobus_parse_dt_extra,
11078c2ecf20Sopenharmony_ci};
11088c2ecf20Sopenharmony_ci
11098c2ecf20Sopenharmony_cistatic const struct of_device_id meson8_pinctrl_dt_match[] = {
11108c2ecf20Sopenharmony_ci	{
11118c2ecf20Sopenharmony_ci		.compatible = "amlogic,meson8-cbus-pinctrl",
11128c2ecf20Sopenharmony_ci		.data = &meson8_cbus_pinctrl_data,
11138c2ecf20Sopenharmony_ci	},
11148c2ecf20Sopenharmony_ci	{
11158c2ecf20Sopenharmony_ci		.compatible = "amlogic,meson8-aobus-pinctrl",
11168c2ecf20Sopenharmony_ci		.data = &meson8_aobus_pinctrl_data,
11178c2ecf20Sopenharmony_ci	},
11188c2ecf20Sopenharmony_ci	{
11198c2ecf20Sopenharmony_ci		.compatible = "amlogic,meson8m2-cbus-pinctrl",
11208c2ecf20Sopenharmony_ci		.data = &meson8_cbus_pinctrl_data,
11218c2ecf20Sopenharmony_ci	},
11228c2ecf20Sopenharmony_ci	{
11238c2ecf20Sopenharmony_ci		.compatible = "amlogic,meson8m2-aobus-pinctrl",
11248c2ecf20Sopenharmony_ci		.data = &meson8_aobus_pinctrl_data,
11258c2ecf20Sopenharmony_ci	},
11268c2ecf20Sopenharmony_ci	{ },
11278c2ecf20Sopenharmony_ci};
11288c2ecf20Sopenharmony_ci
11298c2ecf20Sopenharmony_cistatic struct platform_driver meson8_pinctrl_driver = {
11308c2ecf20Sopenharmony_ci	.probe		= meson_pinctrl_probe,
11318c2ecf20Sopenharmony_ci	.driver = {
11328c2ecf20Sopenharmony_ci		.name	= "meson8-pinctrl",
11338c2ecf20Sopenharmony_ci		.of_match_table = meson8_pinctrl_dt_match,
11348c2ecf20Sopenharmony_ci	},
11358c2ecf20Sopenharmony_ci};
11368c2ecf20Sopenharmony_cibuiltin_platform_driver(meson8_pinctrl_driver);
1137