]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
pinctrl: meson-g12a: add GPIOC_7 pcie_clkreqn pinmux
authorDa Xue <da@libre.computer>
Thu, 14 Aug 2025 18:12:36 +0000 (14:12 -0400)
committerLinus Walleij <linus.walleij@linaro.org>
Tue, 19 Aug 2025 12:18:38 +0000 (14:18 +0200)
Amlogic G12 exposes PCIe clock request signal on GPIOC_7 pinmux func 1

Add the relevant pinmux and pin groups

Signed-off-by: Da Xue <da@libre.computer>
Reviewed-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
Link: https://lore.kernel.org/20250814181236.1956731-1-da@libre.computer
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/meson/pinctrl-meson-g12a.c

index 8b9130c6e170b9e94fff6b5cd87b79e3056f2b7a..117e72b4ffcb7bb277206c7cce0647e22ded8fb1 100644 (file)
@@ -442,6 +442,8 @@ static const unsigned int tdm_c_dout1_z_pins[]              = { GPIOZ_3 };
 static const unsigned int tdm_c_dout2_z_pins[]         = { GPIOZ_4 };
 static const unsigned int tdm_c_dout3_z_pins[]         = { GPIOZ_5 };
 
+static const unsigned int pcie_clkreqn_pins[]          = { GPIOC_7 };
+
 static const struct meson_pmx_group meson_g12a_periphs_groups[] = {
        GPIO_GROUP(GPIOZ_0),
        GPIO_GROUP(GPIOZ_1),
@@ -721,6 +723,7 @@ static const struct meson_pmx_group meson_g12a_periphs_groups[] = {
        GROUP(pdm_din2_c,               4),
        GROUP(pdm_din3_c,               4),
        GROUP(pdm_dclk_c,               4),
+       GROUP(pcie_clkreqn,             1),
 
        /* bank GPIOH */
        GROUP(spi1_mosi,                3),
@@ -1183,6 +1186,10 @@ static const char * const tdm_c_groups[] = {
        "tdm_c_dout2_z", "tdm_c_dout3_z",
 };
 
+static const char * const pcie_clkreqn_groups[] = {
+       "pcie_clkreqn"
+};
+
 static const char * const gpio_aobus_groups[] = {
        "GPIOAO_0", "GPIOAO_1", "GPIOAO_2", "GPIOAO_3", "GPIOAO_4",
        "GPIOAO_5", "GPIOAO_6", "GPIOAO_7", "GPIOAO_8", "GPIOAO_9",
@@ -1309,6 +1316,7 @@ static const struct meson_pmx_func meson_g12a_periphs_functions[] = {
        FUNCTION(tdm_a),
        FUNCTION(tdm_b),
        FUNCTION(tdm_c),
+       FUNCTION(pcie_clkreqn),
 };
 
 static const struct meson_pmx_func meson_g12a_aobus_functions[] = {