diff options
author | Jerome Brunet <jbrunet@baylibre.com> | 2016-09-14 05:45:28 -0400 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2016-09-15 09:55:25 -0400 |
commit | 0ef823bee705a52372dfb3a9b4f3098bf9b6ae22 (patch) | |
tree | 4bdd78578b524e383e904577192b1552b2b3e3a9 /drivers/pinctrl | |
parent | cd1e3b01c7d30ce5e69cbd760e1edbd4d682c30d (diff) |
pinctrl: amlogic: gxbb: add i2c pins
Add EE domains pins for the i2c devices A,B,C
Signed-off-by: Jerome Brunet <jbrunet@baylibre.com>
Acked-by: Kevin Hilman <khilman@baylibre.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/pinctrl')
-rw-r--r-- | drivers/pinctrl/meson/pinctrl-meson-gxbb.c | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/drivers/pinctrl/meson/pinctrl-meson-gxbb.c b/drivers/pinctrl/meson/pinctrl-meson-gxbb.c index b06cc12f2500..c3928aa3fefa 100644 --- a/drivers/pinctrl/meson/pinctrl-meson-gxbb.c +++ b/drivers/pinctrl/meson/pinctrl-meson-gxbb.c | |||
@@ -200,6 +200,15 @@ static const unsigned int uart_rx_c_pins[] = { PIN(GPIOY_14, EE_OFF) }; | |||
200 | static const unsigned int uart_cts_c_pins[] = { PIN(GPIOX_11, EE_OFF) }; | 200 | static const unsigned int uart_cts_c_pins[] = { PIN(GPIOX_11, EE_OFF) }; |
201 | static const unsigned int uart_rts_c_pins[] = { PIN(GPIOX_12, EE_OFF) }; | 201 | static const unsigned int uart_rts_c_pins[] = { PIN(GPIOX_12, EE_OFF) }; |
202 | 202 | ||
203 | static const unsigned int i2c_sck_a_pins[] = { PIN(GPIODV_25, EE_OFF) }; | ||
204 | static const unsigned int i2c_sda_a_pins[] = { PIN(GPIODV_24, EE_OFF) }; | ||
205 | |||
206 | static const unsigned int i2c_sck_b_pins[] = { PIN(GPIODV_27, EE_OFF) }; | ||
207 | static const unsigned int i2c_sda_b_pins[] = { PIN(GPIODV_26, EE_OFF) }; | ||
208 | |||
209 | static const unsigned int i2c_sck_c_pins[] = { PIN(GPIODV_29, EE_OFF) }; | ||
210 | static const unsigned int i2c_sda_c_pins[] = { PIN(GPIODV_28, EE_OFF) }; | ||
211 | |||
203 | static const unsigned int eth_mdio_pins[] = { PIN(GPIOZ_0, EE_OFF) }; | 212 | static const unsigned int eth_mdio_pins[] = { PIN(GPIOZ_0, EE_OFF) }; |
204 | static const unsigned int eth_mdc_pins[] = { PIN(GPIOZ_1, EE_OFF) }; | 213 | static const unsigned int eth_mdc_pins[] = { PIN(GPIOZ_1, EE_OFF) }; |
205 | static const unsigned int eth_clk_rx_clk_pins[] = { PIN(GPIOZ_2, EE_OFF) }; | 214 | static const unsigned int eth_clk_rx_clk_pins[] = { PIN(GPIOZ_2, EE_OFF) }; |
@@ -438,6 +447,12 @@ static struct meson_pmx_group meson_gxbb_periphs_groups[] = { | |||
438 | GROUP(uart_rts_b, 2, 26), | 447 | GROUP(uart_rts_b, 2, 26), |
439 | GROUP(pwm_b, 3, 21), | 448 | GROUP(pwm_b, 3, 21), |
440 | GROUP(pwm_d, 3, 20), | 449 | GROUP(pwm_d, 3, 20), |
450 | GROUP(i2c_sck_a, 7, 27), | ||
451 | GROUP(i2c_sda_a, 7, 26), | ||
452 | GROUP(i2c_sck_b, 7, 25), | ||
453 | GROUP(i2c_sda_b, 7, 24), | ||
454 | GROUP(i2c_sck_c, 7, 23), | ||
455 | GROUP(i2c_sda_c, 7, 22), | ||
441 | 456 | ||
442 | /* Bank BOOT */ | 457 | /* Bank BOOT */ |
443 | GROUP(emmc_nand_d07, 4, 30), | 458 | GROUP(emmc_nand_d07, 4, 30), |
@@ -574,6 +589,18 @@ static const char * const uart_c_groups[] = { | |||
574 | "uart_tx_c", "uart_rx_c", "uart_cts_c", "uart_rts_c", | 589 | "uart_tx_c", "uart_rx_c", "uart_cts_c", "uart_rts_c", |
575 | }; | 590 | }; |
576 | 591 | ||
592 | static const char * const i2c_a_groups[] = { | ||
593 | "i2c_sck_a", "i2c_sda_a", | ||
594 | }; | ||
595 | |||
596 | static const char * const i2c_b_groups[] = { | ||
597 | "i2c_sck_b", "i2c_sda_b", | ||
598 | }; | ||
599 | |||
600 | static const char * const i2c_c_groups[] = { | ||
601 | "i2c_sck_c", "i2c_sda_c", | ||
602 | }; | ||
603 | |||
577 | static const char * const eth_groups[] = { | 604 | static const char * const eth_groups[] = { |
578 | "eth_mdio", "eth_mdc", "eth_clk_rx_clk", "eth_rx_dv", | 605 | "eth_mdio", "eth_mdc", "eth_clk_rx_clk", "eth_rx_dv", |
579 | "eth_rxd0", "eth_rxd1", "eth_rxd2", "eth_rxd3", | 606 | "eth_rxd0", "eth_rxd1", "eth_rxd2", "eth_rxd3", |
@@ -661,6 +688,9 @@ static struct meson_pmx_func meson_gxbb_periphs_functions[] = { | |||
661 | FUNCTION(uart_a), | 688 | FUNCTION(uart_a), |
662 | FUNCTION(uart_b), | 689 | FUNCTION(uart_b), |
663 | FUNCTION(uart_c), | 690 | FUNCTION(uart_c), |
691 | FUNCTION(i2c_a), | ||
692 | FUNCTION(i2c_b), | ||
693 | FUNCTION(i2c_c), | ||
664 | FUNCTION(eth), | 694 | FUNCTION(eth), |
665 | FUNCTION(pwm_a_x), | 695 | FUNCTION(pwm_a_x), |
666 | FUNCTION(pwm_a_y), | 696 | FUNCTION(pwm_a_y), |