pinctrl-meson8b.c (95a0c7c2d6cfde3fb5fdb713428ed0df4d6bdd58) | pinctrl-meson8b.c (634e40b0c2bde81051e309cdfe4c26bbca3164ec) |
---|---|
1/* 2 * Pin controller and GPIO driver for Amlogic Meson8b. 3 * 4 * Copyright (C) 2015 Endless Mobile, Inc. 5 * Author: Carlo Caione <carlo@endlessm.com> 6 * 7 * This program is free software; you can redistribute it and/or 8 * modify it under the terms of the GNU General Public License 9 * version 2 as published by the Free Software Foundation. 10 * 11 * You should have received a copy of the GNU General Public License 12 * along with this program. If not, see <http://www.gnu.org/licenses/>. 13 */ 14 15#include <dt-bindings/gpio/meson8b-gpio.h> 16#include "pinctrl-meson.h" 17 | 1/* 2 * Pin controller and GPIO driver for Amlogic Meson8b. 3 * 4 * Copyright (C) 2015 Endless Mobile, Inc. 5 * Author: Carlo Caione <carlo@endlessm.com> 6 * 7 * This program is free software; you can redistribute it and/or 8 * modify it under the terms of the GNU General Public License 9 * version 2 as published by the Free Software Foundation. 10 * 11 * You should have received a copy of the GNU General Public License 12 * along with this program. If not, see <http://www.gnu.org/licenses/>. 13 */ 14 15#include <dt-bindings/gpio/meson8b-gpio.h> 16#include "pinctrl-meson.h" 17 |
18#define AO_OFF 130 19 | |
20static const struct pinctrl_pin_desc meson8b_cbus_pins[] = { | 18static const struct pinctrl_pin_desc meson8b_cbus_pins[] = { |
21 MESON_PIN(GPIOX_0, 0), 22 MESON_PIN(GPIOX_1, 0), 23 MESON_PIN(GPIOX_2, 0), 24 MESON_PIN(GPIOX_3, 0), 25 MESON_PIN(GPIOX_4, 0), 26 MESON_PIN(GPIOX_5, 0), 27 MESON_PIN(GPIOX_6, 0), 28 MESON_PIN(GPIOX_7, 0), 29 MESON_PIN(GPIOX_8, 0), 30 MESON_PIN(GPIOX_9, 0), 31 MESON_PIN(GPIOX_10, 0), 32 MESON_PIN(GPIOX_11, 0), 33 MESON_PIN(GPIOX_16, 0), 34 MESON_PIN(GPIOX_17, 0), 35 MESON_PIN(GPIOX_18, 0), 36 MESON_PIN(GPIOX_19, 0), 37 MESON_PIN(GPIOX_20, 0), 38 MESON_PIN(GPIOX_21, 0), | 19 MESON_PIN(GPIOX_0), 20 MESON_PIN(GPIOX_1), 21 MESON_PIN(GPIOX_2), 22 MESON_PIN(GPIOX_3), 23 MESON_PIN(GPIOX_4), 24 MESON_PIN(GPIOX_5), 25 MESON_PIN(GPIOX_6), 26 MESON_PIN(GPIOX_7), 27 MESON_PIN(GPIOX_8), 28 MESON_PIN(GPIOX_9), 29 MESON_PIN(GPIOX_10), 30 MESON_PIN(GPIOX_11), 31 MESON_PIN(GPIOX_16), 32 MESON_PIN(GPIOX_17), 33 MESON_PIN(GPIOX_18), 34 MESON_PIN(GPIOX_19), 35 MESON_PIN(GPIOX_20), 36 MESON_PIN(GPIOX_21), |
39 | 37 |
40 MESON_PIN(GPIOY_0, 0), 41 MESON_PIN(GPIOY_1, 0), 42 MESON_PIN(GPIOY_3, 0), 43 MESON_PIN(GPIOY_6, 0), 44 MESON_PIN(GPIOY_7, 0), 45 MESON_PIN(GPIOY_8, 0), 46 MESON_PIN(GPIOY_9, 0), 47 MESON_PIN(GPIOY_10, 0), 48 MESON_PIN(GPIOY_11, 0), 49 MESON_PIN(GPIOY_12, 0), 50 MESON_PIN(GPIOY_13, 0), 51 MESON_PIN(GPIOY_14, 0), | 38 MESON_PIN(GPIOY_0), 39 MESON_PIN(GPIOY_1), 40 MESON_PIN(GPIOY_3), 41 MESON_PIN(GPIOY_6), 42 MESON_PIN(GPIOY_7), 43 MESON_PIN(GPIOY_8), 44 MESON_PIN(GPIOY_9), 45 MESON_PIN(GPIOY_10), 46 MESON_PIN(GPIOY_11), 47 MESON_PIN(GPIOY_12), 48 MESON_PIN(GPIOY_13), 49 MESON_PIN(GPIOY_14), |
52 | 50 |
53 MESON_PIN(GPIODV_9, 0), 54 MESON_PIN(GPIODV_24, 0), 55 MESON_PIN(GPIODV_25, 0), 56 MESON_PIN(GPIODV_26, 0), 57 MESON_PIN(GPIODV_27, 0), 58 MESON_PIN(GPIODV_28, 0), 59 MESON_PIN(GPIODV_29, 0), | 51 MESON_PIN(GPIODV_9), 52 MESON_PIN(GPIODV_24), 53 MESON_PIN(GPIODV_25), 54 MESON_PIN(GPIODV_26), 55 MESON_PIN(GPIODV_27), 56 MESON_PIN(GPIODV_28), 57 MESON_PIN(GPIODV_29), |
60 | 58 |
61 MESON_PIN(GPIOH_0, 0), 62 MESON_PIN(GPIOH_1, 0), 63 MESON_PIN(GPIOH_2, 0), 64 MESON_PIN(GPIOH_3, 0), 65 MESON_PIN(GPIOH_4, 0), 66 MESON_PIN(GPIOH_5, 0), 67 MESON_PIN(GPIOH_6, 0), 68 MESON_PIN(GPIOH_7, 0), 69 MESON_PIN(GPIOH_8, 0), 70 MESON_PIN(GPIOH_9, 0), | 59 MESON_PIN(GPIOH_0), 60 MESON_PIN(GPIOH_1), 61 MESON_PIN(GPIOH_2), 62 MESON_PIN(GPIOH_3), 63 MESON_PIN(GPIOH_4), 64 MESON_PIN(GPIOH_5), 65 MESON_PIN(GPIOH_6), 66 MESON_PIN(GPIOH_7), 67 MESON_PIN(GPIOH_8), 68 MESON_PIN(GPIOH_9), |
71 | 69 |
72 MESON_PIN(CARD_0, 0), 73 MESON_PIN(CARD_1, 0), 74 MESON_PIN(CARD_2, 0), 75 MESON_PIN(CARD_3, 0), 76 MESON_PIN(CARD_4, 0), 77 MESON_PIN(CARD_5, 0), 78 MESON_PIN(CARD_6, 0), | 70 MESON_PIN(CARD_0), 71 MESON_PIN(CARD_1), 72 MESON_PIN(CARD_2), 73 MESON_PIN(CARD_3), 74 MESON_PIN(CARD_4), 75 MESON_PIN(CARD_5), 76 MESON_PIN(CARD_6), |
79 | 77 |
80 MESON_PIN(BOOT_0, 0), 81 MESON_PIN(BOOT_1, 0), 82 MESON_PIN(BOOT_2, 0), 83 MESON_PIN(BOOT_3, 0), 84 MESON_PIN(BOOT_4, 0), 85 MESON_PIN(BOOT_5, 0), 86 MESON_PIN(BOOT_6, 0), 87 MESON_PIN(BOOT_7, 0), 88 MESON_PIN(BOOT_8, 0), 89 MESON_PIN(BOOT_9, 0), 90 MESON_PIN(BOOT_10, 0), 91 MESON_PIN(BOOT_11, 0), 92 MESON_PIN(BOOT_12, 0), 93 MESON_PIN(BOOT_13, 0), 94 MESON_PIN(BOOT_14, 0), 95 MESON_PIN(BOOT_15, 0), 96 MESON_PIN(BOOT_16, 0), 97 MESON_PIN(BOOT_17, 0), 98 MESON_PIN(BOOT_18, 0), | 78 MESON_PIN(BOOT_0), 79 MESON_PIN(BOOT_1), 80 MESON_PIN(BOOT_2), 81 MESON_PIN(BOOT_3), 82 MESON_PIN(BOOT_4), 83 MESON_PIN(BOOT_5), 84 MESON_PIN(BOOT_6), 85 MESON_PIN(BOOT_7), 86 MESON_PIN(BOOT_8), 87 MESON_PIN(BOOT_9), 88 MESON_PIN(BOOT_10), 89 MESON_PIN(BOOT_11), 90 MESON_PIN(BOOT_12), 91 MESON_PIN(BOOT_13), 92 MESON_PIN(BOOT_14), 93 MESON_PIN(BOOT_15), 94 MESON_PIN(BOOT_16), 95 MESON_PIN(BOOT_17), 96 MESON_PIN(BOOT_18), |
99 | 97 |
100 MESON_PIN(DIF_0_P, 0), 101 MESON_PIN(DIF_0_N, 0), 102 MESON_PIN(DIF_1_P, 0), 103 MESON_PIN(DIF_1_N, 0), 104 MESON_PIN(DIF_2_P, 0), 105 MESON_PIN(DIF_2_N, 0), 106 MESON_PIN(DIF_3_P, 0), 107 MESON_PIN(DIF_3_N, 0), 108 MESON_PIN(DIF_4_P, 0), 109 MESON_PIN(DIF_4_N, 0), | 98 MESON_PIN(DIF_0_P), 99 MESON_PIN(DIF_0_N), 100 MESON_PIN(DIF_1_P), 101 MESON_PIN(DIF_1_N), 102 MESON_PIN(DIF_2_P), 103 MESON_PIN(DIF_2_N), 104 MESON_PIN(DIF_3_P), 105 MESON_PIN(DIF_3_N), 106 MESON_PIN(DIF_4_P), 107 MESON_PIN(DIF_4_N), |
110}; 111 112static const struct pinctrl_pin_desc meson8b_aobus_pins[] = { | 108}; 109 110static const struct pinctrl_pin_desc meson8b_aobus_pins[] = { |
113 MESON_PIN(GPIOAO_0, AO_OFF), 114 MESON_PIN(GPIOAO_1, AO_OFF), 115 MESON_PIN(GPIOAO_2, AO_OFF), 116 MESON_PIN(GPIOAO_3, AO_OFF), 117 MESON_PIN(GPIOAO_4, AO_OFF), 118 MESON_PIN(GPIOAO_5, AO_OFF), 119 MESON_PIN(GPIOAO_6, AO_OFF), 120 MESON_PIN(GPIOAO_7, AO_OFF), 121 MESON_PIN(GPIOAO_8, AO_OFF), 122 MESON_PIN(GPIOAO_9, AO_OFF), 123 MESON_PIN(GPIOAO_10, AO_OFF), 124 MESON_PIN(GPIOAO_11, AO_OFF), 125 MESON_PIN(GPIOAO_12, AO_OFF), 126 MESON_PIN(GPIOAO_13, AO_OFF), | 111 MESON_PIN(GPIOAO_0), 112 MESON_PIN(GPIOAO_1), 113 MESON_PIN(GPIOAO_2), 114 MESON_PIN(GPIOAO_3), 115 MESON_PIN(GPIOAO_4), 116 MESON_PIN(GPIOAO_5), 117 MESON_PIN(GPIOAO_6), 118 MESON_PIN(GPIOAO_7), 119 MESON_PIN(GPIOAO_8), 120 MESON_PIN(GPIOAO_9), 121 MESON_PIN(GPIOAO_10), 122 MESON_PIN(GPIOAO_11), 123 MESON_PIN(GPIOAO_12), 124 MESON_PIN(GPIOAO_13), |
127 128 /* 129 * The following 2 pins are not mentionned in the public datasheet 130 * According to this datasheet, they can't be used with the gpio 131 * interrupt controller 132 */ | 125 126 /* 127 * The following 2 pins are not mentionned in the public datasheet 128 * According to this datasheet, they can't be used with the gpio 129 * interrupt controller 130 */ |
133 MESON_PIN(GPIO_BSD_EN, AO_OFF), 134 MESON_PIN(GPIO_TEST_N, AO_OFF), | 131 MESON_PIN(GPIO_BSD_EN), 132 MESON_PIN(GPIO_TEST_N), |
135}; 136 137/* bank X */ | 133}; 134 135/* bank X */ |
138static const unsigned int sd_d0_a_pins[] = { PIN(GPIOX_0, 0) }; 139static const unsigned int sd_d1_a_pins[] = { PIN(GPIOX_1, 0) }; 140static const unsigned int sd_d2_a_pins[] = { PIN(GPIOX_2, 0) }; 141static const unsigned int sd_d3_a_pins[] = { PIN(GPIOX_3, 0) }; 142static const unsigned int sdxc_d0_0_a_pins[] = { PIN(GPIOX_4, 0) }; 143static const unsigned int sdxc_d47_a_pins[] = { PIN(GPIOX_4, 0), PIN(GPIOX_5, 0), 144 PIN(GPIOX_6, 0), PIN(GPIOX_7, 0) }; 145static const unsigned int sdxc_d13_0_a_pins[] = { PIN(GPIOX_5, 0), PIN(GPIOX_6, 0), 146 PIN(GPIOX_7, 0) }; 147static const unsigned int sd_clk_a_pins[] = { PIN(GPIOX_8, 0) }; 148static const unsigned int sd_cmd_a_pins[] = { PIN(GPIOX_9, 0) }; 149static const unsigned int xtal_32k_out_pins[] = { PIN(GPIOX_10, 0) }; 150static const unsigned int xtal_24m_out_pins[] = { PIN(GPIOX_11, 0) }; 151static const unsigned int uart_tx_b0_pins[] = { PIN(GPIOX_16, 0) }; 152static const unsigned int uart_rx_b0_pins[] = { PIN(GPIOX_17, 0) }; 153static const unsigned int uart_cts_b0_pins[] = { PIN(GPIOX_18, 0) }; 154static const unsigned int uart_rts_b0_pins[] = { PIN(GPIOX_19, 0) }; | 136static const unsigned int sd_d0_a_pins[] = { GPIOX_0 }; 137static const unsigned int sd_d1_a_pins[] = { GPIOX_1 }; 138static const unsigned int sd_d2_a_pins[] = { GPIOX_2 }; 139static const unsigned int sd_d3_a_pins[] = { GPIOX_3 }; 140static const unsigned int sdxc_d0_0_a_pins[] = { GPIOX_4 }; 141static const unsigned int sdxc_d47_a_pins[] = { GPIOX_4, GPIOX_5, 142 GPIOX_6, GPIOX_7 }; 143static const unsigned int sdxc_d13_0_a_pins[] = { GPIOX_5, GPIOX_6, 144 GPIOX_7 }; 145static const unsigned int sd_clk_a_pins[] = { GPIOX_8 }; 146static const unsigned int sd_cmd_a_pins[] = { GPIOX_9 }; 147static const unsigned int xtal_32k_out_pins[] = { GPIOX_10 }; 148static const unsigned int xtal_24m_out_pins[] = { GPIOX_11 }; 149static const unsigned int uart_tx_b0_pins[] = { GPIOX_16 }; 150static const unsigned int uart_rx_b0_pins[] = { GPIOX_17 }; 151static const unsigned int uart_cts_b0_pins[] = { GPIOX_18 }; 152static const unsigned int uart_rts_b0_pins[] = { GPIOX_19 }; |
155 | 153 |
156static const unsigned int sdxc_d0_1_a_pins[] = { PIN(GPIOX_0, 0) }; 157static const unsigned int sdxc_d13_1_a_pins[] = { PIN(GPIOX_1, 0), PIN(GPIOX_2, 0), 158 PIN(GPIOX_3, 0) }; 159static const unsigned int pcm_out_a_pins[] = { PIN(GPIOX_4, 0) }; 160static const unsigned int pcm_in_a_pins[] = { PIN(GPIOX_5, 0) }; 161static const unsigned int pcm_fs_a_pins[] = { PIN(GPIOX_6, 0) }; 162static const unsigned int pcm_clk_a_pins[] = { PIN(GPIOX_7, 0) }; 163static const unsigned int sdxc_clk_a_pins[] = { PIN(GPIOX_8, 0) }; 164static const unsigned int sdxc_cmd_a_pins[] = { PIN(GPIOX_9, 0) }; 165static const unsigned int pwm_vs_0_pins[] = { PIN(GPIOX_10, 0) }; 166static const unsigned int pwm_e_pins[] = { PIN(GPIOX_10, 0) }; 167static const unsigned int pwm_vs_1_pins[] = { PIN(GPIOX_11, 0) }; | 154static const unsigned int sdxc_d0_1_a_pins[] = { GPIOX_0 }; 155static const unsigned int sdxc_d13_1_a_pins[] = { GPIOX_1, GPIOX_2, 156 GPIOX_3 }; 157static const unsigned int pcm_out_a_pins[] = { GPIOX_4 }; 158static const unsigned int pcm_in_a_pins[] = { GPIOX_5 }; 159static const unsigned int pcm_fs_a_pins[] = { GPIOX_6 }; 160static const unsigned int pcm_clk_a_pins[] = { GPIOX_7 }; 161static const unsigned int sdxc_clk_a_pins[] = { GPIOX_8 }; 162static const unsigned int sdxc_cmd_a_pins[] = { GPIOX_9 }; 163static const unsigned int pwm_vs_0_pins[] = { GPIOX_10 }; 164static const unsigned int pwm_e_pins[] = { GPIOX_10 }; 165static const unsigned int pwm_vs_1_pins[] = { GPIOX_11 }; |
168 | 166 |
169static const unsigned int uart_tx_a_pins[] = { PIN(GPIOX_4, 0) }; 170static const unsigned int uart_rx_a_pins[] = { PIN(GPIOX_5, 0) }; 171static const unsigned int uart_cts_a_pins[] = { PIN(GPIOX_6, 0) }; 172static const unsigned int uart_rts_a_pins[] = { PIN(GPIOX_7, 0) }; 173static const unsigned int uart_tx_b1_pins[] = { PIN(GPIOX_8, 0) }; 174static const unsigned int uart_rx_b1_pins[] = { PIN(GPIOX_9, 0) }; 175static const unsigned int uart_cts_b1_pins[] = { PIN(GPIOX_10, 0) }; 176static const unsigned int uart_rts_b1_pins[] = { PIN(GPIOX_20, 0) }; | 167static const unsigned int uart_tx_a_pins[] = { GPIOX_4 }; 168static const unsigned int uart_rx_a_pins[] = { GPIOX_5 }; 169static const unsigned int uart_cts_a_pins[] = { GPIOX_6 }; 170static const unsigned int uart_rts_a_pins[] = { GPIOX_7 }; 171static const unsigned int uart_tx_b1_pins[] = { GPIOX_8 }; 172static const unsigned int uart_rx_b1_pins[] = { GPIOX_9 }; 173static const unsigned int uart_cts_b1_pins[] = { GPIOX_10 }; 174static const unsigned int uart_rts_b1_pins[] = { GPIOX_20 }; |
177 | 175 |
178static const unsigned int iso7816_0_clk_pins[] = { PIN(GPIOX_6, 0) }; 179static const unsigned int iso7816_0_data_pins[] = { PIN(GPIOX_7, 0) }; 180static const unsigned int spi_sclk_0_pins[] = { PIN(GPIOX_8, 0) }; 181static const unsigned int spi_miso_0_pins[] = { PIN(GPIOX_9, 0) }; 182static const unsigned int spi_mosi_0_pins[] = { PIN(GPIOX_10, 0) }; 183static const unsigned int iso7816_det_pins[] = { PIN(GPIOX_16, 0) }; 184static const unsigned int iso7816_reset_pins[] = { PIN(GPIOX_17, 0) }; 185static const unsigned int iso7816_1_clk_pins[] = { PIN(GPIOX_18, 0) }; 186static const unsigned int iso7816_1_data_pins[] = { PIN(GPIOX_19, 0) }; 187static const unsigned int spi_ss0_0_pins[] = { PIN(GPIOX_20, 0) }; | 176static const unsigned int iso7816_0_clk_pins[] = { GPIOX_6 }; 177static const unsigned int iso7816_0_data_pins[] = { GPIOX_7 }; 178static const unsigned int spi_sclk_0_pins[] = { GPIOX_8 }; 179static const unsigned int spi_miso_0_pins[] = { GPIOX_9 }; 180static const unsigned int spi_mosi_0_pins[] = { GPIOX_10 }; 181static const unsigned int iso7816_det_pins[] = { GPIOX_16 }; 182static const unsigned int iso7816_reset_pins[] = { GPIOX_17 }; 183static const unsigned int iso7816_1_clk_pins[] = { GPIOX_18 }; 184static const unsigned int iso7816_1_data_pins[] = { GPIOX_19 }; 185static const unsigned int spi_ss0_0_pins[] = { GPIOX_20 }; |
188 | 186 |
189static const unsigned int tsin_clk_b_pins[] = { PIN(GPIOX_8, 0) }; 190static const unsigned int tsin_sop_b_pins[] = { PIN(GPIOX_9, 0) }; 191static const unsigned int tsin_d0_b_pins[] = { PIN(GPIOX_10, 0) }; 192static const unsigned int pwm_b_pins[] = { PIN(GPIOX_11, 0) }; 193static const unsigned int i2c_sda_d0_pins[] = { PIN(GPIOX_16, 0) }; 194static const unsigned int i2c_sck_d0_pins[] = { PIN(GPIOX_17, 0) }; 195static const unsigned int tsin_d_valid_b_pins[] = { PIN(GPIOX_20, 0) }; | 187static const unsigned int tsin_clk_b_pins[] = { GPIOX_8 }; 188static const unsigned int tsin_sop_b_pins[] = { GPIOX_9 }; 189static const unsigned int tsin_d0_b_pins[] = { GPIOX_10 }; 190static const unsigned int pwm_b_pins[] = { GPIOX_11 }; 191static const unsigned int i2c_sda_d0_pins[] = { GPIOX_16 }; 192static const unsigned int i2c_sck_d0_pins[] = { GPIOX_17 }; 193static const unsigned int tsin_d_valid_b_pins[] = { GPIOX_20 }; |
196 197/* bank Y */ | 194 195/* bank Y */ |
198static const unsigned int tsin_d_valid_a_pins[] = { PIN(GPIOY_0, 0) }; 199static const unsigned int tsin_sop_a_pins[] = { PIN(GPIOY_1, 0) }; 200static const unsigned int tsin_d17_a_pins[] = { PIN(GPIOY_6, 0), PIN(GPIOY_7, 0), 201 PIN(GPIOY_10, 0), PIN(GPIOY_11, 0), 202 PIN(GPIOY_12, 0), PIN(GPIOY_13, 0), 203 PIN(GPIOY_14, 0) }; 204static const unsigned int tsin_clk_a_pins[] = { PIN(GPIOY_8, 0) }; 205static const unsigned int tsin_d0_a_pins[] = { PIN(GPIOY_9, 0) }; | 196static const unsigned int tsin_d_valid_a_pins[] = { GPIOY_0 }; 197static const unsigned int tsin_sop_a_pins[] = { GPIOY_1 }; 198static const unsigned int tsin_d17_a_pins[] = { 199 GPIOY_6, GPIOY_7, GPIOY_10, GPIOY_11, GPIOY_12, GPIOY_13, GPIOY_14, 200}; 201static const unsigned int tsin_clk_a_pins[] = { GPIOY_8 }; 202static const unsigned int tsin_d0_a_pins[] = { GPIOY_9 }; |
206 | 203 |
207static const unsigned int spdif_out_0_pins[] = { PIN(GPIOY_3, 0) }; | 204static const unsigned int spdif_out_0_pins[] = { GPIOY_3 }; |
208 | 205 |
209static const unsigned int xtal_24m_pins[] = { PIN(GPIOY_3, 0) }; 210static const unsigned int iso7816_2_clk_pins[] = { PIN(GPIOY_13, 0) }; 211static const unsigned int iso7816_2_data_pins[] = { PIN(GPIOY_14, 0) }; | 206static const unsigned int xtal_24m_pins[] = { GPIOY_3 }; 207static const unsigned int iso7816_2_clk_pins[] = { GPIOY_13 }; 208static const unsigned int iso7816_2_data_pins[] = { GPIOY_14 }; |
212 213/* bank DV */ | 209 210/* bank DV */ |
214static const unsigned int pwm_d_pins[] = { PIN(GPIODV_28, 0) }; 215static const unsigned int pwm_c0_pins[] = { PIN(GPIODV_29, 0) }; | 211static const unsigned int pwm_d_pins[] = { GPIODV_28 }; 212static const unsigned int pwm_c0_pins[] = { GPIODV_29 }; |
216 | 213 |
217static const unsigned int pwm_vs_2_pins[] = { PIN(GPIODV_9, 0) }; 218static const unsigned int pwm_vs_3_pins[] = { PIN(GPIODV_28, 0) }; 219static const unsigned int pwm_vs_4_pins[] = { PIN(GPIODV_29, 0) }; | 214static const unsigned int pwm_vs_2_pins[] = { GPIODV_9 }; 215static const unsigned int pwm_vs_3_pins[] = { GPIODV_28 }; 216static const unsigned int pwm_vs_4_pins[] = { GPIODV_29 }; |
220 | 217 |
221static const unsigned int xtal24_out_pins[] = { PIN(GPIODV_29, 0) }; | 218static const unsigned int xtal24_out_pins[] = { GPIODV_29 }; |
222 | 219 |
223static const unsigned int uart_tx_c_pins[] = { PIN(GPIODV_24, 0) }; 224static const unsigned int uart_rx_c_pins[] = { PIN(GPIODV_25, 0) }; 225static const unsigned int uart_cts_c_pins[] = { PIN(GPIODV_26, 0) }; 226static const unsigned int uart_rts_c_pins[] = { PIN(GPIODV_27, 0) }; | 220static const unsigned int uart_tx_c_pins[] = { GPIODV_24 }; 221static const unsigned int uart_rx_c_pins[] = { GPIODV_25 }; 222static const unsigned int uart_cts_c_pins[] = { GPIODV_26 }; 223static const unsigned int uart_rts_c_pins[] = { GPIODV_27 }; |
227 | 224 |
228static const unsigned int pwm_c1_pins[] = { PIN(GPIODV_9, 0) }; | 225static const unsigned int pwm_c1_pins[] = { GPIODV_9 }; |
229 | 226 |
230static const unsigned int i2c_sda_a_pins[] = { PIN(GPIODV_24, 0) }; 231static const unsigned int i2c_sck_a_pins[] = { PIN(GPIODV_25, 0) }; 232static const unsigned int i2c_sda_b0_pins[] = { PIN(GPIODV_26, 0) }; 233static const unsigned int i2c_sck_b0_pins[] = { PIN(GPIODV_27, 0) }; 234static const unsigned int i2c_sda_c0_pins[] = { PIN(GPIODV_28, 0) }; 235static const unsigned int i2c_sck_c0_pins[] = { PIN(GPIODV_29, 0) }; | 227static const unsigned int i2c_sda_a_pins[] = { GPIODV_24 }; 228static const unsigned int i2c_sck_a_pins[] = { GPIODV_25 }; 229static const unsigned int i2c_sda_b0_pins[] = { GPIODV_26 }; 230static const unsigned int i2c_sck_b0_pins[] = { GPIODV_27 }; 231static const unsigned int i2c_sda_c0_pins[] = { GPIODV_28 }; 232static const unsigned int i2c_sck_c0_pins[] = { GPIODV_29 }; |
236 237/* bank H */ | 233 234/* bank H */ |
238static const unsigned int hdmi_hpd_pins[] = { PIN(GPIOH_0, 0) }; 239static const unsigned int hdmi_sda_pins[] = { PIN(GPIOH_1, 0) }; 240static const unsigned int hdmi_scl_pins[] = { PIN(GPIOH_2, 0) }; 241static const unsigned int hdmi_cec_0_pins[] = { PIN(GPIOH_3, 0) }; 242static const unsigned int eth_txd1_0_pins[] = { PIN(GPIOH_5, 0) }; 243static const unsigned int eth_txd0_0_pins[] = { PIN(GPIOH_6, 0) }; 244static const unsigned int clk_24m_out_pins[] = { PIN(GPIOH_9, 0) }; | 235static const unsigned int hdmi_hpd_pins[] = { GPIOH_0 }; 236static const unsigned int hdmi_sda_pins[] = { GPIOH_1 }; 237static const unsigned int hdmi_scl_pins[] = { GPIOH_2 }; 238static const unsigned int hdmi_cec_0_pins[] = { GPIOH_3 }; 239static const unsigned int eth_txd1_0_pins[] = { GPIOH_5 }; 240static const unsigned int eth_txd0_0_pins[] = { GPIOH_6 }; 241static const unsigned int clk_24m_out_pins[] = { GPIOH_9 }; |
245 | 242 |
246static const unsigned int spi_ss1_pins[] = { PIN(GPIOH_0, 0) }; 247static const unsigned int spi_ss2_pins[] = { PIN(GPIOH_1, 0) }; 248static const unsigned int spi_ss0_1_pins[] = { PIN(GPIOH_3, 0) }; 249static const unsigned int spi_miso_1_pins[] = { PIN(GPIOH_4, 0) }; 250static const unsigned int spi_mosi_1_pins[] = { PIN(GPIOH_5, 0) }; 251static const unsigned int spi_sclk_1_pins[] = { PIN(GPIOH_6, 0) }; | 243static const unsigned int spi_ss1_pins[] = { GPIOH_0 }; 244static const unsigned int spi_ss2_pins[] = { GPIOH_1 }; 245static const unsigned int spi_ss0_1_pins[] = { GPIOH_3 }; 246static const unsigned int spi_miso_1_pins[] = { GPIOH_4 }; 247static const unsigned int spi_mosi_1_pins[] = { GPIOH_5 }; 248static const unsigned int spi_sclk_1_pins[] = { GPIOH_6 }; |
252 | 249 |
253static const unsigned int eth_txd3_pins[] = { PIN(GPIOH_7, 0) }; 254static const unsigned int eth_txd2_pins[] = { PIN(GPIOH_8, 0) }; 255static const unsigned int eth_tx_clk_pins[] = { PIN(GPIOH_9, 0) }; | 250static const unsigned int eth_txd3_pins[] = { GPIOH_7 }; 251static const unsigned int eth_txd2_pins[] = { GPIOH_8 }; 252static const unsigned int eth_tx_clk_pins[] = { GPIOH_9 }; |
256 | 253 |
257static const unsigned int i2c_sda_b1_pins[] = { PIN(GPIOH_3, 0) }; 258static const unsigned int i2c_sck_b1_pins[] = { PIN(GPIOH_4, 0) }; 259static const unsigned int i2c_sda_c1_pins[] = { PIN(GPIOH_5, 0) }; 260static const unsigned int i2c_sck_c1_pins[] = { PIN(GPIOH_6, 0) }; 261static const unsigned int i2c_sda_d1_pins[] = { PIN(GPIOH_7, 0) }; 262static const unsigned int i2c_sck_d1_pins[] = { PIN(GPIOH_8, 0) }; | 254static const unsigned int i2c_sda_b1_pins[] = { GPIOH_3 }; 255static const unsigned int i2c_sck_b1_pins[] = { GPIOH_4 }; 256static const unsigned int i2c_sda_c1_pins[] = { GPIOH_5 }; 257static const unsigned int i2c_sck_c1_pins[] = { GPIOH_6 }; 258static const unsigned int i2c_sda_d1_pins[] = { GPIOH_7 }; 259static const unsigned int i2c_sck_d1_pins[] = { GPIOH_8 }; |
263 264/* bank BOOT */ | 260 261/* bank BOOT */ |
265static const unsigned int nand_io_pins[] = { PIN(BOOT_0, 0), PIN(BOOT_1, 0), 266 PIN(BOOT_2, 0), PIN(BOOT_3, 0), 267 PIN(BOOT_4, 0), PIN(BOOT_5, 0), 268 PIN(BOOT_6, 0), PIN(BOOT_7, 0) }; 269static const unsigned int nand_io_ce0_pins[] = { PIN(BOOT_8, 0) }; 270static const unsigned int nand_io_ce1_pins[] = { PIN(BOOT_9, 0) }; 271static const unsigned int nand_io_rb0_pins[] = { PIN(BOOT_10, 0) }; 272static const unsigned int nand_ale_pins[] = { PIN(BOOT_11, 0) }; 273static const unsigned int nand_cle_pins[] = { PIN(BOOT_12, 0) }; 274static const unsigned int nand_wen_clk_pins[] = { PIN(BOOT_13, 0) }; 275static const unsigned int nand_ren_clk_pins[] = { PIN(BOOT_14, 0) }; 276static const unsigned int nand_dqs_15_pins[] = { PIN(BOOT_15, 0) }; 277static const unsigned int nand_dqs_18_pins[] = { PIN(BOOT_18, 0) }; | 262static const unsigned int nand_io_pins[] = { 263 BOOT_0, BOOT_1, BOOT_2, BOOT_3, BOOT_4, BOOT_5, BOOT_6, BOOT_7 264}; 265static const unsigned int nand_io_ce0_pins[] = { BOOT_8 }; 266static const unsigned int nand_io_ce1_pins[] = { BOOT_9 }; 267static const unsigned int nand_io_rb0_pins[] = { BOOT_10 }; 268static const unsigned int nand_ale_pins[] = { BOOT_11 }; 269static const unsigned int nand_cle_pins[] = { BOOT_12 }; 270static const unsigned int nand_wen_clk_pins[] = { BOOT_13 }; 271static const unsigned int nand_ren_clk_pins[] = { BOOT_14 }; 272static const unsigned int nand_dqs_15_pins[] = { BOOT_15 }; 273static const unsigned int nand_dqs_18_pins[] = { BOOT_18 }; |
278 | 274 |
279static const unsigned int sdxc_d0_c_pins[] = { PIN(BOOT_0, 0)}; 280static const unsigned int sdxc_d13_c_pins[] = { PIN(BOOT_1, 0), PIN(BOOT_2, 0), 281 PIN(BOOT_3, 0) }; 282static const unsigned int sdxc_d47_c_pins[] = { PIN(BOOT_4, 0), PIN(BOOT_5, 0), 283 PIN(BOOT_6, 0), PIN(BOOT_7, 0) }; 284static const unsigned int sdxc_clk_c_pins[] = { PIN(BOOT_8, 0) }; 285static const unsigned int sdxc_cmd_c_pins[] = { PIN(BOOT_10, 0) }; 286static const unsigned int nor_d_pins[] = { PIN(BOOT_11, 0) }; 287static const unsigned int nor_q_pins[] = { PIN(BOOT_12, 0) }; 288static const unsigned int nor_c_pins[] = { PIN(BOOT_13, 0) }; 289static const unsigned int nor_cs_pins[] = { PIN(BOOT_18, 0) }; | 275static const unsigned int sdxc_d0_c_pins[] = { BOOT_0}; 276static const unsigned int sdxc_d13_c_pins[] = { BOOT_1, BOOT_2, 277 BOOT_3 }; 278static const unsigned int sdxc_d47_c_pins[] = { BOOT_4, BOOT_5, 279 BOOT_6, BOOT_7 }; 280static const unsigned int sdxc_clk_c_pins[] = { BOOT_8 }; 281static const unsigned int sdxc_cmd_c_pins[] = { BOOT_10 }; 282static const unsigned int nor_d_pins[] = { BOOT_11 }; 283static const unsigned int nor_q_pins[] = { BOOT_12 }; 284static const unsigned int nor_c_pins[] = { BOOT_13 }; 285static const unsigned int nor_cs_pins[] = { BOOT_18 }; |
290 | 286 |
291static const unsigned int sd_d0_c_pins[] = { PIN(BOOT_0, 0) }; 292static const unsigned int sd_d1_c_pins[] = { PIN(BOOT_1, 0) }; 293static const unsigned int sd_d2_c_pins[] = { PIN(BOOT_2, 0) }; 294static const unsigned int sd_d3_c_pins[] = { PIN(BOOT_3, 0) }; 295static const unsigned int sd_cmd_c_pins[] = { PIN(BOOT_8, 0) }; 296static const unsigned int sd_clk_c_pins[] = { PIN(BOOT_10, 0) }; | 287static const unsigned int sd_d0_c_pins[] = { BOOT_0 }; 288static const unsigned int sd_d1_c_pins[] = { BOOT_1 }; 289static const unsigned int sd_d2_c_pins[] = { BOOT_2 }; 290static const unsigned int sd_d3_c_pins[] = { BOOT_3 }; 291static const unsigned int sd_cmd_c_pins[] = { BOOT_8 }; 292static const unsigned int sd_clk_c_pins[] = { BOOT_10 }; |
297 298/* bank CARD */ | 293 294/* bank CARD */ |
299static const unsigned int sd_d1_b_pins[] = { PIN(CARD_0, 0) }; 300static const unsigned int sd_d0_b_pins[] = { PIN(CARD_1, 0) }; 301static const unsigned int sd_clk_b_pins[] = { PIN(CARD_2, 0) }; 302static const unsigned int sd_cmd_b_pins[] = { PIN(CARD_3, 0) }; 303static const unsigned int sd_d3_b_pins[] = { PIN(CARD_4, 0) }; 304static const unsigned int sd_d2_b_pins[] = { PIN(CARD_5, 0) }; | 295static const unsigned int sd_d1_b_pins[] = { CARD_0 }; 296static const unsigned int sd_d0_b_pins[] = { CARD_1 }; 297static const unsigned int sd_clk_b_pins[] = { CARD_2 }; 298static const unsigned int sd_cmd_b_pins[] = { CARD_3 }; 299static const unsigned int sd_d3_b_pins[] = { CARD_4 }; 300static const unsigned int sd_d2_b_pins[] = { CARD_5 }; |
305 | 301 |
306static const unsigned int sdxc_d13_b_pins[] = { PIN(CARD_0, 0), PIN(CARD_4, 0), 307 PIN(CARD_5, 0) }; 308static const unsigned int sdxc_d0_b_pins[] = { PIN(CARD_1, 0) }; 309static const unsigned int sdxc_clk_b_pins[] = { PIN(CARD_2, 0) }; 310static const unsigned int sdxc_cmd_b_pins[] = { PIN(CARD_3, 0) }; | 302static const unsigned int sdxc_d13_b_pins[] = { CARD_0, CARD_4, 303 CARD_5 }; 304static const unsigned int sdxc_d0_b_pins[] = { CARD_1 }; 305static const unsigned int sdxc_clk_b_pins[] = { CARD_2 }; 306static const unsigned int sdxc_cmd_b_pins[] = { CARD_3 }; |
311 312/* bank AO */ | 307 308/* bank AO */ |
313static const unsigned int uart_tx_ao_a_pins[] = { PIN(GPIOAO_0, AO_OFF) }; 314static const unsigned int uart_rx_ao_a_pins[] = { PIN(GPIOAO_1, AO_OFF) }; 315static const unsigned int uart_cts_ao_a_pins[] = { PIN(GPIOAO_2, AO_OFF) }; 316static const unsigned int uart_rts_ao_a_pins[] = { PIN(GPIOAO_3, AO_OFF) }; 317static const unsigned int i2c_mst_sck_ao_pins[] = { PIN(GPIOAO_4, AO_OFF) }; 318static const unsigned int i2c_mst_sda_ao_pins[] = { PIN(GPIOAO_5, AO_OFF) }; 319static const unsigned int clk_32k_in_out_pins[] = { PIN(GPIOAO_6, AO_OFF) }; 320static const unsigned int remote_input_pins[] = { PIN(GPIOAO_7, AO_OFF) }; 321static const unsigned int hdmi_cec_1_pins[] = { PIN(GPIOAO_12, AO_OFF) }; 322static const unsigned int ir_blaster_pins[] = { PIN(GPIOAO_13, AO_OFF) }; | 309static const unsigned int uart_tx_ao_a_pins[] = { GPIOAO_0 }; 310static const unsigned int uart_rx_ao_a_pins[] = { GPIOAO_1 }; 311static const unsigned int uart_cts_ao_a_pins[] = { GPIOAO_2 }; 312static const unsigned int uart_rts_ao_a_pins[] = { GPIOAO_3 }; 313static const unsigned int i2c_mst_sck_ao_pins[] = { GPIOAO_4 }; 314static const unsigned int i2c_mst_sda_ao_pins[] = { GPIOAO_5 }; 315static const unsigned int clk_32k_in_out_pins[] = { GPIOAO_6 }; 316static const unsigned int remote_input_pins[] = { GPIOAO_7 }; 317static const unsigned int hdmi_cec_1_pins[] = { GPIOAO_12 }; 318static const unsigned int ir_blaster_pins[] = { GPIOAO_13 }; |
323 | 319 |
324static const unsigned int pwm_c2_pins[] = { PIN(GPIOAO_3, AO_OFF) }; 325static const unsigned int i2c_sck_ao_pins[] = { PIN(GPIOAO_4, AO_OFF) }; 326static const unsigned int i2c_sda_ao_pins[] = { PIN(GPIOAO_5, AO_OFF) }; 327static const unsigned int ir_remote_out_pins[] = { PIN(GPIOAO_7, AO_OFF) }; 328static const unsigned int i2s_am_clk_out_pins[] = { PIN(GPIOAO_8, AO_OFF) }; 329static const unsigned int i2s_ao_clk_out_pins[] = { PIN(GPIOAO_9, AO_OFF) }; 330static const unsigned int i2s_lr_clk_out_pins[] = { PIN(GPIOAO_10, AO_OFF) }; 331static const unsigned int i2s_out_01_pins[] = { PIN(GPIOAO_11, AO_OFF) }; | 320static const unsigned int pwm_c2_pins[] = { GPIOAO_3 }; 321static const unsigned int i2c_sck_ao_pins[] = { GPIOAO_4 }; 322static const unsigned int i2c_sda_ao_pins[] = { GPIOAO_5 }; 323static const unsigned int ir_remote_out_pins[] = { GPIOAO_7 }; 324static const unsigned int i2s_am_clk_out_pins[] = { GPIOAO_8 }; 325static const unsigned int i2s_ao_clk_out_pins[] = { GPIOAO_9 }; 326static const unsigned int i2s_lr_clk_out_pins[] = { GPIOAO_10 }; 327static const unsigned int i2s_out_01_pins[] = { GPIOAO_11 }; |
332 | 328 |
333static const unsigned int uart_tx_ao_b0_pins[] = { PIN(GPIOAO_0, AO_OFF) }; 334static const unsigned int uart_rx_ao_b0_pins[] = { PIN(GPIOAO_1, AO_OFF) }; 335static const unsigned int uart_cts_ao_b_pins[] = { PIN(GPIOAO_2, AO_OFF) }; 336static const unsigned int uart_rts_ao_b_pins[] = { PIN(GPIOAO_3, AO_OFF) }; 337static const unsigned int uart_tx_ao_b1_pins[] = { PIN(GPIOAO_4, AO_OFF) }; 338static const unsigned int uart_rx_ao_b1_pins[] = { PIN(GPIOAO_5, AO_OFF) }; 339static const unsigned int spdif_out_1_pins[] = { PIN(GPIOAO_6, AO_OFF) }; | 329static const unsigned int uart_tx_ao_b0_pins[] = { GPIOAO_0 }; 330static const unsigned int uart_rx_ao_b0_pins[] = { GPIOAO_1 }; 331static const unsigned int uart_cts_ao_b_pins[] = { GPIOAO_2 }; 332static const unsigned int uart_rts_ao_b_pins[] = { GPIOAO_3 }; 333static const unsigned int uart_tx_ao_b1_pins[] = { GPIOAO_4 }; 334static const unsigned int uart_rx_ao_b1_pins[] = { GPIOAO_5 }; 335static const unsigned int spdif_out_1_pins[] = { GPIOAO_6 }; |
340 | 336 |
341static const unsigned int i2s_in_ch01_pins[] = { PIN(GPIOAO_6, AO_OFF) }; 342static const unsigned int i2s_ao_clk_in_pins[] = { PIN(GPIOAO_9, AO_OFF) }; 343static const unsigned int i2s_lr_clk_in_pins[] = { PIN(GPIOAO_10, AO_OFF) }; | 337static const unsigned int i2s_in_ch01_pins[] = { GPIOAO_6 }; 338static const unsigned int i2s_ao_clk_in_pins[] = { GPIOAO_9 }; 339static const unsigned int i2s_lr_clk_in_pins[] = { GPIOAO_10 }; |
344 345/* bank DIF */ | 340 341/* bank DIF */ |
346static const unsigned int eth_rxd1_pins[] = { PIN(DIF_0_P, 0) }; 347static const unsigned int eth_rxd0_pins[] = { PIN(DIF_0_N, 0) }; 348static const unsigned int eth_rx_dv_pins[] = { PIN(DIF_1_P, 0) }; 349static const unsigned int eth_rx_clk_pins[] = { PIN(DIF_1_N, 0) }; 350static const unsigned int eth_txd0_1_pins[] = { PIN(DIF_2_P, 0) }; 351static const unsigned int eth_txd1_1_pins[] = { PIN(DIF_2_N, 0) }; 352static const unsigned int eth_tx_en_pins[] = { PIN(DIF_3_P, 0) }; 353static const unsigned int eth_ref_clk_pins[] = { PIN(DIF_3_N, 0) }; 354static const unsigned int eth_mdc_pins[] = { PIN(DIF_4_P, 0) }; 355static const unsigned int eth_mdio_en_pins[] = { PIN(DIF_4_N, 0) }; | 342static const unsigned int eth_rxd1_pins[] = { DIF_0_P }; 343static const unsigned int eth_rxd0_pins[] = { DIF_0_N }; 344static const unsigned int eth_rx_dv_pins[] = { DIF_1_P }; 345static const unsigned int eth_rx_clk_pins[] = { DIF_1_N }; 346static const unsigned int eth_txd0_1_pins[] = { DIF_2_P }; 347static const unsigned int eth_txd1_1_pins[] = { DIF_2_N }; 348static const unsigned int eth_tx_en_pins[] = { DIF_3_P }; 349static const unsigned int eth_ref_clk_pins[] = { DIF_3_N }; 350static const unsigned int eth_mdc_pins[] = { DIF_4_P }; 351static const unsigned int eth_mdio_en_pins[] = { DIF_4_N }; |
356 357static struct meson_pmx_group meson8b_cbus_groups[] = { | 352 353static struct meson_pmx_group meson8b_cbus_groups[] = { |
358 GPIO_GROUP(GPIOX_0, 0), 359 GPIO_GROUP(GPIOX_1, 0), 360 GPIO_GROUP(GPIOX_2, 0), 361 GPIO_GROUP(GPIOX_3, 0), 362 GPIO_GROUP(GPIOX_4, 0), 363 GPIO_GROUP(GPIOX_5, 0), 364 GPIO_GROUP(GPIOX_6, 0), 365 GPIO_GROUP(GPIOX_7, 0), 366 GPIO_GROUP(GPIOX_8, 0), 367 GPIO_GROUP(GPIOX_9, 0), 368 GPIO_GROUP(GPIOX_10, 0), 369 GPIO_GROUP(GPIOX_11, 0), 370 GPIO_GROUP(GPIOX_16, 0), 371 GPIO_GROUP(GPIOX_17, 0), 372 GPIO_GROUP(GPIOX_18, 0), 373 GPIO_GROUP(GPIOX_19, 0), 374 GPIO_GROUP(GPIOX_20, 0), 375 GPIO_GROUP(GPIOX_21, 0), | 354 GPIO_GROUP(GPIOX_0), 355 GPIO_GROUP(GPIOX_1), 356 GPIO_GROUP(GPIOX_2), 357 GPIO_GROUP(GPIOX_3), 358 GPIO_GROUP(GPIOX_4), 359 GPIO_GROUP(GPIOX_5), 360 GPIO_GROUP(GPIOX_6), 361 GPIO_GROUP(GPIOX_7), 362 GPIO_GROUP(GPIOX_8), 363 GPIO_GROUP(GPIOX_9), 364 GPIO_GROUP(GPIOX_10), 365 GPIO_GROUP(GPIOX_11), 366 GPIO_GROUP(GPIOX_16), 367 GPIO_GROUP(GPIOX_17), 368 GPIO_GROUP(GPIOX_18), 369 GPIO_GROUP(GPIOX_19), 370 GPIO_GROUP(GPIOX_20), 371 GPIO_GROUP(GPIOX_21), |
376 | 372 |
377 GPIO_GROUP(GPIOY_0, 0), 378 GPIO_GROUP(GPIOY_1, 0), 379 GPIO_GROUP(GPIOY_3, 0), 380 GPIO_GROUP(GPIOY_6, 0), 381 GPIO_GROUP(GPIOY_7, 0), 382 GPIO_GROUP(GPIOY_8, 0), 383 GPIO_GROUP(GPIOY_9, 0), 384 GPIO_GROUP(GPIOY_10, 0), 385 GPIO_GROUP(GPIOY_11, 0), 386 GPIO_GROUP(GPIOY_12, 0), 387 GPIO_GROUP(GPIOY_13, 0), 388 GPIO_GROUP(GPIOY_14, 0), | 373 GPIO_GROUP(GPIOY_0), 374 GPIO_GROUP(GPIOY_1), 375 GPIO_GROUP(GPIOY_3), 376 GPIO_GROUP(GPIOY_6), 377 GPIO_GROUP(GPIOY_7), 378 GPIO_GROUP(GPIOY_8), 379 GPIO_GROUP(GPIOY_9), 380 GPIO_GROUP(GPIOY_10), 381 GPIO_GROUP(GPIOY_11), 382 GPIO_GROUP(GPIOY_12), 383 GPIO_GROUP(GPIOY_13), 384 GPIO_GROUP(GPIOY_14), |
389 | 385 |
390 GPIO_GROUP(GPIODV_9, 0), 391 GPIO_GROUP(GPIODV_24, 0), 392 GPIO_GROUP(GPIODV_25, 0), 393 GPIO_GROUP(GPIODV_26, 0), 394 GPIO_GROUP(GPIODV_27, 0), 395 GPIO_GROUP(GPIODV_28, 0), 396 GPIO_GROUP(GPIODV_29, 0), | 386 GPIO_GROUP(GPIODV_9), 387 GPIO_GROUP(GPIODV_24), 388 GPIO_GROUP(GPIODV_25), 389 GPIO_GROUP(GPIODV_26), 390 GPIO_GROUP(GPIODV_27), 391 GPIO_GROUP(GPIODV_28), 392 GPIO_GROUP(GPIODV_29), |
397 | 393 |
398 GPIO_GROUP(GPIOH_0, 0), 399 GPIO_GROUP(GPIOH_1, 0), 400 GPIO_GROUP(GPIOH_2, 0), 401 GPIO_GROUP(GPIOH_3, 0), 402 GPIO_GROUP(GPIOH_4, 0), 403 GPIO_GROUP(GPIOH_5, 0), 404 GPIO_GROUP(GPIOH_6, 0), 405 GPIO_GROUP(GPIOH_7, 0), 406 GPIO_GROUP(GPIOH_8, 0), 407 GPIO_GROUP(GPIOH_9, 0), | 394 GPIO_GROUP(GPIOH_0), 395 GPIO_GROUP(GPIOH_1), 396 GPIO_GROUP(GPIOH_2), 397 GPIO_GROUP(GPIOH_3), 398 GPIO_GROUP(GPIOH_4), 399 GPIO_GROUP(GPIOH_5), 400 GPIO_GROUP(GPIOH_6), 401 GPIO_GROUP(GPIOH_7), 402 GPIO_GROUP(GPIOH_8), 403 GPIO_GROUP(GPIOH_9), |
408 | 404 |
409 GPIO_GROUP(DIF_0_P, 0), 410 GPIO_GROUP(DIF_0_N, 0), 411 GPIO_GROUP(DIF_1_P, 0), 412 GPIO_GROUP(DIF_1_N, 0), 413 GPIO_GROUP(DIF_2_P, 0), 414 GPIO_GROUP(DIF_2_N, 0), 415 GPIO_GROUP(DIF_3_P, 0), 416 GPIO_GROUP(DIF_3_N, 0), 417 GPIO_GROUP(DIF_4_P, 0), 418 GPIO_GROUP(DIF_4_N, 0), | 405 GPIO_GROUP(DIF_0_P), 406 GPIO_GROUP(DIF_0_N), 407 GPIO_GROUP(DIF_1_P), 408 GPIO_GROUP(DIF_1_N), 409 GPIO_GROUP(DIF_2_P), 410 GPIO_GROUP(DIF_2_N), 411 GPIO_GROUP(DIF_3_P), 412 GPIO_GROUP(DIF_3_N), 413 GPIO_GROUP(DIF_4_P), 414 GPIO_GROUP(DIF_4_N), |
419 420 /* bank X */ 421 GROUP(sd_d0_a, 8, 5), 422 GROUP(sd_d1_a, 8, 4), 423 GROUP(sd_d2_a, 8, 3), 424 GROUP(sd_d3_a, 8, 2), 425 GROUP(sdxc_d0_0_a, 5, 29), 426 GROUP(sdxc_d47_a, 5, 12), --- 145 unchanged lines hidden (view full) --- 572 GROUP(eth_txd1_1, 6, 5), 573 GROUP(eth_tx_en, 6, 6), 574 GROUP(eth_ref_clk, 6, 8), 575 GROUP(eth_mdc, 6, 9), 576 GROUP(eth_mdio_en, 6, 10), 577}; 578 579static struct meson_pmx_group meson8b_aobus_groups[] = { | 415 416 /* bank X */ 417 GROUP(sd_d0_a, 8, 5), 418 GROUP(sd_d1_a, 8, 4), 419 GROUP(sd_d2_a, 8, 3), 420 GROUP(sd_d3_a, 8, 2), 421 GROUP(sdxc_d0_0_a, 5, 29), 422 GROUP(sdxc_d47_a, 5, 12), --- 145 unchanged lines hidden (view full) --- 568 GROUP(eth_txd1_1, 6, 5), 569 GROUP(eth_tx_en, 6, 6), 570 GROUP(eth_ref_clk, 6, 8), 571 GROUP(eth_mdc, 6, 9), 572 GROUP(eth_mdio_en, 6, 10), 573}; 574 575static struct meson_pmx_group meson8b_aobus_groups[] = { |
580 GPIO_GROUP(GPIOAO_0, AO_OFF), 581 GPIO_GROUP(GPIOAO_1, AO_OFF), 582 GPIO_GROUP(GPIOAO_2, AO_OFF), 583 GPIO_GROUP(GPIOAO_3, AO_OFF), 584 GPIO_GROUP(GPIOAO_4, AO_OFF), 585 GPIO_GROUP(GPIOAO_5, AO_OFF), 586 GPIO_GROUP(GPIOAO_6, AO_OFF), 587 GPIO_GROUP(GPIOAO_7, AO_OFF), 588 GPIO_GROUP(GPIOAO_8, AO_OFF), 589 GPIO_GROUP(GPIOAO_9, AO_OFF), 590 GPIO_GROUP(GPIOAO_10, AO_OFF), 591 GPIO_GROUP(GPIOAO_11, AO_OFF), 592 GPIO_GROUP(GPIOAO_12, AO_OFF), 593 GPIO_GROUP(GPIOAO_13, AO_OFF), 594 GPIO_GROUP(GPIO_BSD_EN, AO_OFF), 595 GPIO_GROUP(GPIO_TEST_N, AO_OFF), | 576 GPIO_GROUP(GPIOAO_0), 577 GPIO_GROUP(GPIOAO_1), 578 GPIO_GROUP(GPIOAO_2), 579 GPIO_GROUP(GPIOAO_3), 580 GPIO_GROUP(GPIOAO_4), 581 GPIO_GROUP(GPIOAO_5), 582 GPIO_GROUP(GPIOAO_6), 583 GPIO_GROUP(GPIOAO_7), 584 GPIO_GROUP(GPIOAO_8), 585 GPIO_GROUP(GPIOAO_9), 586 GPIO_GROUP(GPIOAO_10), 587 GPIO_GROUP(GPIOAO_11), 588 GPIO_GROUP(GPIOAO_12), 589 GPIO_GROUP(GPIOAO_13), 590 GPIO_GROUP(GPIO_BSD_EN), 591 GPIO_GROUP(GPIO_TEST_N), |
596 597 /* bank AO */ 598 GROUP(uart_tx_ao_a, 0, 12), 599 GROUP(uart_rx_ao_a, 0, 11), 600 GROUP(uart_cts_ao_a, 0, 10), 601 GROUP(uart_rts_ao_a, 0, 9), 602 GROUP(i2c_mst_sck_ao, 0, 6), 603 GROUP(i2c_mst_sda_ao, 0, 5), --- 278 unchanged lines hidden (view full) --- 882 FUNCTION(remote), 883 FUNCTION(clk_32k), 884 FUNCTION(pwm_c_ao), 885 FUNCTION(spdif_1), 886 FUNCTION(hdmi_cec), 887}; 888 889static struct meson_bank meson8b_cbus_banks[] = { | 592 593 /* bank AO */ 594 GROUP(uart_tx_ao_a, 0, 12), 595 GROUP(uart_rx_ao_a, 0, 11), 596 GROUP(uart_cts_ao_a, 0, 10), 597 GROUP(uart_rts_ao_a, 0, 9), 598 GROUP(i2c_mst_sck_ao, 0, 6), 599 GROUP(i2c_mst_sda_ao, 0, 5), --- 278 unchanged lines hidden (view full) --- 878 FUNCTION(remote), 879 FUNCTION(clk_32k), 880 FUNCTION(pwm_c_ao), 881 FUNCTION(spdif_1), 882 FUNCTION(hdmi_cec), 883}; 884 885static struct meson_bank meson8b_cbus_banks[] = { |
890 /* name first last irq pullen pull dir out in */ 891 BANK("X", PIN(GPIOX_0, 0), PIN(GPIOX_21, 0), 97, 118, 4, 0, 4, 0, 0, 0, 1, 0, 2, 0), 892 BANK("Y", PIN(GPIOY_0, 0), PIN(GPIOY_14, 0), 80, 96, 3, 0, 3, 0, 3, 0, 4, 0, 5, 0), 893 BANK("DV", PIN(GPIODV_9, 0), PIN(GPIODV_29, 0), 59, 79, 0, 0, 0, 0, 7, 0, 8, 0, 9, 0), 894 BANK("H", PIN(GPIOH_0, 0), PIN(GPIOH_9, 0), 14, 23, 1, 16, 1, 16, 9, 19, 10, 19, 11, 19), 895 BANK("CARD", PIN(CARD_0, 0), PIN(CARD_6, 0), 43, 49, 2, 20, 2, 20, 0, 22, 1, 22, 2, 22), 896 BANK("BOOT", PIN(BOOT_0, 0), PIN(BOOT_18, 0), 24, 42, 2, 0, 2, 0, 9, 0, 10, 0, 11, 0), | 886 /* name first last irq pullen pull dir out in */ 887 BANK("X", GPIOX_0, GPIOX_21, 97, 118, 4, 0, 4, 0, 0, 0, 1, 0, 2, 0), 888 BANK("Y", GPIOY_0, GPIOY_14, 80, 96, 3, 0, 3, 0, 3, 0, 4, 0, 5, 0), 889 BANK("DV", GPIODV_9, GPIODV_29, 59, 79, 0, 0, 0, 0, 7, 0, 8, 0, 9, 0), 890 BANK("H", GPIOH_0, GPIOH_9, 14, 23, 1, 16, 1, 16, 9, 19, 10, 19, 11, 19), 891 BANK("CARD", CARD_0, CARD_6, 43, 49, 2, 20, 2, 20, 0, 22, 1, 22, 2, 22), 892 BANK("BOOT", BOOT_0, BOOT_18, 24, 42, 2, 0, 2, 0, 9, 0, 10, 0, 11, 0), |
897 898 /* 899 * The following bank is not mentionned in the public datasheet 900 * There is no information whether it can be used with the gpio 901 * interrupt controller 902 */ | 893 894 /* 895 * The following bank is not mentionned in the public datasheet 896 * There is no information whether it can be used with the gpio 897 * interrupt controller 898 */ |
903 BANK("DIF", PIN(DIF_0_P, 0), PIN(DIF_4_N, 0), -1, -1, 5, 8, 5, 8, 12, 12, 13, 12, 14, 12), | 899 BANK("DIF", DIF_0_P, DIF_4_N, -1, -1, 5, 8, 5, 8, 12, 12, 13, 12, 14, 12), |
904}; 905 906static struct meson_bank meson8b_aobus_banks[] = { | 900}; 901 902static struct meson_bank meson8b_aobus_banks[] = { |
907 /* name first last irq pullen pull dir out in */ 908 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), | 903 /* name first lastc irq pullen pull dir out in */ 904 BANK("AO", GPIOAO_0, GPIO_TEST_N, 0, 13, 0, 0, 0, 16, 0, 0, 0, 16, 1, 0), |
909}; 910 911struct meson_pinctrl_data meson8b_cbus_pinctrl_data = { 912 .name = "cbus-banks", 913 .pin_base = 0, 914 .pins = meson8b_cbus_pins, 915 .groups = meson8b_cbus_groups, 916 .funcs = meson8b_cbus_functions, 917 .banks = meson8b_cbus_banks, 918 .num_pins = ARRAY_SIZE(meson8b_cbus_pins), 919 .num_groups = ARRAY_SIZE(meson8b_cbus_groups), 920 .num_funcs = ARRAY_SIZE(meson8b_cbus_functions), 921 .num_banks = ARRAY_SIZE(meson8b_cbus_banks), 922}; 923 924struct meson_pinctrl_data meson8b_aobus_pinctrl_data = { 925 .name = "aobus-banks", | 905}; 906 907struct meson_pinctrl_data meson8b_cbus_pinctrl_data = { 908 .name = "cbus-banks", 909 .pin_base = 0, 910 .pins = meson8b_cbus_pins, 911 .groups = meson8b_cbus_groups, 912 .funcs = meson8b_cbus_functions, 913 .banks = meson8b_cbus_banks, 914 .num_pins = ARRAY_SIZE(meson8b_cbus_pins), 915 .num_groups = ARRAY_SIZE(meson8b_cbus_groups), 916 .num_funcs = ARRAY_SIZE(meson8b_cbus_functions), 917 .num_banks = ARRAY_SIZE(meson8b_cbus_banks), 918}; 919 920struct meson_pinctrl_data meson8b_aobus_pinctrl_data = { 921 .name = "aobus-banks", |
926 .pin_base = 130, | 922 .pin_base = 0, |
927 .pins = meson8b_aobus_pins, 928 .groups = meson8b_aobus_groups, 929 .funcs = meson8b_aobus_functions, 930 .banks = meson8b_aobus_banks, 931 .num_pins = ARRAY_SIZE(meson8b_aobus_pins), 932 .num_groups = ARRAY_SIZE(meson8b_aobus_groups), 933 .num_funcs = ARRAY_SIZE(meson8b_aobus_functions), 934 .num_banks = ARRAY_SIZE(meson8b_aobus_banks), 935}; | 923 .pins = meson8b_aobus_pins, 924 .groups = meson8b_aobus_groups, 925 .funcs = meson8b_aobus_functions, 926 .banks = meson8b_aobus_banks, 927 .num_pins = ARRAY_SIZE(meson8b_aobus_pins), 928 .num_groups = ARRAY_SIZE(meson8b_aobus_groups), 929 .num_funcs = ARRAY_SIZE(meson8b_aobus_functions), 930 .num_banks = ARRAY_SIZE(meson8b_aobus_banks), 931}; |