]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
pinctrl: meson-gxl: add missing i2c_d pinmux
authorDa Xue <da@libre.computer>
Thu, 21 Aug 2025 23:33:34 +0000 (19:33 -0400)
committerLinus Walleij <linus.walleij@linaro.org>
Thu, 28 Aug 2025 21:06:03 +0000 (23:06 +0200)
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: 0f15f500ff2c ("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>
drivers/pinctrl/meson/pinctrl-meson-gxl.c

index 9171de657f9780857ee538ba0c6563d859d76f94..a75762e4d26418559eab5da54391fad278285234 100644 (file)
@@ -187,6 +187,9 @@ static const unsigned int i2c_sda_c_pins[]  = { GPIODV_28 };
 static const unsigned int i2c_sck_c_dv19_pins[] = { GPIODV_19 };
 static const unsigned int i2c_sda_c_dv18_pins[] = { GPIODV_18 };
 
+static const unsigned int i2c_sck_d_pins[]     = { GPIOX_11 };
+static const unsigned int i2c_sda_d_pins[]     = { GPIOX_10 };
+
 static const unsigned int eth_mdio_pins[]      = { GPIOZ_0 };
 static const unsigned int eth_mdc_pins[]       = { GPIOZ_1 };
 static const unsigned int eth_clk_rx_clk_pins[] = { GPIOZ_2 };
@@ -411,6 +414,8 @@ static const struct meson_pmx_group meson_gxl_periphs_groups[] = {
        GPIO_GROUP(GPIO_TEST_N),
 
        /* Bank X */
+       GROUP(i2c_sda_d,        5,      5),
+       GROUP(i2c_sck_d,        5,      4),
        GROUP(sdio_d0,          5,      31),
        GROUP(sdio_d1,          5,      30),
        GROUP(sdio_d2,          5,      29),
@@ -651,6 +656,10 @@ static const char * const i2c_c_groups[] = {
        "i2c_sck_c", "i2c_sda_c", "i2c_sda_c_dv18", "i2c_sck_c_dv19",
 };
 
+static const char * const i2c_d_groups[] = {
+       "i2c_sck_d", "i2c_sda_d",
+};
+
 static const char * const eth_groups[] = {
        "eth_mdio", "eth_mdc", "eth_clk_rx_clk", "eth_rx_dv",
        "eth_rxd0", "eth_rxd1", "eth_rxd2", "eth_rxd3",
@@ -777,6 +786,7 @@ static const struct meson_pmx_func meson_gxl_periphs_functions[] = {
        FUNCTION(i2c_a),
        FUNCTION(i2c_b),
        FUNCTION(i2c_c),
+       FUNCTION(i2c_d),
        FUNCTION(eth),
        FUNCTION(pwm_a),
        FUNCTION(pwm_b),