Skip to content

Commit 0cec950

Browse files
tmlindlinusw
authored andcommitted
pinctrl: single: Add compatible for ti,am654-padconf
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>
1 parent 7e1e232 commit 0cec950

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

drivers/pinctrl/pinctrl-single.c

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1954,6 +1954,12 @@ static const struct pcs_soc_data pinctrl_single_am437x = {
19541954
.irq_status_mask = (1 << 30), /* OMAP_WAKEUP_EVENT */
19551955
};
19561956

1957+
static const struct pcs_soc_data pinctrl_single_am654 = {
1958+
.flags = PCS_QUIRK_SHARED_IRQ | PCS_CONTEXT_LOSS_OFF,
1959+
.irq_enable_mask = (1 << 29), /* WKUP_EN */
1960+
.irq_status_mask = (1 << 30), /* WKUP_EVT */
1961+
};
1962+
19571963
static const struct pcs_soc_data pinctrl_single = {
19581964
};
19591965

@@ -1962,11 +1968,12 @@ static const struct pcs_soc_data pinconf_single = {
19621968
};
19631969

19641970
static const struct of_device_id pcs_of_match[] = {
1971+
{ .compatible = "ti,am437-padconf", .data = &pinctrl_single_am437x },
1972+
{ .compatible = "ti,am654-padconf", .data = &pinctrl_single_am654 },
1973+
{ .compatible = "ti,dra7-padconf", .data = &pinctrl_single_dra7 },
19651974
{ .compatible = "ti,omap3-padconf", .data = &pinctrl_single_omap_wkup },
19661975
{ .compatible = "ti,omap4-padconf", .data = &pinctrl_single_omap_wkup },
19671976
{ .compatible = "ti,omap5-padconf", .data = &pinctrl_single_omap_wkup },
1968-
{ .compatible = "ti,dra7-padconf", .data = &pinctrl_single_dra7 },
1969-
{ .compatible = "ti,am437-padconf", .data = &pinctrl_single_am437x },
19701977
{ .compatible = "pinctrl-single", .data = &pinctrl_single },
19711978
{ .compatible = "pinconf-single", .data = &pinconf_single },
19721979
{ },

0 commit comments

Comments
 (0)