mirror of
https://github.com/hardkernel/kernel_common_drivers.git
synced 2026-06-25 12:03:48 +09:00
pinctrl: s7: updated according to pinmux documentation for v1.7 [1/1]
PD#SWPL-154648 Problem: S7 Silicon Bringup. Solution: S7 Silicon Bringup. Verify: S7/BH201 Change-Id: Ia97c87f5710bfa768f5dff232218095899786992 Signed-off-by: Huqiang Qin <huqiang.qin@amlogic.com>
This commit is contained in:
committed by
gerrit autosubmit
parent
9285e0faa4
commit
14f2906ff3
@@ -181,6 +181,11 @@ static const unsigned int tdm_d3_c_pins[] = { GPIOC_1 };
|
||||
static const unsigned int tdm_fs1_c_pins[] = { GPIOC_2 };
|
||||
static const unsigned int tdm_sclk1_c_pins[] = { GPIOC_3 };
|
||||
static const unsigned int mclk_1_c_pins[] = { GPIOC_4 };
|
||||
static const unsigned int tdm_d4_c_pins[] = { GPIOC_5 };
|
||||
static const unsigned int tdm_d5_c_pins[] = { GPIOC_6 };
|
||||
|
||||
/* Bank C func6 */
|
||||
static const unsigned int gen_clk_c_pins[] = { GPIOC_4 };
|
||||
|
||||
/* Bank D func1 */
|
||||
static const unsigned int uart_b_tx_d_pins[] = { GPIOD_0 };
|
||||
@@ -235,6 +240,7 @@ static const unsigned int hdmitx_sda_pins[] = { GPIOH_0 };
|
||||
static const unsigned int hdmitx_sck_pins[] = { GPIOH_1 };
|
||||
static const unsigned int hdmitx_hpd_in_pins[] = { GPIOH_2 };
|
||||
static const unsigned int spdif_out_h_pins[] = { GPIOH_4 };
|
||||
static const unsigned int spdif_in_h_pins[] = { GPIOH_5 };
|
||||
static const unsigned int i2c1_sda_h_pins[] = { GPIOH_6 };
|
||||
static const unsigned int i2c1_scl_h_pins[] = { GPIOH_7 };
|
||||
static const unsigned int i2c2_sda_h8_pins[] = { GPIOH_8 };
|
||||
@@ -258,13 +264,14 @@ static const unsigned int uart_e_rx_h_pins[] = { GPIOH_11 };
|
||||
/* Bank H func3 */
|
||||
static const unsigned int pwm_d_h_pins[] = { GPIOH_6 };
|
||||
static const unsigned int pwm_i_h_pins[] = { GPIOH_7 };
|
||||
static const unsigned int spdif_in_h9_pins[] = { GPIOH_9 };
|
||||
|
||||
/* Bank H func4 */
|
||||
static const unsigned int mclk_1_h_pins[] = { GPIOH_4 };
|
||||
static const unsigned int tdm_sclk1_h_pins[] = { GPIOH_5 };
|
||||
static const unsigned int tdm_fs1_h_pins[] = { GPIOH_6 };
|
||||
static const unsigned int mclk_2_h_pins[] = { GPIOH_4 };
|
||||
static const unsigned int tdm_sclk2_h_pins[] = { GPIOH_5 };
|
||||
static const unsigned int tdm_fs2_h_pins[] = { GPIOH_6 };
|
||||
static const unsigned int tdm_d2_h_pins[] = { GPIOH_7 };
|
||||
static const unsigned int tdm_d3_h_pins[] = { GPIOH_8 };
|
||||
static const unsigned int tdm_d6_h_pins[] = { GPIOH_8 };
|
||||
|
||||
/* Bank H func5 */
|
||||
static const unsigned int spi_a_miso_h_pins[] = { GPIOH_4 };
|
||||
@@ -273,6 +280,11 @@ static const unsigned int spi_a_clk_h_pins[] = { GPIOH_6 };
|
||||
static const unsigned int spi_a_ss0_h_pins[] = { GPIOH_7 };
|
||||
|
||||
/* Bank H func6 */
|
||||
static const unsigned int tst_loop1_in_pins[] = { GPIOH_0 };
|
||||
static const unsigned int tst_loop1_out_pins[] = { GPIOH_1 };
|
||||
static const unsigned int tst_clk_1m_pins[] = { GPIOH_2 };
|
||||
static const unsigned int tst_clk_1m_h_pins[] = { GPIOH_3 };
|
||||
static const unsigned int spdif_in_h7_pins[] = { GPIOH_7 };
|
||||
static const unsigned int gen_clk_h_pins[] = { GPIOH_11 };
|
||||
|
||||
/* Bank X func1 */
|
||||
@@ -356,6 +368,8 @@ static const unsigned int pwm_e_z_pins[] = { GPIOZ_6 };
|
||||
|
||||
/* Bank Z func7 */
|
||||
static const unsigned int gen_clk_z9_pins[] = { GPIOZ_9 };
|
||||
static const unsigned int tst_loop2_in_pins[] = { GPIOZ_10 };
|
||||
static const unsigned int tst_loop2_out_pins[] = { GPIOZ_11 };
|
||||
static const unsigned int gen_clk_z12_pins[] = { GPIOZ_12 };
|
||||
|
||||
/* Bank CC func1 */
|
||||
@@ -534,6 +548,11 @@ static struct meson_pmx_group meson_s7_periphs_groups[] __initdata = {
|
||||
GROUP(tdm_fs1_c, 4),
|
||||
GROUP(tdm_sclk1_c, 4),
|
||||
GROUP(mclk_1_c, 4),
|
||||
GROUP(tdm_d4_c, 4),
|
||||
GROUP(tdm_d5_c, 4),
|
||||
|
||||
/* Bank C func6 */
|
||||
GROUP(gen_clk_c, 6),
|
||||
|
||||
/* Bank D func1 */
|
||||
GROUP(uart_b_tx_d, 1),
|
||||
@@ -588,6 +607,7 @@ static struct meson_pmx_group meson_s7_periphs_groups[] __initdata = {
|
||||
GROUP(hdmitx_sck, 1),
|
||||
GROUP(hdmitx_hpd_in, 1),
|
||||
GROUP(spdif_out_h, 1),
|
||||
GROUP(spdif_in_h, 1),
|
||||
GROUP(i2c1_sda_h, 1),
|
||||
GROUP(i2c1_scl_h, 1),
|
||||
GROUP(i2c2_sda_h8, 1),
|
||||
@@ -611,13 +631,14 @@ static struct meson_pmx_group meson_s7_periphs_groups[] __initdata = {
|
||||
/* Bank H func3 */
|
||||
GROUP(pwm_d_h, 3),
|
||||
GROUP(pwm_i_h, 3),
|
||||
GROUP(spdif_in_h9, 3),
|
||||
|
||||
/* Bank H func4 */
|
||||
GROUP(mclk_1_h, 4),
|
||||
GROUP(tdm_sclk1_h, 4),
|
||||
GROUP(tdm_fs1_h, 4),
|
||||
GROUP(mclk_2_h, 4),
|
||||
GROUP(tdm_sclk2_h, 4),
|
||||
GROUP(tdm_fs2_h, 4),
|
||||
GROUP(tdm_d2_h, 4),
|
||||
GROUP(tdm_d3_h, 4),
|
||||
GROUP(tdm_d6_h, 4),
|
||||
|
||||
/* Bank H func5 */
|
||||
GROUP(spi_a_miso_h, 5),
|
||||
@@ -626,6 +647,11 @@ static struct meson_pmx_group meson_s7_periphs_groups[] __initdata = {
|
||||
GROUP(spi_a_ss0_h, 5),
|
||||
|
||||
/* Bank H func6 */
|
||||
GROUP(tst_loop1_in, 6),
|
||||
GROUP(tst_loop1_out, 6),
|
||||
GROUP(tst_clk_1m, 6),
|
||||
GROUP(tst_clk_1m_h, 6),
|
||||
GROUP(spdif_in_h7, 6),
|
||||
GROUP(gen_clk_h, 6),
|
||||
|
||||
/* Bank X func1 */
|
||||
@@ -709,6 +735,8 @@ static struct meson_pmx_group meson_s7_periphs_groups[] __initdata = {
|
||||
|
||||
/* Bank Z func7 */
|
||||
GROUP(gen_clk_z9, 7),
|
||||
GROUP(tst_loop2_in, 7),
|
||||
GROUP(tst_loop2_out, 7),
|
||||
GROUP(gen_clk_z12, 7),
|
||||
|
||||
/* Bank CC func1 */
|
||||
@@ -838,12 +866,13 @@ static const char * const iso7816_groups[] = {
|
||||
static const char * const tdm_groups[] = {
|
||||
"tdm_d2_c", "tdm_d3_c", "tdm_fs1_c", "tdm_sclk1_c",
|
||||
"tdm_d3_d", "tdm_d2_d", "tdm_fs1_d", "tdm_sclk1_d",
|
||||
"tdm_d2_h", "tdm_d3_h", "tdm_fs1_h", "tdm_sclk1_h",
|
||||
"tdm_d2_h", "tdm_d6_h", "tdm_fs2_h", "tdm_sclk2_h",
|
||||
"tdm_d1", "tdm_d0", "tdm_fs0", "tdm_sclk0",
|
||||
"tdm_d4_c", "tdm_d5_c",
|
||||
};
|
||||
|
||||
static const char * const mclk_groups[] = {
|
||||
"mclk_1_c", "mclk_1_d", "mclk_1_h",
|
||||
"mclk_1_c", "mclk_1_d", "mclk_2_h",
|
||||
};
|
||||
|
||||
static const char * const remote_out_groups[] = {
|
||||
@@ -936,7 +965,7 @@ static const char * const spdif_out_groups[] = {
|
||||
};
|
||||
|
||||
static const char * const spdif_in_groups[] = {
|
||||
"spdif_in"
|
||||
"spdif_in", "spdif_in_h", "spdif_in_h7", "spdif_in_h9",
|
||||
};
|
||||
|
||||
static const char * const eth_groups[] = {
|
||||
@@ -953,7 +982,7 @@ static const char * const spi_a_groups[] = {
|
||||
};
|
||||
|
||||
static const char * const gen_clk_groups[] = {
|
||||
"gen_clk_h", "gen_clk_z9", "gen_clk_z12"
|
||||
"gen_clk_h", "gen_clk_z9", "gen_clk_z12", "gen_clk_c",
|
||||
};
|
||||
|
||||
static const char * const sdio_groups[] = {
|
||||
@@ -972,6 +1001,11 @@ static const char * const i2cm_a_groups[] = {
|
||||
"i2cm_a_sda", "i2cm_a_scl"
|
||||
};
|
||||
|
||||
static const char * const tst_groups[] = {
|
||||
"tst_loop1_in", "tst_loop1_out", "tst_clk_1m", "tst_clk_1m_h",
|
||||
"tst_loop2_in", "tst_loop2_out",
|
||||
};
|
||||
|
||||
static struct meson_pmx_func meson_s7_periphs_functions[] __initdata = {
|
||||
FUNCTION(gpio_periphs),
|
||||
FUNCTION(i2c0),
|
||||
@@ -1023,6 +1057,7 @@ static struct meson_pmx_func meson_s7_periphs_functions[] __initdata = {
|
||||
FUNCTION(i2c_slave),
|
||||
FUNCTION(tsin_a),
|
||||
FUNCTION(i2cm_a),
|
||||
FUNCTION(tst),
|
||||
};
|
||||
|
||||
static struct meson_bank meson_s7_periphs_banks[] = {
|
||||
|
||||
Reference in New Issue
Block a user