pinctrl: single: Add compatible for ti,am654-padconf
authorTony Lindgren <tony@atomide.com>
Tue, 8 Aug 2023 10:22:08 +0000 (15:52 +0530)
committerLinus Walleij <linus.walleij@linaro.org>
Thu, 10 Aug 2023 08:39:17 +0000 (10:39 +0200)
Use the "ti,am654-padconf" compatible to enable the use of wake-up enable
and event bits on K3 SOCs that support the daisychain feature

Signed-off-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Dhruva Gole <d-gole@ti.com>
Link: https://lore.kernel.org/r/20230808102207.130177-3-d-gole@ti.com
[Alphabetized the compatible list]
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/pinctrl-single.c

index f056923..461a7c0 100644 (file)
@@ -1954,6 +1954,12 @@ static const struct pcs_soc_data pinctrl_single_am437x = {
        .irq_status_mask = (1 << 30),   /* OMAP_WAKEUP_EVENT */
 };
 
+static const struct pcs_soc_data pinctrl_single_am654 = {
+       .flags = PCS_QUIRK_SHARED_IRQ | PCS_CONTEXT_LOSS_OFF,
+       .irq_enable_mask = (1 << 29),   /* WKUP_EN */
+       .irq_status_mask = (1 << 30),   /* WKUP_EVT */
+};
+
 static const struct pcs_soc_data pinctrl_single = {
 };
 
@@ -1962,11 +1968,12 @@ static const struct pcs_soc_data pinconf_single = {
 };
 
 static const struct of_device_id pcs_of_match[] = {
+       { .compatible = "ti,am437-padconf", .data = &pinctrl_single_am437x },
+       { .compatible = "ti,am654-padconf", .data = &pinctrl_single_am654 },
+       { .compatible = "ti,dra7-padconf", .data = &pinctrl_single_dra7 },
        { .compatible = "ti,omap3-padconf", .data = &pinctrl_single_omap_wkup },
        { .compatible = "ti,omap4-padconf", .data = &pinctrl_single_omap_wkup },
        { .compatible = "ti,omap5-padconf", .data = &pinctrl_single_omap_wkup },
-       { .compatible = "ti,dra7-padconf", .data = &pinctrl_single_dra7 },
-       { .compatible = "ti,am437-padconf", .data = &pinctrl_single_am437x },
        { .compatible = "pinctrl-single", .data = &pinctrl_single },
        { .compatible = "pinconf-single", .data = &pinconf_single },
        { },