Skip to content

Commit 3b19127

Browse files
Da XueUlrich Hecht
authored andcommitted
pinctrl: meson-gxl: add missing i2c_d pinmux
[ Upstream commit d8c2a9edd181f0cc4a66eec954b3d8f6a1d954a7 ] Amlogic GXL has 4 I2C attached to gpio-periphs. I2C_D is on GPIOX_10/11. Add the relevant func 3 pinmux per the datasheet for S805X/S905X/S905D. Fixes: 0f15f50 ("pinctrl: meson: Add GXL pinctrl definitions") Signed-off-by: Da Xue <da@libre.computer> Link: https://lore.kernel.org/20250821233335.1707559-1-da@libre.computer Signed-off-by: Linus Walleij <linus.walleij@linaro.org> Signed-off-by: Sasha Levin <sashal@kernel.org> Signed-off-by: Ulrich Hecht <uli@kernel.org>
1 parent 945486d commit 3b19127

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

drivers/pinctrl/meson/pinctrl-meson-gxl.c

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,9 @@ static const unsigned int i2c_sda_c_pins[] = { GPIODV_28 };
193193
static const unsigned int i2c_sck_c_dv19_pins[] = { GPIODV_19 };
194194
static const unsigned int i2c_sda_c_dv18_pins[] = { GPIODV_18 };
195195

196+
static const unsigned int i2c_sck_d_pins[] = { GPIOX_11 };
197+
static const unsigned int i2c_sda_d_pins[] = { GPIOX_10 };
198+
196199
static const unsigned int eth_mdio_pins[] = { GPIOZ_0 };
197200
static const unsigned int eth_mdc_pins[] = { GPIOZ_1 };
198201
static const unsigned int eth_clk_rx_clk_pins[] = { GPIOZ_2 };
@@ -406,6 +409,8 @@ static struct meson_pmx_group meson_gxl_periphs_groups[] = {
406409
GPIO_GROUP(GPIO_TEST_N),
407410

408411
/* Bank X */
412+
GROUP(i2c_sda_d, 5, 5),
413+
GROUP(i2c_sck_d, 5, 4),
409414
GROUP(sdio_d0, 5, 31),
410415
GROUP(sdio_d1, 5, 30),
411416
GROUP(sdio_d2, 5, 29),
@@ -637,6 +642,10 @@ static const char * const i2c_c_groups[] = {
637642
"i2c_sck_c", "i2c_sda_c", "i2c_sda_c_dv18", "i2c_sck_c_dv19",
638643
};
639644

645+
static const char * const i2c_d_groups[] = {
646+
"i2c_sck_d", "i2c_sda_d",
647+
};
648+
640649
static const char * const eth_groups[] = {
641650
"eth_mdio", "eth_mdc", "eth_clk_rx_clk", "eth_rx_dv",
642651
"eth_rxd0", "eth_rxd1", "eth_rxd2", "eth_rxd3",
@@ -757,6 +766,7 @@ static struct meson_pmx_func meson_gxl_periphs_functions[] = {
757766
FUNCTION(i2c_a),
758767
FUNCTION(i2c_b),
759768
FUNCTION(i2c_c),
769+
FUNCTION(i2c_d),
760770
FUNCTION(eth),
761771
FUNCTION(pwm_a),
762772
FUNCTION(pwm_b),

0 commit comments

Comments
 (0)